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 +4 -4
- data/lib/can_can_dry/helpers/can_can_dry_helper.rb +1 -1
- data/lib/can_can_dry/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 04cf0ce0b19ae3d6b45739e9727da5f388cf04de
|
|
4
|
+
data.tar.gz: 4506485e44e2492366289a2ec0ed951578dfc1a5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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)
|
data/lib/can_can_dry/version.rb
CHANGED
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.
|
|
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-
|
|
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.
|
|
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
|