capistrano_multiconfig_parallel 0.1.0 → 0.1.1

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: 7e02536cc3ccf434baaac3f46f7b84b91d6eda10
4
- data.tar.gz: 0631bf39e10f727ac6180498b18e5f997a4cf610
3
+ metadata.gz: 7a30b233e5f7beece5619288c0e1a1ef76d07732
4
+ data.tar.gz: d55a513c318de79c2a6b48d5f3ad7ad5aa5dd6fe
5
5
  SHA512:
6
- metadata.gz: f1fe7728cd4b3ccee8d7b698707e0bf2dac2668552f37b0eaae8dda5d317dace22acc607b3f081f466bb6eb485c8b690b45072ee19998bc2ed253dcba25240f9
7
- data.tar.gz: 43cc88221c00e64976f2d2a367e3704ad7ce2c9b2b406e63765d3ed7fc8e7f19601cad34da711ae957dbee0c0a3803a59e16c08d3a153e7f2214485b83fe537f
6
+ metadata.gz: 969514ddfa7cf94e6e6f53cfa14e8d52ccd6cf08685030503b44a17371ea08056df48c34ecd562c7db5c8ef1264ba4570d4f31bf9379b824b373e764d7acbe0c
7
+ data.tar.gz: 30f200926251cb95ab733aa181bc55601093e2e72dbec8d7e382b47eabcaa91763b1dc8ee44aadc83e8ed414fd3cbf09569b6530f7972466fe0a821c32f40bb3
@@ -87,11 +87,11 @@ module CapistranoMulticonfigParallel
87
87
  try_detect_capfile
88
88
  end
89
89
  end
90
-
90
+
91
91
  def try_detect_capfile
92
92
  root = Pathname.new(FileUtils.pwd)
93
93
  root = root.parent unless root.directory?
94
- root = root.parent until File.exist?(root.join('Capfile')) || root.root?
94
+ root = root.parent until root.children.find{|f| f.file? && f.basename.to_s.downcase == "capfile"}.present? || root.root?
95
95
  raise "Can't detect Rails application root" if root.root?
96
96
  root
97
97
  end
@@ -13,9 +13,10 @@ module CapistranoMulticonfigParallel
13
13
  command_line_params.each do |param|
14
14
  @config.define param[:name], type: param[:type], description: param[:description], default: param[:default]
15
15
  end
16
- @config.merge(Settings.use(:commandline).resolve!)
16
+
17
17
  @config.read config_file if File.file?(config_file)
18
-
18
+ @config.merge(Settings.use(:commandline).resolve!)
19
+
19
20
  @config.use :config_block
20
21
  @config.finally do |c|
21
22
  check_configuration(c)
@@ -8,7 +8,7 @@ module CapistranoMulticonfigParallel
8
8
  module VERSION
9
9
  MAJOR = 0
10
10
  MINOR = 1
11
- TINY = 0
11
+ TINY = 1
12
12
  PRE = nil
13
13
 
14
14
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano_multiconfig_parallel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - bogdanRada