roles_generic 0.3.7.2 → 0.3.8
Sign up to get free protection for your applications and to get access to all the features.
- data/Changelog.textile +6 -0
- data/Gemfile +7 -7
- data/Rakefile +10 -7
- data/VERSION +1 -1
- data/lib/generators/roles_generic/roles/roles_generator.rb +2 -2
- data/roles_generic.gemspec +19 -28
- metadata +78 -173
data/Changelog.textile
ADDED
data/Gemfile
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
source :rubygems
|
2
2
|
|
3
|
-
gem "require_all",
|
4
|
-
gem "activesupport",
|
5
|
-
gem 'sugar-high',
|
6
|
-
gem '
|
7
|
-
gem 'logging_assist', '>= 0.2.0'
|
3
|
+
gem "require_all", "~> 1.2.0"
|
4
|
+
gem "activesupport", ">= 3.0.1"
|
5
|
+
gem 'sugar-high', "~> 0.4.0"
|
6
|
+
gem 'rails_artifactor', '~> 0.3.3'
|
7
|
+
# gem 'logging_assist', '>= 0.2.0'
|
8
8
|
|
9
9
|
group :test do
|
10
|
-
gem "rspec", ">= 2.
|
11
|
-
gem "generator-spec", ">= 0.7.
|
10
|
+
gem "rspec", ">= 2.4.1"
|
11
|
+
gem "generator-spec", ">= 0.7.3"
|
12
12
|
end
|
data/Rakefile
CHANGED
@@ -7,14 +7,17 @@ begin
|
|
7
7
|
gem.email = "kmandrup@gmail.com"
|
8
8
|
gem.homepage = "http://github.com/kristianmandrup/roles_generic"
|
9
9
|
gem.authors = ["Kristian Mandrup"]
|
10
|
-
gem.
|
11
|
-
|
10
|
+
gem.rubygems_version = '1.5.0'
|
11
|
+
|
12
|
+
# See Gemfile for regular dependencies
|
13
|
+
gem.add_development_dependency "rspec", '>= 2.4.1'
|
14
|
+
gem.add_development_dependency "generator-spec", '>= 0.7.3'
|
12
15
|
|
13
|
-
|
14
|
-
|
15
|
-
gem.add_dependency '
|
16
|
-
gem.add_dependency '
|
17
|
-
gem.add_dependency '
|
16
|
+
# COMMENTED OUT TO AVOID DUPLICATION WITH GEMFILE:
|
17
|
+
# https://github.com/technicalpickles/jeweler/issues#issue/152
|
18
|
+
gem.add_dependency 'require_all', '~> 1.2.0'
|
19
|
+
gem.add_dependency 'activesupport', '>= 3.0.1'
|
20
|
+
gem.add_dependency 'sugar-high', '~> 0.4.0'
|
18
21
|
|
19
22
|
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
20
23
|
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.8
|
@@ -1,9 +1,9 @@
|
|
1
|
-
require '
|
1
|
+
require 'rails_artifactor'
|
2
2
|
|
3
3
|
module RolesGeneric
|
4
4
|
module Generators
|
5
5
|
class RolesGenerator < Rails::Generators::NamedBase
|
6
|
-
include
|
6
|
+
include RailsAssist::Artifact::Model
|
7
7
|
|
8
8
|
desc "Add role strategy to a model"
|
9
9
|
|
data/roles_generic.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{roles_generic}
|
8
|
-
s.version = "0.3.
|
8
|
+
s.version = "0.3.8"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Kristian Mandrup"]
|
12
|
-
s.date = %q{2011-
|
12
|
+
s.date = %q{2011-03-04}
|
13
13
|
s.description = %q{Generic role strategies sharing the same API. Easy to insert in any model}
|
14
14
|
s.email = %q{kmandrup@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -19,6 +19,7 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.files = [
|
20
20
|
".document",
|
21
21
|
".rspec",
|
22
|
+
"Changelog.textile",
|
22
23
|
"Gemfile",
|
23
24
|
"LICENSE",
|
24
25
|
"README.textile",
|
@@ -86,7 +87,7 @@ Gem::Specification.new do |s|
|
|
86
87
|
]
|
87
88
|
s.homepage = %q{http://github.com/kristianmandrup/roles_generic}
|
88
89
|
s.require_paths = ["lib"]
|
89
|
-
s.rubygems_version = %q{1.
|
90
|
+
s.rubygems_version = %q{1.6.1}
|
90
91
|
s.summary = %q{Generic role strategies sharing the same API}
|
91
92
|
s.test_files = [
|
92
93
|
"spec/generator_spec_helper.rb",
|
@@ -108,49 +109,39 @@ Gem::Specification.new do |s|
|
|
108
109
|
]
|
109
110
|
|
110
111
|
if s.respond_to? :specification_version then
|
111
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
112
112
|
s.specification_version = 3
|
113
113
|
|
114
114
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
115
115
|
s.add_runtime_dependency(%q<require_all>, ["~> 1.2.0"])
|
116
116
|
s.add_runtime_dependency(%q<activesupport>, [">= 3.0.1"])
|
117
|
-
s.add_runtime_dependency(%q<sugar-high>, ["~> 0.
|
118
|
-
s.add_runtime_dependency(%q<
|
119
|
-
s.
|
120
|
-
s.add_development_dependency(%q<
|
121
|
-
s.add_development_dependency(%q<generator-spec>, [">= 0.7.2"])
|
117
|
+
s.add_runtime_dependency(%q<sugar-high>, ["~> 0.4.0"])
|
118
|
+
s.add_runtime_dependency(%q<rails_artifactor>, ["~> 0.3.3"])
|
119
|
+
s.add_development_dependency(%q<rspec>, [">= 2.4.1"])
|
120
|
+
s.add_development_dependency(%q<generator-spec>, [">= 0.7.3"])
|
122
121
|
s.add_runtime_dependency(%q<require_all>, ["~> 1.2.0"])
|
123
122
|
s.add_runtime_dependency(%q<activesupport>, [">= 3.0.1"])
|
124
|
-
s.add_runtime_dependency(%q<sugar-high>, ["~> 0.
|
125
|
-
s.add_runtime_dependency(%q<rails3_artifactor>, ["~> 0.3.2"])
|
126
|
-
s.add_runtime_dependency(%q<logging_assist>, [">= 0.2.0"])
|
123
|
+
s.add_runtime_dependency(%q<sugar-high>, ["~> 0.4.0"])
|
127
124
|
else
|
128
125
|
s.add_dependency(%q<require_all>, ["~> 1.2.0"])
|
129
126
|
s.add_dependency(%q<activesupport>, [">= 3.0.1"])
|
130
|
-
s.add_dependency(%q<sugar-high>, ["~> 0.
|
131
|
-
s.add_dependency(%q<
|
132
|
-
s.add_dependency(%q<
|
133
|
-
s.add_dependency(%q<
|
134
|
-
s.add_dependency(%q<generator-spec>, [">= 0.7.2"])
|
127
|
+
s.add_dependency(%q<sugar-high>, ["~> 0.4.0"])
|
128
|
+
s.add_dependency(%q<rails_artifactor>, ["~> 0.3.3"])
|
129
|
+
s.add_dependency(%q<rspec>, [">= 2.4.1"])
|
130
|
+
s.add_dependency(%q<generator-spec>, [">= 0.7.3"])
|
135
131
|
s.add_dependency(%q<require_all>, ["~> 1.2.0"])
|
136
132
|
s.add_dependency(%q<activesupport>, [">= 3.0.1"])
|
137
|
-
s.add_dependency(%q<sugar-high>, ["~> 0.
|
138
|
-
s.add_dependency(%q<rails3_artifactor>, ["~> 0.3.2"])
|
139
|
-
s.add_dependency(%q<logging_assist>, [">= 0.2.0"])
|
133
|
+
s.add_dependency(%q<sugar-high>, ["~> 0.4.0"])
|
140
134
|
end
|
141
135
|
else
|
142
136
|
s.add_dependency(%q<require_all>, ["~> 1.2.0"])
|
143
137
|
s.add_dependency(%q<activesupport>, [">= 3.0.1"])
|
144
|
-
s.add_dependency(%q<sugar-high>, ["~> 0.
|
145
|
-
s.add_dependency(%q<
|
146
|
-
s.add_dependency(%q<
|
147
|
-
s.add_dependency(%q<
|
148
|
-
s.add_dependency(%q<generator-spec>, [">= 0.7.2"])
|
138
|
+
s.add_dependency(%q<sugar-high>, ["~> 0.4.0"])
|
139
|
+
s.add_dependency(%q<rails_artifactor>, ["~> 0.3.3"])
|
140
|
+
s.add_dependency(%q<rspec>, [">= 2.4.1"])
|
141
|
+
s.add_dependency(%q<generator-spec>, [">= 0.7.3"])
|
149
142
|
s.add_dependency(%q<require_all>, ["~> 1.2.0"])
|
150
143
|
s.add_dependency(%q<activesupport>, [">= 3.0.1"])
|
151
|
-
s.add_dependency(%q<sugar-high>, ["~> 0.
|
152
|
-
s.add_dependency(%q<rails3_artifactor>, ["~> 0.3.2"])
|
153
|
-
s.add_dependency(%q<logging_assist>, [">= 0.2.0"])
|
144
|
+
s.add_dependency(%q<sugar-high>, ["~> 0.4.0"])
|
154
145
|
end
|
155
146
|
end
|
156
147
|
|
metadata
CHANGED
@@ -1,215 +1,127 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: roles_generic
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 3
|
8
|
-
- 7
|
9
|
-
- 2
|
10
|
-
version: 0.3.7.2
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.3.8
|
5
|
+
prerelease:
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Kristian Mandrup
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
date: 2011-01-21 00:00:00 +01:00
|
12
|
+
date: 2011-03-04 00:00:00.000000000 +01:00
|
19
13
|
default_executable:
|
20
|
-
dependencies:
|
21
|
-
- !ruby/object:Gem::Dependency
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
22
16
|
name: require_all
|
23
|
-
requirement: &
|
17
|
+
requirement: &2158642760 !ruby/object:Gem::Requirement
|
24
18
|
none: false
|
25
|
-
requirements:
|
19
|
+
requirements:
|
26
20
|
- - ~>
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
segments:
|
29
|
-
- 1
|
30
|
-
- 2
|
31
|
-
- 0
|
21
|
+
- !ruby/object:Gem::Version
|
32
22
|
version: 1.2.0
|
33
23
|
type: :runtime
|
34
24
|
prerelease: false
|
35
|
-
version_requirements: *
|
36
|
-
- !ruby/object:Gem::Dependency
|
25
|
+
version_requirements: *2158642760
|
26
|
+
- !ruby/object:Gem::Dependency
|
37
27
|
name: activesupport
|
38
|
-
requirement: &
|
28
|
+
requirement: &2158642140 !ruby/object:Gem::Requirement
|
39
29
|
none: false
|
40
|
-
requirements:
|
41
|
-
- -
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
segments:
|
44
|
-
- 3
|
45
|
-
- 0
|
46
|
-
- 1
|
30
|
+
requirements:
|
31
|
+
- - ! '>='
|
32
|
+
- !ruby/object:Gem::Version
|
47
33
|
version: 3.0.1
|
48
34
|
type: :runtime
|
49
35
|
prerelease: false
|
50
|
-
version_requirements: *
|
51
|
-
- !ruby/object:Gem::Dependency
|
36
|
+
version_requirements: *2158642140
|
37
|
+
- !ruby/object:Gem::Dependency
|
52
38
|
name: sugar-high
|
53
|
-
requirement: &
|
39
|
+
requirement: &2158641440 !ruby/object:Gem::Requirement
|
54
40
|
none: false
|
55
|
-
requirements:
|
41
|
+
requirements:
|
56
42
|
- - ~>
|
57
|
-
- !ruby/object:Gem::Version
|
58
|
-
|
59
|
-
- 0
|
60
|
-
- 3
|
61
|
-
- 1
|
62
|
-
version: 0.3.1
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
version: 0.4.0
|
63
45
|
type: :runtime
|
64
46
|
prerelease: false
|
65
|
-
version_requirements: *
|
66
|
-
- !ruby/object:Gem::Dependency
|
67
|
-
name:
|
68
|
-
requirement: &
|
47
|
+
version_requirements: *2158641440
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: rails_artifactor
|
50
|
+
requirement: &2158640820 !ruby/object:Gem::Requirement
|
69
51
|
none: false
|
70
|
-
requirements:
|
52
|
+
requirements:
|
71
53
|
- - ~>
|
72
|
-
- !ruby/object:Gem::Version
|
73
|
-
|
74
|
-
- 0
|
75
|
-
- 3
|
76
|
-
- 2
|
77
|
-
version: 0.3.2
|
78
|
-
type: :runtime
|
79
|
-
prerelease: false
|
80
|
-
version_requirements: *id004
|
81
|
-
- !ruby/object:Gem::Dependency
|
82
|
-
name: logging_assist
|
83
|
-
requirement: &id005 !ruby/object:Gem::Requirement
|
84
|
-
none: false
|
85
|
-
requirements:
|
86
|
-
- - ">="
|
87
|
-
- !ruby/object:Gem::Version
|
88
|
-
segments:
|
89
|
-
- 0
|
90
|
-
- 2
|
91
|
-
- 0
|
92
|
-
version: 0.2.0
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: 0.3.3
|
93
56
|
type: :runtime
|
94
57
|
prerelease: false
|
95
|
-
version_requirements: *
|
96
|
-
- !ruby/object:Gem::Dependency
|
58
|
+
version_requirements: *2158640820
|
59
|
+
- !ruby/object:Gem::Dependency
|
97
60
|
name: rspec
|
98
|
-
requirement: &
|
61
|
+
requirement: &2158639420 !ruby/object:Gem::Requirement
|
99
62
|
none: false
|
100
|
-
requirements:
|
101
|
-
- -
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
|
104
|
-
- 2
|
105
|
-
- 0
|
106
|
-
- 1
|
107
|
-
version: 2.0.1
|
63
|
+
requirements:
|
64
|
+
- - ! '>='
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: 2.4.1
|
108
67
|
type: :development
|
109
68
|
prerelease: false
|
110
|
-
version_requirements: *
|
111
|
-
- !ruby/object:Gem::Dependency
|
69
|
+
version_requirements: *2158639420
|
70
|
+
- !ruby/object:Gem::Dependency
|
112
71
|
name: generator-spec
|
113
|
-
requirement: &
|
72
|
+
requirement: &2158638800 !ruby/object:Gem::Requirement
|
114
73
|
none: false
|
115
|
-
requirements:
|
116
|
-
- -
|
117
|
-
- !ruby/object:Gem::Version
|
118
|
-
|
119
|
-
- 0
|
120
|
-
- 7
|
121
|
-
- 2
|
122
|
-
version: 0.7.2
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 0.7.3
|
123
78
|
type: :development
|
124
79
|
prerelease: false
|
125
|
-
version_requirements: *
|
126
|
-
- !ruby/object:Gem::Dependency
|
80
|
+
version_requirements: *2158638800
|
81
|
+
- !ruby/object:Gem::Dependency
|
127
82
|
name: require_all
|
128
|
-
requirement: &
|
83
|
+
requirement: &2158637700 !ruby/object:Gem::Requirement
|
129
84
|
none: false
|
130
|
-
requirements:
|
85
|
+
requirements:
|
131
86
|
- - ~>
|
132
|
-
- !ruby/object:Gem::Version
|
133
|
-
segments:
|
134
|
-
- 1
|
135
|
-
- 2
|
136
|
-
- 0
|
87
|
+
- !ruby/object:Gem::Version
|
137
88
|
version: 1.2.0
|
138
89
|
type: :runtime
|
139
90
|
prerelease: false
|
140
|
-
version_requirements: *
|
141
|
-
- !ruby/object:Gem::Dependency
|
91
|
+
version_requirements: *2158637700
|
92
|
+
- !ruby/object:Gem::Dependency
|
142
93
|
name: activesupport
|
143
|
-
requirement: &
|
94
|
+
requirement: &2158636900 !ruby/object:Gem::Requirement
|
144
95
|
none: false
|
145
|
-
requirements:
|
146
|
-
- -
|
147
|
-
- !ruby/object:Gem::Version
|
148
|
-
segments:
|
149
|
-
- 3
|
150
|
-
- 0
|
151
|
-
- 1
|
96
|
+
requirements:
|
97
|
+
- - ! '>='
|
98
|
+
- !ruby/object:Gem::Version
|
152
99
|
version: 3.0.1
|
153
100
|
type: :runtime
|
154
101
|
prerelease: false
|
155
|
-
version_requirements: *
|
156
|
-
- !ruby/object:Gem::Dependency
|
102
|
+
version_requirements: *2158636900
|
103
|
+
- !ruby/object:Gem::Dependency
|
157
104
|
name: sugar-high
|
158
|
-
requirement: &
|
105
|
+
requirement: &2158636280 !ruby/object:Gem::Requirement
|
159
106
|
none: false
|
160
|
-
requirements:
|
107
|
+
requirements:
|
161
108
|
- - ~>
|
162
|
-
- !ruby/object:Gem::Version
|
163
|
-
|
164
|
-
- 0
|
165
|
-
- 3
|
166
|
-
- 1
|
167
|
-
version: 0.3.1
|
168
|
-
type: :runtime
|
169
|
-
prerelease: false
|
170
|
-
version_requirements: *id010
|
171
|
-
- !ruby/object:Gem::Dependency
|
172
|
-
name: rails3_artifactor
|
173
|
-
requirement: &id011 !ruby/object:Gem::Requirement
|
174
|
-
none: false
|
175
|
-
requirements:
|
176
|
-
- - ~>
|
177
|
-
- !ruby/object:Gem::Version
|
178
|
-
segments:
|
179
|
-
- 0
|
180
|
-
- 3
|
181
|
-
- 2
|
182
|
-
version: 0.3.2
|
183
|
-
type: :runtime
|
184
|
-
prerelease: false
|
185
|
-
version_requirements: *id011
|
186
|
-
- !ruby/object:Gem::Dependency
|
187
|
-
name: logging_assist
|
188
|
-
requirement: &id012 !ruby/object:Gem::Requirement
|
189
|
-
none: false
|
190
|
-
requirements:
|
191
|
-
- - ">="
|
192
|
-
- !ruby/object:Gem::Version
|
193
|
-
segments:
|
194
|
-
- 0
|
195
|
-
- 2
|
196
|
-
- 0
|
197
|
-
version: 0.2.0
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 0.4.0
|
198
111
|
type: :runtime
|
199
112
|
prerelease: false
|
200
|
-
version_requirements: *
|
113
|
+
version_requirements: *2158636280
|
201
114
|
description: Generic role strategies sharing the same API. Easy to insert in any model
|
202
115
|
email: kmandrup@gmail.com
|
203
116
|
executables: []
|
204
|
-
|
205
117
|
extensions: []
|
206
|
-
|
207
|
-
extra_rdoc_files:
|
118
|
+
extra_rdoc_files:
|
208
119
|
- LICENSE
|
209
120
|
- README.textile
|
210
|
-
files:
|
121
|
+
files:
|
211
122
|
- .document
|
212
123
|
- .rspec
|
124
|
+
- Changelog.textile
|
213
125
|
- Gemfile
|
214
126
|
- LICENSE
|
215
127
|
- README.textile
|
@@ -277,36 +189,29 @@ files:
|
|
277
189
|
has_rdoc: true
|
278
190
|
homepage: http://github.com/kristianmandrup/roles_generic
|
279
191
|
licenses: []
|
280
|
-
|
281
192
|
post_install_message:
|
282
193
|
rdoc_options: []
|
283
|
-
|
284
|
-
require_paths:
|
194
|
+
require_paths:
|
285
195
|
- lib
|
286
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
196
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
287
197
|
none: false
|
288
|
-
requirements:
|
289
|
-
- -
|
290
|
-
- !ruby/object:Gem::Version
|
291
|
-
|
292
|
-
|
293
|
-
version: "0"
|
294
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - ! '>='
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '0'
|
202
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
295
203
|
none: false
|
296
|
-
requirements:
|
297
|
-
- -
|
298
|
-
- !ruby/object:Gem::Version
|
299
|
-
|
300
|
-
- 0
|
301
|
-
version: "0"
|
204
|
+
requirements:
|
205
|
+
- - ! '>='
|
206
|
+
- !ruby/object:Gem::Version
|
207
|
+
version: '0'
|
302
208
|
requirements: []
|
303
|
-
|
304
209
|
rubyforge_project:
|
305
|
-
rubygems_version: 1.
|
210
|
+
rubygems_version: 1.6.1
|
306
211
|
signing_key:
|
307
212
|
specification_version: 3
|
308
213
|
summary: Generic role strategies sharing the same API
|
309
|
-
test_files:
|
214
|
+
test_files:
|
310
215
|
- spec/generator_spec_helper.rb
|
311
216
|
- spec/roles_generic/generators/admin_flag_generator_spec.rb
|
312
217
|
- spec/roles_generic/generators/many_roles_generator_spec.rb
|