fog-core 1.38.0 → 1.39.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/changelog.md +7 -0
- data/lib/fog/core.rb +1 -0
- data/lib/fog/core/stringify_keys.rb +2 -2
- data/lib/fog/core/version.rb +1 -1
- data/lib/fog/dns.rb +1 -1
- data/lib/fog/nfv.rb +5 -0
- data/lib/fog/storage.rb +3 -2
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17e475fd905c16a4aa4eef1597b0b0ac0e4581ec
|
4
|
+
data.tar.gz: 5784c6bf3117d6b9d0085ae19ec2a00a7893a0da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1035955dee2c5964d9809e66de644010fa2bff9a4c81fc8c02f11b3b3a7d7ed37d533ca9b2197b7b0347ac645f72109db00c6f0ff976819e3faf28a8eb04aad3
|
7
|
+
data.tar.gz: 254c903b1fcd2e6ae3685208e904cb9009f37fb04ffc9553bf6655938a800d00039f1cbeb190ef3cc46d2e4d1c03cada70411e7b07df68ebdd4a5f80fd2014b2
|
data/changelog.md
CHANGED
data/lib/fog/core.rb
CHANGED
@@ -64,6 +64,7 @@ require File.expand_path('../image', __FILE__)
|
|
64
64
|
require File.expand_path('../introspection', __FILE__)
|
65
65
|
require File.expand_path('../metering', __FILE__)
|
66
66
|
require File.expand_path('../monitoring', __FILE__)
|
67
|
+
require File.expand_path('../nfv', __FILE__)
|
67
68
|
require File.expand_path('../network', __FILE__)
|
68
69
|
require File.expand_path('../orchestration', __FILE__)
|
69
70
|
require File.expand_path('../storage', __FILE__)
|
@@ -1,8 +1,8 @@
|
|
1
1
|
module Fog
|
2
2
|
module StringifyKeys
|
3
3
|
# Returns a new hash with all keys converted to strings.
|
4
|
-
def self.stringify(
|
5
|
-
transform_hash(
|
4
|
+
def self.stringify(original_hash)
|
5
|
+
transform_hash(original_hash) do |hash, key, value|
|
6
6
|
hash[key.to_s] = value
|
7
7
|
end
|
8
8
|
end
|
data/lib/fog/core/version.rb
CHANGED
data/lib/fog/dns.rb
CHANGED
@@ -4,7 +4,7 @@ module Fog
|
|
4
4
|
|
5
5
|
def self.new(orig_attributes)
|
6
6
|
attributes = orig_attributes.dup # prevent delete from having side effects
|
7
|
-
case
|
7
|
+
case attributes.delete(:provider).to_s.downcase.to_sym
|
8
8
|
when :stormondemand
|
9
9
|
require "fog/dns/storm_on_demand"
|
10
10
|
Fog::DNS::StormOnDemand.new(attributes)
|
data/lib/fog/nfv.rb
ADDED
data/lib/fog/storage.rb
CHANGED
@@ -16,7 +16,7 @@ module Fog
|
|
16
16
|
end
|
17
17
|
|
18
18
|
attributes = orig_attributes.dup # prevent delete from having side effects
|
19
|
-
case
|
19
|
+
case attributes.delete(:provider).to_s.downcase.to_sym
|
20
20
|
when :internetarchive
|
21
21
|
require "fog/internet_archive/storage"
|
22
22
|
Fog::Storage::InternetArchive.new(attributes)
|
@@ -42,7 +42,8 @@ module Fog
|
|
42
42
|
def self.get_body_size(body)
|
43
43
|
if body.respond_to?(:encoding)
|
44
44
|
original_encoding = body.encoding
|
45
|
-
body = body.dup.
|
45
|
+
body = body.dup if body.frozen?
|
46
|
+
body = body.force_encoding('BINARY')
|
46
47
|
end
|
47
48
|
|
48
49
|
size = if body.respond_to?(:bytesize)
|
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.39.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-
|
12
|
+
date: 2016-05-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: builder
|
@@ -238,6 +238,7 @@ files:
|
|
238
238
|
- lib/fog/metering.rb
|
239
239
|
- lib/fog/monitoring.rb
|
240
240
|
- lib/fog/network.rb
|
241
|
+
- lib/fog/nfv.rb
|
241
242
|
- lib/fog/orchestration.rb
|
242
243
|
- lib/fog/schema/data_validator.rb
|
243
244
|
- lib/fog/storage.rb
|