lazy_crud 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (91) hide show
  1. checksums.yaml +7 -0
  2. data/.codeclimate.yml +7 -0
  3. data/.gitignore +37 -0
  4. data/.travis.yml +15 -0
  5. data/Gemfile +4 -0
  6. data/Gemfile.lock +142 -0
  7. data/LICENSE +22 -0
  8. data/README.md +69 -0
  9. data/Rakefile +1 -0
  10. data/config/locales/en.yml +11 -0
  11. data/lazy_crud.gemspec +42 -0
  12. data/lib/lazy_crud/version.rb +3 -0
  13. data/lib/lazy_crud.rb +161 -0
  14. data/spec/integration/discounts_controller_spec.rb +95 -0
  15. data/spec/rails_helper.rb +15 -0
  16. data/spec/spec_helper.rb +39 -0
  17. data/spec/support/factories.rb +18 -0
  18. data/spec/support/factory_girl.rb +7 -0
  19. data/spec/support/rails_app/Rakefile +6 -0
  20. data/spec/support/rails_app/app/assets/images/.keep +0 -0
  21. data/spec/support/rails_app/app/assets/javascripts/application.js +16 -0
  22. data/spec/support/rails_app/app/assets/javascripts/some_resources.js +2 -0
  23. data/spec/support/rails_app/app/assets/javascripts/users.js +2 -0
  24. data/spec/support/rails_app/app/assets/stylesheets/application.css +15 -0
  25. data/spec/support/rails_app/app/assets/stylesheets/scaffold.css +56 -0
  26. data/spec/support/rails_app/app/assets/stylesheets/some_resources.css +4 -0
  27. data/spec/support/rails_app/app/assets/stylesheets/users.css +4 -0
  28. data/spec/support/rails_app/app/controllers/application_controller.rb +14 -0
  29. data/spec/support/rails_app/app/controllers/discounts_controller.rb +14 -0
  30. data/spec/support/rails_app/app/controllers/events_controller.rb +58 -0
  31. data/spec/support/rails_app/app/controllers/users_controller.rb +6 -0
  32. data/spec/support/rails_app/app/helpers/application_helper.rb +2 -0
  33. data/spec/support/rails_app/app/helpers/events_helper.rb +2 -0
  34. data/spec/support/rails_app/app/helpers/users_helper.rb +2 -0
  35. data/spec/support/rails_app/app/models/collaboration.rb +16 -0
  36. data/spec/support/rails_app/app/models/concerns/.keep +0 -0
  37. data/spec/support/rails_app/app/models/discount.rb +5 -0
  38. data/spec/support/rails_app/app/models/event.rb +4 -0
  39. data/spec/support/rails_app/app/models/user.rb +9 -0
  40. data/spec/support/rails_app/app/views/discounts/edit.html.erb +0 -0
  41. data/spec/support/rails_app/app/views/discounts/index.html.erb +0 -0
  42. data/spec/support/rails_app/app/views/discounts/new.html.erb +0 -0
  43. data/spec/support/rails_app/app/views/discounts/show.html.erb +0 -0
  44. data/spec/support/rails_app/app/views/events/_form.html.erb +17 -0
  45. data/spec/support/rails_app/app/views/events/edit.html.erb +6 -0
  46. data/spec/support/rails_app/app/views/events/index.html.erb +25 -0
  47. data/spec/support/rails_app/app/views/events/new.html.erb +5 -0
  48. data/spec/support/rails_app/app/views/events/show.html.erb +4 -0
  49. data/spec/support/rails_app/app/views/layouts/application.html.erb +14 -0
  50. data/spec/support/rails_app/app/views/users/_form.html.erb +17 -0
  51. data/spec/support/rails_app/app/views/users/edit.html.erb +6 -0
  52. data/spec/support/rails_app/app/views/users/index.html.erb +25 -0
  53. data/spec/support/rails_app/app/views/users/new.html.erb +5 -0
  54. data/spec/support/rails_app/app/views/users/show.html.erb +4 -0
  55. data/spec/support/rails_app/bin/bundle +3 -0
  56. data/spec/support/rails_app/bin/rails +8 -0
  57. data/spec/support/rails_app/bin/rake +4 -0
  58. data/spec/support/rails_app/config/application.rb +30 -0
  59. data/spec/support/rails_app/config/boot.rb +3 -0
  60. data/spec/support/rails_app/config/database.yml +25 -0
  61. data/spec/support/rails_app/config/environment.rb +5 -0
  62. data/spec/support/rails_app/config/environments/development.rb +41 -0
  63. data/spec/support/rails_app/config/environments/production.rb +79 -0
  64. data/spec/support/rails_app/config/environments/test.rb +42 -0
  65. data/spec/support/rails_app/config/initializers/assets.rb +11 -0
  66. data/spec/support/rails_app/config/initializers/backtrace_silencers.rb +7 -0
  67. data/spec/support/rails_app/config/initializers/cookies_serializer.rb +3 -0
  68. data/spec/support/rails_app/config/initializers/filter_parameter_logging.rb +4 -0
  69. data/spec/support/rails_app/config/initializers/inflections.rb +16 -0
  70. data/spec/support/rails_app/config/initializers/mime_types.rb +4 -0
  71. data/spec/support/rails_app/config/initializers/session_store.rb +3 -0
  72. data/spec/support/rails_app/config/initializers/wrap_parameters.rb +14 -0
  73. data/spec/support/rails_app/config/locales/en.yml +23 -0
  74. data/spec/support/rails_app/config/routes.rb +67 -0
  75. data/spec/support/rails_app/config/secrets.yml +22 -0
  76. data/spec/support/rails_app/config.ru +0 -0
  77. data/spec/support/rails_app/db/development.sqlite3 +0 -0
  78. data/spec/support/rails_app/db/migrate/20141231134904_create_users.rb +8 -0
  79. data/spec/support/rails_app/db/migrate/20150102225507_create_events.rb +9 -0
  80. data/spec/support/rails_app/db/migrate/20150104171110_create_discounts.rb +13 -0
  81. data/spec/support/rails_app/db/schema.rb +38 -0
  82. data/spec/support/rails_app/db/seeds.rb +7 -0
  83. data/spec/support/rails_app/db/test.sqlite3 +0 -0
  84. data/spec/support/rails_app/public/404.html +67 -0
  85. data/spec/support/rails_app/public/422.html +67 -0
  86. data/spec/support/rails_app/public/500.html +66 -0
  87. data/spec/support/rails_app/public/favicon.ico +0 -0
  88. data/spec/support/rails_app/public/robots.txt +5 -0
  89. data/spec/support/rails_app/reset-db +1 -0
  90. data/spec/unit/lazy_crud_spec.rb +0 -0
  91. metadata +377 -0
