daddy 0.1.24 → 0.1.25

Sign up to get free protection for your applications and to get access to all the features.
@@ -18,7 +18,8 @@ namespace :dad do
18
18
  end
19
19
 
20
20
  @resource = @resources.singularize
21
- @model_class = @resource.capitalize.constantize
21
+ @model_class = @resource.classify.constantize
22
+ @controller_name = @resources.split('_').map{|a| a.capitalize}.join
22
23
 
23
24
  template = File.join(File.dirname(__FILE__), 'templates', 'controller.rb.erb')
24
25
  controller_file = "#{Rails.root}/app/controllers/#{@resources}_controller.rb"
@@ -1,6 +1,6 @@
1
1
  # coding: UTF-8
2
2
 
3
- class <%= @resources.capitalize %>Controller < ApplicationController
3
+ class <%= @controller_name %>Controller < ApplicationController
4
4
 
5
5
  def index
6
6
  @<%= @resources %> = <%= @model_class %>.not_deleted
metadata CHANGED
@@ -1,18 +1,20 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: daddy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.24
4
+ version: 0.1.25
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - ichy
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2013-12-05 00:00:00.000000000 Z
12
+ date: 2014-01-08 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: capybara
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
19
  - - ! '>='
18
20
  - !ruby/object:Gem::Version
@@ -20,6 +22,7 @@ dependencies:
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
27
  - - ! '>='
25
28
  - !ruby/object:Gem::Version
@@ -27,6 +30,7 @@ dependencies:
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: cucumber
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
35
  - - ! '>='
32
36
  - !ruby/object:Gem::Version
@@ -34,6 +38,7 @@ dependencies:
34
38
  type: :runtime
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
43
  - - ! '>='
39
44
  - !ruby/object:Gem::Version
@@ -41,6 +46,7 @@ dependencies:
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: cucumber-rails
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
51
  - - ! '>='
46
52
  - !ruby/object:Gem::Version
@@ -48,6 +54,7 @@ dependencies:
48
54
  type: :runtime
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
51
58
  requirements:
52
59
  - - ! '>='
53
60
  - !ruby/object:Gem::Version
@@ -55,6 +62,7 @@ dependencies:
55
62
  - !ruby/object:Gem::Dependency
56
63
  name: ci_reporter
57
64
  requirement: !ruby/object:Gem::Requirement
65
+ none: false
58
66
  requirements:
59
67
  - - ! '>='
60
68
  - !ruby/object:Gem::Version
@@ -62,6 +70,7 @@ dependencies:
62
70
  type: :runtime
63
71
  prerelease: false
64
72
  version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
65
74
  requirements:
66
75
  - - ! '>='
67
76
  - !ruby/object:Gem::Version
@@ -69,6 +78,7 @@ dependencies:
69
78
  - !ruby/object:Gem::Dependency
70
79
  name: database_cleaner
71
80
  requirement: !ruby/object:Gem::Requirement
81
+ none: false
72
82
  requirements:
73
83
  - - ! '>='
74
84
  - !ruby/object:Gem::Version
@@ -76,6 +86,7 @@ dependencies:
76
86
  type: :runtime
77
87
  prerelease: false
78
88
  version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
79
90
  requirements:
80
91
  - - ! '>='
81
92
  - !ruby/object:Gem::Version
@@ -83,6 +94,7 @@ dependencies:
83
94
  - !ruby/object:Gem::Dependency
84
95
  name: differ
85
96
  requirement: !ruby/object:Gem::Requirement
97
+ none: false
86
98
  requirements:
87
99
  - - ! '>='
88
100
  - !ruby/object:Gem::Version
@@ -90,6 +102,7 @@ dependencies:
90
102
  type: :runtime
91
103
  prerelease: false
92
104
  version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
93
106
  requirements:
94
107
  - - ! '>='
95
108
  - !ruby/object:Gem::Version
@@ -97,6 +110,7 @@ dependencies:
97
110
  - !ruby/object:Gem::Dependency
98
111
  name: execjs
99
112
  requirement: !ruby/object:Gem::Requirement
113
+ none: false
100
114
  requirements:
101
115
  - - ! '>='
102
116
  - !ruby/object:Gem::Version
@@ -104,6 +118,7 @@ dependencies:
104
118
  type: :runtime
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
107
122
  requirements:
108
123
  - - ! '>='
109
124
  - !ruby/object:Gem::Version
@@ -111,6 +126,7 @@ dependencies:
111
126
  - !ruby/object:Gem::Dependency
112
127
  name: faraday
113
128
  requirement: !ruby/object:Gem::Requirement
129
+ none: false
114
130
  requirements:
115
131
  - - ! '>='
116
132
  - !ruby/object:Gem::Version
@@ -118,6 +134,7 @@ dependencies:
118
134
  type: :runtime
119
135
  prerelease: false
120
136
  version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
121
138
  requirements:
122
139
  - - ! '>='
123
140
  - !ruby/object:Gem::Version
@@ -125,6 +142,7 @@ dependencies:
125
142
  - !ruby/object:Gem::Dependency
126
143
  name: holiday_jp
127
144
  requirement: !ruby/object:Gem::Requirement
145
+ none: false
128
146
  requirements:
129
147
  - - ! '>='
130
148
  - !ruby/object:Gem::Version
@@ -132,6 +150,7 @@ dependencies:
132
150
  type: :runtime
133
151
  prerelease: false
134
152
  version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
135
154
  requirements:
136
155
  - - ! '>='
137
156
  - !ruby/object:Gem::Version
@@ -139,6 +158,7 @@ dependencies:
139
158
  - !ruby/object:Gem::Dependency
140
159
  name: poltergeist
141
160
  requirement: !ruby/object:Gem::Requirement
161
+ none: false
142
162
  requirements:
143
163
  - - ! '>='
144
164
  - !ruby/object:Gem::Version
@@ -146,6 +166,7 @@ dependencies:
146
166
  type: :runtime
147
167
  prerelease: false
148
168
  version_requirements: !ruby/object:Gem::Requirement
169
+ none: false
149
170
  requirements:
150
171
  - - ! '>='
151
172
  - !ruby/object:Gem::Version
@@ -153,6 +174,7 @@ dependencies:
153
174
  - !ruby/object:Gem::Dependency
154
175
  name: rails
155
176
  requirement: !ruby/object:Gem::Requirement
177
+ none: false
156
178
  requirements:
157
179
  - - ~>
158
180
  - !ruby/object:Gem::Version
@@ -160,6 +182,7 @@ dependencies:
160
182
  type: :runtime
161
183
  prerelease: false
162
184
  version_requirements: !ruby/object:Gem::Requirement
185
+ none: false
163
186
  requirements:
164
187
  - - ~>
165
188
  - !ruby/object:Gem::Version
@@ -167,6 +190,7 @@ dependencies:
167
190
  - !ruby/object:Gem::Dependency
168
191
  name: rails-i18n
169
192
  requirement: !ruby/object:Gem::Requirement
193
+ none: false
170
194
  requirements:
171
195
  - - ! '>='
172
196
  - !ruby/object:Gem::Version
@@ -174,6 +198,7 @@ dependencies:
174
198
  type: :runtime
175
199
  prerelease: false
176
200
  version_requirements: !ruby/object:Gem::Requirement
201
+ none: false
177
202
  requirements:
178
203
  - - ! '>='
179
204
  - !ruby/object:Gem::Version
@@ -181,6 +206,7 @@ dependencies:
181
206
  - !ruby/object:Gem::Dependency
182
207
  name: selenium-webdriver
183
208
  requirement: !ruby/object:Gem::Requirement
209
+ none: false
184
210
  requirements:
185
211
  - - ! '>='
186
212
  - !ruby/object:Gem::Version
@@ -188,6 +214,7 @@ dependencies:
188
214
  type: :runtime
189
215
  prerelease: false
190
216
  version_requirements: !ruby/object:Gem::Requirement
217
+ none: false
191
218
  requirements:
192
219
  - - ! '>='
193
220
  - !ruby/object:Gem::Version
