feature_box 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. data/CHANGELOG.rdoc +1 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +107 -0
  4. data/app/assets/javascripts/feature_box/application.js +39 -0
  5. data/app/assets/stylesheets/feature_box/application.css.scss +133 -0
  6. data/app/assets/stylesheets/feature_box/comments.css.scss +41 -0
  7. data/app/assets/stylesheets/feature_box/mixins.css.scss +37 -0
  8. data/app/assets/stylesheets/feature_box/suggestions.css.scss +110 -0
  9. data/app/controllers/feature_box/application_controller.rb +37 -0
  10. data/app/controllers/feature_box/categories_controller.rb +43 -0
  11. data/app/controllers/feature_box/comments_controller.rb +46 -0
  12. data/app/controllers/feature_box/devise/passwords_controller.rb +4 -0
  13. data/app/controllers/feature_box/devise/redirects.rb +21 -0
  14. data/app/controllers/feature_box/devise/registrations_controller.rb +4 -0
  15. data/app/controllers/feature_box/devise/sessions_controller.rb +4 -0
  16. data/app/controllers/feature_box/home_controller.rb +8 -0
  17. data/app/controllers/feature_box/suggestions_controller.rb +161 -0
  18. data/app/controllers/feature_box/users_controller.rb +32 -0
  19. data/app/helpers/feature_box/application_helper.rb +40 -0
  20. data/app/mailers/feature_box/devise/mailer.rb +3 -0
  21. data/app/models/feature_box/ability.rb +25 -0
  22. data/app/models/feature_box/category.rb +15 -0
  23. data/app/models/feature_box/comment.rb +15 -0
  24. data/app/models/feature_box/suggestion.rb +113 -0
  25. data/app/models/feature_box/user.rb +61 -0
  26. data/app/models/feature_box/vote.rb +6 -0
  27. data/app/views/feature_box/categories/_form.html.haml +14 -0
  28. data/app/views/feature_box/categories/edit.html.haml +3 -0
  29. data/app/views/feature_box/categories/index.html.haml +26 -0
  30. data/app/views/feature_box/categories/new.html.haml +3 -0
  31. data/app/views/feature_box/comments/_comment.html.haml +9 -0
  32. data/app/views/feature_box/comments/_new.html.haml +9 -0
  33. data/app/views/feature_box/comments/edit.html.haml +17 -0
  34. data/app/views/feature_box/comments/index.html.haml +8 -0
  35. data/app/views/feature_box/devise/_links.html.haml +9 -0
  36. data/app/views/feature_box/devise/confirmations/new.html.haml +7 -0
  37. data/app/views/feature_box/devise/mailer/confirmation_instructions.html.haml +4 -0
  38. data/app/views/feature_box/devise/mailer/reset_password_instructions.html.haml +6 -0
  39. data/app/views/feature_box/devise/mailer/unlock_instructions.html.haml +5 -0
  40. data/app/views/feature_box/devise/passwords/edit.html.haml +7 -0
  41. data/app/views/feature_box/devise/passwords/new.html.haml +5 -0
  42. data/app/views/feature_box/devise/registrations/edit.html.haml +16 -0
  43. data/app/views/feature_box/devise/registrations/new.html.haml +8 -0
  44. data/app/views/feature_box/devise/sessions/new.html.haml +8 -0
  45. data/app/views/feature_box/shared/_pages_nav.html.haml +6 -0
  46. data/app/views/feature_box/suggestions/_form.html.haml +30 -0
  47. data/app/views/feature_box/suggestions/_order_nav.html.haml +6 -0
  48. data/app/views/feature_box/suggestions/_search.html.haml +4 -0
  49. data/app/views/feature_box/suggestions/_suggestion.html.haml +31 -0
  50. data/app/views/feature_box/suggestions/edit.html.haml +3 -0
  51. data/app/views/feature_box/suggestions/index.html.haml +27 -0
  52. data/app/views/feature_box/suggestions/new.html.haml +6 -0
  53. data/app/views/feature_box/suggestions/show.html.haml +2 -0
  54. data/app/views/feature_box/users/edit.html.haml +14 -0
  55. data/app/views/feature_box/users/index.html.haml +24 -0
  56. data/app/views/layouts/feature_box/application.html.haml +81 -0
  57. data/config/initializers/devise.rb +3 -0
  58. data/config/routes.rb +35 -0
  59. data/db/seeds.rb +11 -0
  60. data/lib/feature_box.rb +72 -0
  61. data/lib/feature_box/engine.rb +5 -0
  62. data/lib/feature_box/helpers.rb +49 -0
  63. data/lib/feature_box/version.rb +3 -0
  64. data/lib/generators/feature_box/existing_generator.rb +26 -0
  65. data/lib/generators/feature_box/generator_base.rb +47 -0
  66. data/lib/generators/feature_box/initializer_generator.rb +14 -0
  67. data/lib/generators/feature_box/migrations_generator.rb +25 -0
  68. data/lib/generators/feature_box/standalone_generator.rb +27 -0
  69. data/lib/generators/feature_box/templates/initializers/initializer.rb +32 -0
  70. data/lib/generators/feature_box/templates/initializers/new_devise_initializer.rb +8 -0
  71. data/lib/generators/feature_box/templates/migrations/00_create_feature_box_suggestions.rb +15 -0
  72. data/lib/generators/feature_box/templates/migrations/01_create_feature_box_categories.rb +9 -0
  73. data/lib/generators/feature_box/templates/migrations/02_create_feature_box_comments.rb +13 -0
  74. data/lib/generators/feature_box/templates/migrations/03_create_feature_box_votes.rb +12 -0
  75. data/lib/generators/feature_box/templates/migrations/04_create_feature_box_users.rb +10 -0
  76. data/lib/generators/feature_box/templates/migrations/05_add_devise_to_feature_box_users.rb +50 -0
  77. data/lib/generators/feature_box/templates/migrations/06_add_type_to_{model_name}.rb +5 -0
  78. data/lib/generators/feature_box/views_generator.rb +14 -0
  79. data/lib/tasks/feature_box_tasks.rake +9 -0
  80. data/test/existing-template/application.html.erb +40 -0
  81. data/test/existing-template/application_helper.rb +11 -0
  82. data/test/existing-template/index.html.erb +1 -0
  83. data/test/run-all-tests.sh +7 -0
  84. data/test/template.rb +29 -0
  85. data/vendor/assets/stylesheets/bootstrap.min.css +689 -0
  86. metadata +250 -0
