access_manager 0.0.4 → 0.0.5

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: ad8074f7c4fe05723568a9e85dbf08a50d8a5910
4
- data.tar.gz: dfd93bd5d9025a47d3c70ada37c693cb780376e4
3
+ metadata.gz: 71d67851f3222a13cc9c73a036a9113c4938a050
4
+ data.tar.gz: c8cea65c4b197524cf8c3094a07d5a454c16efd4
5
5
  SHA512:
6
- metadata.gz: f37ff60e1676aeff8772926d666703a7ba9abbb740aff429b34e12c600b892ac5e78fd998be41633ea7b527eb0d6b06a9afb5f4001467b81c7a4831b97911089
7
- data.tar.gz: 8ed4ec0212dacff101305785191b96895ac6cf49bdb32a68544b89b64e1288a9f3b59ef435339d9e0c75d6b77989dd0826c28e1e4a0c4cd7206c364954dcd05c
6
+ metadata.gz: bddac2278bf8b534d468e290dc05712ea487af39cc5146d50330079e19ce2040bfca38f934f045d87f13a70a1645306bf0da0cb190b586efd4eb2f4ce3c75524
7
+ data.tar.gz: 5b096128d64e5c11677b7dca6f4074844deaf98bc606ad7ad7eed041637d7048c9c6360b5cc8e11bb38dcf19749d1f263f4eb83e33a8a5af51fca984ada6bcab
@@ -13,3 +13,7 @@
13
13
  ## v0.0.4
14
14
 
15
15
  * Bugfixes
16
+
17
+ ## v0.0.5
18
+
19
+ * Save all user grant keys as symbols
@@ -8,23 +8,23 @@ module AccessManager
8
8
  end
9
9
 
10
10
  args[:to].each do |controller, actions|
11
- if @access_tree[controller].nil?
12
- @access_tree[controller] = { }
11
+ if @access_tree[controller.to_sym].nil?
12
+ @access_tree[controller.to_sym] = { }
13
13
  end
14
14
 
15
15
  if actions == :all
16
- if @access_tree[controller]['@all'].nil?
17
- @access_tree[controller]['@all'] = []
16
+ if @access_tree[controller.to_sym]['@all'].nil?
17
+ @access_tree[controller.to_sym]['@all'] = []
18
18
  end
19
19
 
20
- @access_tree[controller]['@all'] << user_action
20
+ @access_tree[controller.to_sym]['@all'] << user_action
21
21
  else
22
22
  actions.each do |action|
23
- if @access_tree[controller][action].nil?
24
- @access_tree[controller][action] = []
23
+ if @access_tree[controller.to_sym][action.to_sym].nil?
24
+ @access_tree[controller.to_sym][action.to_sym] = []
25
25
  end
26
26
 
27
- @access_tree[controller][action] << user_action
27
+ @access_tree[controller.to_sym][action.to_sym] << user_action
28
28
  end
29
29
  end
30
30
  end
@@ -1,3 +1,3 @@
1
1
  module AccessManager
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: access_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matias Hick