checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
---
2
2
SHA256:
3
- metadata.gz: 39a19fffe4acdc5dcb94739544c383afb5cee7105b57c5ab212e3002685f7f25
4
- data.tar.gz: 841ac8420ce6f81cb6d9f841e87c0429963f8de3da42e41e0c0b6cf163913088
3
+ metadata.gz: 1ca2866678aeb9e1e76fc1a4ce3538102fee2378802055306aca9e72701b6952
4
+ data.tar.gz: 9b07a89a5d87c10b033110b769c6550ee01740f0240d7a462e9c3f28db032b34
5
5
SHA512:
6
- metadata.gz: 29bc6c8b3580a431c36fd3d83a2af3e1d540c53bad63d39c2e0e41705c0a1a103b7fa8f03814a9d017704340a6fb650ceb1cdfd2028d3748b6dcf75c212aca74
7
- data.tar.gz: cc812465b5effcc6fa6121df2620a72073d345cb30c6aaf906e28146212142eb5eef40e117f90e71e7c006b0b160b9e7d962f617067e0a67fab3d72cc1c557ed
6
+ metadata.gz: 14e6a65575cf3b79889eed8d917a334ad910d6795a18febde2df64cc6e20709ab67499d1dd466033d676c3b8aac5680f3a331ae27c86307f164cd409232b2f62
7
+ data.tar.gz: 23d6d4cfd078b8b9e6a173099fac09adab5d810b6b9afc56eedc02f448ffae605417e3f1578af735a43cfda5bae15e335117f4752c3729699c404f587d996a1d
data/README.md CHANGED
@@ -67,7 +67,7 @@ book.info(customer) # { :name => "Lord of the Rings" }
67
67
```
68
68
69
69
### Controllers
70
- On controllers, you can include `Gatekeeper::Respondable` to generate automatic responses for your HTML, JS, or JSON views. These responses contains information based on the `allowed_info` method specified in your models.
70
+ On controllers, you can include `Gatekeeper::Responder` to generate automatic responses for your HTML, JS, or JSON views. These responses contains information based on the `allowed_info` method specified in your models.
71
71
72
72
## License
73
73
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
data/app/controllers/concerns/gatekeeper/{respondable.rb → responder.rb} RENAMED
@@ -1,5 +1,5 @@
1
1
module Gatekeeper
2
- module Respondable
2
+ module Responder
3
3
4
4
extend ActiveSupport::Concern
5
5
@@ -13,7 +13,6 @@ module Gatekeeper
13
13
##
14
14
# Handles response based on request format.
15
15
def handle_response
16
- fatto = performed?
17
16
unless performed?
18
17
if @error.present?
19
18
handle_error(@error)
data/app/controllers/gatekeeper_controller.rb CHANGED
@@ -1,6 +1,6 @@
1
1
class GatekeeperController < ApplicationController
2
2
3
- include Gatekeeper::Respondable
3
+ include Gatekeeper::Responder
4
4
5
5
def index
6
6
end
data/lib/gatekeeper/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
module Gatekeeper
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
--- !ruby/object:Gem::Specification
2
2
name: rails-mongoid-gatekeeper
3
3
version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
platform: ruby
6
6
authors:
7
7
- Francesco Ballardin
@@ -77,7 +77,7 @@ files:
77
77
- MIT-LICENSE
78
78
- README.md
79
79
- Rakefile
80
- - app/controllers/concerns/gatekeeper/respondable.rb
80
+ - app/controllers/concerns/gatekeeper/responder.rb
81
81
- app/controllers/gatekeeper_controller.rb
82
82
- app/models/gatekeeper/embedded_model.rb
83
83
- app/models/gatekeeper/model.rb