role_making 0.1.0 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/lib/role_making/version.rb +1 -1
- data/lib/role_making.rb +2 -5
- data/role_making.gemspec +2 -2
- metadata +10 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d023f18da13dc8704eb3b5824648222f37557cb7ce2621a8e5d78c5197b3fecf
|
4
|
+
data.tar.gz: d87dc8b1348d8d4ff34312e292d4658346ee254c441a9b6b1966a0e294e6d8af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e7fc6214685e1ac7f66942a22e8eba654563c42cedd95e8fd02206f7b4f03624cfe3748710a85238e0d0f744ca46c11a7dcd8d882eb9006b47f411ed3fd66fc
|
7
|
+
data.tar.gz: de0889f852fdc41f69d04d2f9de383749987b5aed2cef9506fa02463408a5d8be31234e3ceee2f360b4bedfb5d9b0d8d1728b031458b9b28ddbde14062cfdeca
|
data/Gemfile
CHANGED
data/lib/role_making/version.rb
CHANGED
data/lib/role_making.rb
CHANGED
@@ -21,12 +21,9 @@ module RoleMaking
|
|
21
21
|
rolify_options.merge!({ :join_table => self.role_join_table_name })
|
22
22
|
rolify_options.merge!(options.reject{ |k,v| ![ :before_add, :after_add, :before_remove, :after_remove ].include? k.to_sym })
|
23
23
|
|
24
|
-
has_and_belongs_to_many :roles, rolify_options
|
24
|
+
has_and_belongs_to_many :roles, **rolify_options
|
25
|
+
#has_and_belongs_to_many :roles, class_name: 'role', join_table: 'roles_users'
|
25
26
|
|
26
27
|
#load_dynamic_methods if RoleMaking.dynamic_shortcuts
|
27
28
|
end
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
29
|
end
|
data/role_making.gemspec
CHANGED
@@ -19,6 +19,6 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
21
|
spec.add_dependency 'cancancan'#, '~> 1.10','>= 1.10.1'
|
22
|
-
spec.add_development_dependency "bundler", "~>
|
23
|
-
spec.add_development_dependency "rake", "~>
|
22
|
+
spec.add_development_dependency "bundler", "~> 2.2"
|
23
|
+
spec.add_development_dependency "rake", "~> 13.0"
|
24
24
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: role_making
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- javy_liu
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-10-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cancancan
|
@@ -30,28 +30,28 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '2.2'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '2.2'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '13.0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '13.0'
|
55
55
|
description: A gem for resource manage based on role
|
56
56
|
email:
|
57
57
|
- javy_liu@163.com
|
@@ -78,7 +78,7 @@ homepage: https://github.com/javyliu/role_making
|
|
78
78
|
licenses:
|
79
79
|
- MIT
|
80
80
|
metadata: {}
|
81
|
-
post_install_message:
|
81
|
+
post_install_message:
|
82
82
|
rdoc_options: []
|
83
83
|
require_paths:
|
84
84
|
- lib
|
@@ -93,9 +93,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
93
93
|
- !ruby/object:Gem::Version
|
94
94
|
version: '0'
|
95
95
|
requirements: []
|
96
|
-
|
97
|
-
|
98
|
-
signing_key:
|
96
|
+
rubygems_version: 3.2.3
|
97
|
+
signing_key:
|
99
98
|
specification_version: 4
|
100
99
|
summary: for custom defined role to manage the resources
|
101
100
|
test_files: []
|