dldinternet-mixlib-thor 0.9.3 → 0.9.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 95258997c1973e06dff9d2409acc07937f401438
4
- data.tar.gz: 79782f3ca2eb1b780264232bee0c0d1607d6d39d
3
+ metadata.gz: 17f0d66ea9bdaf6e66e65b6bf95f471f52f90957
4
+ data.tar.gz: a7aef7270e074127f556925aa1866aafd8cdbc58
5
5
  SHA512:
6
- metadata.gz: 48c216462ed8c6205dcb58a19d3ab692735229928a0c583eb576e03f994bcce2e0152d4a648b26982d785177998e7d52aa2618b2436067ceadc4d108c6f20fb7
7
- data.tar.gz: af9ac0d6d0104b28a82e34ec8e5b941eca02fb119cc771e74e34d49e463e4dd72b6cbebb8ccb5e5e17c44ef125f565eedb77d6e1a72a965d294099e5d0bb0134
6
+ metadata.gz: 3d2b6865dc809b2f457b33fd34e7afe2ab93dee20ccbcf55d6dad5753dccbe60bf1f9449ca4737bfbbd8bf50e7461312c59cc75d202de79b019f9184f84ff98e
7
+ data.tar.gz: 9281d7d5fb3100aa5a782d9302e2b38ff6416ff77d38f82f2ca7615f0572369988d9abe24d94c148b148c6f53976dbaba07fa82ba36a89ba922589973859790d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dldinternet-mixlib-thor (0.9.3)
4
+ dldinternet-mixlib-thor (0.9.4)
5
5
  activesupport (~> 5.1, >= 5.1.4)
6
6
  awesome_print
7
7
  command_line_reporter (~> 3.3, >= 3.3.6)
@@ -211,6 +211,7 @@ module DLDInternet
211
211
  @options[:inifile] = File.expand_path(@options[:inifile])
212
212
  load_inifile
213
213
  elsif @options[:configfile]
214
+ @options[:configfile] = File.expand_path(@options[:configfile])
214
215
  if @options[:configfile] =~ /\.ini/i
215
216
  @options[:inifile] = @options[:configfile]
216
217
  load_inifile
@@ -430,12 +431,21 @@ module DLDInternet
430
431
  options[:stubber] = options[:stubber].map(&:to_sym)
431
432
  end
432
433
  if options[:vcr]
434
+ unless options[:cassette_path]
435
+ if ENV.has_key?('VCR_CASSETTE_PATH')
436
+ options[:cassette_path] = ENV['VCR_CASSETTE_PATH']
437
+ end
438
+ end
439
+ unless options[:cassette_path]
440
+ options[:cassette_path] = vcr_default_cassette_path
441
+ end
433
442
  unless options[:cassette_path].match(%r{^#{File::SEPARATOR}})
434
443
  if File.dirname($0).eql?(Dir.pwd)
435
444
  @logger.error "Saving fixtures to #{Dir.pwd}!"
436
445
  exit 1
437
446
  end
438
447
  end
448
+ options[:cassette_path] = File.expand_path(options[:cassette_path])
439
449
 
440
450
  command_pre_config_vcr
441
451
  opts = args[0].is_a?(Hash) ? args.shift : {}
@@ -445,6 +455,10 @@ module DLDInternet
445
455
  yield if block_given?
446
456
  end
447
457
 
458
+ def vcr_default_cassette_path
459
+ '~/vcr_cassettes'
460
+ end
461
+
448
462
  def command_pre_config_vcr
449
463
  @vcr_logger ||= ::DLDInternet::Thor::VCR::Logger.new(nil, @logger)
450
464
  ::VCR.configure do |config|
@@ -1,7 +1,7 @@
1
1
  module Dldinternet
2
2
  module Mixlib
3
3
  module Thor
4
- VERSION = '0.9.3'
4
+ VERSION = '0.9.4'
5
5
 
6
6
  module Version # :nodoc: all
7
7
  MAJOR, MINOR, RELEASE, *OTHER = VERSION.split '.'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dldinternet-mixlib-thor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.3
4
+ version: 0.9.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christo De Lange
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-05 00:00:00.000000000 Z
11
+ date: 2017-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor