dryparams 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.md +44 -0
  3. data/Rakefile +22 -0
  4. data/lib/dryparams/dryable.rb +71 -0
  5. data/lib/dryparams/engine.rb +9 -0
  6. data/lib/dryparams/naming.rb +32 -0
  7. data/lib/dryparams/version.rb +18 -0
  8. data/lib/dryparams.rb +8 -0
  9. data/lib/tasks/dryparams_tasks.rake +4 -0
  10. data/test/dryparams/dryable_test.rb +34 -0
  11. data/test/dryparams/engine_test.rb +17 -0
  12. data/test/dryparams/naming_test.rb +38 -0
  13. data/test/dryparams/version_test.rb +30 -0
  14. data/test/dryparams_test.rb +7 -0
  15. data/test/dummy/README.md +27 -0
  16. data/test/dummy/Rakefile +6 -0
  17. data/test/dummy/app/assets/javascripts/application.js +13 -0
  18. data/test/dummy/app/assets/javascripts/users.js +2 -0
  19. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  20. data/test/dummy/app/assets/stylesheets/scaffold.css +56 -0
  21. data/test/dummy/app/assets/stylesheets/users.css +4 -0
  22. data/test/dummy/app/controllers/application_controller.rb +7 -0
  23. data/test/dummy/app/controllers/users_controller.rb +47 -0
  24. data/test/dummy/app/helpers/application_helper.rb +2 -0
  25. data/test/dummy/app/helpers/users_helper.rb +2 -0
  26. data/test/dummy/app/models/user.rb +2 -0
  27. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  28. data/test/dummy/app/views/users/_form.html.erb +29 -0
  29. data/test/dummy/app/views/users/edit.html.erb +6 -0
  30. data/test/dummy/app/views/users/index.html.erb +31 -0
  31. data/test/dummy/app/views/users/new.html.erb +5 -0
  32. data/test/dummy/app/views/users/show.html.erb +19 -0
  33. data/test/dummy/bin/bundle +3 -0
  34. data/test/dummy/bin/rails +4 -0
  35. data/test/dummy/bin/rake +4 -0
  36. data/test/dummy/config/application.rb +23 -0
  37. data/test/dummy/config/boot.rb +5 -0
  38. data/test/dummy/config/database.yml +25 -0
  39. data/test/dummy/config/environment.rb +5 -0
  40. data/test/dummy/config/environments/development.rb +29 -0
  41. data/test/dummy/config/environments/production.rb +80 -0
  42. data/test/dummy/config/environments/test.rb +36 -0
  43. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  44. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  45. data/test/dummy/config/initializers/inflections.rb +16 -0
  46. data/test/dummy/config/initializers/mime_types.rb +5 -0
  47. data/test/dummy/config/initializers/secret_token.rb +12 -0
  48. data/test/dummy/config/initializers/session_store.rb +3 -0
  49. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  50. data/test/dummy/config/locales/en.yml +23 -0
  51. data/test/dummy/config/routes.rb +58 -0
  52. data/test/dummy/config.ru +4 -0
  53. data/test/dummy/db/migrate/20130815184453_create_users.rb +11 -0
  54. data/test/dummy/db/schema.rb +24 -0
  55. data/test/dummy/db/test.sqlite3 +0 -0
  56. data/test/dummy/log/test.log +354 -0
  57. data/test/dummy/public/404.html +58 -0
  58. data/test/dummy/public/422.html +58 -0
  59. data/test/dummy/public/500.html +57 -0
  60. data/test/dummy/public/favicon.ico +0 -0
  61. data/test/dummy/test/controllers/users_controller_test.rb +20 -0
  62. data/test/dummy/test/fixtures/users.yml +11 -0
  63. data/test/dummy/test/helpers/users_helper_test.rb +7 -0
  64. data/test/dummy/test/models/user_test.rb +7 -0
  65. data/test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  66. data/test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  67. data/test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  68. data/test/dummy/tmp/cache/assets/test/sprockets/371bf96e99717688ed7313a0c53f4212 +0 -0
  69. data/test/dummy/tmp/cache/assets/test/sprockets/4050a4e5062ab95c9f32e9b6940821ea +0 -0
  70. data/test/dummy/tmp/cache/assets/test/sprockets/5f1a0d05e77ca8b9a1fc2a47e17a8174 +0 -0
  71. data/test/dummy/tmp/cache/assets/test/sprockets/6fc757c2c8329244ca95d6909865bbc2 +0 -0
  72. data/test/dummy/tmp/cache/assets/test/sprockets/87b209c0c9da28094a8d5581a21262c6 +0 -0
  73. data/test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  74. data/test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  75. data/test/dummy/tmp/cache/assets/test/sprockets/f56253b5f374fff1a33fbbc9881c9124 +0 -0
  76. data/test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  77. data/test/test_helper.rb +21 -0
  78. metadata +262 -0
