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 +4 -4
- data/changelog.md +6 -0
- data/lib/fog/core/provider.rb +11 -0
- data/lib/fog/core/scp.rb +2 -1
- data/lib/fog/core/ssh.rb +2 -1
- data/lib/fog/core/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d700e5ab43fb06af6f4dded213fdd891fa5d005def16fb0c7aa094d3fd330bdc
|
4
|
+
data.tar.gz: 5c43bc4c6485e6b3cfa2e80ec5242bfb57079369317b5a5847e599b312e2c7c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c69ad517bb8416c7dfa911cadc10f252c783705e009dca52b39377f55979c244c199142c35320247c5b39b0c751c0d5a265244964e75b8dd497b5ba0d1a9257
|
7
|
+
data.tar.gz: f8a7a482cce40dfa214edf84b486ef4ca831bc1628b49f45044440c3d24739382b627ff2f60b75f45b8bc388d18efea981ee87d70c4e6e367c0a41938c04f35f
|
data/changelog.md
CHANGED
@@ -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
|
|
data/lib/fog/core/provider.rb
CHANGED
@@ -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
|
data/lib/fog/core/scp.rb
CHANGED
@@ -64,8 +64,9 @@ module Fog
|
|
64
64
|
|
65
65
|
@address = address
|
66
66
|
@username = username
|
67
|
-
@options = { :paranoid => false, :verify_host_key =>
|
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)
|
data/lib/fog/core/ssh.rb
CHANGED
@@ -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 =>
|
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
|
|
data/lib/fog/core/version.rb
CHANGED
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.
|
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:
|
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.
|
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:
|