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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6dbd117860a8dbc0d05e193a540cdc5255b0e427
4
- data.tar.gz: b2f2683dc474e899a48facb4c2d8515e34cd1131
3
+ metadata.gz: 17e475fd905c16a4aa4eef1597b0b0ac0e4581ec
4
+ data.tar.gz: 5784c6bf3117d6b9d0085ae19ec2a00a7893a0da
5
5
  SHA512:
6
- metadata.gz: 5030fed5c8ee6bbb14916258676dd8e5da29d414bfb96575abc96080b00fca907eb9451096f8c76dac32b7c57e66feae424ba13937a672d7ef08900e046aa7e2
7
- data.tar.gz: bb1b6fa13fb87f844406323d9d37749d1d46babf214fd4229acc9042f2214c9f7f94ef7c5a9c787359e3428561e68ce3ae67bcd55d17efd204807bd867d0b788
6
+ metadata.gz: 1035955dee2c5964d9809e66de644010fa2bff9a4c81fc8c02f11b3b3a7d7ed37d533ca9b2197b7b0347ac645f72109db00c6f0ff976819e3faf28a8eb04aad3
7
+ data.tar.gz: 254c903b1fcd2e6ae3685208e904cb9009f37fb04ffc9553bf6655938a800d00039f1cbeb190ef3cc46d2e4d1c03cada70411e7b07df68ebdd4a5f80fd2014b2
@@ -1,3 +1,10 @@
1
+ 1.39.0 05/11/2016
2
+ ==========================================================
3
+
4
+ cleanup warnings
5
+ add NFV module
6
+ only dup frozen strings
7
+
1
8
  1.38.0 04/20/2016
2
9
  ==========================================================
3
10
 
@@ -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(hash)
5
- transform_hash(hash) do |hash, key, value|
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
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module Core
3
- VERSION = "1.38.0"
3
+ VERSION = "1.39.0"
4
4
  end
5
5
  end
@@ -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 provider = attributes.delete(:provider).to_s.downcase.to_sym
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)
@@ -0,0 +1,5 @@
1
+ module Fog
2
+ module NFV
3
+ extend Fog::ServicesMixin
4
+ end
5
+ end
@@ -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 provider = attributes.delete(:provider).to_s.downcase.to_sym
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.force_encoding('BINARY')
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.38.0
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-04-20 00:00:00.000000000 Z
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