fog-core 2.2.1 → 2.2.2

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
  SHA256:
3
- metadata.gz: d700e5ab43fb06af6f4dded213fdd891fa5d005def16fb0c7aa094d3fd330bdc
4
- data.tar.gz: 5c43bc4c6485e6b3cfa2e80ec5242bfb57079369317b5a5847e599b312e2c7c6
3
+ metadata.gz: 0e12788f1604380c50ec19c246cacdd74d769a04d71ee56660bc3c5bc62238ae
4
+ data.tar.gz: d0bfdca7690d42db8771d84dd1fdb8b7d013b2d719071ee4165be900f14ae788
5
5
  SHA512:
6
- metadata.gz: 3c69ad517bb8416c7dfa911cadc10f252c783705e009dca52b39377f55979c244c199142c35320247c5b39b0c751c0d5a265244964e75b8dd497b5ba0d1a9257
7
- data.tar.gz: f8a7a482cce40dfa214edf84b486ef4ca831bc1628b49f45044440c3d24739382b627ff2f60b75f45b8bc388d18efea981ee87d70c4e6e367c0a41938c04f35f
6
+ metadata.gz: 9f1e44a5714c271433bc108ba068006b98ab2acbb88319db688a63ef0ed0cb1d567fcb6c254fb96a6df527a4ff3e0e7f0f1d8e258f2eb6a8d43b05552e905c7f
7
+ data.tar.gz: afcb84b9410a1361aa87a019bdf6934a428780d50713edd5da98c32104d4d3a3c813aef048f2368888b74da2718f6fea6a0c0cdade6ced7b29837ebc515db2a3
@@ -1,3 +1,8 @@
1
+ 2.2.2 09/15/2020
2
+ ==========================================================
3
+
4
+ Fix #underscore name to be class method (instead of instance method)
5
+
1
6
  2.2.1 09/15/2020
2
7
  ==========================================================
3
8
 
@@ -8,10 +8,22 @@ module Fog
8
8
  end
9
9
 
10
10
  module Provider
11
- def self.extended(base)
12
- provider = base.to_s.split("::").last
13
- Fog.providers[provider.downcase.to_sym] = provider
14
- Fog.providers[underscore_name(provider)] = provider
11
+ class << self
12
+ def extended(base)
13
+ provider = base.to_s.split("::").last
14
+ Fog.providers[provider.downcase.to_sym] = provider
15
+ Fog.providers[underscore_name(provider)] = provider
16
+ end
17
+
18
+ private
19
+
20
+ def underscore_name(string)
21
+ string.gsub(/::/, '/').
22
+ gsub(/([A-Z]+)([A-Z][a-z])/,'\1_\2').
23
+ gsub(/([a-z\d])([A-Z])/,'\1_\2').
24
+ tr("-", "_").
25
+ downcase
26
+ end
15
27
  end
16
28
 
17
29
  def [](service_key)
@@ -47,15 +59,5 @@ module Fog
47
59
  )
48
60
  ['Fog', constant_string, provider].join("::")
49
61
  end
50
-
51
- private
52
-
53
- def underscore_name(string)
54
- string.gsub(/::/, '/').
55
- gsub(/([A-Z]+)([A-Z][a-z])/,'\1_\2').
56
- gsub(/([a-z\d])([A-Z])/,'\1_\2').
57
- tr("-", "_").
58
- downcase
59
- end
60
62
  end
61
63
  end
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module Core
3
- VERSION = "2.2.1"
3
+ VERSION = "2.2.2"
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: 2.2.1
4
+ version: 2.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evan Light