metadata ADDED
@@ -0,0 +1,262 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: dryparams
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Geoffrey Roguelon
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-08-20 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: 4.0.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: 4.0.0
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: yard
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: redcarpet
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
+ description: This Ruby on Rails gem will remove the duplicate code in the controllers
79
+ for Ruby on Rails 4 application.
80
+ email: geoffrey.roguelon@gmail.com
81
+ executables: []
82
+ extensions: []
83
+ extra_rdoc_files: []
84
+ files:
85
+ - lib/dryparams/dryable.rb
86
+ - lib/dryparams/engine.rb
87
+ - lib/dryparams/naming.rb
88
+ - lib/dryparams/version.rb
89
+ - lib/dryparams.rb
90
+ - lib/tasks/dryparams_tasks.rake
91
+ - MIT-LICENSE
92
+ - Rakefile
93
+ - README.md
94
+ - test/dryparams/dryable_test.rb
95
+ - test/dryparams/engine_test.rb
96
+ - test/dryparams/naming_test.rb
97
+ - test/dryparams/version_test.rb
98
+ - test/dryparams_test.rb
99
+ - test/dummy/app/assets/javascripts/application.js
100
+ - test/dummy/app/assets/javascripts/users.js
101
+ - test/dummy/app/assets/stylesheets/application.css
102
+ - test/dummy/app/assets/stylesheets/scaffold.css
103
+ - test/dummy/app/assets/stylesheets/users.css
104
+ - test/dummy/app/controllers/application_controller.rb
105
+ - test/dummy/app/controllers/users_controller.rb
106
+ - test/dummy/app/helpers/application_helper.rb
107
+ - test/dummy/app/helpers/users_helper.rb
108
+ - test/dummy/app/models/user.rb
109
+ - test/dummy/app/views/layouts/application.html.erb
110
+ - test/dummy/app/views/users/_form.html.erb
111
+ - test/dummy/app/views/users/edit.html.erb
112
+ - test/dummy/app/views/users/index.html.erb
113
+ - test/dummy/app/views/users/new.html.erb
114
+ - test/dummy/app/views/users/show.html.erb
115
+ - test/dummy/bin/bundle
116
+ - test/dummy/bin/rails
117
+ - test/dummy/bin/rake
118
+ - test/dummy/config/application.rb
119
+ - test/dummy/config/boot.rb
120
+ - test/dummy/config/database.yml
121
+ - test/dummy/config/environment.rb
122
+ - test/dummy/config/environments/development.rb
123
+ - test/dummy/config/environments/production.rb
124
+ - test/dummy/config/environments/test.rb
125
+ - test/dummy/config/initializers/backtrace_silencers.rb
126
+ - test/dummy/config/initializers/filter_parameter_logging.rb
127
+ - test/dummy/config/initializers/inflections.rb
128
+ - test/dummy/config/initializers/mime_types.rb
129
+ - test/dummy/config/initializers/secret_token.rb
130
+ - test/dummy/config/initializers/session_store.rb
131
+ - test/dummy/config/initializers/wrap_parameters.rb
132
+ - test/dummy/config/locales/en.yml
133
+ - test/dummy/config/routes.rb
134
+ - test/dummy/config.ru
135
+ - test/dummy/db/migrate/20130815184453_create_users.rb
136
+ - test/dummy/db/schema.rb
137
+ - test/dummy/db/test.sqlite3
138
+ - test/dummy/log/test.log
139
+ - test/dummy/public/404.html
140
+ - test/dummy/public/422.html
141
+ - test/dummy/public/500.html
142
+ - test/dummy/public/favicon.ico
143
+ - test/dummy/Rakefile
144
+ - test/dummy/README.md
145
+ - test/dummy/test/controllers/users_controller_test.rb
146
+ - test/dummy/test/fixtures/users.yml
147
+ - test/dummy/test/helpers/users_helper_test.rb
148
+ - test/dummy/test/models/user_test.rb
149
+ - test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
150
+ - test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
151
+ - test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953
152
+ - test/dummy/tmp/cache/assets/test/sprockets/371bf96e99717688ed7313a0c53f4212
153
+ - test/dummy/tmp/cache/assets/test/sprockets/4050a4e5062ab95c9f32e9b6940821ea
154
+ - test/dummy/tmp/cache/assets/test/sprockets/5f1a0d05e77ca8b9a1fc2a47e17a8174
155
+ - test/dummy/tmp/cache/assets/test/sprockets/6fc757c2c8329244ca95d6909865bbc2
156
+ - test/dummy/tmp/cache/assets/test/sprockets/87b209c0c9da28094a8d5581a21262c6
157
+ - test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994
158
+ - test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
159
+ - test/dummy/tmp/cache/assets/test/sprockets/f56253b5f374fff1a33fbbc9881c9124
160
+ - test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
161
+ - test/test_helper.rb
162
+ homepage: https://github.com/GRoguelon/DRYParams
163
+ licenses: []
164
+ post_install_message:
165
+ rdoc_options: []
166
+ require_paths:
167
+ - lib
168
+ required_ruby_version: !ruby/object:Gem::Requirement
169
+ none: false
170
+ requirements:
171
+ - - ! '>='
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ segments:
175
+ - 0
176
+ hash: 1580049060456569154
177
+ required_rubygems_version: !ruby/object:Gem::Requirement
178
+ none: false
179
+ requirements:
180
+ - - ! '>='
181
+ - !ruby/object:Gem::Version
182
+ version: '0'
183
+ segments:
184
+ - 0
185
+ hash: 1580049060456569154
186
+ requirements: []
187
+ rubyforge_project:
188
+ rubygems_version: 1.8.23
189
+ signing_key:
190
+ specification_version: 3
191
+ summary: This Ruby on Rails gem will remove the duplicate code in the controllers
192
+ for Ruby on Rails 4 application.
193
+ test_files:
194
+ - test/dryparams/dryable_test.rb
195
+ - test/dryparams/engine_test.rb
196
+ - test/dryparams/naming_test.rb
197
+ - test/dryparams/version_test.rb
198
+ - test/dryparams_test.rb
199
+ - test/dummy/app/assets/javascripts/application.js
200
+ - test/dummy/app/assets/javascripts/users.js
201
+ - test/dummy/app/assets/stylesheets/application.css
202
+ - test/dummy/app/assets/stylesheets/scaffold.css
203
+ - test/dummy/app/assets/stylesheets/users.css
204
+ - test/dummy/app/controllers/application_controller.rb
205
+ - test/dummy/app/controllers/users_controller.rb
206
+ - test/dummy/app/helpers/application_helper.rb
207
+ - test/dummy/app/helpers/users_helper.rb
208
+ - test/dummy/app/models/user.rb
209
+ - test/dummy/app/views/layouts/application.html.erb
210
+ - test/dummy/app/views/users/_form.html.erb
211
+ - test/dummy/app/views/users/edit.html.erb
212
+ - test/dummy/app/views/users/index.html.erb
213
+ - test/dummy/app/views/users/new.html.erb
214
+ - test/dummy/app/views/users/show.html.erb
215
+ - test/dummy/bin/bundle
216
+ - test/dummy/bin/rails
217
+ - test/dummy/bin/rake
218
+ - test/dummy/config/application.rb
219
+ - test/dummy/config/boot.rb
220
+ - test/dummy/config/database.yml
221
+ - test/dummy/config/environment.rb
222
+ - test/dummy/config/environments/development.rb
223
+ - test/dummy/config/environments/production.rb
224
+ - test/dummy/config/environments/test.rb
225
+ - test/dummy/config/initializers/backtrace_silencers.rb
226
+ - test/dummy/config/initializers/filter_parameter_logging.rb
227
+ - test/dummy/config/initializers/inflections.rb
228
+ - test/dummy/config/initializers/mime_types.rb
229
+ - test/dummy/config/initializers/secret_token.rb
230
+ - test/dummy/config/initializers/session_store.rb
231
+ - test/dummy/config/initializers/wrap_parameters.rb
232
+ - test/dummy/config/locales/en.yml
233
+ - test/dummy/config/routes.rb
234
+ - test/dummy/config.ru
235
+ - test/dummy/db/migrate/20130815184453_create_users.rb
236
+ - test/dummy/db/schema.rb
237
+ - test/dummy/db/test.sqlite3
238
+ - test/dummy/log/test.log
239
+ - test/dummy/public/404.html
240
+ - test/dummy/public/422.html
241
+ - test/dummy/public/500.html
242
+ - test/dummy/public/favicon.ico
243
+ - test/dummy/Rakefile
244
+ - test/dummy/README.md
245
+ - test/dummy/test/controllers/users_controller_test.rb
246
+ - test/dummy/test/fixtures/users.yml
247
+ - test/dummy/test/helpers/users_helper_test.rb
248
+ - test/dummy/test/models/user_test.rb
249
+ - test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
250
+ - test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
251
+ - test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953
252
+ - test/dummy/tmp/cache/assets/test/sprockets/371bf96e99717688ed7313a0c53f4212
253
+ - test/dummy/tmp/cache/assets/test/sprockets/4050a4e5062ab95c9f32e9b6940821ea
254
+ - test/dummy/tmp/cache/assets/test/sprockets/5f1a0d05e77ca8b9a1fc2a47e17a8174
255
+ - test/dummy/tmp/cache/assets/test/sprockets/6fc757c2c8329244ca95d6909865bbc2
256
+ - test/dummy/tmp/cache/assets/test/sprockets/87b209c0c9da28094a8d5581a21262c6
257
+ - test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994
258
+ - test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
259
+ - test/dummy/tmp/cache/assets/test/sprockets/f56253b5f374fff1a33fbbc9881c9124
260
+ - test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
261
+ - test/test_helper.rb
262
+ has_rdoc: