fog-core 2.2.0 → 2.2.1

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: 4fcacc9e6414f43350224925a67a7adba9395451d04271991aa7163f6abe92ec
4
- data.tar.gz: 88e60a9bf166a5a8814071684e753d5b9c06787c0a6c53e6f7c51754c0c4efe5
3
+ metadata.gz: d700e5ab43fb06af6f4dded213fdd891fa5d005def16fb0c7aa094d3fd330bdc
4
+ data.tar.gz: 5c43bc4c6485e6b3cfa2e80ec5242bfb57079369317b5a5847e599b312e2c7c6
5
5
  SHA512:
6
- metadata.gz: 07bc031a55c69e26ca52b09081aa9c29354504725ed7a9c34c6ef2a2bf9d5d9cbd87bb8bed1b10fcdeaff2640e7ff81324d0ae4f01d32e85bb0ac48742470cfd
7
- data.tar.gz: ed8e334529667209327093cb3a5f4cc1e1cb892c5f1b41ad7468d91c27f5220c6cee83dc4ae4d2da9ef36f7359ca6fc72edc3bf8fd2863cb2f291124ae39c51c
6
+ metadata.gz: 3c69ad517bb8416c7dfa911cadc10f252c783705e009dca52b39377f55979c244c199142c35320247c5b39b0c751c0d5a265244964e75b8dd497b5ba0d1a9257
7
+ data.tar.gz: f8a7a482cce40dfa214edf84b486ef4ca831bc1628b49f45044440c3d24739382b627ff2f60b75f45b8bc388d18efea981ee87d70c4e6e367c0a41938c04f35f
@@ -1,3 +1,9 @@
1
+ 2.2.1 09/15/2020
2
+ ==========================================================
3
+
4
+ - Change to verify_host_key never in ssh/scp if supported
5
+ - Allow either downcased and underscored provider names for broader compatability
6
+
1
7
  2.2.0 12/17/2019
2
8
  ==========================================================
3
9
 
@@ -11,6 +11,7 @@ module Fog
11
11
  def self.extended(base)
12
12
  provider = base.to_s.split("::").last
13
13
  Fog.providers[provider.downcase.to_sym] = provider
14
+ Fog.providers[underscore_name(provider)] = provider
14
15
  end
15
16
 
16
17
  def [](service_key)
@@ -46,5 +47,15 @@ module Fog
46
47
  )
47
48
  ['Fog', constant_string, provider].join("::")
48
49
  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
49
60
  end
50
61
  end
@@ -64,8 +64,9 @@ module Fog
64
64
 
65
65
  @address = address
66
66
  @username = username
67
- @options = { :paranoid => false, :verify_host_key => false }.merge(options)
67
+ @options = { :paranoid => false, :verify_host_key => :never }.merge(options)
68
68
  @options.delete(:paranoid) if Net::SSH::VALID_OPTIONS.include? :verify_host_key
69
+ @options[:verify_host_key] = false unless Net::SSH::Verifiers.const_defined?(:Never)
69
70
  end
70
71
 
71
72
  def upload(local_path, remote_path, upload_options = {}, &block)
@@ -116,10 +116,11 @@ module Fog
116
116
 
117
117
  # net-ssh has deprecated :paranoid in favor of :verify_host_key
118
118
  # https://github.com/net-ssh/net-ssh/pull/524
119
- opts = { :paranoid => false, :verify_host_key => false }.merge(options)
119
+ opts = { :paranoid => false, :verify_host_key => :never }.merge(options)
120
120
  if Net::SSH::VALID_OPTIONS.include? :verify_host_key
121
121
  opts.delete(:paranoid)
122
122
  end
123
+ opts[:verify_host_key] = false unless Net::SSH::Verifiers.const_defined?(:Never)
123
124
  opts
124
125
  end
125
126
 
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module Core
3
- VERSION = "2.2.0"
3
+ VERSION = "2.2.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evan Light
8
8
  - Wesley Beary
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-12-17 00:00:00.000000000 Z
12
+ date: 2020-09-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: builder
@@ -320,7 +320,7 @@ homepage: https://github.com/fog/fog-core
320
320
  licenses:
321
321
  - MIT
322
322
  metadata: {}
323
- post_install_message:
323
+ post_install_message:
324
324
  rdoc_options: []
325
325
  require_paths:
326
326
  - lib
@@ -335,8 +335,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
335
335
  - !ruby/object:Gem::Version
336
336
  version: '0'
337
337
  requirements: []
338
- rubygems_version: 3.0.3
339
- signing_key:
338
+ rubygems_version: 3.1.2
339
+ signing_key:
340
340
  specification_version: 4
341
341
  summary: Shared classes and tests for fog providers and services.
342
342
  test_files: