fulmar 2.1.1 → 2.1.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
  SHA1:
3
- metadata.gz: bae615467a0d846cf13ae3fa637b44ed0604a280
4
- data.tar.gz: afdb7fdd5175e26e3ccc2e5d8c456540eeaff889
3
+ metadata.gz: 48f13381dfd883f6eb5f0c44a15aae30a4625914
4
+ data.tar.gz: 52c89009ba658dc348df94c69e47940afd99f76b
5
5
  SHA512:
6
- metadata.gz: 8a27dd8f03f33a54eb3d4623bbd2c6ddc3bf88af2857680bcc7e7a516c68d2e0cbf468265f547eae01f20f77914a14a0388555225d503535645466916bd19112
7
- data.tar.gz: 0b78b21ef91ab9c98d8b3a1b515643d2487c622d1e70f5628a726cce403edd4ec22e207b4c921d5fba5eabba4a217a4edd7606c0a921aa5e4193ca862b6af4f7
6
+ metadata.gz: 34b44d1c3f492b53a15b8481d11d9bb33fde77a17e51ae2a72fb25f5560ee856f985ff84e96123c4306e976b6d18cdec949c11e259fe12cb8b8b836c37d80a0d
7
+ data.tar.gz: 1717d95355ec5ed3800809f2712477872f72380525f7d8b1132ab9a4fab522af94581613d12e3bf1192287ce72787b7f2ff5fa27baf469d7c0f0d4e8695c04ec
@@ -27,7 +27,7 @@ module Fulmar
27
27
  @config[:rsync][:exclude_file] = @config[:local_path] + '/.rsyncignore'
28
28
  end
29
29
 
30
- fail 'Hostname not set. Cannot initialize sync.' if @config[:hostname].empty?
30
+ fail 'Hostname not set. Cannot initialize sync.' if @config[:hostname].nil? || @config[:hostname].empty?
31
31
 
32
32
  super(@config)
33
33
  end
@@ -116,14 +116,14 @@ module Fulmar
116
116
  '', # Add some space between this and the second last entry
117
117
  "Host #{hostname}"
118
118
  ]
119
- ssh_config.keys.each { |key| entry << " #{key} #{escape_value(ssh_config[key])}" }
119
+ ssh_config.keys.each { |key| entry << " #{key} #{escape_value(key, ssh_config[key])}" }
120
120
  entry << ''
121
121
  entry
122
122
  end
123
123
 
124
- def escape_value(value)
124
+ def escape_value(key, value)
125
125
  value = value.to_s
126
- value = "\"#{value.gsub('"', '\\"')}\"" if value.include?(' ')
126
+ value = "\"#{value.gsub('"', '\\"')}\"" if value.include?(' ') && key.to_s != 'ProxyCommand'
127
127
  value
128
128
  end
129
129
 
@@ -1,4 +1,4 @@
1
1
  # Provides a global version number
2
2
  module Fulmar
3
- VERSION = '2.1.1'
3
+ VERSION = '2.1.2'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fulmar
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonas Siegl
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-08-02 00:00:00.000000000 Z
12
+ date: 2017-08-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler