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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 671808e6878f0a65489aa194490bfc731cf7293e5a0465910f7f5c79157807dd
4
- data.tar.gz: 6cfc4e4fbe521afbd48ada6d1e853ab55daa9afaa9ac2cf540a87a9dfe6c2798
3
+ metadata.gz: d023f18da13dc8704eb3b5824648222f37557cb7ce2621a8e5d78c5197b3fecf
4
+ data.tar.gz: d87dc8b1348d8d4ff34312e292d4658346ee254c441a9b6b1966a0e294e6d8af
5
5
  SHA512:
6
- metadata.gz: 7385ba48e6f6875ece97c8307ced01fedb343587f090b508fc3b86e22d5c01d6001b07407996c3c425834954b82922e0ca74312c116f1fc19792c0431ead92f8
7
- data.tar.gz: 9fbb7235fd0b6cc252340573650401c419a33e4c20e44c15e6a38b4df80d4488301642ebe9925542b2cdfcc8e51e53c696efb3b4c6bc9d6f23212935910f34a9
6
+ metadata.gz: 7e7fc6214685e1ac7f66942a22e8eba654563c42cedd95e8fd02206f7b4f03624cfe3748710a85238e0d0f744ca46c11a7dcd8d882eb9006b47f411ed3fd66fc
7
+ data.tar.gz: de0889f852fdc41f69d04d2f9de383749987b5aed2cef9506fa02463408a5d8be31234e3ceee2f360b4bedfb5d9b0d8d1728b031458b9b28ddbde14062cfdeca
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
- source 'https://rubygems.org'
1
+ source 'https://gems.ruby-china.com/'
2
2
 
3
3
  # Specify your gem's dependencies in role_making.gemspec
4
4
  gemspec
@@ -1,3 +1,3 @@
1
1
  module RoleMaking
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.3"
3
3
  end
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", "~> 1.7"
23
- spec.add_development_dependency "rake", "~> 10.0"
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.1.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: 2019-01-22 00:00:00.000000000 Z
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: '1.7'
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: '1.7'
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: '10.0'
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: '10.0'
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
- rubyforge_project:
97
- rubygems_version: 2.7.6
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: []