dpl 1.9.1.travis.2621.5 → 1.9.1.travis.2623.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dpl/provider.rb +9 -4
- data/lib/dpl/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 456d5bc93dfdc4c460d08caae5d20ee7fce368bb130512a8375e850d24e977e2
|
4
|
+
data.tar.gz: deaed28abb40f12f6a63f4fd025045f9f8c85781e6184f36c99af48d4e8734f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c4044ee45ae051bdf467d1817a15d784955304c34704e9605b831758bb0205d680bf5a115adc035eda74e6e8da1e9627e5197bcd1596ac79d0cfdbe55f4afd5
|
7
|
+
data.tar.gz: 48787e98d9905aab006f4dbe18c2cba3e63927f4d0e5c4f383059d5a35375f53e2cfa19ff541a51b5d6acab57460d7e705498c1dd1848f51dabea1aa39eb252d
|
data/lib/dpl/provider.rb
CHANGED
@@ -73,12 +73,17 @@ module DPL
|
|
73
73
|
require "dpl/provider/#{PROVIDERS[name]}"
|
74
74
|
provider = const_get(name).new(context, options)
|
75
75
|
rescue NameError, LoadError => e
|
76
|
-
if /uninitialized constant DPL::Provider::(?<provider_wanted>\S+)/ =~ e.message
|
77
|
-
|
76
|
+
if /uninitialized constant DPL::Provider::(?<provider_wanted>\S+)/ =~ e.message ||
|
77
|
+
provider_gem_name = PROVIDERS[provider_wanted]
|
78
|
+
elsif %r(cannot load such file -- dpl/provider/(?<provider_file_name>\S+)) =~ e.message
|
79
|
+
provider_gem_name = name
|
80
|
+
else
|
81
|
+
# don't know what to do with this error
|
82
|
+
raise e
|
78
83
|
end
|
79
|
-
install_cmd = "gem install dpl-#{PROVIDERS[
|
84
|
+
install_cmd = "gem install dpl-#{PROVIDERS[provider_gem_name] || opt} -v #{ENV['DPL_VERSION'] || DPL::VERSION}"
|
80
85
|
|
81
|
-
if File.exist?(local_gem = File.join(Dir.pwd, "dpl-#{PROVIDERS[
|
86
|
+
if File.exist?(local_gem = File.join(Dir.pwd, "dpl-#{PROVIDERS[provider_gem_name] || opt_lower}-#{ENV['DPL_VERSION'] || DPL::VERSION}.gem"))
|
82
87
|
install_cmd = "gem install #{local_gem}"
|
83
88
|
end
|
84
89
|
|
data/lib/dpl/version.rb
CHANGED