restrict 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 68a4da331094fb87ec736fbd19bfd69789b49df3
4
- data.tar.gz: 57abb1a0b4c96ef18c13783a5ae15ed0d8e59016
3
+ metadata.gz: 4c64d62099175f3a9b75038ddb7194f9194b6a9f
4
+ data.tar.gz: 062a5d223b9ca341d424eceabe63549306b26c40
5
5
  SHA512:
6
- metadata.gz: 24aaef845f178c795be551c1de4efa38d8cd750041b98d401a1c124483fb85f3e62b75e53d25e799316f232434108211a60fdc851f1f5ab4362563544109eca2
7
- data.tar.gz: c85ac99aea25f9a20d7d17def516b27d1702223cd5d14c05586868a2b22881555c149995b26c4c3b4512c331e3690e3021ddf18b9ee88187b94ae314d90590b0
6
+ metadata.gz: 7f20340ac055884a14dde1e86d3487493ed289bd483414918461402bf1f8563f55b1df07390b7ba0a4faa2bb689dcfc61fb2cfde03b82e96bea4ec01269e977f
7
+ data.tar.gz: f4cb556ccee44018cb568512a7590a3383cc833340b4cb5cd96432447a817f7550118506436e3709acf1aacb55c3e3d6e2dd51011797c5a42deedf28c265ce68
@@ -19,7 +19,7 @@ module Restrict
19
19
  # restrictions, so lets set it where it is used in the code as well.
20
20
  def install_gatekeeper
21
21
  return if @gatekeeper_installed
22
- before_filter :invoke_gatekeeper
22
+ before_action :invoke_gatekeeper
23
23
  @gatekeeper_installed = true
24
24
  end
25
25
  end
@@ -1,3 +1,3 @@
1
1
  module Restrict
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
@@ -33,6 +33,7 @@ class FakeController
33
33
  self.before_filters ||= []
34
34
  before_filters << filter
35
35
  end
36
+ singleton_class.send(:alias_method, :before_action, :before_filter)
36
37
  end
37
38
 
38
39
  class ExampleController < FakeController
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: restrict
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Johannes Opper
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-25 00:00:00.000000000 Z
11
+ date: 2016-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -163,7 +163,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
163
163
  version: '0'
164
164
  requirements: []
165
165
  rubyforge_project:
166
- rubygems_version: 2.2.2
166
+ rubygems_version: 2.6.4
167
167
  signing_key:
168
168
  specification_version: 4
169
169
  summary: Simple access control dsl for controllers.
@@ -175,3 +175,4 @@ test_files:
175
175
  - spec/lib/restrict/rspec/matcher_spec.rb
176
176
  - spec/lib/restrict_spec.rb
177
177
  - spec/spec_helper.rb
178
+ has_rdoc: