fog-core 1.35.0 → 1.36.0
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/CONTRIBUTORS.md +2 -0
- data/lib/fog/compute.rb +7 -4
- data/lib/fog/core/mock.rb +3 -0
- data/lib/fog/core/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: 34750fc3461fa6c3704e318851bcbe5c93e53c7a
|
|
4
|
+
data.tar.gz: a05fface595a7e15344687cdb11e06ad3f15ce25
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 226a6df0fdd36a58af8978a966f8c5a5e52c6c2bd8524e5194d55c0be60ac48c7a6d49659d9da5abe751293e90023c0d54788b3a755ebeb6de44cd7d6d92f51e
|
|
7
|
+
data.tar.gz: 0b7cbac094a51c52eee764b1142215d4e6ccfbc529cac763c0d22376f80251d45495e911a91cc9f4299719b1b1204bfe5263165f653852ec96600c727b381a00
|
data/CONTRIBUTORS.md
CHANGED
|
@@ -24,10 +24,12 @@
|
|
|
24
24
|
* Matt Eldridge <matt.eldridge@us.ibm.com>
|
|
25
25
|
* Mike Hagedorn <mike@silverchairsolutions.com>
|
|
26
26
|
* Naoto TAKAHASHI <tnaoto@gmail.com>
|
|
27
|
+
* Patrick McAfee <PatrickMcAfee@users.noreply.github.com>
|
|
27
28
|
* Paul Thornthwaite <paul@brightbox.co.uk>
|
|
28
29
|
* Paul Thornthwaite <tokengeek@gmail.com>
|
|
29
30
|
* Paulo Henrique Lopes Ribeiro <plribeiro3000@gmail.com>
|
|
30
31
|
* Peter Drake <peter.drake@acquia.com>
|
|
32
|
+
* Suraj Shirvankar <surajshirvankar@gmail.com>
|
|
31
33
|
* Wesley Beary <geemus+github@gmail.com>
|
|
32
34
|
* Wesley Beary <geemus@gmail.com>
|
|
33
35
|
* cristhiano <cristhiano_figueira@yahoo.com.br>
|
data/lib/fog/compute.rb
CHANGED
|
@@ -42,12 +42,12 @@ module Fog
|
|
|
42
42
|
when :digitalocean
|
|
43
43
|
version = attributes.delete(:version)
|
|
44
44
|
version = version.to_s.downcase.to_sym unless version.nil?
|
|
45
|
-
if version == :
|
|
45
|
+
if version == :v1
|
|
46
|
+
error_message = "DigitalOcean V1 is deprecated.Please use `:version => :v2` attribute to use Next Gen Cloud Servers."
|
|
47
|
+
raise error_message
|
|
48
|
+
else
|
|
46
49
|
require "fog/digitalocean/compute_v2"
|
|
47
50
|
Fog::Compute::DigitalOceanV2.new(attributes)
|
|
48
|
-
else
|
|
49
|
-
require "fog/digitalocean/compute"
|
|
50
|
-
Fog::Compute::DigitalOcean.new(attributes)
|
|
51
51
|
end
|
|
52
52
|
when :stormondemand
|
|
53
53
|
require "fog/compute/storm_on_demand"
|
|
@@ -58,6 +58,9 @@ module Fog
|
|
|
58
58
|
when :vclouddirector
|
|
59
59
|
require "fog/vcloud_director/compute"
|
|
60
60
|
Fog::Compute::VcloudDirector.new(attributes)
|
|
61
|
+
when :cloudatcost
|
|
62
|
+
require "fog/cloudatcost/compute"
|
|
63
|
+
Fog::Compute::CloudAtCost.new(attributes)
|
|
61
64
|
else
|
|
62
65
|
super(orig_attributes)
|
|
63
66
|
end
|
data/lib/fog/core/mock.rb
CHANGED
|
@@ -91,10 +91,13 @@ module Fog
|
|
|
91
91
|
def self.reset
|
|
92
92
|
mocked_services = []
|
|
93
93
|
Fog.constants.map do |x|
|
|
94
|
+
next if Fog.autoload?(x)
|
|
94
95
|
x_const = Fog.const_get(x)
|
|
95
96
|
x_const.respond_to?(:constants) && x_const.constants.map do |y|
|
|
97
|
+
next if x_const.autoload?(y)
|
|
96
98
|
y_const = x_const.const_get(y)
|
|
97
99
|
y_const.respond_to?(:constants) && y_const.constants.map do |z|
|
|
100
|
+
next if y_const.autoload?(z)
|
|
98
101
|
mocked_services << y_const.const_get(z) if z.to_sym == :Mock
|
|
99
102
|
end
|
|
100
103
|
end
|
data/lib/fog/core/version.rb
CHANGED
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.
|
|
4
|
+
version: 1.36.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:
|
|
12
|
+
date: 2016-02-23 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: builder
|