dldinternet-mixlib-thor 0.9.3 → 0.9.4
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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/dldinternet/thor/mixins/no_commands.rb +14 -0
- 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: 17f0d66ea9bdaf6e66e65b6bf95f471f52f90957
|
|
4
|
+
data.tar.gz: a7aef7270e074127f556925aa1866aafd8cdbc58
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3d2b6865dc809b2f457b33fd34e7afe2ab93dee20ccbcf55d6dad5753dccbe60bf1f9449ca4737bfbbd8bf50e7461312c59cc75d202de79b019f9184f84ff98e
|
|
7
|
+
data.tar.gz: 9281d7d5fb3100aa5a782d9302e2b38ff6416ff77d38f82f2ca7615f0572369988d9abe24d94c148b148c6f53976dbaba07fa82ba36a89ba922589973859790d
|
data/Gemfile.lock
CHANGED
|
@@ -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|
|
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.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-
|
|
11
|
+
date: 2017-10-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: thor
|