sconb 1.2.0 → 1.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
  SHA1:
3
- metadata.gz: ce50a910176ca5f5dbd57e32d2bfc18cfe882f3e
4
- data.tar.gz: 2c05c98bf6f70c777d3893f020642444bebaa07c
3
+ metadata.gz: fbd3dfbf8c6ef0b647bde944ed016395432e6551
4
+ data.tar.gz: fc77840d0e981a0fbe9b149263043985ed0f55a0
5
5
  SHA512:
6
- metadata.gz: c28afe40de5c5089c6a10d5f1603c7370c0231dc891c25e54d783aeaecc9d390c94ab4e536a9a7ff0cce33158a5850ee243d3e993b357109f52cf70c633693a7
7
- data.tar.gz: f19acd9534c333f70313eced8c4c9b16fdfcb60feb9b2037675a818f4691b0004dd664b7f1bc7b251b36d914e807569c81f82e55e17c881dfe77681ab8de072e
6
+ metadata.gz: 34a6b9d1c8ffdb6667843f8aec9f3ac84b5a7477043e2a8d2e21430074495958b94038d23039426b49956954c37198cf0a7a078fe99d7a47b590348de8f7c738
7
+ data.tar.gz: cd0a25c119c5a2c6b6e4c63db698f8447349b54e8ed5e91d47f5c29b9c4a6421b35a45a4aa0ffb27ef8419890a52d848dd30ee7b913d1dd08631f74dfdb920b2
@@ -4,7 +4,7 @@ module Net
4
4
  class << self
5
5
  # Original code is Net::SSH::Config.load (https://github.com/net-ssh/net-ssh/blob/master/LICENSE.txt)
6
6
  # rubocop:disable all
7
- def parse_with_key(content, host, options)
7
+ def parse_with_key(content, host, options = {})
8
8
  settings = {}
9
9
  return settings unless content
10
10
 
@@ -1,13 +1,13 @@
1
1
  module Sconb
2
2
  module SSHConfig
3
3
  class << self
4
- def load(path, regexp_str = '.*', options = [])
4
+ def load(path, regexp_str = '.*', options = {})
5
5
  file = File.expand_path(path)
6
6
  content = File.readable?(file) ? File.open(file).read : nil
7
7
  parse(content, regexp_str, options)
8
8
  end
9
9
 
10
- def parse(content, regexp_str = '.*', options = [])
10
+ def parse(content, regexp_str = '.*', options = {})
11
11
  @regexp = Regexp.new(regexp_str)
12
12
  @options = options
13
13
  @content = content
@@ -1,3 +1,3 @@
1
1
  module Sconb
2
- VERSION = '1.2.0'
2
+ VERSION = '1.2.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sconb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - k1LoW