metadata ADDED
@@ -0,0 +1,250 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: feature_box
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.8.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Dmitry Filimonov
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-09-15 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: devise
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: 2.1.0
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: 2.1.0
30
+ - !ruby/object:Gem::Dependency
31
+ name: rails
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ~>
36
+ - !ruby/object:Gem::Version
37
+ version: 3.2.6
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: 3.2.6
46
+ - !ruby/object:Gem::Dependency
47
+ name: cancan
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - <=
52
+ - !ruby/object:Gem::Version
53
+ version: 1.6.7
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: 1.6.7
62
+ - !ruby/object:Gem::Dependency
63
+ name: haml
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ~>
68
+ - !ruby/object:Gem::Version
69
+ version: 3.1.6
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: 3.1.6
78
+ - !ruby/object:Gem::Dependency
79
+ name: jquery-rails
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ type: :runtime
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ - !ruby/object:Gem::Dependency
95
+ name: sass-rails
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ~>
100
+ - !ruby/object:Gem::Version
101
+ version: 3.2.3
102
+ type: :runtime
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ~>
108
+ - !ruby/object:Gem::Version
109
+ version: 3.2.3
110
+ - !ruby/object:Gem::Dependency
111
+ name: uglifier
112
+ requirement: !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ! '>='
116
+ - !ruby/object:Gem::Version
117
+ version: 1.0.3
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ! '>='
124
+ - !ruby/object:Gem::Version
125
+ version: 1.0.3
126
+ description: FeatureBox is a feature request service written using Ruby on Rails framework.
127
+ It is an open source analog of VoteBox - part of the DropBox. It is designed to
128
+ be flexible and customizable and intended to be easily integrated into your website.
129
+ It uses popular gems like CanCan and Devise.
130
+ email:
131
+ - me@dfilimonov.com
132
+ executables: []
133
+ extensions: []
134
+ extra_rdoc_files: []
135
+ files:
136
+ - app/assets/javascripts/feature_box/application.js
137
+ - app/assets/stylesheets/feature_box/application.css.scss
138
+ - app/assets/stylesheets/feature_box/comments.css.scss
139
+ - app/assets/stylesheets/feature_box/mixins.css.scss
140
+ - app/assets/stylesheets/feature_box/suggestions.css.scss
141
+ - app/controllers/feature_box/application_controller.rb
142
+ - app/controllers/feature_box/categories_controller.rb
143
+ - app/controllers/feature_box/comments_controller.rb
144
+ - app/controllers/feature_box/devise/passwords_controller.rb
145
+ - app/controllers/feature_box/devise/redirects.rb
146
+ - app/controllers/feature_box/devise/registrations_controller.rb
147
+ - app/controllers/feature_box/devise/sessions_controller.rb
148
+ - app/controllers/feature_box/home_controller.rb
149
+ - app/controllers/feature_box/suggestions_controller.rb
150
+ - app/controllers/feature_box/users_controller.rb
151
+ - app/helpers/feature_box/application_helper.rb
152
+ - app/mailers/feature_box/devise/mailer.rb
153
+ - app/models/feature_box/ability.rb
154
+ - app/models/feature_box/category.rb
155
+ - app/models/feature_box/comment.rb
156
+ - app/models/feature_box/suggestion.rb
157
+ - app/models/feature_box/user.rb
158
+ - app/models/feature_box/vote.rb
159
+ - app/views/feature_box/categories/_form.html.haml
160
+ - app/views/feature_box/categories/edit.html.haml
161
+ - app/views/feature_box/categories/index.html.haml
162
+ - app/views/feature_box/categories/new.html.haml
163
+ - app/views/feature_box/comments/_comment.html.haml
164
+ - app/views/feature_box/comments/_new.html.haml
165
+ - app/views/feature_box/comments/edit.html.haml
166
+ - app/views/feature_box/comments/index.html.haml
167
+ - app/views/feature_box/devise/_links.html.haml
168
+ - app/views/feature_box/devise/confirmations/new.html.haml
169
+ - app/views/feature_box/devise/mailer/confirmation_instructions.html.haml
170
+ - app/views/feature_box/devise/mailer/reset_password_instructions.html.haml
171
+ - app/views/feature_box/devise/mailer/unlock_instructions.html.haml
172
+ - app/views/feature_box/devise/passwords/edit.html.haml
173
+ - app/views/feature_box/devise/passwords/new.html.haml
174
+ - app/views/feature_box/devise/registrations/edit.html.haml
175
+ - app/views/feature_box/devise/registrations/new.html.haml
176
+ - app/views/feature_box/devise/sessions/new.html.haml
177
+ - app/views/feature_box/shared/_pages_nav.html.haml
178
+ - app/views/feature_box/suggestions/_form.html.haml
179
+ - app/views/feature_box/suggestions/_order_nav.html.haml
180
+ - app/views/feature_box/suggestions/_search.html.haml
181
+ - app/views/feature_box/suggestions/_suggestion.html.haml
182
+ - app/views/feature_box/suggestions/edit.html.haml
183
+ - app/views/feature_box/suggestions/index.html.haml
184
+ - app/views/feature_box/suggestions/new.html.haml
185
+ - app/views/feature_box/suggestions/show.html.haml
186
+ - app/views/feature_box/users/edit.html.haml
187
+ - app/views/feature_box/users/index.html.haml
188
+ - app/views/layouts/feature_box/application.html.haml
189
+ - config/initializers/devise.rb
190
+ - config/routes.rb
191
+ - db/seeds.rb
192
+ - lib/feature_box/engine.rb
193
+ - lib/feature_box/helpers.rb
194
+ - lib/feature_box/version.rb
195
+ - lib/feature_box.rb
196
+ - lib/generators/feature_box/existing_generator.rb
197
+ - lib/generators/feature_box/generator_base.rb
198
+ - lib/generators/feature_box/initializer_generator.rb
199
+ - lib/generators/feature_box/migrations_generator.rb
200
+ - lib/generators/feature_box/standalone_generator.rb
201
+ - lib/generators/feature_box/templates/initializers/initializer.rb
202
+ - lib/generators/feature_box/templates/initializers/new_devise_initializer.rb
203
+ - lib/generators/feature_box/templates/migrations/00_create_feature_box_suggestions.rb
204
+ - lib/generators/feature_box/templates/migrations/01_create_feature_box_categories.rb
205
+ - lib/generators/feature_box/templates/migrations/02_create_feature_box_comments.rb
206
+ - lib/generators/feature_box/templates/migrations/03_create_feature_box_votes.rb
207
+ - lib/generators/feature_box/templates/migrations/04_create_feature_box_users.rb
208
+ - lib/generators/feature_box/templates/migrations/05_add_devise_to_feature_box_users.rb
209
+ - lib/generators/feature_box/templates/migrations/06_add_type_to_{model_name}.rb
210
+ - lib/generators/feature_box/views_generator.rb
211
+ - lib/tasks/feature_box_tasks.rake
212
+ - vendor/assets/stylesheets/bootstrap.min.css
213
+ - MIT-LICENSE
214
+ - README.rdoc
215
+ - CHANGELOG.rdoc
216
+ - test/existing-template/application.html.erb
217
+ - test/existing-template/application_helper.rb
218
+ - test/existing-template/index.html.erb
219
+ - test/run-all-tests.sh
220
+ - test/template.rb
221
+ homepage: http://featurebox.me/
222
+ licenses: []
223
+ post_install_message:
224
+ rdoc_options: []
225
+ require_paths:
226
+ - lib
227
+ required_ruby_version: !ruby/object:Gem::Requirement
228
+ none: false
229
+ requirements:
230
+ - - ! '>='
231
+ - !ruby/object:Gem::Version
232
+ version: '0'
233
+ required_rubygems_version: !ruby/object:Gem::Requirement
234
+ none: false
235
+ requirements:
236
+ - - ! '>='
237
+ - !ruby/object:Gem::Version
238
+ version: '0'
239
+ requirements: []
240
+ rubyforge_project:
241
+ rubygems_version: 1.8.24
242
+ signing_key:
243
+ specification_version: 3
244
+ summary: Feature request service.
245
+ test_files:
246
+ - test/existing-template/application.html.erb
247
+ - test/existing-template/application_helper.rb
248
+ - test/existing-template/index.html.erb
249
+ - test/run-all-tests.sh
250
+ - test/template.rb