access_manager 0.1.2 → 0.2.0

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: 8a4dc4ac9e215934f8a2975dbc10e4830efc586e
4
- data.tar.gz: 0d7fd03cf0d7f56ad70217bc3b9ab3f8eb151062
3
+ metadata.gz: 30614f966e8f4ea0b497d9e2c4a582475b293be1
4
+ data.tar.gz: e561af4804111b66cd99928f8af78ea3cc530526
5
5
  SHA512:
6
- metadata.gz: 64f5eb58d18cf5dfd774a3f659a924893d5a3e5decf4f0eefa8d62a558016b6077e4e7c9fb4d079b0047111c5593072bf74ebe843f701841ce3ae1b871f7847c
7
- data.tar.gz: 26161875a0d145847e622e4fe7088bcd2d245c59dc8b9b313fb952c23becb929d1a9bbbcc2ae55444c3bfc135a97f40c8519b658737f50d1b074b938ec9a9a8a
6
+ metadata.gz: cfa8e60641b6a1d9f145eed2128a2e1bf7fc0384b70ebcbd24a9b0db752223e8d277d3341ac1e5f271b0c21548ab748fab3621557a57219d0e0fdae2cf49d670
7
+ data.tar.gz: 84867153b83a0f8b41493d97d992a518d1e856d88230ceab110a6f1697a0c69e027c7cc54ce4116285baba7d9393a1b73eddf199b5f5d9a8110c8bf625071508
File without changes
data/LICENSE.md CHANGED
File without changes
data/README.md CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,3 +1,3 @@
1
1
  module AccessManager
2
- VERSION = "0.1.2"
2
+ VERSION = "0.2.0"
3
3
  end
File without changes
@@ -1,27 +1,25 @@
1
- // Access Manager 0.1.0
2
- // (c) 2014
3
- // Access Manager may be freely distributed under the MIT license.
4
-
5
1
  $(function () {
6
- var userActions = jQuery.parseJSON($('#current_user_actions').val());
2
+ if ($('#current_user_actions').size() == 1) {
3
+ var userActions = jQuery.parseJSON($('#current_user_actions').val());
7
4
 
8
- _.each($('[data-required-action]'), function (val) {
9
- var requiredActions = $(val).data('required-action').split(',');
5
+ _.each($('[data-required-action]'), function (val) {
6
+ var requiredActions = $(val).data('required-action').split(',');
10
7
 
11
- if (_.intersection(userActions, requiredActions).length == 0) {
12
- $(val).remove();
13
- }
14
- });
8
+ if (_.intersection(userActions, requiredActions).length == 0) {
9
+ $(val).remove();
10
+ }
11
+ });
15
12
 
16
- _.each($('[data-menu=submenu]'), function (val) {
17
- if ($(val).find('[data-required-action]').length == 0) {
18
- $(val).remove();
19
- }
20
- });
13
+ _.each($('[data-menu=submenu]'), function (val) {
14
+ if ($(val).find('[data-required-action]').length == 0) {
15
+ $(val).remove();
16
+ }
17
+ });
21
18
 
22
- _.each($('[data-menu=menu]'), function (val) {
23
- if ($(val).find('[data-required-action]').length == 0) {
24
- $(val).remove();
25
- }
26
- });
19
+ _.each($('[data-menu=menu]'), function (val) {
20
+ if ($(val).find('[data-required-action]').length == 0) {
21
+ $(val).remove();
22
+ }
23
+ });
24
+ }
27
25
  });
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: access_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matias Hick
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-26 00:00:00.000000000 Z
11
+ date: 2017-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -55,7 +55,6 @@ files:
55
55
  - lib/access_manager/version.rb
56
56
  - lib/access_manager/view_helpers.rb
57
57
  - vendor/assets/javascripts/access_manager.js
58
- - vendor/assets/stylesheets/access_manager.css
59
58
  homepage: https://github.com/unformattmh/access_manager
60
59
  licenses:
61
60
  - MIT
@@ -76,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
75
  version: '0'
77
76
  requirements: []
78
77
  rubyforge_project:
79
- rubygems_version: 2.2.2
78
+ rubygems_version: 2.5.2
80
79
  signing_key:
81
80
  specification_version: 4
82
81
  summary: Manage grants in your applications
@@ -1,6 +0,0 @@
1
- .dropdown-submenu{position:relative;}
2
- .dropdown-submenu>.dropdown-menu{top:0;left:100%;margin-top:-6px;margin-left:-1px;-webkit-border-radius:0 6px 6px 6px;-moz-border-radius:0 6px 6px 6px;border-radius:0 6px 6px 6px;}
3
- .dropdown-submenu:hover>.dropdown-menu{display:block;}
4
- .dropdown-submenu>a:after{display:block;content:" ";float:right;width:0;height:0;border-color:transparent;border-style:solid;border-width:5px 0 5px 5px;border-left-color:#cccccc;margin-top:5px;margin-right:-10px;}
5
- .dropdown-submenu:hover>a:after{border-left-color:#ffffff;}
6
- .dropdown-submenu.pull-left{float:none;}.dropdown-submenu.pull-left>.dropdown-menu{left:-100%;margin-left:10px;-webkit-border-radius:6px 0 6px 6px;-moz-border-radius:6px 0 6px 6px;border-radius:6px 0 6px 6px;}