factor 0.6.10 → 0.6.11

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: e71fc0af84aa1324f0016fbb019121a7d66c3d16
4
- data.tar.gz: 8d55cf33c115ba4ac8ba2874729dc312327e2a64
3
+ metadata.gz: 36c23f1f0ce338d92f5ef0e35df3671728804c47
4
+ data.tar.gz: d1515bccab6a1cc9d36da649023945d430a3dbee
5
5
  SHA512:
6
- metadata.gz: 5af56e303df9e6246bc2955b244694e5284ba71fd7adc2747f28fe687a0861557e08ae0a882010dd28ed932edc8772ed9b2c6f4c58377fc7e76d228819eea5c0
7
- data.tar.gz: 960892a7e2cd328e6d1b89bd0fe5a0a992be037794b799b8a6aacbfdc8e2c78b9fefae5c156b76e0e307bb3a85a1d3221459488d25efa9d3dba69d804b253c44
6
+ metadata.gz: dc8b6b107d9e7cfc44298fa6ccc1bb3c5d530b9ccf83f82beb26aad589780ca0b37f547ca9f8bc58b2e736fd17650ff54235b639cb3c1f79b41b9cdd78f1788e
7
+ data.tar.gz: 0e6a5433690b96044aabe7a021b4406f5f23304fbd53a50731253d40ccd026742f9a8ed992034d18dcdf4c10f4672eb63cf2b4b99f2916f4eb8bf0ef57290de0
@@ -81,14 +81,17 @@ module Factor
81
81
 
82
82
  variables = {}
83
83
  config['variables'].each do |var_id,var_info|
84
- puts var_info['description'] if var_info['description']
85
84
  values = begin
86
85
  JSON.parse(options.values)
87
86
  rescue
88
87
  {}
89
88
  end
90
- variables[var_id] = values[var_id]
91
- variables[var_id] ||= ask("#{var_info['name'].bold}#{' (optional)' if var_info['optional']}: ").to_s
89
+ if values[var_id]
90
+ variables[var_id.to_s] = values[var_id]
91
+ else
92
+ puts var_info['description'] if var_info['description']
93
+ variables[var_id.to_s] = ask("#{var_info['name'].bold}#{' (optional)' if var_info['optional']}: ").to_s
94
+ end
92
95
  end
93
96
 
94
97
  begin
@@ -115,7 +118,7 @@ module Factor
115
118
  end
116
119
 
117
120
 
118
- puts "Created #{workflow_name} successfully".green
121
+ puts "Created '#{workflow_name}' successfully".green
119
122
  end
120
123
 
121
124
  private
@@ -2,5 +2,5 @@
2
2
 
3
3
  # Primary Factor.io module
4
4
  module Factor
5
- VERSION = '0.6.10'
5
+ VERSION = '0.6.11'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: factor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.10
4
+ version: 0.6.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maciej Skierkowski