@@ -195,6 +222,7 @@ dependencies:
195
222
  - !ruby/object:Gem::Dependency
196
223
  name: simplecov
197
224
  requirement: !ruby/object:Gem::Requirement
225
+ none: false
198
226
  requirements:
199
227
  - - ! '>='
200
228
  - !ruby/object:Gem::Version
@@ -202,6 +230,7 @@ dependencies:
202
230
  type: :runtime
203
231
  prerelease: false
204
232
  version_requirements: !ruby/object:Gem::Requirement
233
+ none: false
205
234
  requirements:
206
235
  - - ! '>='
207
236
  - !ruby/object:Gem::Version
@@ -209,6 +238,7 @@ dependencies:
209
238
  - !ruby/object:Gem::Dependency
210
239
  name: simplecov-rcov
211
240
  requirement: !ruby/object:Gem::Requirement
241
+ none: false
212
242
  requirements:
213
243
  - - ! '>='
214
244
  - !ruby/object:Gem::Version
@@ -216,6 +246,7 @@ dependencies:
216
246
  type: :runtime
217
247
  prerelease: false
218
248
  version_requirements: !ruby/object:Gem::Requirement
249
+ none: false
219
250
  requirements:
220
251
  - - ! '>='
221
252
  - !ruby/object:Gem::Version
@@ -223,6 +254,7 @@ dependencies:
223
254
  - !ruby/object:Gem::Dependency
224
255
  name: term-ansicolor
225
256
  requirement: !ruby/object:Gem::Requirement
257
+ none: false
226
258
  requirements:
227
259
  - - ! '>='
228
260
  - !ruby/object:Gem::Version
@@ -230,6 +262,7 @@ dependencies:
230
262
  type: :runtime
231
263
  prerelease: false
232
264
  version_requirements: !ruby/object:Gem::Requirement
265
+ none: false
233
266
  requirements:
234
267
  - - ! '>='
235
268
  - !ruby/object:Gem::Version
@@ -237,6 +270,7 @@ dependencies:
237
270
  - !ruby/object:Gem::Dependency
238
271
  name: rails-csv-fixtures
239
272
  requirement: !ruby/object:Gem::Requirement
273
+ none: false
240
274
  requirements:
241
275
  - - ! '>='
242
276
  - !ruby/object:Gem::Version
@@ -244,6 +278,7 @@ dependencies:
244
278
  type: :development
245
279
  prerelease: false
246
280
  version_requirements: !ruby/object:Gem::Requirement
281
+ none: false
247
282
  requirements:
248
283
  - - ! '>='
249
284
  - !ruby/object:Gem::Version
@@ -255,100 +290,101 @@ executables:
255
290
  extensions: []
256
291
  extra_rdoc_files: []
257
292
  files:
258
- - lib/daddy.rb
259
- - lib/daddy/cucumber.rb
260
- - lib/daddy/cucumber/pause.rb
261
- - lib/daddy/cucumber/puts.rb
262
- - lib/daddy/cucumber/capture.rb
263
- - lib/daddy/cucumber/formatting.rb
293
+ - lib/ssl/cert.pem
294
+ - lib/tasks/dad.rake
295
+ - lib/tasks/tesseract.rake
296
+ - lib/tasks/db_config.rake
297
+ - lib/tasks/generate/routes.rake
298
+ - lib/tasks/generate/templates/controller.rb.erb
299
+ - lib/tasks/generate/templates/show.html.erb
300
+ - lib/tasks/generate/templates/edit.html.erb
301
+ - lib/tasks/generate/templates/new.html.erb
302
+ - lib/tasks/generate/templates/_form.html.erb
303
+ - lib/tasks/generate/templates/index.html.erb
304
+ - lib/tasks/generate/templates/routes.rb.erb
305
+ - lib/tasks/generate/controller.rake
306
+ - lib/tasks/generate/view.rake
307
+ - lib/tasks/nginx.app.conf.erb
308
+ - lib/tasks/unicorn.erb
309
+ - lib/tasks/jenkins
310
+ - lib/tasks/nginx.rake
311
+ - lib/tasks/db_fixtures.rake
312
+ - lib/tasks/cucumber.rake
313
+ - lib/tasks/jenkins.conf
314
+ - lib/tasks/cucumber_install.rake
315
+ - lib/tasks/database.yml.erb
316
+ - lib/tasks/nginx.repo
317
+ - lib/tasks/phantomjs.rake
318
+ - lib/tasks/test.rake
319
+ - lib/tasks/nginx.conf.erb
320
+ - lib/tasks/db_create.rake
321
+ - lib/tasks/nginx.jenkins.conf.erb
322
+ - lib/tasks/publish.rake
323
+ - lib/tasks/jenkins.rake
324
+ - lib/tasks/cucumber_steps.rake
325
+ - lib/tasks/unicorn.rake
326
+ - lib/tasks/diary.rake
327
+ - lib/tasks/unicorn.rb.erb
328
+ - lib/daddy/ocr.rb
329
+ - lib/daddy/railtie.rb
330
+ - lib/daddy/cucumber/diff.rb
264
331
  - lib/daddy/cucumber/html.rb
265
332
  - lib/daddy/cucumber/hooks/database.rb
266
- - lib/daddy/cucumber/step_definitions/fill_in.rb
267
- - lib/daddy/cucumber/step_definitions/select.rb
333
+ - lib/daddy/cucumber/capture.rb
334
+ - lib/daddy/cucumber/puts.rb
335
+ - lib/daddy/cucumber/assert.rb
336
+ - lib/daddy/cucumber/formatting.rb
337
+ - lib/daddy/cucumber/pause.rb
268
338
  - lib/daddy/cucumber/step_definitions/click.rb
339
+ - lib/daddy/cucumber/step_definitions/select.rb
340
+ - lib/daddy/cucumber/step_definitions/fill_in.rb
269
341
  - lib/daddy/cucumber/step_definitions/common.rb
270
- - lib/daddy/cucumber/assert.rb
271
342
  - lib/daddy/cucumber/table.rb
272
- - lib/daddy/cucumber/diff.rb
273
- - lib/daddy/helpers/html_helper.rb
274
- - lib/daddy/capistrano/remote_cache_subdir.rb
275
- - lib/daddy/http_client.rb
276
- - lib/daddy/ocr.rb
277
- - lib/daddy/git.rb
278
- - lib/daddy/rails/quiet_assets.rb
279
- - lib/daddy/model.rb
280
- - lib/daddy/formatter/menu.html.erb
343
+ - lib/daddy/formatter/daddy.js
344
+ - lib/daddy/formatter/cucumber.css
281
345
  - lib/daddy/formatter/html.rb
282
- - lib/daddy/formatter/daddy_html.rb
283
346
  - lib/daddy/formatter/daddy.css
284
- - lib/daddy/formatter/cucumber.css
285
- - lib/daddy/formatter/daddy.js
347
+ - lib/daddy/formatter/menu.html.erb
348
+ - lib/daddy/formatter/daddy_html.rb
286
349
  - lib/daddy/formatter/jquery-min.js
287
- - lib/daddy/railtie.rb
350
+ - lib/daddy/differ/html_patch.rb
351
+ - lib/daddy/rails/quiet_assets.rb
288
352
  - lib/daddy/models/crud_extension.rb
289
353
  - lib/daddy/models/query_extension.rb
290
- - lib/daddy/differ/html_patch.rb
354
+ - lib/daddy/git.rb
355
+ - lib/daddy/capistrano/remote_cache_subdir.rb
356
+ - lib/daddy/helpers/html_helper.rb
291
357
  - lib/daddy/utils/sql_utils.rb
292
358
  - lib/daddy/utils/string_utils.rb
359
+ - lib/daddy/http_client.rb
360
+ - lib/daddy/model.rb
361
+ - lib/daddy/cucumber.rb
362
+ - lib/daddy.rb
293
363
  - lib/sql_builder.rb
