can_can_dry 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f6aee8bd24117248d750d0021fa0d07b73da1c49
4
- data.tar.gz: 9222441ae21603b25237a56bd5d4d073ddb0143e
3
+ metadata.gz: 04cf0ce0b19ae3d6b45739e9727da5f388cf04de
4
+ data.tar.gz: 4506485e44e2492366289a2ec0ed951578dfc1a5
5
5
  SHA512:
6
- metadata.gz: 9fcc3d0f770af0fa2118c20ab2d72c607c6fe8329e7ecb85eef0832b25334be231d0918ccc0d2d01a0397710588290bd3bc1b2a827d692a3f0e3a9c9353d5711
7
- data.tar.gz: 3234a837f21b156b5d626cfa4db0c1536e0424b0f6bd98329443d2d986724a2a28778e61cfac75b0b6a48cd583cf75c9ea7b9c491550d11ab7e293a226599a8c
6
+ metadata.gz: b0a7b9121ef6acfb29f5b7e820d62c33583ac3d073f1b69258ae5af7cd9f759979a8f779773e4fcd103eaf3aeef8737e6df82d0fae4f0fa8fec3c07ae761bf58
7
+ data.tar.gz: 3095b9ee251f54f5a36405596e0d9cf2a8d2945f5c3153fe912668ec8da91768f4531ac644a6ea0f14897771f5c01063da44dd87bc3d8ec77b52e64d8f67ecf3
@@ -6,7 +6,7 @@ module CanCanDry
6
6
  end
7
7
 
8
8
  def can_by_path?(path, method = :get)
9
- can_by_can_args(ability_mapping.can_args_by_path(root_path, path, method))
9
+ can_by_can_args(ability_mapping.can_args_by_path(main_app.root_path, path, method))
10
10
  end
11
11
 
12
12
  def can_by_path_hash?(path_hash)
@@ -1,3 +1,3 @@
1
1
  module CanCanDry
2
- VERSION = '0.0.7'
2
+ VERSION = '0.0.8'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: can_can_dry
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
  - Esquilo Azul Company
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-19 00:00:00.000000000 Z
11
+ date: 2018-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -93,11 +93,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
93
  version: '0'
94
94
  requirements: []
95
95
  rubyforge_project:
96
- rubygems_version: 2.6.14
96
+ rubygems_version: 2.4.8
97
97
  signing_key:
98
98
  specification_version: 4
99
99
  summary: DRY authorization with CanCanCan.
100
100
  test_files:
101
- - test/test_helper.rb
102
- - test/can_can_dry_test.rb
103
101
  - test/lib/can_can_dry/path_recognizer_test.rb
102
+ - test/can_can_dry_test.rb
103
+ - test/test_helper.rb