metadata ADDED
@@ -0,0 +1,377 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: lazy_crud
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.9.0
5
+ platform: ruby
6
+ authors:
7
+ - L. Preston Sego III
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-05-10 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activesupport
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 3.0.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 3.0.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: i18n
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rails
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '4'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '4'
69
+ - !ruby/object:Gem::Dependency
70
+ name: factory_girl_rails
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '4.4'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '4.4'
83
+ - !ruby/object:Gem::Dependency
84
+ name: paranoia
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: awesome_print
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rspec
113
+ requirement: !ruby/object:Gem::Requirement
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
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rspec-rails
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: sqlite3
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: pry-byebug
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: codeclimate-test-reporter
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ description: Lazy way to implement common actions in controllers in Rails.
182
+ email: LPSego3+dev@gmail.com
183
+ executables: []
184
+ extensions: []
185
+ extra_rdoc_files: []
186
+ files:
187
+ - ".codeclimate.yml"
188
+ - ".gitignore"
189
+ - ".travis.yml"
190
+ - Gemfile
191
+ - Gemfile.lock
192
+ - LICENSE
193
+ - README.md
194
+ - Rakefile
195
+ - config/locales/en.yml
196
+ - lazy_crud.gemspec
197
+ - lib/lazy_crud.rb
198
+ - lib/lazy_crud/version.rb
199
+ - spec/integration/discounts_controller_spec.rb
200
+ - spec/rails_helper.rb
201
+ - spec/spec_helper.rb
202
+ - spec/support/factories.rb
203
+ - spec/support/factory_girl.rb
204
+ - spec/support/rails_app/Rakefile
205
+ - spec/support/rails_app/app/assets/images/.keep
206
+ - spec/support/rails_app/app/assets/javascripts/application.js
207
+ - spec/support/rails_app/app/assets/javascripts/some_resources.js
208
+ - spec/support/rails_app/app/assets/javascripts/users.js
209
+ - spec/support/rails_app/app/assets/stylesheets/application.css
210
+ - spec/support/rails_app/app/assets/stylesheets/scaffold.css
211
+ - spec/support/rails_app/app/assets/stylesheets/some_resources.css
212
+ - spec/support/rails_app/app/assets/stylesheets/users.css
213
+ - spec/support/rails_app/app/controllers/application_controller.rb
214
+ - spec/support/rails_app/app/controllers/discounts_controller.rb
215
+ - spec/support/rails_app/app/controllers/events_controller.rb
216
+ - spec/support/rails_app/app/controllers/users_controller.rb
217
+ - spec/support/rails_app/app/helpers/application_helper.rb
218
+ - spec/support/rails_app/app/helpers/events_helper.rb
219
+ - spec/support/rails_app/app/helpers/users_helper.rb
220
+ - spec/support/rails_app/app/models/collaboration.rb
221
+ - spec/support/rails_app/app/models/concerns/.keep
222
+ - spec/support/rails_app/app/models/discount.rb
223
+ - spec/support/rails_app/app/models/event.rb
224
+ - spec/support/rails_app/app/models/user.rb
225
+ - spec/support/rails_app/app/views/discounts/edit.html.erb
226
+ - spec/support/rails_app/app/views/discounts/index.html.erb
227
+ - spec/support/rails_app/app/views/discounts/new.html.erb
228
+ - spec/support/rails_app/app/views/discounts/show.html.erb
229
+ - spec/support/rails_app/app/views/events/_form.html.erb
230
+ - spec/support/rails_app/app/views/events/edit.html.erb
231
+ - spec/support/rails_app/app/views/events/index.html.erb
232
+ - spec/support/rails_app/app/views/events/new.html.erb
233
+ - spec/support/rails_app/app/views/events/show.html.erb
234
+ - spec/support/rails_app/app/views/layouts/application.html.erb
235
+ - spec/support/rails_app/app/views/users/_form.html.erb
236
+ - spec/support/rails_app/app/views/users/edit.html.erb
237
+ - spec/support/rails_app/app/views/users/index.html.erb
238
+ - spec/support/rails_app/app/views/users/new.html.erb
239
+ - spec/support/rails_app/app/views/users/show.html.erb
240
+ - spec/support/rails_app/bin/bundle
241
+ - spec/support/rails_app/bin/rails
242
+ - spec/support/rails_app/bin/rake
243
+ - spec/support/rails_app/config.ru
244
+ - spec/support/rails_app/config/application.rb
245
+ - spec/support/rails_app/config/boot.rb
246
+ - spec/support/rails_app/config/database.yml
247
+ - spec/support/rails_app/config/environment.rb
248
+ - spec/support/rails_app/config/environments/development.rb
249
+ - spec/support/rails_app/config/environments/production.rb
250
+ - spec/support/rails_app/config/environments/test.rb
251
+ - spec/support/rails_app/config/initializers/assets.rb
252
+ - spec/support/rails_app/config/initializers/backtrace_silencers.rb
253
+ - spec/support/rails_app/config/initializers/cookies_serializer.rb
254
+ - spec/support/rails_app/config/initializers/filter_parameter_logging.rb
255
+ - spec/support/rails_app/config/initializers/inflections.rb
256
+ - spec/support/rails_app/config/initializers/mime_types.rb
257
+ - spec/support/rails_app/config/initializers/session_store.rb
258
+ - spec/support/rails_app/config/initializers/wrap_parameters.rb
259
+ - spec/support/rails_app/config/locales/en.yml
260
+ - spec/support/rails_app/config/routes.rb
261
+ - spec/support/rails_app/config/secrets.yml
262
+ - spec/support/rails_app/db/development.sqlite3
263
+ - spec/support/rails_app/db/migrate/20141231134904_create_users.rb
264
+ - spec/support/rails_app/db/migrate/20150102225507_create_events.rb
265
+ - spec/support/rails_app/db/migrate/20150104171110_create_discounts.rb
266
+ - spec/support/rails_app/db/schema.rb
267
+ - spec/support/rails_app/db/seeds.rb
268
+ - spec/support/rails_app/db/test.sqlite3
269
+ - spec/support/rails_app/public/404.html
270
+ - spec/support/rails_app/public/422.html
271
+ - spec/support/rails_app/public/500.html
272
+ - spec/support/rails_app/public/favicon.ico
273
+ - spec/support/rails_app/public/robots.txt
274
+ - spec/support/rails_app/reset-db
275
+ - spec/unit/lazy_crud_spec.rb
276
+ homepage: https://github.com/NullVoxPopuli/lazy_crud
277
+ licenses:
278
+ - MIT
279
+ metadata: {}
280
+ post_install_message:
281
+ rdoc_options: []
282
+ require_paths:
283
+ - lib
284
+ required_ruby_version: !ruby/object:Gem::Requirement
285
+ requirements:
286
+ - - ">="
287
+ - !ruby/object:Gem::Version
288
+ version: '2.0'
289
+ required_rubygems_version: !ruby/object:Gem::Requirement
290
+ requirements:
291
+ - - ">="
292
+ - !ruby/object:Gem::Version
293
+ version: '0'
294
+ requirements: []
295
+ rubyforge_project:
296
+ rubygems_version: 2.4.6
297
+ signing_key:
298
+ specification_version: 4
299
+ summary: LazyCrud-0.9.0
300
+ test_files:
301
+ - spec/integration/discounts_controller_spec.rb
302
+ - spec/rails_helper.rb
303
+ - spec/spec_helper.rb
304
+ - spec/support/factories.rb
305
+ - spec/support/factory_girl.rb
306
+ - spec/support/rails_app/Rakefile
307
+ - spec/support/rails_app/app/assets/images/.keep
308
+ - spec/support/rails_app/app/assets/javascripts/application.js
309
+ - spec/support/rails_app/app/assets/javascripts/some_resources.js
310
+ - spec/support/rails_app/app/assets/javascripts/users.js
311
+ - spec/support/rails_app/app/assets/stylesheets/application.css
312
+ - spec/support/rails_app/app/assets/stylesheets/scaffold.css
313
+ - spec/support/rails_app/app/assets/stylesheets/some_resources.css
314
+ - spec/support/rails_app/app/assets/stylesheets/users.css
315
+ - spec/support/rails_app/app/controllers/application_controller.rb
316
+ - spec/support/rails_app/app/controllers/discounts_controller.rb
317
+ - spec/support/rails_app/app/controllers/events_controller.rb
318
+ - spec/support/rails_app/app/controllers/users_controller.rb
319
+ - spec/support/rails_app/app/helpers/application_helper.rb
320
+ - spec/support/rails_app/app/helpers/events_helper.rb
321
+ - spec/support/rails_app/app/helpers/users_helper.rb
322
+ - spec/support/rails_app/app/models/collaboration.rb
323
+ - spec/support/rails_app/app/models/concerns/.keep
324
+ - spec/support/rails_app/app/models/discount.rb
325
+ - spec/support/rails_app/app/models/event.rb
326
+ - spec/support/rails_app/app/models/user.rb
327
+ - spec/support/rails_app/app/views/discounts/edit.html.erb
328
+ - spec/support/rails_app/app/views/discounts/index.html.erb
329
+ - spec/support/rails_app/app/views/discounts/new.html.erb
330
+ - spec/support/rails_app/app/views/discounts/show.html.erb
331
+ - spec/support/rails_app/app/views/events/_form.html.erb
332
+ - spec/support/rails_app/app/views/events/edit.html.erb
333
+ - spec/support/rails_app/app/views/events/index.html.erb
334
+ - spec/support/rails_app/app/views/events/new.html.erb
335
+ - spec/support/rails_app/app/views/events/show.html.erb
336
+ - spec/support/rails_app/app/views/layouts/application.html.erb
337
+ - spec/support/rails_app/app/views/users/_form.html.erb
338
+ - spec/support/rails_app/app/views/users/edit.html.erb
339
+ - spec/support/rails_app/app/views/users/index.html.erb
340
+ - spec/support/rails_app/app/views/users/new.html.erb
341
+ - spec/support/rails_app/app/views/users/show.html.erb
342
+ - spec/support/rails_app/bin/bundle
343
+ - spec/support/rails_app/bin/rails
344
+ - spec/support/rails_app/bin/rake
345
+ - spec/support/rails_app/config.ru
346
+ - spec/support/rails_app/config/application.rb
347
+ - spec/support/rails_app/config/boot.rb
348
+ - spec/support/rails_app/config/database.yml
349
+ - spec/support/rails_app/config/environment.rb
350
+ - spec/support/rails_app/config/environments/development.rb
351
+ - spec/support/rails_app/config/environments/production.rb
352
+ - spec/support/rails_app/config/environments/test.rb
353
+ - spec/support/rails_app/config/initializers/assets.rb
354
+ - spec/support/rails_app/config/initializers/backtrace_silencers.rb
355
+ - spec/support/rails_app/config/initializers/cookies_serializer.rb
356
+ - spec/support/rails_app/config/initializers/filter_parameter_logging.rb
357
+ - spec/support/rails_app/config/initializers/inflections.rb
358
+ - spec/support/rails_app/config/initializers/mime_types.rb
359
+ - spec/support/rails_app/config/initializers/session_store.rb
360
+ - spec/support/rails_app/config/initializers/wrap_parameters.rb
361
+ - spec/support/rails_app/config/locales/en.yml
362
+ - spec/support/rails_app/config/routes.rb
363
+ - spec/support/rails_app/config/secrets.yml
364
+ - spec/support/rails_app/db/development.sqlite3
365
+ - spec/support/rails_app/db/migrate/20141231134904_create_users.rb
366
+ - spec/support/rails_app/db/migrate/20150102225507_create_events.rb
367
+ - spec/support/rails_app/db/migrate/20150104171110_create_discounts.rb
368
+ - spec/support/rails_app/db/schema.rb
369
+ - spec/support/rails_app/db/seeds.rb
370
+ - spec/support/rails_app/db/test.sqlite3
371
+ - spec/support/rails_app/public/404.html
372
+ - spec/support/rails_app/public/422.html
373
+ - spec/support/rails_app/public/500.html
374
+ - spec/support/rails_app/public/favicon.ico
375
+ - spec/support/rails_app/public/robots.txt
376
+ - spec/support/rails_app/reset-db
377
+ - spec/unit/lazy_crud_spec.rb