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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/dldinternet/thor/mixins/no_commands.rb +24 -15
- data/lib/dldinternet/thor/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6501301a8f2c7566f65e895f880a3aa19919fc04
|
4
|
+
data.tar.gz: 910544b4e9d93047aea3d2f0c079456cf5cf4847
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e2954765ff984fe2a91a7ccbe970434ac124d0a0ec144c127c16b49bfb594f38e8d020d487e79f8c035832b22979e167e9fca82a6d551782a2c48f2e1ff5638
|
7
|
+
data.tar.gz: 22c74ee41bb07cbd3fb4863a7effaf013298a37f80347285867e3670c086106deee927d01330e5437325f252f3fa22846f720ae9454337afe5bf1abdb7889667
|
data/Gemfile.lock
CHANGED
@@ -432,21 +432,7 @@ module DLDInternet
|
|
432
432
|
options[:stubber] = options[:stubber].map(&:to_sym)
|
433
433
|
end
|
434
434
|
if options[:vcr]
|
435
|
-
|
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
|
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.
|
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-
|
11
|
+
date: 2017-10-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|