294
- - lib/ssl/cert.pem
295
- - lib/tasks/tesseract.rake
296
- - lib/tasks/jenkins
297
- - lib/tasks/nginx.repo
298
- - lib/tasks/nginx.jenkins.conf.erb
299
- - lib/tasks/jenkins.rake
300
- - lib/tasks/dad.rake
301
- - lib/tasks/db_config.rake
302
- - lib/tasks/publish.rake
303
- - lib/tasks/cucumber_steps.rake
304
- - lib/tasks/unicorn.rb.erb
305
- - lib/tasks/db_fixtures.rake
306
- - lib/tasks/cucumber.rake
307
- - lib/tasks/nginx.rake
308
- - lib/tasks/jenkins.conf
309
- - lib/tasks/generate/routes.rake
310
- - lib/tasks/generate/controller.rake
311
- - lib/tasks/generate/view.rake
312
- - lib/tasks/generate/templates/index.html.erb
313
- - lib/tasks/generate/templates/show.html.erb
314
- - lib/tasks/generate/templates/routes.rb.erb
315
- - lib/tasks/generate/templates/edit.html.erb
316
- - lib/tasks/generate/templates/new.html.erb
317
- - lib/tasks/generate/templates/controller.rb.erb
318
- - lib/tasks/generate/templates/_form.html.erb
319
- - lib/tasks/cucumber_install.rake
320
- - lib/tasks/unicorn.rake
321
- - lib/tasks/diary.rake
322
- - lib/tasks/db_create.rake
323
- - lib/tasks/unicorn.erb
324
- - lib/tasks/test.rake
325
- - lib/tasks/phantomjs.rake
326
- - lib/tasks/database.yml.erb
327
- - lib/tasks/nginx.app.conf.erb
328
- - lib/tasks/nginx.conf.erb
329
364
  - bin/dad
330
365
  homepage: https://github.com/ichylinux/daddy
331
366
  licenses:
332
367
  - MIT
333
- metadata: {}
334
368
  post_install_message:
335
369
  rdoc_options: []
336
370
  require_paths:
337
371
  - lib
338
372
  required_ruby_version: !ruby/object:Gem::Requirement
373
+ none: false
339
374
  requirements:
340
375
  - - ! '>='
341
376
  - !ruby/object:Gem::Version
342
377
  version: '0'
343
378
  required_rubygems_version: !ruby/object:Gem::Requirement
379
+ none: false
344
380
  requirements:
345
381
  - - ! '>='
346
382
  - !ruby/object:Gem::Version
347
383
  version: '0'
348
384
  requirements: []
349
385
  rubyforge_project:
350
- rubygems_version: 2.0.3
386
+ rubygems_version: 1.8.24
351
387
  signing_key:
352
- specification_version: 4
388
+ specification_version: 3
353
389
  summary: My rails dad
354
390
  test_files: []
checksums.yaml DELETED
@@ -1,15 +0,0 @@
1
- ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- MTc3MWEzMzY3ZjJmOTAyOWU3NWI4MTEyY2Q4YzZlYzRlYWQ2MTgxMg==
5
- data.tar.gz: !binary |-
6
- NzQ5MDc4ZjU5MDNkYTAzZGY0OTliMTg0MTYxNmU2MzM4ZmY1YjZjOQ==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- N2I2YTk1Y2QzODc4ZWIzMzUzNDZjMDdkNzQ0MDhkMzk1M2IwOTExN2E3MWE4
10
- MDJlOTdiNWM2NmY1ZDcxYzlhOTU5NjdhZGExMzFkNzRmYjhmMGM2NmVkYzdl
11
- ZDFhZjY2ZDhiMTJlM2E5NjI4Njg5ZmMyMzU0NjJmY2MzNjkzMGI=
12
- data.tar.gz: !binary |-
13
- NzI0NjY1NWQ4MWMwMjJhMmIwMmE0Y2ZlM2FjZjgzNDZjOWJhYzVjN2IxZTJk
14
- Y2MwNzg0OTIwYTczMDgzMTZkNDYxN2U0OTkxYzk4M2QzMDVjYjM3MmNmN2U0
15
- NDI1ODVkMjg0YjIzZDdlZjg0NzY5YjhiZTA0ZjczYjY5NzVlNWY=