fog-core 1.37.0 → 1.38.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: 2aa457405514478df62d788bc64c20f3b89cf800
4
- data.tar.gz: 05471a54ebee07324db236b13162f27d787997d1
3
+ metadata.gz: 6dbd117860a8dbc0d05e193a540cdc5255b0e427
4
+ data.tar.gz: b2f2683dc474e899a48facb4c2d8515e34cd1131
5
5
  SHA512:
6
- metadata.gz: 67c54f032675dfecaa0ea10afa4467937cbca2d8d29fa545c995cc7dfb331a93c33884c62dda21e2124a05895ae92a4c9da7b11e9051f082d5dbc4e5c4b15eb3
7
- data.tar.gz: 66c59a0c962032e3a6c2a108e3b1a298d93a55a52d96ad66c7297ef08594e6c5eb8b65a88c672b2a2a6fc773c1872ad2942733b784e132b6cbe4af75c504c1c8
6
+ metadata.gz: 5030fed5c8ee6bbb14916258676dd8e5da29d414bfb96575abc96080b00fca907eb9451096f8c76dac32b7c57e66feae424ba13937a672d7ef08900e046aa7e2
7
+ data.tar.gz: bb1b6fa13fb87f844406323d9d37749d1d46babf214fd4229acc9042f2214c9f7f94ef7c5a9c787359e3428561e68ce3ae67bcd55d17efd204807bd867d0b788
@@ -1,5 +1,6 @@
1
1
  * Aaron Patterson <aaron.patterson@gmail.com>
2
2
  * Akira Matsuda <ronnie@dio.jp>
3
+ * Alexandru Calinoiu <calinoiu.alexandru@agilefreaks.com>
3
4
  * Anatol <anatol.pomozov@gmail.com>
4
5
  * Artem <temikus@google.com>
5
6
  * Artem Yakimenko <temikus@google.com>
@@ -10,6 +11,8 @@
10
11
  * Dominic Cleal <dcleal@redhat.com>
11
12
  * Evan Light <evan@tripledogdare.net>
12
13
  * Frederick Cheung <frederick.cheung@gmail.com>
14
+ * Gilles Dubreuil <gilles@redhat.com>
15
+ * Griffin Smith <wildgriffin45@gmail.com>
13
16
  * Isaac Hollander McCreery <ihmccreery@google.com>
14
17
  * Jake Bell <jake@theunraveler.com>
15
18
  * Josh Kalderimis <josh.kalderimis@gmail.com>
@@ -37,4 +40,5 @@
37
40
  * mountkin <moutkin@gmail.com>
38
41
  * ozroc <ozrocpablo@gmail.com>
39
42
  * schneems <richard.schneeman@gmail.com>
40
- * starbelly <starbelly@pobox.com>
43
+ * starbelly <starbelly@pobox.com>
44
+ * zhitongLBN <z.liu@linkbynet.com>
data/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2014 [CONTRIBUTORS.md](https://github.com/fog/fog/blob/master/CONTRIBUTORS.md)
3
+ Copyright (c) 2014-2016 [CONTRIBUTORS.md](https://github.com/fog/fog/blob/master/CONTRIBUTORS.md)
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy of
6
6
  this software and associated documentation files (the "Software"), to deal in
@@ -1,3 +1,10 @@
1
+ 1.38.0 04/20/2016
2
+ ==========================================================
3
+
4
+ more specific service not found error
5
+ fix string freeze issue for ruby 2.3
6
+ bump excon dep
7
+
1
8
  1.37.0 03/31/2016
2
9
  ==========================================================
3
10
 
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ["lib"]
20
20
 
21
21
  spec.add_dependency("builder")
22
- spec.add_dependency("excon", "~> 0.45")
22
+ spec.add_dependency("excon", "~> 0.49")
23
23
  spec.add_dependency("formatador", "~> 0.2")
24
24
 
25
25
  spec.add_development_dependency("coveralls")
@@ -15,7 +15,7 @@ module Fog
15
15
  spc = service_provider_constant(service_name, provider_name)
16
16
  spc.new(attributes)
17
17
  rescue LoadError, NameError # Only rescue errors in finding the libraries, allow connection errors through to the caller
18
- raise ArgumentError, "#{provider} has no #{service_name.downcase} service"
18
+ raise Fog::Service::NotFound, "#{provider} has no #{service_name.downcase} service"
19
19
  end
20
20
 
21
21
  def providers
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module Core
3
- VERSION = "1.37.0"
3
+ VERSION = "1.38.0"
4
4
  end
5
5
  end
@@ -42,7 +42,7 @@ 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.force_encoding('BINARY')
45
+ body = body.dup.force_encoding('BINARY')
46
46
  end
47
47
 
48
48
  size = if body.respond_to?(:bytesize)
@@ -67,6 +67,7 @@ describe "Fog::Storage" do
67
67
  module Storage
68
68
  class BothWays
69
69
  attr_reader :args
70
+
70
71
  def initialize(args)
71
72
  @args = args
72
73
  end
@@ -105,5 +106,14 @@ describe "Fog::Storage" do
105
106
  skip
106
107
  end
107
108
  end
109
+
110
+ it "respects frozen strings" do
111
+ if RUBY_VERSION >= "2.3.0"
112
+ body = "foo".freeze
113
+ Fog::Storage.get_body_size(body)
114
+ else
115
+ skip
116
+ end
117
+ end
108
118
  end
109
- end
119
+ 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.37.0
4
+ version: 1.38.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-03-31 00:00:00.000000000 Z
12
+ date: 2016-04-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: builder
@@ -31,14 +31,14 @@ dependencies:
31
31
  requirements:
32
32
  - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: '0.45'
34
+ version: '0.49'
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: '0.45'
41
+ version: '0.49'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: formatador
44
44
  requirement: !ruby/object:Gem::Requirement