restrict 0.2.0 → 0.2.1

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
  SHA256:
3
- metadata.gz: f62175faf4d52862724714686cac041256b2310829585c3aca3727b134ce0055
4
- data.tar.gz: f2417075e72d6fb292c0c0e96070c333736d9bad1ee42ccb8c9e5843f854971e
3
+ metadata.gz: b012524d4112ddfce7cef1066511516b69019acf727b577cb271d36355edc6e5
4
+ data.tar.gz: 161638aee7c62d34da01168eeb8e7aec23cacef01a9e0b596209f3f4cf0ed8ac
5
5
  SHA512:
6
- metadata.gz: 0c8c6c12db208e9ad82f0f2e6ee92fe6cb2224a89c7dbab817caf0e07f23290c9f217c724908bf6cdd96205fdb73129f21d17ed68414736b126f630624b83ab1
7
- data.tar.gz: c067669909c1aa082fcee9241ddf8688dc9a03464ff19d66fb0686175cd1e222604c6ba0d7971fc0e379d11a9e388fc14e1f64cd66af87aefa6ccff65e226d53
6
+ metadata.gz: 0130142f698da26e48c9d986782f080e4f457a5833ca83a54846d79dbb6a96a5f751e7ff96d08c0bee6cfa99325f9414ba7f74bbed951629965f89d460981cae
7
+ data.tar.gz: c83f370a57e3f73874000ac806e28f08e22ccfc2247c0c2954b1a329a34f902c71f5aaf60d0a98e61c66d22320ff2b649b3c295a611215f97bc33e48e7f36b7a
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ [0.2.1] - 2021-04-24
2
+ * Fix rails autoloading issue (@jaynetics)
3
+
1
4
  [0.2.0] - 2020-05-18
2
5
  * Implement `:on` parameter for `restrict` calls
3
6
 
@@ -2,7 +2,9 @@ module Restrict
2
2
  module Rails
3
3
  class Railtie < ::Rails::Railtie
4
4
  initializer 'restrict.add_controller_extension' do
5
- ActionController::Base.send :include, Restrict::Rails::Controller
5
+ ActiveSupport.on_load(:action_controller_base) do
6
+ ActionController::Base.include Restrict::Rails::Controller
7
+ end
6
8
  end
7
9
  end
8
10
  end
@@ -1,3 +1,3 @@
1
1
  module Restrict
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
data/spec/spec_helper.rb CHANGED
@@ -1,5 +1,7 @@
1
1
  require 'simplecov'
2
2
  require 'byebug'
3
+ require 'active_support'
4
+ require 'active_support/core_ext'
3
5
 
4
6
  SimpleCov.profiles.define 'gem' do
5
7
  add_filter '/spec/'
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.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Johannes Opper
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-18 00:00:00.000000000 Z
11
+ date: 2021-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -151,7 +151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
153
  requirements: []
154
- rubygems_version: 3.1.2
154
+ rubygems_version: 3.1.4
155
155
  signing_key:
156
156
  specification_version: 4
157
157
  summary: Simple access control dsl for controllers.