popolo 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (94) hide show
  1. data/LICENSE +20 -0
  2. data/README.md +41 -0
  3. data/Rakefile +16 -0
  4. data/app/assets/javascripts/popolo/application.js +13 -0
  5. data/app/assets/stylesheets/popolo/application.css +13 -0
  6. data/app/controllers/popolo/areas_controller.rb +48 -0
  7. data/app/controllers/popolo/organizations_controller.rb +48 -0
  8. data/app/controllers/popolo/people_controller.rb +12 -0
  9. data/app/controllers/popolo/posts_controller.rb +12 -0
  10. data/app/controllers/popolo_controller.rb +3 -0
  11. data/app/helpers/popolo_helper.rb +10 -0
  12. data/app/models/popolo/address.rb +27 -0
  13. data/app/models/popolo/area.rb +25 -0
  14. data/app/models/popolo/event.rb +46 -0
  15. data/app/models/popolo/identifier.rb +15 -0
  16. data/app/models/popolo/link.rb +16 -0
  17. data/app/models/popolo/membership.rb +25 -0
  18. data/app/models/popolo/organization.rb +32 -0
  19. data/app/models/popolo/other_name.rb +21 -0
  20. data/app/models/popolo/person.rb +49 -0
  21. data/app/models/popolo/post.rb +25 -0
  22. data/app/models/popolo/source.rb +29 -0
  23. data/app/views/popolo/areas/index.html.erb +1 -0
  24. data/app/views/popolo/areas/show.html.erb +1 -0
  25. data/app/views/popolo/areas_or_organizations/_index.html.erb +31 -0
  26. data/app/views/popolo/areas_or_organizations/_show.html.erb +30 -0
  27. data/app/views/popolo/organizations/index.html.erb +1 -0
  28. data/app/views/popolo/organizations/show.html.erb +1 -0
  29. data/app/views/popolo/people/index.html.erb +0 -0
  30. data/app/views/popolo/people/show.html.erb +0 -0
  31. data/app/views/popolo/posts/index.html.erb +0 -0
  32. data/app/views/popolo/posts/show.html.erb +0 -0
  33. data/config/routes.rb +15 -0
  34. data/lib/generators/popolo_generator.rb +36 -0
  35. data/lib/generators/templates/README +7 -0
  36. data/lib/popolo/engine.rb +7 -0
  37. data/lib/popolo/mixins/eventable.rb +15 -0
  38. data/lib/popolo/mixins/sluggable.rb +64 -0
  39. data/lib/popolo/version.rb +3 -0
  40. data/lib/popolo.rb +18 -0
  41. data/spec/controllers/popolo/areas_controller_spec.rb +59 -0
  42. data/spec/controllers/popolo/organizations_controller_spec.rb +59 -0
  43. data/spec/controllers/popolo/people_controller_spec.rb +30 -0
  44. data/spec/controllers/popolo/posts_controller_spec.rb +30 -0
  45. data/spec/controllers/popolo_controller_spec.rb +4 -0
  46. data/spec/dummy/Rakefile +7 -0
  47. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  48. data/spec/dummy/app/assets/stylesheets/application.css +13 -0
  49. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  50. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  51. data/spec/dummy/app/models/cat.rb +6 -0
  52. data/spec/dummy/app/models/dog.rb +10 -0
  53. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  54. data/spec/dummy/config/application.rb +62 -0
  55. data/spec/dummy/config/boot.rb +10 -0
  56. data/spec/dummy/config/environment.rb +5 -0
  57. data/spec/dummy/config/environments/development.rb +37 -0
  58. data/spec/dummy/config/environments/production.rb +67 -0
  59. data/spec/dummy/config/environments/test.rb +37 -0
  60. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  61. data/spec/dummy/config/initializers/session_store.rb +8 -0
  62. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  63. data/spec/dummy/config/locales/en.yml +5 -0
  64. data/spec/dummy/config/mongoid.yml +68 -0
  65. data/spec/dummy/config/routes.rb +3 -0
  66. data/spec/dummy/config.ru +4 -0
  67. data/spec/dummy/log/development.log +6 -0
  68. data/spec/dummy/log/test.log +35513 -0
  69. data/spec/dummy/public/404.html +26 -0
  70. data/spec/dummy/public/422.html +26 -0
  71. data/spec/dummy/public/500.html +25 -0
  72. data/spec/dummy/public/favicon.ico +0 -0
  73. data/spec/dummy/script/rails +6 -0
  74. data/spec/factories.rb +25 -0
  75. data/spec/helpers/popolo_helper_spec.rb +4 -0
  76. data/spec/models/popolo/address_spec.rb +4 -0
  77. data/spec/models/popolo/area_spec.rb +4 -0
  78. data/spec/models/popolo/event_spec.rb +7 -0
  79. data/spec/models/popolo/identifier_spec.rb +5 -0
  80. data/spec/models/popolo/link_spec.rb +5 -0
  81. data/spec/models/popolo/membership_spec.rb +27 -0
  82. data/spec/models/popolo/organization_spec.rb +25 -0
  83. data/spec/models/popolo/other_name_spec.rb +25 -0
  84. data/spec/models/popolo/person_spec.rb +25 -0
  85. data/spec/models/popolo/post_spec.rb +5 -0
  86. data/spec/models/popolo/source_spec.rb +7 -0
  87. data/spec/popolo/mixins/sluggable_spec.rb +153 -0
  88. data/spec/popolo_spec.rb +4 -0
  89. data/spec/routing/popolo/areas_routing_spec.rb +29 -0
  90. data/spec/routing/popolo/organizations_routing_spec.rb +29 -0
  91. data/spec/routing/popolo/people_routing_spec.rb +21 -0
  92. data/spec/routing/popolo/posts_routing_spec.rb +21 -0
  93. data/spec/spec_helper.rb +81 -0
  94. metadata +416 -0
metadata ADDED
@@ -0,0 +1,416 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: popolo
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Open North
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-02-12 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rails
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: '3.1'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: '3.1'
30
+ - !ruby/object:Gem::Dependency
31
+ name: inherited_resources
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ~>
36
+ - !ruby/object:Gem::Version
37
+ version: 1.3.1
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: 1.3.1
46
+ - !ruby/object:Gem::Dependency
47
+ name: mongoid
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ~>
52
+ - !ruby/object:Gem::Version
53
+ version: 3.0.17
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 3.0.17
62
+ - !ruby/object:Gem::Dependency
63
+ name: mongoid-tree
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ~>
68
+ - !ruby/object:Gem::Version
69
+ version: 1.0.1
70
+ type: :runtime
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ~>
76
+ - !ruby/object:Gem::Version
77
+ version: 1.0.1
78
+ - !ruby/object:Gem::Dependency
79
+ name: database_cleaner
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ~>
84
+ - !ruby/object:Gem::Version
85
+ version: '0.9'
86
+ type: :development
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ~>
92
+ - !ruby/object:Gem::Version
93
+ version: '0.9'
94
+ - !ruby/object:Gem::Dependency
95
+ name: factory_girl_rails
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ~>
100
+ - !ruby/object:Gem::Version
101
+ version: '4.1'
102
+ type: :development
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ~>
108
+ - !ruby/object:Gem::Version
109
+ version: '4.1'
110
+ - !ruby/object:Gem::Dependency
111
+ name: guard-brakeman
112
+ requirement: !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ~>
116
+ - !ruby/object:Gem::Version
117
+ version: '0.5'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ~>
124
+ - !ruby/object:Gem::Version
125
+ version: '0.5'
126
+ - !ruby/object:Gem::Dependency
127
+ name: guard-bundler
128
+ requirement: !ruby/object:Gem::Requirement
129
+ none: false
130
+ requirements:
131
+ - - ~>
132
+ - !ruby/object:Gem::Version
133
+ version: '1.0'
134
+ type: :development
135
+ prerelease: false
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ~>
140
+ - !ruby/object:Gem::Version
141
+ version: '1.0'
142
+ - !ruby/object:Gem::Dependency
143
+ name: guard-rspec
144
+ requirement: !ruby/object:Gem::Requirement
145
+ none: false
146
+ requirements:
147
+ - - ~>
148
+ - !ruby/object:Gem::Version
149
+ version: '2.1'
150
+ type: :development
151
+ prerelease: false
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
154
+ requirements:
155
+ - - ~>
156
+ - !ruby/object:Gem::Version
157
+ version: '2.1'
158
+ - !ruby/object:Gem::Dependency
159
+ name: guard-spork
160
+ requirement: !ruby/object:Gem::Requirement
161
+ none: false
162
+ requirements:
163
+ - - ~>
164
+ - !ruby/object:Gem::Version
165
+ version: '1.2'
166
+ type: :development
167
+ prerelease: false
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ none: false
170
+ requirements:
171
+ - - ~>
172
+ - !ruby/object:Gem::Version
173
+ version: '1.2'
174
+ - !ruby/object:Gem::Dependency
175
+ name: rb-fsevent
176
+ requirement: !ruby/object:Gem::Requirement
177
+ none: false
178
+ requirements:
179
+ - - ~>
180
+ - !ruby/object:Gem::Version
181
+ version: '0.9'
182
+ type: :development
183
+ prerelease: false
184
+ version_requirements: !ruby/object:Gem::Requirement
185
+ none: false
186
+ requirements:
187
+ - - ~>
188
+ - !ruby/object:Gem::Version
189
+ version: '0.9'
190
+ - !ruby/object:Gem::Dependency
191
+ name: rspec-rails
192
+ requirement: !ruby/object:Gem::Requirement
193
+ none: false
194
+ requirements:
195
+ - - ~>
196
+ - !ruby/object:Gem::Version
197
+ version: '2.11'
198
+ type: :development
199
+ prerelease: false
200
+ version_requirements: !ruby/object:Gem::Requirement
201
+ none: false
202
+ requirements:
203
+ - - ~>
204
+ - !ruby/object:Gem::Version
205
+ version: '2.11'
206
+ - !ruby/object:Gem::Dependency
207
+ name: mongoid-rspec
208
+ requirement: !ruby/object:Gem::Requirement
209
+ none: false
210
+ requirements:
211
+ - - ~>
212
+ - !ruby/object:Gem::Version
213
+ version: '1.5'
214
+ type: :development
215
+ prerelease: false
216
+ version_requirements: !ruby/object:Gem::Requirement
217
+ none: false
218
+ requirements:
219
+ - - ~>
220
+ - !ruby/object:Gem::Version
221
+ version: '1.5'
222
+ - !ruby/object:Gem::Dependency
223
+ name: spork-rails
224
+ requirement: !ruby/object:Gem::Requirement
225
+ none: false
226
+ requirements:
227
+ - - ~>
228
+ - !ruby/object:Gem::Version
229
+ version: '3.2'
230
+ type: :development
231
+ prerelease: false
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ none: false
234
+ requirements:
235
+ - - ~>
236
+ - !ruby/object:Gem::Version
237
+ version: '3.2'
238
+ description:
239
+ email:
240
+ - info@opennorth.ca
241
+ executables: []
242
+ extensions: []
243
+ extra_rdoc_files: []
244
+ files:
245
+ - app/assets/javascripts/popolo/application.js
246
+ - app/assets/stylesheets/popolo/application.css
247
+ - app/controllers/popolo/areas_controller.rb
248
+ - app/controllers/popolo/organizations_controller.rb
249
+ - app/controllers/popolo/people_controller.rb
250
+ - app/controllers/popolo/posts_controller.rb
251
+ - app/controllers/popolo_controller.rb
252
+ - app/helpers/popolo_helper.rb
253
+ - app/models/popolo/address.rb
254
+ - app/models/popolo/area.rb
255
+ - app/models/popolo/event.rb
256
+ - app/models/popolo/identifier.rb
257
+ - app/models/popolo/link.rb
258
+ - app/models/popolo/membership.rb
259
+ - app/models/popolo/organization.rb
260
+ - app/models/popolo/other_name.rb
261
+ - app/models/popolo/person.rb
262
+ - app/models/popolo/post.rb
263
+ - app/models/popolo/source.rb
264
+ - app/views/popolo/areas/index.html.erb
265
+ - app/views/popolo/areas/show.html.erb
266
+ - app/views/popolo/areas_or_organizations/_index.html.erb
267
+ - app/views/popolo/areas_or_organizations/_show.html.erb
268
+ - app/views/popolo/organizations/index.html.erb
269
+ - app/views/popolo/organizations/show.html.erb
270
+ - app/views/popolo/people/index.html.erb
271
+ - app/views/popolo/people/show.html.erb
272
+ - app/views/popolo/posts/index.html.erb
273
+ - app/views/popolo/posts/show.html.erb
274
+ - config/routes.rb
275
+ - lib/generators/popolo_generator.rb
276
+ - lib/generators/templates/README
277
+ - lib/popolo/engine.rb
278
+ - lib/popolo/mixins/eventable.rb
279
+ - lib/popolo/mixins/sluggable.rb
280
+ - lib/popolo/version.rb
281
+ - lib/popolo.rb
282
+ - LICENSE
283
+ - Rakefile
284
+ - README.md
285
+ - spec/controllers/popolo/areas_controller_spec.rb
286
+ - spec/controllers/popolo/organizations_controller_spec.rb
287
+ - spec/controllers/popolo/people_controller_spec.rb
288
+ - spec/controllers/popolo/posts_controller_spec.rb
289
+ - spec/controllers/popolo_controller_spec.rb
290
+ - spec/dummy/app/assets/javascripts/application.js
291
+ - spec/dummy/app/assets/stylesheets/application.css
292
+ - spec/dummy/app/controllers/application_controller.rb
293
+ - spec/dummy/app/helpers/application_helper.rb
294
+ - spec/dummy/app/models/cat.rb
295
+ - spec/dummy/app/models/dog.rb
296
+ - spec/dummy/app/views/layouts/application.html.erb
297
+ - spec/dummy/config/application.rb
298
+ - spec/dummy/config/boot.rb
299
+ - spec/dummy/config/environment.rb
300
+ - spec/dummy/config/environments/development.rb
301
+ - spec/dummy/config/environments/production.rb
302
+ - spec/dummy/config/environments/test.rb
303
+ - spec/dummy/config/initializers/secret_token.rb
304
+ - spec/dummy/config/initializers/session_store.rb
305
+ - spec/dummy/config/initializers/wrap_parameters.rb
306
+ - spec/dummy/config/locales/en.yml
307
+ - spec/dummy/config/mongoid.yml
308
+ - spec/dummy/config/routes.rb
309
+ - spec/dummy/config.ru
310
+ - spec/dummy/log/development.log
311
+ - spec/dummy/log/test.log
312
+ - spec/dummy/public/404.html
313
+ - spec/dummy/public/422.html
314
+ - spec/dummy/public/500.html
315
+ - spec/dummy/public/favicon.ico
316
+ - spec/dummy/Rakefile
317
+ - spec/dummy/script/rails
318
+ - spec/factories.rb
319
+ - spec/helpers/popolo_helper_spec.rb
320
+ - spec/models/popolo/address_spec.rb
321
+ - spec/models/popolo/area_spec.rb
322
+ - spec/models/popolo/event_spec.rb
323
+ - spec/models/popolo/identifier_spec.rb
324
+ - spec/models/popolo/link_spec.rb
325
+ - spec/models/popolo/membership_spec.rb
326
+ - spec/models/popolo/organization_spec.rb
327
+ - spec/models/popolo/other_name_spec.rb
328
+ - spec/models/popolo/person_spec.rb
329
+ - spec/models/popolo/post_spec.rb
330
+ - spec/models/popolo/source_spec.rb
331
+ - spec/popolo/mixins/sluggable_spec.rb
332
+ - spec/popolo_spec.rb
333
+ - spec/routing/popolo/areas_routing_spec.rb
334
+ - spec/routing/popolo/organizations_routing_spec.rb
335
+ - spec/routing/popolo/people_routing_spec.rb
336
+ - spec/routing/popolo/posts_routing_spec.rb
337
+ - spec/spec_helper.rb
338
+ homepage: http://github.com/opennorth/popolo
339
+ licenses: []
340
+ post_install_message:
341
+ rdoc_options: []
342
+ require_paths:
343
+ - lib
344
+ required_ruby_version: !ruby/object:Gem::Requirement
345
+ none: false
346
+ requirements:
347
+ - - ! '>='
348
+ - !ruby/object:Gem::Version
349
+ version: '0'
350
+ required_rubygems_version: !ruby/object:Gem::Requirement
351
+ none: false
352
+ requirements:
353
+ - - ! '>='
354
+ - !ruby/object:Gem::Version
355
+ version: '0'
356
+ requirements: []
357
+ rubyforge_project:
358
+ rubygems_version: 1.8.24
359
+ signing_key:
360
+ specification_version: 3
361
+ summary: A Rails engine for open government websites.
362
+ test_files:
363
+ - spec/controllers/popolo/areas_controller_spec.rb
364
+ - spec/controllers/popolo/organizations_controller_spec.rb
365
+ - spec/controllers/popolo/people_controller_spec.rb
366
+ - spec/controllers/popolo/posts_controller_spec.rb
367
+ - spec/controllers/popolo_controller_spec.rb
368
+ - spec/dummy/app/assets/javascripts/application.js
369
+ - spec/dummy/app/assets/stylesheets/application.css
370
+ - spec/dummy/app/controllers/application_controller.rb
371
+ - spec/dummy/app/helpers/application_helper.rb
372
+ - spec/dummy/app/models/cat.rb
373
+ - spec/dummy/app/models/dog.rb
374
+ - spec/dummy/app/views/layouts/application.html.erb
375
+ - spec/dummy/config/application.rb
376
+ - spec/dummy/config/boot.rb
377
+ - spec/dummy/config/environment.rb
378
+ - spec/dummy/config/environments/development.rb
379
+ - spec/dummy/config/environments/production.rb
380
+ - spec/dummy/config/environments/test.rb
381
+ - spec/dummy/config/initializers/secret_token.rb
382
+ - spec/dummy/config/initializers/session_store.rb
383
+ - spec/dummy/config/initializers/wrap_parameters.rb
384
+ - spec/dummy/config/locales/en.yml
385
+ - spec/dummy/config/mongoid.yml
386
+ - spec/dummy/config/routes.rb
387
+ - spec/dummy/config.ru
388
+ - spec/dummy/log/development.log
389
+ - spec/dummy/log/test.log
390
+ - spec/dummy/public/404.html
391
+ - spec/dummy/public/422.html
392
+ - spec/dummy/public/500.html
393
+ - spec/dummy/public/favicon.ico
394
+ - spec/dummy/Rakefile
395
+ - spec/dummy/script/rails
396
+ - spec/factories.rb
397
+ - spec/helpers/popolo_helper_spec.rb
398
+ - spec/models/popolo/address_spec.rb
399
+ - spec/models/popolo/area_spec.rb
400
+ - spec/models/popolo/event_spec.rb
401
+ - spec/models/popolo/identifier_spec.rb
402
+ - spec/models/popolo/link_spec.rb
403
+ - spec/models/popolo/membership_spec.rb
404
+ - spec/models/popolo/organization_spec.rb
405
+ - spec/models/popolo/other_name_spec.rb
406
+ - spec/models/popolo/person_spec.rb
407
+ - spec/models/popolo/post_spec.rb
408
+ - spec/models/popolo/source_spec.rb
409
+ - spec/popolo/mixins/sluggable_spec.rb
410
+ - spec/popolo_spec.rb
411
+ - spec/routing/popolo/areas_routing_spec.rb
412
+ - spec/routing/popolo/organizations_routing_spec.rb
413
+ - spec/routing/popolo/people_routing_spec.rb
414
+ - spec/routing/popolo/posts_routing_spec.rb
415
+ - spec/spec_helper.rb
416
+ has_rdoc: