spree-faq 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +13 -0
  3. data/.hound.yml +3 -0
  4. data/.rspec +1 -0
  5. data/.travis.yml +11 -0
  6. data/CONTRIBUTING.md +30 -0
  7. data/Gemfile +6 -0
  8. data/Guardfile +8 -0
  9. data/LICENSE.md +26 -0
  10. data/README.md +37 -0
  11. data/Rakefile +15 -0
  12. data/app/assets/javascripts/admin/spree_faq.js.coffee +23 -0
  13. data/app/assets/javascripts/store/spree_faq.js.coffee +10 -0
  14. data/app/assets/stylesheets/admin/spree_faq.css +3 -0
  15. data/app/assets/stylesheets/store/spree_faq.css.scss +18 -0
  16. data/app/controllers/spree/admin/question_categories_controller.rb +13 -0
  17. data/app/controllers/spree/faqs_controller.rb +13 -0
  18. data/app/models/spree/question.rb +7 -0
  19. data/app/models/spree/question_category.rb +9 -0
  20. data/app/overrides/add_faq_admin_tab.rb +5 -0
  21. data/app/views/spree/admin/question_categories/_question.html.erb +14 -0
  22. data/app/views/spree/admin/question_categories/edit.html.erb +38 -0
  23. data/app/views/spree/admin/question_categories/index.html.erb +48 -0
  24. data/app/views/spree/admin/question_categories/new.html.erb +19 -0
  25. data/app/views/spree/admin/question_categories/new.js.erb +2 -0
  26. data/app/views/spree/faqs/index.html.erb +29 -0
  27. data/config/locales/en.yml +22 -0
  28. data/config/locales/sv.yml +22 -0
  29. data/config/routes.rb +6 -0
  30. data/db/migrate/20090526213535_create_questions.rb +16 -0
  31. data/db/migrate/20090526213550_create_question_categories.rb +14 -0
  32. data/db/migrate/20140331032743_rename_questions_to_spree_questions.rb +5 -0
  33. data/db/migrate/20140331032751_rename_question_categories_to_spree_question_categories.rb +5 -0
  34. data/lib/generators/spree_faq/install/install_generator.rb +30 -0
  35. data/lib/spree_faq/engine.rb +21 -0
  36. data/lib/spree_faq/version.rb +16 -0
  37. data/lib/spree_faq.rb +4 -0
  38. data/script/rails +7 -0
  39. data/spec/controllers/admin/question_categories_controller_spec.rb +67 -0
  40. data/spec/controllers/faqs_controller_spec.rb +29 -0
  41. data/spec/factories/question_category_factory.rb +5 -0
  42. data/spec/factories/question_factory.rb +7 -0
  43. data/spec/features/admin/faq_spec.rb +67 -0
  44. data/spec/features/faq_spec.rb +30 -0
  45. data/spec/models/question_category_spec.rb +50 -0
  46. data/spec/models/question_spec.rb +70 -0
  47. data/spec/spec_helper.rb +30 -0
  48. data/spec/support/capybara.rb +17 -0
  49. data/spec/support/database_cleaner.rb +18 -0
  50. data/spec/support/factory_girl.rb +7 -0
  51. data/spec/support/i18n.rb +13 -0
  52. data/spec/support/spree.rb +10 -0
  53. data/spec/translations/locale_spec.rb +15 -0
  54. data/spree_faq.gemspec +46 -0
  55. data/vendor/assets/javascripts/jquery.scrollTo-min.js +11 -0
  56. metadata +381 -0
metadata ADDED
@@ -0,0 +1,381 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: spree-faq
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Josh Nussbaum
8
+ - Tobias Bohwalli
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2014-04-12 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: spree_core
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - "~>"
19
+ - !ruby/object:Gem::Version
20
+ version: 2.0.0
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - "~>"
26
+ - !ruby/object:Gem::Version
27
+ version: 2.0.0
28
+ - !ruby/object:Gem::Dependency
29
+ name: rspec-rails
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - "~>"
33
+ - !ruby/object:Gem::Version
34
+ version: '2.14'
35
+ type: :development
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - "~>"
40
+ - !ruby/object:Gem::Version
41
+ version: '2.14'
42
+ - !ruby/object:Gem::Dependency
43
+ name: capybara
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - "~>"
47
+ - !ruby/object:Gem::Version
48
+ version: 2.2.1
49
+ type: :development
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - "~>"
54
+ - !ruby/object:Gem::Version
55
+ version: 2.2.1
56
+ - !ruby/object:Gem::Dependency
57
+ name: selenium-webdriver
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ version: 2.40.0
63
+ type: :development
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: 2.40.0
70
+ - !ruby/object:Gem::Dependency
71
+ name: poltergeist
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - "~>"
75
+ - !ruby/object:Gem::Version
76
+ version: 1.5.0
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - "~>"
82
+ - !ruby/object:Gem::Version
83
+ version: 1.5.0
84
+ - !ruby/object:Gem::Dependency
85
+ name: factory_girl
86
+ requirement: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - "~>"
89
+ - !ruby/object:Gem::Version
90
+ version: '4.4'
91
+ type: :development
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - "~>"
96
+ - !ruby/object:Gem::Version
97
+ version: '4.4'
98
+ - !ruby/object:Gem::Dependency
99
+ name: shoulda-matchers
100
+ requirement: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - "~>"
103
+ - !ruby/object:Gem::Version
104
+ version: '2.5'
105
+ type: :development
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - "~>"
110
+ - !ruby/object:Gem::Version
111
+ version: '2.5'
112
+ - !ruby/object:Gem::Dependency
113
+ name: sqlite3
114
+ requirement: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - "~>"
117
+ - !ruby/object:Gem::Version
118
+ version: 1.3.8
119
+ type: :development
120
+ prerelease: false
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - "~>"
124
+ - !ruby/object:Gem::Version
125
+ version: 1.3.8
126
+ - !ruby/object:Gem::Dependency
127
+ name: simplecov
128
+ requirement: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - "~>"
131
+ - !ruby/object:Gem::Version
132
+ version: 0.7.1
133
+ type: :development
134
+ prerelease: false
135
+ version_requirements: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - "~>"
138
+ - !ruby/object:Gem::Version
139
+ version: 0.7.1
140
+ - !ruby/object:Gem::Dependency
141
+ name: database_cleaner
142
+ requirement: !ruby/object:Gem::Requirement
143
+ requirements:
144
+ - - "~>"
145
+ - !ruby/object:Gem::Version
146
+ version: 1.2.0
147
+ type: :development
148
+ prerelease: false
149
+ version_requirements: !ruby/object:Gem::Requirement
150
+ requirements:
151
+ - - "~>"
152
+ - !ruby/object:Gem::Version
153
+ version: 1.2.0
154
+ - !ruby/object:Gem::Dependency
155
+ name: i18n-spec
156
+ requirement: !ruby/object:Gem::Requirement
157
+ requirements:
158
+ - - "~>"
159
+ - !ruby/object:Gem::Version
160
+ version: 0.4.1
161
+ type: :development
162
+ prerelease: false
163
+ version_requirements: !ruby/object:Gem::Requirement
164
+ requirements:
165
+ - - "~>"
166
+ - !ruby/object:Gem::Version
167
+ version: 0.4.1
168
+ - !ruby/object:Gem::Dependency
169
+ name: coffee-rails
170
+ requirement: !ruby/object:Gem::Requirement
171
+ requirements:
172
+ - - "~>"
173
+ - !ruby/object:Gem::Version
174
+ version: 3.2.2
175
+ type: :development
176
+ prerelease: false
177
+ version_requirements: !ruby/object:Gem::Requirement
178
+ requirements:
179
+ - - "~>"
180
+ - !ruby/object:Gem::Version
181
+ version: 3.2.2
182
+ - !ruby/object:Gem::Dependency
183
+ name: sass-rails
184
+ requirement: !ruby/object:Gem::Requirement
185
+ requirements:
186
+ - - "~>"
187
+ - !ruby/object:Gem::Version
188
+ version: 3.2.6
189
+ type: :development
190
+ prerelease: false
191
+ version_requirements: !ruby/object:Gem::Requirement
192
+ requirements:
193
+ - - "~>"
194
+ - !ruby/object:Gem::Version
195
+ version: 3.2.6
196
+ - !ruby/object:Gem::Dependency
197
+ name: ffaker
198
+ requirement: !ruby/object:Gem::Requirement
199
+ requirements:
200
+ - - ">="
201
+ - !ruby/object:Gem::Version
202
+ version: 1.24.0
203
+ type: :development
204
+ prerelease: false
205
+ version_requirements: !ruby/object:Gem::Requirement
206
+ requirements:
207
+ - - ">="
208
+ - !ruby/object:Gem::Version
209
+ version: 1.24.0
210
+ - !ruby/object:Gem::Dependency
211
+ name: guard-rspec
212
+ requirement: !ruby/object:Gem::Requirement
213
+ requirements:
214
+ - - ">="
215
+ - !ruby/object:Gem::Version
216
+ version: 4.2.0
217
+ type: :development
218
+ prerelease: false
219
+ version_requirements: !ruby/object:Gem::Requirement
220
+ requirements:
221
+ - - ">="
222
+ - !ruby/object:Gem::Version
223
+ version: 4.2.0
224
+ - !ruby/object:Gem::Dependency
225
+ name: launchy
226
+ requirement: !ruby/object:Gem::Requirement
227
+ requirements:
228
+ - - ">="
229
+ - !ruby/object:Gem::Version
230
+ version: 2.4.0
231
+ type: :development
232
+ prerelease: false
233
+ version_requirements: !ruby/object:Gem::Requirement
234
+ requirements:
235
+ - - ">="
236
+ - !ruby/object:Gem::Version
237
+ version: 2.4.0
238
+ - !ruby/object:Gem::Dependency
239
+ name: pry-rails
240
+ requirement: !ruby/object:Gem::Requirement
241
+ requirements:
242
+ - - ">="
243
+ - !ruby/object:Gem::Version
244
+ version: 0.3.0
245
+ type: :development
246
+ prerelease: false
247
+ version_requirements: !ruby/object:Gem::Requirement
248
+ requirements:
249
+ - - ">="
250
+ - !ruby/object:Gem::Version
251
+ version: 0.3.0
252
+ - !ruby/object:Gem::Dependency
253
+ name: coveralls
254
+ requirement: !ruby/object:Gem::Requirement
255
+ requirements:
256
+ - - ">="
257
+ - !ruby/object:Gem::Version
258
+ version: 0.7.0
259
+ type: :development
260
+ prerelease: false
261
+ version_requirements: !ruby/object:Gem::Requirement
262
+ requirements:
263
+ - - ">="
264
+ - !ruby/object:Gem::Version
265
+ version: 0.7.0
266
+ - !ruby/object:Gem::Dependency
267
+ name: localeapp
268
+ requirement: !ruby/object:Gem::Requirement
269
+ requirements:
270
+ - - ">="
271
+ - !ruby/object:Gem::Version
272
+ version: 0.7.2
273
+ type: :development
274
+ prerelease: false
275
+ version_requirements: !ruby/object:Gem::Requirement
276
+ requirements:
277
+ - - ">="
278
+ - !ruby/object:Gem::Version
279
+ version: 0.7.2
280
+ description: With this gem you get an faq page and the management tools to make it
281
+ very easy to update your faq and reduce the demand on your sites customer service
282
+ email: hi@futhr.io
283
+ executables: []
284
+ extensions: []
285
+ extra_rdoc_files: []
286
+ files:
287
+ - ".gitignore"
288
+ - ".hound.yml"
289
+ - ".rspec"
290
+ - ".travis.yml"
291
+ - CONTRIBUTING.md
292
+ - Gemfile
293
+ - Guardfile
294
+ - LICENSE.md
295
+ - README.md
296
+ - Rakefile
297
+ - app/assets/javascripts/admin/spree_faq.js.coffee
298
+ - app/assets/javascripts/store/spree_faq.js.coffee
299
+ - app/assets/stylesheets/admin/spree_faq.css
300
+ - app/assets/stylesheets/store/spree_faq.css.scss
301
+ - app/controllers/spree/admin/question_categories_controller.rb
302
+ - app/controllers/spree/faqs_controller.rb
303
+ - app/models/spree/question.rb
304
+ - app/models/spree/question_category.rb
305
+ - app/overrides/add_faq_admin_tab.rb
306
+ - app/views/spree/admin/question_categories/_question.html.erb
307
+ - app/views/spree/admin/question_categories/edit.html.erb
308
+ - app/views/spree/admin/question_categories/index.html.erb
309
+ - app/views/spree/admin/question_categories/new.html.erb
310
+ - app/views/spree/admin/question_categories/new.js.erb
311
+ - app/views/spree/faqs/index.html.erb
312
+ - config/locales/en.yml
313
+ - config/locales/sv.yml
314
+ - config/routes.rb
315
+ - db/migrate/20090526213535_create_questions.rb
316
+ - db/migrate/20090526213550_create_question_categories.rb
317
+ - db/migrate/20140331032743_rename_questions_to_spree_questions.rb
318
+ - db/migrate/20140331032751_rename_question_categories_to_spree_question_categories.rb
319
+ - lib/generators/spree_faq/install/install_generator.rb
320
+ - lib/spree_faq.rb
321
+ - lib/spree_faq/engine.rb
322
+ - lib/spree_faq/version.rb
323
+ - script/rails
324
+ - spec/controllers/admin/question_categories_controller_spec.rb
325
+ - spec/controllers/faqs_controller_spec.rb
326
+ - spec/factories/question_category_factory.rb
327
+ - spec/factories/question_factory.rb
328
+ - spec/features/admin/faq_spec.rb
329
+ - spec/features/faq_spec.rb
330
+ - spec/models/question_category_spec.rb
331
+ - spec/models/question_spec.rb
332
+ - spec/spec_helper.rb
333
+ - spec/support/capybara.rb
334
+ - spec/support/database_cleaner.rb
335
+ - spec/support/factory_girl.rb
336
+ - spec/support/i18n.rb
337
+ - spec/support/spree.rb
338
+ - spec/translations/locale_spec.rb
339
+ - spree_faq.gemspec
340
+ - vendor/assets/javascripts/jquery.scrollTo-min.js
341
+ homepage: https://github.com/futhr/spree-faq
342
+ licenses:
343
+ - BSD-3
344
+ metadata: {}
345
+ post_install_message:
346
+ rdoc_options: []
347
+ require_paths:
348
+ - lib
349
+ required_ruby_version: !ruby/object:Gem::Requirement
350
+ requirements:
351
+ - - ">="
352
+ - !ruby/object:Gem::Version
353
+ version: 1.9.3
354
+ required_rubygems_version: !ruby/object:Gem::Requirement
355
+ requirements:
356
+ - - ">="
357
+ - !ruby/object:Gem::Version
358
+ version: '0'
359
+ requirements:
360
+ - none
361
+ rubyforge_project:
362
+ rubygems_version: 2.2.2
363
+ signing_key:
364
+ specification_version: 4
365
+ summary: Adds an easy FAQ page for Spree Commerce
366
+ test_files:
367
+ - spec/controllers/admin/question_categories_controller_spec.rb
368
+ - spec/controllers/faqs_controller_spec.rb
369
+ - spec/factories/question_category_factory.rb
370
+ - spec/factories/question_factory.rb
371
+ - spec/features/admin/faq_spec.rb
372
+ - spec/features/faq_spec.rb
373
+ - spec/models/question_category_spec.rb
374
+ - spec/models/question_spec.rb
375
+ - spec/spec_helper.rb
376
+ - spec/support/capybara.rb
377
+ - spec/support/database_cleaner.rb
378
+ - spec/support/factory_girl.rb
379
+ - spec/support/i18n.rb
380
+ - spec/support/spree.rb
381
+ - spec/translations/locale_spec.rb