adhocracy 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/README.rdoc +1 -1
- data/app/models/adhocracy/membership.rb +15 -0
- data/app/models/adhocracy/membership_invitation.rb +31 -0
- data/app/models/adhocracy/membership_request.rb +31 -0
- data/config/locales/en.yml +14 -0
- data/db/migrate/20140306214416_create_adhocracy_memberships.rb +19 -0
- data/db/migrate/20140306214532_create_adhocracy_membership_requests.rb +23 -0
- data/db/migrate/20140306214552_create_adhocracy_membership_invitations.rb +23 -0
- data/lib/adhocracy/acceptable.rb +18 -0
- data/lib/adhocracy/acts_as_group.rb +65 -0
- data/lib/adhocracy/acts_as_member.rb +63 -0
- data/lib/adhocracy/membership_association.rb +49 -0
- data/lib/adhocracy/version.rb +1 -1
- data/lib/adhocracy.rb +4 -0
- data/spec/dummy/app/models/adhoc.rb +3 -0
- data/spec/dummy/app/models/user.rb +3 -0
- data/spec/dummy/config/application.rb +1 -0
- data/spec/dummy/db/migrate/20140306214611_create_users.rb +6 -0
- data/spec/dummy/db/migrate/20140306214620_create_adhocs.rb +6 -0
- data/spec/dummy/db/schema.rb +67 -0
- data/spec/factories/adhoc.rb +4 -0
- data/spec/factories/adhocracy_membership_invitations.rb +8 -0
- data/spec/factories/adhocracy_membership_requests.rb +8 -0
- data/spec/factories/adhocracy_memberships.rb +7 -0
- data/spec/factories/users.rb +4 -0
- data/spec/lib/adhocracy/acts_as_group_spec.rb +179 -0
- data/spec/lib/adhocracy/acts_as_member_spec.rb +179 -0
- data/spec/models/adhocracy/membership_invitation_spec.rb +84 -0
- data/spec/models/adhocracy/membership_request_spec.rb +84 -0
- data/spec/models/adhocracy/membership_spec.rb +21 -0
- metadata +114 -75
- data/spec/dummy/log/test.log +0 -0
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: adhocracy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- timothycommoner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -28,112 +28,112 @@ dependencies:
|
|
28
28
|
name: pg
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - '>='
|
31
|
+
- - ! '>='
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
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
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: debugger
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - '>='
|
45
|
+
- - ! '>='
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '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
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rspec-rails
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - '>='
|
59
|
+
- - ! '>='
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - '>='
|
66
|
+
- - ! '>='
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: guard-rspec
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - '>='
|
73
|
+
- - ! '>='
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - '>='
|
80
|
+
- - ! '>='
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: guard-spork
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - '>='
|
87
|
+
- - ! '>='
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - '>='
|
94
|
+
- - ! '>='
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: factory_girl_rails
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - '>='
|
101
|
+
- - ! '>='
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '0'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- - '>='
|
108
|
+
- - ! '>='
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: database_cleaner
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- - '>='
|
115
|
+
- - ! '>='
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: '0'
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- - '>='
|
122
|
+
- - ! '>='
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: shoulda
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- - '>='
|
129
|
+
- - ! '>='
|
130
130
|
- !ruby/object:Gem::Version
|
131
131
|
version: '0'
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
|
-
- - '>='
|
136
|
+
- - ! '>='
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '0'
|
139
139
|
description: Adhocracy is group management engine for Rails.
|
@@ -143,51 +143,76 @@ executables: []
|
|
143
143
|
extensions: []
|
144
144
|
extra_rdoc_files: []
|
145
145
|
files:
|
146
|
-
-
|
147
|
-
-
|
146
|
+
- MIT-LICENSE
|
147
|
+
- README.rdoc
|
148
|
+
- Rakefile
|
148
149
|
- app/assets/javascripts/adhocracy/application.js
|
149
150
|
- app/assets/stylesheets/adhocracy/application.css
|
151
|
+
- app/controllers/adhocracy/application_controller.rb
|
152
|
+
- app/helpers/adhocracy/application_helper.rb
|
153
|
+
- app/models/adhocracy/membership.rb
|
154
|
+
- app/models/adhocracy/membership_invitation.rb
|
155
|
+
- app/models/adhocracy/membership_request.rb
|
150
156
|
- app/views/layouts/adhocracy/application.html.erb
|
157
|
+
- config/locales/en.yml
|
151
158
|
- config/routes.rb
|
159
|
+
- db/migrate/20140306214416_create_adhocracy_memberships.rb
|
160
|
+
- db/migrate/20140306214532_create_adhocracy_membership_requests.rb
|
161
|
+
- db/migrate/20140306214552_create_adhocracy_membership_invitations.rb
|
152
162
|
- lib/adhocracy.rb
|
153
|
-
- lib/
|
154
|
-
- lib/adhocracy/
|
163
|
+
- lib/adhocracy/acceptable.rb
|
164
|
+
- lib/adhocracy/acts_as_group.rb
|
165
|
+
- lib/adhocracy/acts_as_member.rb
|
155
166
|
- lib/adhocracy/engine.rb
|
156
|
-
-
|
157
|
-
-
|
158
|
-
-
|
167
|
+
- lib/adhocracy/membership_association.rb
|
168
|
+
- lib/adhocracy/version.rb
|
169
|
+
- lib/tasks/adhocracy_tasks.rake
|
159
170
|
- spec/dummy/README.rdoc
|
160
|
-
- spec/dummy/
|
161
|
-
- spec/dummy/bin/bundle
|
162
|
-
- spec/dummy/bin/rake
|
163
|
-
- spec/dummy/app/helpers/application_helper.rb
|
164
|
-
- spec/dummy/app/controllers/application_controller.rb
|
171
|
+
- spec/dummy/Rakefile
|
165
172
|
- spec/dummy/app/assets/javascripts/application.js
|
166
173
|
- spec/dummy/app/assets/stylesheets/application.css
|
174
|
+
- spec/dummy/app/controllers/application_controller.rb
|
175
|
+
- spec/dummy/app/helpers/application_helper.rb
|
176
|
+
- spec/dummy/app/models/adhoc.rb
|
177
|
+
- spec/dummy/app/models/user.rb
|
167
178
|
- spec/dummy/app/views/layouts/application.html.erb
|
168
|
-
- spec/dummy/
|
169
|
-
- spec/dummy/
|
170
|
-
- spec/dummy/
|
171
|
-
- spec/dummy/public/500.html
|
172
|
-
- spec/dummy/log/test.log
|
179
|
+
- spec/dummy/bin/bundle
|
180
|
+
- spec/dummy/bin/rails
|
181
|
+
- spec/dummy/bin/rake
|
173
182
|
- spec/dummy/config.ru
|
174
|
-
- spec/dummy/
|
183
|
+
- spec/dummy/config/application.rb
|
184
|
+
- spec/dummy/config/boot.rb
|
185
|
+
- spec/dummy/config/database.yml
|
175
186
|
- spec/dummy/config/environment.rb
|
176
|
-
- spec/dummy/config/environments/test.rb
|
177
|
-
- spec/dummy/config/environments/production.rb
|
178
187
|
- spec/dummy/config/environments/development.rb
|
179
|
-
- spec/dummy/config/
|
188
|
+
- spec/dummy/config/environments/production.rb
|
189
|
+
- spec/dummy/config/environments/test.rb
|
190
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
180
191
|
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
192
|
+
- spec/dummy/config/initializers/inflections.rb
|
181
193
|
- spec/dummy/config/initializers/mime_types.rb
|
182
194
|
- spec/dummy/config/initializers/secret_token.rb
|
183
195
|
- spec/dummy/config/initializers/session_store.rb
|
184
|
-
- spec/dummy/config/initializers/backtrace_silencers.rb
|
185
|
-
- spec/dummy/config/initializers/inflections.rb
|
186
196
|
- spec/dummy/config/initializers/wrap_parameters.rb
|
187
|
-
- spec/dummy/config/application.rb
|
188
|
-
- spec/dummy/config/boot.rb
|
189
|
-
- spec/dummy/config/database.yml
|
190
197
|
- spec/dummy/config/locales/en.yml
|
198
|
+
- spec/dummy/config/routes.rb
|
199
|
+
- spec/dummy/db/migrate/20140306214611_create_users.rb
|
200
|
+
- spec/dummy/db/migrate/20140306214620_create_adhocs.rb
|
201
|
+
- spec/dummy/db/schema.rb
|
202
|
+
- spec/dummy/public/404.html
|
203
|
+
- spec/dummy/public/422.html
|
204
|
+
- spec/dummy/public/500.html
|
205
|
+
- spec/dummy/public/favicon.ico
|
206
|
+
- spec/factories/adhoc.rb
|
207
|
+
- spec/factories/adhocracy_membership_invitations.rb
|
208
|
+
- spec/factories/adhocracy_membership_requests.rb
|
209
|
+
- spec/factories/adhocracy_memberships.rb
|
210
|
+
- spec/factories/users.rb
|
211
|
+
- spec/lib/adhocracy/acts_as_group_spec.rb
|
212
|
+
- spec/lib/adhocracy/acts_as_member_spec.rb
|
213
|
+
- spec/models/adhocracy/membership_invitation_spec.rb
|
214
|
+
- spec/models/adhocracy/membership_request_spec.rb
|
215
|
+
- spec/models/adhocracy/membership_spec.rb
|
191
216
|
- spec/spec_helper.rb
|
192
217
|
homepage: https://github.com/timothycommoner/adhocracy
|
193
218
|
licenses: []
|
@@ -198,51 +223,65 @@ require_paths:
|
|
198
223
|
- lib
|
199
224
|
required_ruby_version: !ruby/object:Gem::Requirement
|
200
225
|
requirements:
|
201
|
-
- - '>='
|
226
|
+
- - ! '>='
|
202
227
|
- !ruby/object:Gem::Version
|
203
228
|
version: '0'
|
204
229
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
205
230
|
requirements:
|
206
|
-
- - '>='
|
231
|
+
- - ! '>='
|
207
232
|
- !ruby/object:Gem::Version
|
208
233
|
version: '0'
|
209
234
|
requirements: []
|
210
235
|
rubyforge_project:
|
211
|
-
rubygems_version: 2.
|
236
|
+
rubygems_version: 2.2.2
|
212
237
|
signing_key:
|
213
238
|
specification_version: 4
|
214
239
|
summary: Adhocracy is group management engine for Rails.
|
215
240
|
test_files:
|
216
|
-
- spec/
|
217
|
-
- spec/
|
218
|
-
- spec/
|
219
|
-
- spec/
|
220
|
-
- spec/
|
221
|
-
- spec/
|
222
|
-
- spec/
|
223
|
-
- spec/
|
224
|
-
- spec/dummy/app/views/layouts/application.html.erb
|
225
|
-
- spec/dummy/public/favicon.ico
|
226
|
-
- spec/dummy/public/404.html
|
227
|
-
- spec/dummy/public/422.html
|
228
|
-
- spec/dummy/public/500.html
|
229
|
-
- spec/dummy/log/test.log
|
230
|
-
- spec/dummy/config.ru
|
241
|
+
- spec/lib/adhocracy/acts_as_group_spec.rb
|
242
|
+
- spec/lib/adhocracy/acts_as_member_spec.rb
|
243
|
+
- spec/factories/adhocracy_memberships.rb
|
244
|
+
- spec/factories/adhoc.rb
|
245
|
+
- spec/factories/adhocracy_membership_invitations.rb
|
246
|
+
- spec/factories/users.rb
|
247
|
+
- spec/factories/adhocracy_membership_requests.rb
|
248
|
+
- spec/spec_helper.rb
|
231
249
|
- spec/dummy/Rakefile
|
232
|
-
- spec/dummy/config/
|
233
|
-
- spec/dummy/config/
|
234
|
-
- spec/dummy/config/environments/production.rb
|
235
|
-
- spec/dummy/config/environments/development.rb
|
236
|
-
- spec/dummy/config/routes.rb
|
237
|
-
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
238
|
-
- spec/dummy/config/initializers/mime_types.rb
|
239
|
-
- spec/dummy/config/initializers/secret_token.rb
|
240
|
-
- spec/dummy/config/initializers/session_store.rb
|
250
|
+
- spec/dummy/config/application.rb
|
251
|
+
- spec/dummy/config/boot.rb
|
241
252
|
- spec/dummy/config/initializers/backtrace_silencers.rb
|
242
253
|
- spec/dummy/config/initializers/inflections.rb
|
254
|
+
- spec/dummy/config/initializers/session_store.rb
|
255
|
+
- spec/dummy/config/initializers/mime_types.rb
|
256
|
+
- spec/dummy/config/initializers/secret_token.rb
|
257
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
243
258
|
- spec/dummy/config/initializers/wrap_parameters.rb
|
244
|
-
- spec/dummy/config/
|
245
|
-
- spec/dummy/config/
|
246
|
-
- spec/dummy/config/database.yml
|
259
|
+
- spec/dummy/config/routes.rb
|
260
|
+
- spec/dummy/config/environment.rb
|
247
261
|
- spec/dummy/config/locales/en.yml
|
248
|
-
- spec/
|
262
|
+
- spec/dummy/config/database.yml
|
263
|
+
- spec/dummy/config/environments/development.rb
|
264
|
+
- spec/dummy/config/environments/production.rb
|
265
|
+
- spec/dummy/config/environments/test.rb
|
266
|
+
- spec/dummy/config.ru
|
267
|
+
- spec/dummy/app/helpers/application_helper.rb
|
268
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
269
|
+
- spec/dummy/app/controllers/application_controller.rb
|
270
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
271
|
+
- spec/dummy/app/assets/javascripts/application.js
|
272
|
+
- spec/dummy/app/models/adhoc.rb
|
273
|
+
- spec/dummy/app/models/user.rb
|
274
|
+
- spec/dummy/bin/bundle
|
275
|
+
- spec/dummy/bin/rails
|
276
|
+
- spec/dummy/bin/rake
|
277
|
+
- spec/dummy/public/422.html
|
278
|
+
- spec/dummy/public/404.html
|
279
|
+
- spec/dummy/public/favicon.ico
|
280
|
+
- spec/dummy/public/500.html
|
281
|
+
- spec/dummy/README.rdoc
|
282
|
+
- spec/dummy/db/migrate/20140306214611_create_users.rb
|
283
|
+
- spec/dummy/db/migrate/20140306214620_create_adhocs.rb
|
284
|
+
- spec/dummy/db/schema.rb
|
285
|
+
- spec/models/adhocracy/membership_spec.rb
|
286
|
+
- spec/models/adhocracy/membership_request_spec.rb
|
287
|
+
- spec/models/adhocracy/membership_invitation_spec.rb
|
data/spec/dummy/log/test.log
DELETED
File without changes
|