policy-assertions 0.0.1 → 0.0.2

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: a38fcb854b7f7f60bbaacd50911686b294ec29f6
4
- data.tar.gz: b7f5ecf2f114e7180bda034e1e1386aecc27db14
3
+ metadata.gz: 53e8739d031b758729afa0bbb35943b9435d82e0
4
+ data.tar.gz: 7084ff252fda8db066873be079a1955320e3a52d
5
5
  SHA512:
6
- metadata.gz: 7d410b2390857310401408497dacdfa4024ad8463606a03f89dfe202ff8b6deb6f79a3e50c589bd52d332d04b231fd17775b1fff4d9cb93dc4e95600af0bf7fa
7
- data.tar.gz: 2d061e1749a933d9bae107741d66c4e25835be16f88c729b795ec62c41054ebfd8441e206d718dd643fd7d20b9a4caa0bd5a7fd008f2738b338cd2300570a84c
6
+ metadata.gz: 3ea9753e8d7a4b09f8add5e23f9f4077769d53a85123175e035e25287680bf6ec64df9526fb2a2bb8137810aac93a94be497ced0bb8057f776cb9c12186cb5ac
7
+ data.tar.gz: c90daf60ee58b1b60107c2bf76c18f7f373b3e3004027677969aa18556733856a549604e126fc83871e21fd68d041857ff99b4de11047811858812fb32c987b2
@@ -1,7 +1,13 @@
1
1
  require 'rack'
2
+ require 'pundit'
2
3
  require 'rack/test'
3
4
  require 'active_support'
4
- require 'action_controller/metal/strong_parameters'
5
+
6
+ if Gem::Specification.find_all_by_name('strong_parameters').empty?
7
+ require 'action_controller/metal/strong_parameters'
8
+ else
9
+ require 'strong_parameters'
10
+ end
5
11
 
6
12
  require 'policy_assertions/errors'
7
13
  require 'policy_assertions/version'
@@ -1,3 +1,3 @@
1
1
  module PolicyAssertions
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
data/test/test_helper.rb CHANGED
@@ -1,7 +1,6 @@
1
1
  require 'minitest/autorun'
2
2
  require 'minitest/pride'
3
3
  require 'policy_assertions'
4
- require 'pundit'
5
4
 
6
5
  ActiveSupport::TestCase.test_order = :random
7
6
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: policy-assertions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Simmons
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-01 00:00:00.000000000 Z
11
+ date: 2015-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler