dldinternet-mixlib-thor 0.9.7 → 0.9.8

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: 6e5ba54bf28a5b3d2f84d8bf44f4a21a0f1c3507
4
- data.tar.gz: 019128f542d4937349ac51e08128b4db6241f5de
3
+ metadata.gz: 6501301a8f2c7566f65e895f880a3aa19919fc04
4
+ data.tar.gz: 910544b4e9d93047aea3d2f0c079456cf5cf4847
5
5
  SHA512:
6
- metadata.gz: a579a8386e3b76f1c31fde30928b9448b2dcee4d0b579e122ba7e42576baef8e6b8d97b121086901784c0ddfcee78dd79fd6b5c7b556ab410d2f3e5d3f89675e
7
- data.tar.gz: 3aef7d90cb44e20d2a5fc5beca05ce96365709bce0e6969b01c903ac2f3ed659f46ffd53f825c8c56afaf814e701b759b060c137ab2b787eed98a70c250b8162
6
+ metadata.gz: 0e2954765ff984fe2a91a7ccbe970434ac124d0a0ec144c127c16b49bfb594f38e8d020d487e79f8c035832b22979e167e9fca82a6d551782a2c48f2e1ff5638
7
+ data.tar.gz: 22c74ee41bb07cbd3fb4863a7effaf013298a37f80347285867e3670c086106deee927d01330e5437325f252f3fa22846f720ae9454337afe5bf1abdb7889667
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dldinternet-mixlib-thor (0.9.7)
4
+ dldinternet-mixlib-thor (0.9.8)
5
5
  activesupport (~> 5.1, >= 5.1.4)
6
6
  awesome_print
7
7
  command_line_reporter (~> 3.3, >= 3.3.6)
@@ -432,21 +432,7 @@ module DLDInternet
432
432
  options[:stubber] = options[:stubber].map(&:to_sym)
433
433
  end
434
434
  if options[:vcr]
435
- unless options[:cassette_path]
436
- if ENV.has_key?('VCR_CASSETTE_PATH')
437
- options[:cassette_path] = ENV['VCR_CASSETTE_PATH']
438
- end
439
- end
440
- unless %r{^#{File::SEPARATOR}}.match?(options[:cassette_path])
441
- if File.dirname($0).eql?(Dir.pwd)
442
- @logger.error "Saving fixtures to #{Dir.pwd}!"
443
- exit 1
444
- end
445
- end
446
- unless options[:cassette_path]
447
- options[:cassette_path] = vcr_default_cassette_path
448
- end
449
- options[:cassette_path] = File.expand_path(options[:cassette_path])
435
+ command_pre_vcr_cassette_path
450
436
 
451
437
  command_pre_config_vcr
452
438
  opts = args[0].is_a?(Hash) ? args.shift : {}
@@ -456,6 +442,29 @@ module DLDInternet
456
442
  yield if block_given?
457
443
  end
458
444
 
445
+ def command_pre_vcr_cassette_path
446
+ return if @command_pre_vcr_cassette_path
447
+
448
+ cassette_path = options[:cassette_path]
449
+ unless cassette_path
450
+ if ENV.has_key?('VCR_CASSETTE_PATH')
451
+ cassette_path = ENV['VCR_CASSETTE_PATH']
452
+ end
453
+ end
454
+ unless %r{^#{File::SEPARATOR}}.match?(cassette_path)
455
+ if File.dirname($0).eql?(Dir.pwd)
456
+ @logger.error "Saving fixtures to #{Dir.pwd}!"
457
+ exit 1
458
+ end
459
+ end
460
+ unless cassette_path
461
+ cassette_path = vcr_default_cassette_path
462
+ end
463
+ options[:cassette_path] = File.expand_path(cassette_path)
464
+ @command_pre_vcr_cassette_path = true
465
+ cassette_path
466
+ end
467
+
459
468
  def vcr_default_cassette_path
460
469
  '~/vcr_cassettes'
461
470
  end
@@ -1,7 +1,7 @@
1
1
  module Dldinternet
2
2
  module Mixlib
3
3
  module Thor
4
- VERSION = '0.9.7'
4
+ VERSION = '0.9.8'
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.7
4
+ version: 0.9.8
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-17 00:00:00.000000000 Z
11
+ date: 2017-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor