popolo 0.0.3 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -2
  3. data/Rakefile +13 -4
  4. data/app/models/popolo/area.rb +3 -3
  5. data/app/models/popolo/contact_detail.rb +4 -0
  6. data/app/models/popolo/motion.rb +3 -1
  7. data/app/models/popolo/organization.rb +8 -4
  8. data/app/models/popolo/other_name.rb +12 -0
  9. data/app/models/popolo/person.rb +3 -3
  10. data/app/models/popolo/post.rb +2 -0
  11. data/app/models/popolo/vote_event.rb +1 -1
  12. data/lib/popolo/version.rb +1 -1
  13. data/spec/controllers/popolo/memberships_controller_spec.rb +13 -11
  14. data/spec/controllers/popolo/organizations_controller_spec.rb +18 -17
  15. data/spec/controllers/popolo/people_controller_spec.rb +13 -11
  16. data/spec/controllers/popolo/posts_controller_spec.rb +13 -11
  17. data/spec/dummy/README.rdoc +28 -0
  18. data/spec/dummy/Rakefile +1 -2
  19. data/spec/dummy/app/assets/javascripts/application.js +3 -3
  20. data/spec/dummy/app/assets/stylesheets/application.css +5 -4
  21. data/spec/dummy/app/controllers/application_controller.rb +3 -1
  22. data/spec/dummy/app/views/layouts/application.html.erb +2 -4
  23. data/spec/dummy/bin/bundle +3 -0
  24. data/spec/dummy/bin/rails +4 -0
  25. data/spec/dummy/bin/rake +4 -0
  26. data/spec/dummy/config/application.rb +1 -38
  27. data/spec/dummy/config/boot.rb +4 -9
  28. data/spec/dummy/config/environment.rb +3 -3
  29. data/spec/dummy/config/environments/development.rb +19 -19
  30. data/spec/dummy/config/environments/production.rb +44 -28
  31. data/spec/dummy/config/environments/test.rb +17 -15
  32. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  33. data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
  34. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  35. data/spec/dummy/config/initializers/inflections.rb +16 -0
  36. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  37. data/spec/dummy/config/initializers/session_store.rb +1 -6
  38. data/spec/dummy/config/initializers/wrap_parameters.rb +6 -6
  39. data/spec/dummy/config/locales/en.yml +20 -2
  40. data/spec/dummy/config/mongoid.yml +21 -20
  41. data/spec/dummy/config/secrets.yml +22 -0
  42. data/spec/dummy/config.ru +1 -1
  43. data/spec/dummy/log/development.log +0 -0
  44. data/spec/dummy/log/test.log +4423 -0
  45. data/spec/dummy/public/404.html +54 -13
  46. data/spec/dummy/public/422.html +54 -13
  47. data/spec/dummy/public/500.html +53 -12
  48. data/spec/helpers/popolo_helper_spec.rb +2 -2
  49. data/spec/models/popolo/area_spec.rb +4 -2
  50. data/spec/models/popolo/contact_detail_spec.rb +6 -4
  51. data/spec/models/popolo/count_spec.rb +6 -4
  52. data/spec/models/popolo/date_string_spec.rb +92 -90
  53. data/spec/models/popolo/group_result_spec.rb +6 -4
  54. data/spec/models/popolo/identifier_spec.rb +5 -3
  55. data/spec/models/popolo/link_spec.rb +5 -3
  56. data/spec/models/popolo/membership_spec.rb +9 -7
  57. data/spec/models/popolo/motion_spec.rb +5 -3
  58. data/spec/models/popolo/organization_spec.rb +6 -4
  59. data/spec/models/popolo/other_name_spec.rb +7 -5
  60. data/spec/models/popolo/person_spec.rb +22 -20
  61. data/spec/models/popolo/post_spec.rb +5 -3
  62. data/spec/models/popolo/vote_event_spec.rb +4 -2
  63. data/spec/models/popolo/vote_spec.rb +4 -2
  64. data/spec/popolo_spec.rb +15 -15
  65. data/spec/rails_helper.rb +68 -0
  66. data/spec/routing/popolo/memberships_routing_spec.rb +8 -6
  67. data/spec/routing/popolo/organizations_routing_spec.rb +11 -9
  68. data/spec/routing/popolo/people_routing_spec.rb +8 -6
  69. data/spec/routing/popolo/posts_routing_spec.rb +8 -6
  70. data/spec/spec_helper.rb +70 -80
  71. data/spec/support/{shared_examples.rb → shared_examples/date.rb} +1 -1
  72. metadata +52 -89
  73. data/spec/controllers/popolo_controller_spec.rb +0 -4
  74. data/spec/dummy/config/initializers/secret_token.rb +0 -7
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: popolo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Open North
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-16 00:00:00.000000000 Z
11
+ date: 2014-12-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,70 +16,70 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 3.2.16
19
+ version: 4.1.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 3.2.16
26
+ version: 4.1.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: inherited_resources
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.3.1
33
+ version: 1.5.1
34
34
  type: :runtime
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.3.1
40
+ version: 1.5.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: mongoid
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 3.1.4
47
+ version: 4.0.0
48
48
  type: :runtime
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: 3.1.4
54
+ version: 4.0.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: mongoid-tree
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 1.0.4
61
+ version: 2.0.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 1.0.4
68
+ version: 2.0.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: database_cleaner
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0.9'
75
+ version: '1.2'
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
- version: '0.9'
82
+ version: '1.2'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: factory_girl_rails
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -94,132 +94,76 @@ dependencies:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: '4.1'
97
- - !ruby/object:Gem::Dependency
98
- name: guard-brakeman
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - "~>"
102
- - !ruby/object:Gem::Version
103
- version: '0.5'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - "~>"
109
- - !ruby/object:Gem::Version
110
- version: '0.5'
111
97
  - !ruby/object:Gem::Dependency
112
98
  name: guard-bundler
113
99
  requirement: !ruby/object:Gem::Requirement
114
100
  requirements:
115
101
  - - "~>"
116
102
  - !ruby/object:Gem::Version
117
- version: '1.0'
103
+ version: '2.0'
118
104
  type: :development
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
107
  requirements:
122
108
  - - "~>"
123
109
  - !ruby/object:Gem::Version
124
- version: '1.0'
110
+ version: '2.0'
125
111
  - !ruby/object:Gem::Dependency
126
112
  name: guard-rspec
127
113
  requirement: !ruby/object:Gem::Requirement
128
114
  requirements:
129
115
  - - "~>"
130
116
  - !ruby/object:Gem::Version
131
- version: '2.1'
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - "~>"
137
- - !ruby/object:Gem::Version
138
- version: '2.1'
139
- - !ruby/object:Gem::Dependency
140
- name: guard-spork
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - "~>"
144
- - !ruby/object:Gem::Version
145
- version: '1.2'
146
- type: :development
147
- prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - "~>"
151
- - !ruby/object:Gem::Version
152
- version: '1.2'
153
- - !ruby/object:Gem::Dependency
154
- name: rb-fsevent
155
- requirement: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - "~>"
158
- - !ruby/object:Gem::Version
159
- version: '0.9'
117
+ version: '4.3'
160
118
  type: :development
161
119
  prerelease: false
162
120
  version_requirements: !ruby/object:Gem::Requirement
163
121
  requirements:
164
122
  - - "~>"
165
123
  - !ruby/object:Gem::Version
166
- version: '0.9'
124
+ version: '4.3'
167
125
  - !ruby/object:Gem::Dependency
168
126
  name: rspec-rails
169
127
  requirement: !ruby/object:Gem::Requirement
170
128
  requirements:
171
129
  - - "~>"
172
130
  - !ruby/object:Gem::Version
173
- version: '2.11'
131
+ version: '3.0'
174
132
  type: :development
175
133
  prerelease: false
176
134
  version_requirements: !ruby/object:Gem::Requirement
177
135
  requirements:
178
136
  - - "~>"
179
137
  - !ruby/object:Gem::Version
180
- version: '2.11'
138
+ version: '3.0'
181
139
  - !ruby/object:Gem::Dependency
182
- name: mongoid-rspec
140
+ name: coveralls
183
141
  requirement: !ruby/object:Gem::Requirement
184
142
  requirements:
185
- - - "~>"
143
+ - - ">="
186
144
  - !ruby/object:Gem::Version
