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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3e3783e083e10d097b511e19385593a9f823e2585dbe41fd05fd055033f39df1
4
- data.tar.gz: a63860a4846da953699d231c2c41cb0be53d1e3d09057e41c3af01bd8c9b0c13
3
+ metadata.gz: 456d5bc93dfdc4c460d08caae5d20ee7fce368bb130512a8375e850d24e977e2
4
+ data.tar.gz: deaed28abb40f12f6a63f4fd025045f9f8c85781e6184f36c99af48d4e8734f8
5
5
  SHA512:
6
- metadata.gz: 54a3289243f69ddff2600eddad63cfeb0e6bca0515946fd1aca960f8a8e0018e14c495d8285420546024c3f15820504b0c80744568b8b4315503c42440032c47
7
- data.tar.gz: c503e7692ca8206a7fc9bba81d670d58c61eebd54511c228838aeaff3dd45dd0d501cd14cac74cdf5dbc9d745603b64bf86914061310fa288b21d66e1ebd1f3b
6
+ metadata.gz: 5c4044ee45ae051bdf467d1817a15d784955304c34704e9605b831758bb0205d680bf5a115adc035eda74e6e8da1e9627e5197bcd1596ac79d0cfdbe55f4afd5
7
+ data.tar.gz: 48787e98d9905aab006f4dbe18c2cba3e63927f4d0e5c4f383059d5a35375f53e2cfa19ff541a51b5d6acab57460d7e705498c1dd1848f51dabea1aa39eb252d
@@ -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
- provider_name = PROVIDERS[provider_wanted]
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[provider_name] || opt} -v #{ENV['DPL_VERSION'] || DPL::VERSION}"
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[provider_name] || opt_lower}-#{ENV['DPL_VERSION'] || DPL::VERSION}.gem"))
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
 
@@ -1,3 +1,3 @@
1
1
  module DPL
2
- VERSION = '1.9.1.travis.2621.5'
2
+ VERSION = '1.9.1.travis.2623.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dpl
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.1.travis.2621.5
4
+ version: 1.9.1.travis.2623.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konstantin Haase