acts_as_starrable 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.rdoc +3 -0
  3. data/Rakefile +46 -0
  4. data/app/assets/javascripts/application.js +15 -0
  5. data/app/assets/javascripts/jquery.rateit.min.js +2 -0
  6. data/app/assets/javascripts/starrable.js +35 -0
  7. data/app/assets/stylesheets/application.css +13 -0
  8. data/app/assets/stylesheets/rateit.css +98 -0
  9. data/app/controllers/application_controller.rb +5 -0
  10. data/app/controllers/ratings_controller.rb +15 -0
  11. data/app/helpers/application_helper.rb +5 -0
  12. data/app/views/layouts/application.html.erb +14 -0
  13. data/app/views/starrable/_stars.html.erb +6 -0
  14. data/config/routes.rb +4 -0
  15. data/lib/acts_as_starrable/engine.rb +13 -0
  16. data/lib/acts_as_starrable/rating.rb +10 -0
  17. data/lib/acts_as_starrable/starrable.rb +39 -0
  18. data/lib/acts_as_starrable/starrable_helper.rb +10 -0
  19. data/lib/acts_as_starrable/version.rb +4 -0
  20. data/lib/acts_as_starrable.rb +10 -0
  21. data/lib/generators/acts_as_starrable/migration/migration_generator.rb +40 -0
  22. data/lib/generators/acts_as_starrable/migration/templates/active_record/migration.rb +17 -0
  23. data/lib/tasks/acts_as_starrable_tasks.rake +4 -0
  24. data/spec/controllers/ratings_controller_spec.rb +35 -0
  25. data/spec/dummy/Gemfile +38 -0
  26. data/spec/dummy/Gemfile.lock +114 -0
  27. data/spec/dummy/README.rdoc +261 -0
  28. data/spec/dummy/Rakefile +7 -0
  29. data/spec/dummy/app/assets/images/rails.png +0 -0
  30. data/spec/dummy/app/assets/javascripts/application.js +15 -0
  31. data/spec/dummy/app/assets/stylesheets/application.css +13 -0
  32. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  33. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  34. data/spec/dummy/app/models/flick.rb +4 -0
  35. data/spec/dummy/app/models/user.rb +3 -0
  36. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  37. data/spec/dummy/config/application.rb +62 -0
  38. data/spec/dummy/config/boot.rb +6 -0
  39. data/spec/dummy/config/database.yml +25 -0
  40. data/spec/dummy/config/environment.rb +5 -0
  41. data/spec/dummy/config/environments/development.rb +37 -0
  42. data/spec/dummy/config/environments/production.rb +67 -0
  43. data/spec/dummy/config/environments/test.rb +37 -0
  44. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  45. data/spec/dummy/config/initializers/inflections.rb +15 -0
  46. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  47. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  48. data/spec/dummy/config/initializers/session_store.rb +8 -0
  49. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  50. data/spec/dummy/config/locales/en.yml +5 -0
  51. data/spec/dummy/config/routes.rb +58 -0
  52. data/spec/dummy/config.ru +4 -0
  53. data/spec/dummy/db/development.sqlite3 +0 -0
  54. data/spec/dummy/db/migrate/20140409035450_create_flicks.rb +9 -0
  55. data/spec/dummy/db/migrate/20140409041520_create_users.rb +9 -0
  56. data/spec/dummy/db/migrate/20140412132501_acts_as_starrable_migration.rb +16 -0
  57. data/spec/dummy/db/schema.rb +39 -0
  58. data/spec/dummy/db/seeds.rb +8 -0
  59. data/spec/dummy/db/test.sqlite3 +0 -0
  60. data/spec/dummy/doc/README_FOR_APP +2 -0
  61. data/spec/dummy/log/development.log +158 -0
  62. data/spec/dummy/log/test.log +627 -0
  63. data/spec/dummy/public/404.html +26 -0
  64. data/spec/dummy/public/422.html +26 -0
  65. data/spec/dummy/public/500.html +25 -0
  66. data/spec/dummy/public/favicon.ico +0 -0
  67. data/spec/dummy/public/index.html +241 -0
  68. data/spec/dummy/public/robots.txt +5 -0
  69. data/spec/dummy/script/rails +6 -0
  70. data/spec/dummy/tmp/cache/assets/CF0/DA0/sprockets%2Fd7d5b37686831d37c4dd75e645f5e016 +0 -0
  71. data/spec/dummy/tmp/cache/assets/E25/4C0/sprockets%2Fde2fd9fd11c04a582cdbbe3d84a35ae6 +0 -0
  72. data/spec/factories.rb +11 -0
  73. data/spec/models/flick_spec.rb +10 -0
  74. data/spec/models/user_spec.rb +10 -0
  75. data/spec/spec_helper.rb +30 -0
  76. metadata +301 -0
