convox_installer 1.0.5 → 1.0.6

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
  SHA256:
3
- metadata.gz: 5345711a90e7cecdec9c71515d69d3f95fd4c0affb22f1d051df39fec2516ee8
4
- data.tar.gz: c5a13ba2debfe09fc3fbd12e42122ff634c8c79c4b71998a6fb0b2918151e568
3
+ metadata.gz: 5a1bcd87ec2ab1bd0c720397964e8e641ad70017b582e8f72b3ea1c019f33cfc
4
+ data.tar.gz: ccc5bdfc3a20b4107d2fca2712b0d1268ce86ae40946a11bc4ed38f71b2a7021
5
5
  SHA512:
6
- metadata.gz: 796672165a830c97015603c1679d678205ca47fbb3a01d06521f799b70b6fee7953d5869dac59b01b4a4653400f071932fb0c532cf0e85b193018155ce5a2395
7
- data.tar.gz: d274bbddfb216fe0201b4c4b55143ef52f1eb45cc1863ec9bb8791ae86ff034449a94e1138736462d18c01c1750f094f6a7a34dc2e3c7c613fb11abb818ad25c
6
+ metadata.gz: 8f68b7a76cdc88e96b7cc4e2d24f02c28e95701481f4c33b58a72e2ef691295045fec93bdc39261827ffe510fdadf9c4e7faa0ad832ba31d5eb81fffc0288263
7
+ data.tar.gz: 0f6743f60a94e60ab3e82e94daa853ce5c624cf8f67d508a18e5fa0428748d8798c86487be87b17f9a5b7471c822eb9e5998b9eefa59cb209a1551f36dc99fa4
@@ -8,7 +8,7 @@ require "securerandom"
8
8
  module ConvoxInstaller
9
9
  class Config
10
10
  CONFIG_FILE = File.expand_path("./.installer_config").freeze
11
-
11
+
12
12
  attr_accessor :logger, :config, :prompts, :highline
13
13
 
14
14
  DEFAULT_PROMPTS = [
@@ -129,7 +129,7 @@ module ConvoxInstaller
129
129
  return if config[key]
130
130
 
131
131
  default = prompt[:value]
132
- config[key] = default.is_a?(Proc) ? default.call : default
132
+ config[key] = default.is_a?(Proc) ? default.call(config) : default
133
133
  save_config_to_file
134
134
  return
135
135
  end
@@ -169,9 +169,9 @@ module ConvoxInstaller
169
169
  end
170
170
 
171
171
  def save_config_to_file
172
- FileUtils.mkdir_p File.expand_path("~/.convox")
172
+ # FileUtils.mkdir_p File.expand_path("~/.convox")
173
173
  File.open(CONFIG_FILE, "w") do |f|
174
- f.puts({config: config}.to_json)
174
+ f.puts({ config: config }.to_json)
175
175
  end
176
176
  end
177
177
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ConvoxInstaller
4
- VERSION = "1.0.5"
4
+ VERSION = "1.0.6"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: convox_installer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Form Applications Inc.