scaffold_pico 1.1.1 → 1.1.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: df0411ec77af7a5a9029ab4d415d93d7dff531db
4
- data.tar.gz: 2e490e8d45236a2556117e3c0d97dccfc22b83dd
3
+ metadata.gz: f36cb646a4da439d33b5810bc496d2583712842c
4
+ data.tar.gz: ce79537d8d94ffc1ad8670373c11be53b9d30a0a
5
5
  SHA512:
6
- metadata.gz: 698ca572ec89af25554caa8c40929172ef7ffb8752db0213e4c96fa7c94e9e07a77679426070e315b5fcfd30f77efa4636618ead2c8dc97962ec8997639effd1
7
- data.tar.gz: 2a14f3e834ad40d8f88a48c7727b65504df845722cca4e1f3b4f292805279ccc1877bac82c783d4e7e452786e29466439f6fee88fd68a1a8548f468094959ce4
6
+ metadata.gz: 062c6ce2aa74ccc27e47e22290bf891dbca524cd176e1fe96566b011c134a6a563a450134b8a9d17f8b3cfe3f6eb802488a92347784e9ac360ac1243eadb1455
7
+ data.tar.gz: 7d1cac1667b634dbdc8cc623e3b9cca0aa5d7de10a687047ae5b64d3e21de41a06bcd122385f9b5ed13c4e7822618446ec64a43774142b7f31c46307169e3036
data/lib/scaffold/cli.rb CHANGED
@@ -128,8 +128,9 @@ module Scaffold
128
128
  end
129
129
 
130
130
  def run
131
+
131
132
  if Choice[:model]
132
- add_custom_inflection(Choice.choices[:custom_inflection])
133
+ add_custom_inflection(Choice.choices[:custom_inflection]) if Choice.choices[:custom_inflection]
133
134
  scaffold = Scaffold::Main.new(Choice.choices)
134
135
  scaffold.run
135
136
  else
@@ -26,9 +26,6 @@ module Scaffold
26
26
 
27
27
  # CompanyOwnership
28
28
  def class_name
29
- puts "----"
30
- puts @class_name
31
- puts @class_name.singularize
32
29
  @class_name.singularize
33
30
  end
34
31
 
@@ -37,7 +37,9 @@ module Scaffold
37
37
 
38
38
  # Admin::ClassRooms::Etc
39
39
  def namespaces_as_modules
40
- namespaces_as_path.join.camelize
40
+ puts "namespaces_as_path: #{namespaces_as_path}"
41
+ puts "namespaces_as_path.join.camelize: #{namespaces_as_path.map(&:camelize).join('::')}"
42
+ namespaces_as_path.map(&:camelize).join('::')
41
43
  end
42
44
 
43
45
  # ['admin', 'classrooms' ]
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: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - gudata