metadata ADDED
@@ -0,0 +1,301 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: acts_as_starrable
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Alexander Clark
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2014-05-10 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.2.12
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.2.12
30
+ - !ruby/object:Gem::Dependency
31
+ name: sqlite3
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: rspec-rails
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: capybara
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ - !ruby/object:Gem::Dependency
79
+ name: factory_girl_rails
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
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'
94
+ - !ruby/object:Gem::Dependency
95
+ name: guard-rspec
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ! '>='
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
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: '0'
110
+ - !ruby/object:Gem::Dependency
111
+ name: guard-spork
112
+ requirement: !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ! '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
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'
126
+ - !ruby/object:Gem::Dependency
127
+ name: shoulda-matchers
128
+ requirement: !ruby/object:Gem::Requirement
129
+ none: false
130
+ requirements:
131
+ - - ! '>='
132
+ - !ruby/object:Gem::Version
133
+ version: '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: '0'
142
+ description: Add the ability to give star ratings to various models.
143
+ email:
144
+ - sasha.jackal@gmail.com
145
+ executables: []
146
+ extensions: []
147
+ extra_rdoc_files: []
148
+ files:
149
+ - app/assets/javascripts/application.js
150
+ - app/assets/javascripts/jquery.rateit.min.js
151
+ - app/assets/javascripts/starrable.js
152
+ - app/assets/stylesheets/application.css
153
+ - app/assets/stylesheets/rateit.css
154
+ - app/controllers/application_controller.rb
155
+ - app/controllers/ratings_controller.rb
156
+ - app/helpers/application_helper.rb
157
+ - app/views/layouts/application.html.erb
158
+ - app/views/starrable/_stars.html.erb
159
+ - config/routes.rb
160
+ - lib/acts_as_starrable/engine.rb
161
+ - lib/acts_as_starrable/rating.rb
162
+ - lib/acts_as_starrable/starrable.rb
163
+ - lib/acts_as_starrable/starrable_helper.rb
164
+ - lib/acts_as_starrable/version.rb
165
+ - lib/acts_as_starrable.rb
166
+ - lib/generators/acts_as_starrable/migration/migration_generator.rb
167
+ - lib/generators/acts_as_starrable/migration/templates/active_record/migration.rb
168
+ - lib/tasks/acts_as_starrable_tasks.rake
169
+ - MIT-LICENSE
170
+ - Rakefile
171
+ - README.rdoc
172
+ - spec/controllers/ratings_controller_spec.rb
173
+ - spec/dummy/app/assets/images/rails.png
174
+ - spec/dummy/app/assets/javascripts/application.js
175
+ - spec/dummy/app/assets/stylesheets/application.css
176
+ - spec/dummy/app/controllers/application_controller.rb
177
+ - spec/dummy/app/helpers/application_helper.rb
178
+ - spec/dummy/app/models/flick.rb
179
+ - spec/dummy/app/models/user.rb
180
+ - spec/dummy/app/views/layouts/application.html.erb
181
+ - spec/dummy/config/application.rb
182
+ - spec/dummy/config/boot.rb
183
+ - spec/dummy/config/database.yml
184
+ - spec/dummy/config/environment.rb
185
+ - spec/dummy/config/environments/development.rb
186
+ - spec/dummy/config/environments/production.rb
187
+ - spec/dummy/config/environments/test.rb
188
+ - spec/dummy/config/initializers/backtrace_silencers.rb
189
+ - spec/dummy/config/initializers/inflections.rb
190
+ - spec/dummy/config/initializers/mime_types.rb
191
+ - spec/dummy/config/initializers/secret_token.rb
192
+ - spec/dummy/config/initializers/session_store.rb
193
+ - spec/dummy/config/initializers/wrap_parameters.rb
194
+ - spec/dummy/config/locales/en.yml
195
+ - spec/dummy/config/routes.rb
196
+ - spec/dummy/config.ru
197
+ - spec/dummy/db/development.sqlite3
198
+ - spec/dummy/db/migrate/20140409035450_create_flicks.rb
199
+ - spec/dummy/db/migrate/20140409041520_create_users.rb
200
+ - spec/dummy/db/migrate/20140412132501_acts_as_starrable_migration.rb
201
+ - spec/dummy/db/schema.rb
202
+ - spec/dummy/db/seeds.rb
203
+ - spec/dummy/db/test.sqlite3
204
+ - spec/dummy/doc/README_FOR_APP
205
+ - spec/dummy/Gemfile
206
+ - spec/dummy/Gemfile.lock
207
+ - spec/dummy/log/development.log
208
+ - spec/dummy/log/test.log
209
+ - spec/dummy/public/404.html
210
+ - spec/dummy/public/422.html
211
+ - spec/dummy/public/500.html
212
+ - spec/dummy/public/favicon.ico
213
+ - spec/dummy/public/index.html
214
+ - spec/dummy/public/robots.txt
215
+ - spec/dummy/Rakefile
216
+ - spec/dummy/README.rdoc
217
+ - spec/dummy/script/rails
218
+ - spec/dummy/tmp/cache/assets/CF0/DA0/sprockets%2Fd7d5b37686831d37c4dd75e645f5e016
219
+ - spec/dummy/tmp/cache/assets/E25/4C0/sprockets%2Fde2fd9fd11c04a582cdbbe3d84a35ae6
220
+ - spec/factories.rb
221
+ - spec/models/flick_spec.rb
222
+ - spec/models/user_spec.rb
223
+ - spec/spec_helper.rb
224
+ homepage: https://github.com/alexander-clark/acts_as_starrable
225
+ licenses: []
226
+ post_install_message:
227
+ rdoc_options: []
228
+ require_paths:
229
+ - lib
230
+ required_ruby_version: !ruby/object:Gem::Requirement
231
+ none: false
232
+ requirements:
233
+ - - ! '>='
234
+ - !ruby/object:Gem::Version
235
+ version: '0'
236
+ required_rubygems_version: !ruby/object:Gem::Requirement
237
+ none: false
238
+ requirements:
239
+ - - ! '>='
240
+ - !ruby/object:Gem::Version
241
+ version: '0'
242
+ requirements: []
243
+ rubyforge_project:
244
+ rubygems_version: 1.8.28
245
+ signing_key:
246
+ specification_version: 3
247
+ summary: Add stars to stuff
248
+ test_files:
249
+ - spec/controllers/ratings_controller_spec.rb
250
+ - spec/dummy/app/assets/images/rails.png
251
+ - spec/dummy/app/assets/javascripts/application.js
252
+ - spec/dummy/app/assets/stylesheets/application.css
253
+ - spec/dummy/app/controllers/application_controller.rb
254
+ - spec/dummy/app/helpers/application_helper.rb
255
+ - spec/dummy/app/models/flick.rb
256
+ - spec/dummy/app/models/user.rb
257
+ - spec/dummy/app/views/layouts/application.html.erb
258
+ - spec/dummy/config/application.rb
259
+ - spec/dummy/config/boot.rb
260
+ - spec/dummy/config/database.yml
261
+ - spec/dummy/config/environment.rb
262
+ - spec/dummy/config/environments/development.rb
263
+ - spec/dummy/config/environments/production.rb
264
+ - spec/dummy/config/environments/test.rb
265
+ - spec/dummy/config/initializers/backtrace_silencers.rb
266
+ - spec/dummy/config/initializers/inflections.rb
267
+ - spec/dummy/config/initializers/mime_types.rb
268
+ - spec/dummy/config/initializers/secret_token.rb
269
+ - spec/dummy/config/initializers/session_store.rb
270
+ - spec/dummy/config/initializers/wrap_parameters.rb
271
+ - spec/dummy/config/locales/en.yml
272
+ - spec/dummy/config/routes.rb
273
+ - spec/dummy/config.ru
274
+ - spec/dummy/db/development.sqlite3
275
+ - spec/dummy/db/migrate/20140409035450_create_flicks.rb
276
+ - spec/dummy/db/migrate/20140409041520_create_users.rb
277
+ - spec/dummy/db/migrate/20140412132501_acts_as_starrable_migration.rb
278
+ - spec/dummy/db/schema.rb
279
+ - spec/dummy/db/seeds.rb
280
+ - spec/dummy/db/test.sqlite3
281
+ - spec/dummy/doc/README_FOR_APP
282
+ - spec/dummy/Gemfile
283
+ - spec/dummy/Gemfile.lock
284
+ - spec/dummy/log/development.log
285
+ - spec/dummy/log/test.log
286
+ - spec/dummy/public/404.html
287
+ - spec/dummy/public/422.html
288
+ - spec/dummy/public/500.html
289
+ - spec/dummy/public/favicon.ico
290
+ - spec/dummy/public/index.html
291
+ - spec/dummy/public/robots.txt
292
+ - spec/dummy/Rakefile
293
+ - spec/dummy/README.rdoc
294
+ - spec/dummy/script/rails
295
+ - spec/dummy/tmp/cache/assets/CF0/DA0/sprockets%2Fd7d5b37686831d37c4dd75e645f5e016
296
+ - spec/dummy/tmp/cache/assets/E25/4C0/sprockets%2Fde2fd9fd11c04a582cdbbe3d84a35ae6
297
+ - spec/factories.rb
298
+ - spec/models/flick_spec.rb
299
+ - spec/models/user_spec.rb
300
+ - spec/spec_helper.rb
301
+ has_rdoc: