scaffold_pico 2.2.0 → 2.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/scaffold/cli.rb +1 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 51d27ed6f4eaf2d79803724fb2eec7c47a7ed79b3e8510d646a7957cd807f429
4
- data.tar.gz: 5ae4293af62180a821fa4ccbb726ad9a697f0d7a1d2d2abb6ca3dc595b549ecc
3
+ metadata.gz: f40c45aedc54a1d8b3d4ff82328f5d761178d50c7cd4831dad57c998aab869a0
4
+ data.tar.gz: 3fe140a777902bc7e23ef277d27feb841303c0c9ebf817879c45dfbc93c969b7
5
5
  SHA512:
6
- metadata.gz: f5fcaa0c06bcc728d62d53a8700168d35b602e1f108c02ca5b5b41fc5bf2c0ff928c1f8ae422b3e76c268888d05ede3b7d0db3fc25064f01f03c4436d4db9fbb
7
- data.tar.gz: f111655ade0c1a363cb5b4cc3c3b866bb22f7710b731adcae403f5961fd4d76979c7b64d18d0d6f041f5697167816da5a1bdaf5803f34b0e5b9fad586a5d988d
6
+ metadata.gz: 9d92d5cd66c69f825c406de7d252436238e212362c3d001a507dc204ce15848b8f7ac71686a59d057f501963d933207baf9ee52822f7120390b94c89a9f93d83
7
+ data.tar.gz: b3780c528fabe7d0fc73104bb9c084a5004332b37cce3578f75023b6dd178ccbfc7aa01a8da6235b7fefdec11b93691b384f7f3ac11a52bbdfc5aa6ff64366a9
@@ -54,7 +54,7 @@ module Scaffold
54
54
  validate /\A(?:::)?([A-Z]\w*(?:::[A-Z]\w*)*)\z/
55
55
  end
56
56
 
57
- option :no_model, :required => true do
57
+ option :no_model do
58
58
  long '--no-model'
59
59
  desc 'Do not generate file. It can help when you need to recreate the views on a model which already exists and have some code'
60
60
  end
@@ -129,11 +129,9 @@ module Scaffold
129
129
  end
130
130
 
131
131
  end
132
-
133
132
  end
134
133
 
135
134
  def run
136
-
137
135
  if Choice[:model]
138
136
  add_custom_inflection(Choice.choices[:custom_inflection]) if Choice.choices[:custom_inflection]
139
137
  scaffold = Scaffold::Main.new(Choice.choices)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scaffold_pico
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - gudata