fog-core 1.41.0 → 1.42.0

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: 6995779e05b48296a22af1cb9f824cd9fbdc924c
4
- data.tar.gz: 9e1483dc2a2db037aebfc1b74040b3cf605dd8c3
3
+ metadata.gz: fe927be3957366d29c86dc7816b9129a78f136f7
4
+ data.tar.gz: 27d29d06c716e82261583e223f8ad30a46cf1c81
5
5
  SHA512:
6
- metadata.gz: 3eb605b7aa52ecd87b8b4594e8abe9488c589979b9ded7a0282d4a8b4ecafaab3891127564df7edad4fda076a0a01bc4aa53b8fa30d59830fd193783cb19bc42
7
- data.tar.gz: e52e332829a233c2d188b21bc5812f704c42ea512e1afddd9ca2add971dc4771a884194d650db6f36525ccaef3667def589e42b0c23a795788a1c60bec09eb02
6
+ metadata.gz: f3ed8d0d2b41b090e0c7fd6414fb650eccb62480ed39679bb29289ce331a0977d90c5c7d1d267b96997444fc50eb5bcc30faf543fd2953ea7bd2be2b98dec28d
7
+ data.tar.gz: f0f1556d175a9fc2ae40ba27f3fa88707d43d675222180706b587d6a7d5b39d617f344735e080199e6abe4e63885a1f16f5ce03ba8dbc0d2bb5ca11925faac5d
data/.travis.yml CHANGED
@@ -4,6 +4,7 @@ gemfile:
4
4
  - Gemfile
5
5
 
6
6
  rvm:
7
+ - 1.9.3
7
8
  - 2.0.0
8
9
  - 2.2.0
9
10
  - jruby9k
@@ -15,6 +16,8 @@ script: bundle exec rake travis
15
16
 
16
17
  matrix:
17
18
  include:
19
+ - rvm: 1.8.7
20
+ gemfile: Gemfile18
18
21
  - rvm: 2.1.0
19
22
  gemfile: Gemfile
20
23
  env: COVERAGE=true
data/Gemfile18 ADDED
@@ -0,0 +1,5 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
5
+ gem 'rake', '~> 10.1.1'
data/changelog.md CHANGED
@@ -1,3 +1,8 @@
1
+ 1.42.0 07/05/2016
2
+ ==========================================================
3
+
4
+ make namespace detection fix 1.8.x compatible
5
+
1
6
  1.41.0 07/01/2016
2
7
  ==========================================================
3
8
 
@@ -31,9 +31,18 @@ module Fog
31
31
  end
32
32
 
33
33
  def service_provider_constant(service_name, provider_name)
34
- Fog.const_get(service_name).const_get(provider_name, false)
34
+ Fog.const_get(service_name).const_get(*const_get_args(provider_name))
35
35
  rescue NameError # Try to find the constant from in an alternate location
36
- Fog.const_get(provider_name).const_get(service_name, false)
36
+ Fog.const_get(provider_name).const_get(*const_get_args(service_name))
37
+ end
38
+
39
+ # Ruby 1.8 does not support the second 'inherit' argument to #const_get
40
+ def const_get_args(*args)
41
+ if RUBY_VERSION < '1.9'
42
+ args
43
+ else
44
+ args + [false]
45
+ end
37
46
  end
38
47
 
39
48
  def service_name
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module Core
3
- VERSION = "1.41.0"
3
+ VERSION = "1.42.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.41.0
4
+ version: 1.42.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evan Light
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-07-01 00:00:00.000000000 Z
12
+ date: 2016-07-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: builder
@@ -179,6 +179,7 @@ files:
179
179
  - CONTRIBUTING.md
180
180
  - CONTRIBUTORS.md
181
181
  - Gemfile
182
+ - Gemfile18
182
183
  - LICENSE.md
183
184
  - README.md
184
185
  - Rakefile