187
- version: '1.5'
145
+ version: '0'
188
146
  type: :development
189
147
  prerelease: false
190
148
  version_requirements: !ruby/object:Gem::Requirement
191
149
  requirements:
192
- - - "~>"
150
+ - - ">="
193
151
  - !ruby/object:Gem::Version
194
- version: '1.5'
152
+ version: '0'
195
153
  - !ruby/object:Gem::Dependency
196
- name: spork-rails
154
+ name: mongoid-rspec
197
155
  requirement: !ruby/object:Gem::Requirement
198
156
  requirements:
199
157
  - - "~>"
200
158
  - !ruby/object:Gem::Version
201
- version: '3.2'
159
+ version: 2.0.0.rc1
202
160
  type: :development
203
161
  prerelease: false
204
162
  version_requirements: !ruby/object:Gem::Requirement
205
163
  requirements:
206
164
  - - "~>"
207
165
  - !ruby/object:Gem::Version
208
- version: '3.2'
209
- - !ruby/object:Gem::Dependency
210
- name: coveralls
211
- requirement: !ruby/object:Gem::Requirement
212
- requirements:
213
- - - ">="
214
- - !ruby/object:Gem::Version
215
- version: '0'
216
- type: :development
217
- prerelease: false
218
- version_requirements: !ruby/object:Gem::Requirement
219
- requirements:
220
- - - ">="
221
- - !ruby/object:Gem::Version
222
- version: '0'
166
+ version: 2.0.0.rc1
223
167
  description:
224
168
  email:
225
169
  - info@opennorth.ca
@@ -275,7 +219,7 @@ files:
275
219
  - spec/controllers/popolo/organizations_controller_spec.rb
276
220
  - spec/controllers/popolo/people_controller_spec.rb
277
221
  - spec/controllers/popolo/posts_controller_spec.rb
278
- - spec/controllers/popolo_controller_spec.rb
222
+ - spec/dummy/README.rdoc
279
223
  - spec/dummy/Rakefile
280
224
  - spec/dummy/app/assets/javascripts/application.js
281
225
  - spec/dummy/app/assets/stylesheets/application.css
@@ -284,6 +228,9 @@ files:
284
228
  - spec/dummy/app/models/cat.rb
285
229
  - spec/dummy/app/models/dog.rb
286
230
  - spec/dummy/app/views/layouts/application.html.erb
231
+ - spec/dummy/bin/bundle
232
+ - spec/dummy/bin/rails
233
+ - spec/dummy/bin/rake
287
234
  - spec/dummy/config.ru
288
235
  - spec/dummy/config/application.rb
289
236
  - spec/dummy/config/boot.rb
@@ -291,12 +238,18 @@ files:
291
238
  - spec/dummy/config/environments/development.rb
292
239
  - spec/dummy/config/environments/production.rb
293
240
  - spec/dummy/config/environments/test.rb
294
- - spec/dummy/config/initializers/secret_token.rb
241
+ - spec/dummy/config/initializers/backtrace_silencers.rb
242
+ - spec/dummy/config/initializers/cookies_serializer.rb
243
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
244
+ - spec/dummy/config/initializers/inflections.rb
245
+ - spec/dummy/config/initializers/mime_types.rb
295
246
  - spec/dummy/config/initializers/session_store.rb
296
247
  - spec/dummy/config/initializers/wrap_parameters.rb
297
248
  - spec/dummy/config/locales/en.yml
298
249
  - spec/dummy/config/mongoid.yml
299
250
  - spec/dummy/config/routes.rb
251
+ - spec/dummy/config/secrets.yml
252
+ - spec/dummy/log/development.log
300
253
  - spec/dummy/log/test.log
301
254
  - spec/dummy/public/404.html
302
255
  - spec/dummy/public/422.html
@@ -321,12 +274,13 @@ files:
321
274
  - spec/models/popolo/vote_event_spec.rb
322
275
  - spec/models/popolo/vote_spec.rb
323
276
  - spec/popolo_spec.rb
277
+ - spec/rails_helper.rb
324
278
  - spec/routing/popolo/memberships_routing_spec.rb
325
279
  - spec/routing/popolo/organizations_routing_spec.rb
326
280
  - spec/routing/popolo/people_routing_spec.rb
327
281
  - spec/routing/popolo/posts_routing_spec.rb
328
282
  - spec/spec_helper.rb
329
- - spec/support/shared_examples.rb
283
+ - spec/support/shared_examples/date.rb
330
284
  homepage: http://github.com/opennorth/popolo
331
285
  licenses: []
332
286
  metadata: {}
@@ -355,7 +309,6 @@ test_files:
355
309
  - spec/controllers/popolo/organizations_controller_spec.rb
356
310
  - spec/controllers/popolo/people_controller_spec.rb
357
311
  - spec/controllers/popolo/posts_controller_spec.rb
358
- - spec/controllers/popolo_controller_spec.rb
359
312
  - spec/dummy/app/assets/javascripts/application.js
360
313
  - spec/dummy/app/assets/stylesheets/application.css
361
314
  - spec/dummy/app/controllers/application_controller.rb
@@ -363,25 +316,35 @@ test_files:
363
316
  - spec/dummy/app/models/cat.rb
364
317
  - spec/dummy/app/models/dog.rb
365
318
  - spec/dummy/app/views/layouts/application.html.erb
319
+ - spec/dummy/bin/bundle
320
+ - spec/dummy/bin/rails
321
+ - spec/dummy/bin/rake
366
322
  - spec/dummy/config/application.rb
367
323
  - spec/dummy/config/boot.rb
368
324
  - spec/dummy/config/environment.rb
369
325
  - spec/dummy/config/environments/development.rb
370
326
  - spec/dummy/config/environments/production.rb
371
327
  - spec/dummy/config/environments/test.rb
372
- - spec/dummy/config/initializers/secret_token.rb
328
+ - spec/dummy/config/initializers/backtrace_silencers.rb
329
+ - spec/dummy/config/initializers/cookies_serializer.rb
330
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
331
+ - spec/dummy/config/initializers/inflections.rb
332
+ - spec/dummy/config/initializers/mime_types.rb
373
333
  - spec/dummy/config/initializers/session_store.rb
374
334
  - spec/dummy/config/initializers/wrap_parameters.rb
375
335
  - spec/dummy/config/locales/en.yml
376
336
  - spec/dummy/config/mongoid.yml
377
337
  - spec/dummy/config/routes.rb
338
+ - spec/dummy/config/secrets.yml
378
339
  - spec/dummy/config.ru
340
+ - spec/dummy/log/development.log
379
341
  - spec/dummy/log/test.log
380
342
  - spec/dummy/public/404.html
381
343
  - spec/dummy/public/422.html
382
344
  - spec/dummy/public/500.html
383
345
  - spec/dummy/public/favicon.ico
384
346
  - spec/dummy/Rakefile
347
+ - spec/dummy/README.rdoc
385
348
  - spec/dummy/script/rails
386
349
  - spec/factories.rb
387
350
  - spec/helpers/popolo_helper_spec.rb
@@ -401,10 +364,10 @@ test_files:
401
364
  - spec/models/popolo/vote_event_spec.rb
402
365
  - spec/models/popolo/vote_spec.rb
403
366
  - spec/popolo_spec.rb
367
+ - spec/rails_helper.rb
404
368
  - spec/routing/popolo/memberships_routing_spec.rb
405
369
  - spec/routing/popolo/organizations_routing_spec.rb
406
370
  - spec/routing/popolo/people_routing_spec.rb
407
371
  - spec/routing/popolo/posts_routing_spec.rb
408
372
  - spec/spec_helper.rb
409
- - spec/support/shared_examples.rb
410
- has_rdoc:
373
+ - spec/support/shared_examples/date.rb
@@ -1,4 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe PopoloController do
4
- end
@@ -1,7 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Your secret key for verifying the integrity of signed cookies.
4
- # If you change this key, all old signed cookies will become invalid!
5
- # Make sure the secret is at least 30 characters and all random,
6
- # no regular words or you'll be exposed to dictionary attacks.
7
- Dummy::Application.config.secret_token = '60e574df86e3e907b71cc35d7f1ab16aaa54c4d4495bd927b9d2c2fed56b1efb23cb7150c01a43b7ecf9e2eb141050c666169f126f688a5deb077d2a1ed566d3'