roles_data_mapper 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.gitignore +21 -0
- data/.rspec +1 -0
- data/LICENSE +20 -0
- data/README.markdown +59 -0
- data/Rakefile +27 -0
- data/VERSION +1 -0
- data/lib/generators/data_mapper/roles/roles_generator.rb +74 -0
- data/lib/roles_data_mapper/base.rb +32 -0
- data/lib/roles_data_mapper/namespaces.rb +12 -0
- data/lib/roles_data_mapper/role.rb +30 -0
- data/lib/roles_data_mapper/strategy/multi/many_roles.rb +85 -0
- data/lib/roles_data_mapper/strategy/multi/roles_mask.rb +81 -0
- data/lib/roles_data_mapper/strategy/single/admin_flag.rb +56 -0
- data/lib/roles_data_mapper/strategy/single/one_role.rb +62 -0
- data/lib/roles_data_mapper/strategy/single/role_string.rb +51 -0
- data/lib/roles_data_mapper/strategy.rb +15 -0
- data/lib/roles_data_mapper.rb +12 -0
- data/roles_data_mapper.gemspec +99 -0
- data/spec/generator_spec_helper.rb +13 -0
- data/spec/roles_data_mapper/generators/roles_generator_spec.rb +58 -0
- data/spec/roles_data_mapper/strategy/admin_flag_spec.rb +79 -0
- data/spec/roles_data_mapper/strategy/many_roles_spec.rb +76 -0
- data/spec/roles_data_mapper/strategy/one_role_spec.rb +81 -0
- data/spec/roles_data_mapper/strategy/role_string_spec.rb +73 -0
- data/spec/roles_data_mapper/strategy/roles_mask_spec.rb +73 -0
- data/spec/spec_helper.rb +17 -0
- data/tmp/rails/config/routes.rb +2 -0
- metadata +217 -0
metadata
ADDED
@@ -0,0 +1,217 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: roles_data_mapper
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 1
|
8
|
+
- 0
|
9
|
+
version: 0.1.0
|
10
|
+
platform: ruby
|
11
|
+
authors:
|
12
|
+
- Kristian Mandrup
|
13
|
+
autorequire:
|
14
|
+
bindir: bin
|
15
|
+
cert_chain: []
|
16
|
+
|
17
|
+
date: 2010-09-12 00:00:00 +02:00
|
18
|
+
default_executable:
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
name: rspec
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
25
|
+
requirements:
|
26
|
+
- - ">="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
segments:
|
29
|
+
- 2
|
30
|
+
- 0
|
31
|
+
- 0
|
32
|
+
- beta
|
33
|
+
- 19
|
34
|
+
version: 2.0.0.beta.19
|
35
|
+
type: :development
|
36
|
+
version_requirements: *id001
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: dm-core
|
39
|
+
prerelease: false
|
40
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
segments:
|
46
|
+
- 1
|
47
|
+
- 0
|
48
|
+
version: "1.0"
|
49
|
+
type: :runtime
|
50
|
+
version_requirements: *id002
|
51
|
+
- !ruby/object:Gem::Dependency
|
52
|
+
name: dm-types
|
53
|
+
prerelease: false
|
54
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
55
|
+
none: false
|
56
|
+
requirements:
|
57
|
+
- - ~>
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
segments:
|
60
|
+
- 1
|
61
|
+
- 0
|
62
|
+
version: "1.0"
|
63
|
+
type: :runtime
|
64
|
+
version_requirements: *id003
|
65
|
+
- !ruby/object:Gem::Dependency
|
66
|
+
name: dm-migrations
|
67
|
+
prerelease: false
|
68
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
69
|
+
none: false
|
70
|
+
requirements:
|
71
|
+
- - ~>
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
segments:
|
74
|
+
- 1
|
75
|
+
- 0
|
76
|
+
version: "1.0"
|
77
|
+
type: :runtime
|
78
|
+
version_requirements: *id004
|
79
|
+
- !ruby/object:Gem::Dependency
|
80
|
+
name: activesupport
|
81
|
+
prerelease: false
|
82
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
83
|
+
none: false
|
84
|
+
requirements:
|
85
|
+
- - ~>
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
segments:
|
88
|
+
- 3
|
89
|
+
- 0
|
90
|
+
- 0
|
91
|
+
version: 3.0.0
|
92
|
+
type: :runtime
|
93
|
+
version_requirements: *id005
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: require_all
|
96
|
+
prerelease: false
|
97
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
98
|
+
none: false
|
99
|
+
requirements:
|
100
|
+
- - ~>
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
segments:
|
103
|
+
- 1
|
104
|
+
- 1
|
105
|
+
- 0
|
106
|
+
version: 1.1.0
|
107
|
+
type: :runtime
|
108
|
+
version_requirements: *id006
|
109
|
+
- !ruby/object:Gem::Dependency
|
110
|
+
name: sugar-high
|
111
|
+
prerelease: false
|
112
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
114
|
+
requirements:
|
115
|
+
- - ~>
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
segments:
|
118
|
+
- 0
|
119
|
+
- 2
|
120
|
+
- 3
|
121
|
+
version: 0.2.3
|
122
|
+
type: :runtime
|
123
|
+
version_requirements: *id007
|
124
|
+
- !ruby/object:Gem::Dependency
|
125
|
+
name: roles_generic
|
126
|
+
prerelease: false
|
127
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
128
|
+
none: false
|
129
|
+
requirements:
|
130
|
+
- - ~>
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
segments:
|
133
|
+
- 0
|
134
|
+
- 2
|
135
|
+
- 2
|
136
|
+
version: 0.2.2
|
137
|
+
type: :runtime
|
138
|
+
version_requirements: *id008
|
139
|
+
description: Makes it easy to set a role strategy on your User model in DataMapper
|
140
|
+
email: kmandrup@gmail.com
|
141
|
+
executables: []
|
142
|
+
|
143
|
+
extensions: []
|
144
|
+
|
145
|
+
extra_rdoc_files:
|
146
|
+
- LICENSE
|
147
|
+
- README.markdown
|
148
|
+
files:
|
149
|
+
- .document
|
150
|
+
- .gitignore
|
151
|
+
- .rspec
|
152
|
+
- LICENSE
|
153
|
+
- README.markdown
|
154
|
+
- Rakefile
|
155
|
+
- VERSION
|
156
|
+
- lib/generators/data_mapper/roles/roles_generator.rb
|
157
|
+
- lib/roles_data_mapper.rb
|
158
|
+
- lib/roles_data_mapper/base.rb
|
159
|
+
- lib/roles_data_mapper/namespaces.rb
|
160
|
+
- lib/roles_data_mapper/role.rb
|
161
|
+
- lib/roles_data_mapper/strategy.rb
|
162
|
+
- lib/roles_data_mapper/strategy/multi/many_roles.rb
|
163
|
+
- lib/roles_data_mapper/strategy/multi/roles_mask.rb
|
164
|
+
- lib/roles_data_mapper/strategy/single/admin_flag.rb
|
165
|
+
- lib/roles_data_mapper/strategy/single/one_role.rb
|
166
|
+
- lib/roles_data_mapper/strategy/single/role_string.rb
|
167
|
+
- roles_data_mapper.gemspec
|
168
|
+
- spec/generator_spec_helper.rb
|
169
|
+
- spec/roles_data_mapper/generators/roles_generator_spec.rb
|
170
|
+
- spec/roles_data_mapper/strategy/admin_flag_spec.rb
|
171
|
+
- spec/roles_data_mapper/strategy/many_roles_spec.rb
|
172
|
+
- spec/roles_data_mapper/strategy/one_role_spec.rb
|
173
|
+
- spec/roles_data_mapper/strategy/role_string_spec.rb
|
174
|
+
- spec/roles_data_mapper/strategy/roles_mask_spec.rb
|
175
|
+
- spec/spec_helper.rb
|
176
|
+
- tmp/rails/config/routes.rb
|
177
|
+
has_rdoc: true
|
178
|
+
homepage: http://github.com/kristianmandrup/roles_for_dm
|
179
|
+
licenses: []
|
180
|
+
|
181
|
+
post_install_message:
|
182
|
+
rdoc_options:
|
183
|
+
- --charset=UTF-8
|
184
|
+
require_paths:
|
185
|
+
- lib
|
186
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
187
|
+
none: false
|
188
|
+
requirements:
|
189
|
+
- - ">="
|
190
|
+
- !ruby/object:Gem::Version
|
191
|
+
segments:
|
192
|
+
- 0
|
193
|
+
version: "0"
|
194
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
195
|
+
none: false
|
196
|
+
requirements:
|
197
|
+
- - ">="
|
198
|
+
- !ruby/object:Gem::Version
|
199
|
+
segments:
|
200
|
+
- 0
|
201
|
+
version: "0"
|
202
|
+
requirements: []
|
203
|
+
|
204
|
+
rubyforge_project:
|
205
|
+
rubygems_version: 1.3.7
|
206
|
+
signing_key:
|
207
|
+
specification_version: 3
|
208
|
+
summary: Implementation of Roles generic API for DataMapper
|
209
|
+
test_files:
|
210
|
+
- spec/generator_spec_helper.rb
|
211
|
+
- spec/roles_data_mapper/generators/roles_generator_spec.rb
|
212
|
+
- spec/roles_data_mapper/strategy/admin_flag_spec.rb
|
213
|
+
- spec/roles_data_mapper/strategy/many_roles_spec.rb
|
214
|
+
- spec/roles_data_mapper/strategy/one_role_spec.rb
|
215
|
+
- spec/roles_data_mapper/strategy/role_string_spec.rb
|
216
|
+
- spec/roles_data_mapper/strategy/roles_mask_spec.rb
|
217
|
+
- spec/spec_helper.rb
|