tomo 0.19.0 → 1.0.0

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: dea99ca41c14a499cb207ebe78d56e4fef232ecc026f89f32bac7fa19182a6f1
4
- data.tar.gz: acc54d6083bf3eff212bd7f8dbb8932efed2b43b0cc8be9698725ac042faf1c7
3
+ metadata.gz: 4ad1c87df7e8fad626e90eb0606c0bb2899a3acf57eb2b9df969bd53c33332de
4
+ data.tar.gz: 49ce5c513dfccbe4db1269e0c9385e39aa9940690cd7a6e86c561d54eeb89b54
5
5
  SHA512:
6
- metadata.gz: 50daaad3e0e79ce97e4e85a9a2d64b565ca8da508adb2723e24b0f95f3244f8b6c1f63482e4ae4d7cffa530445b20e82c42e5fa48d9e12c2a55350d7753e3eda
7
- data.tar.gz: 2ba01c52b8a3e98f61b89cd6c7985e2bbcb28b6619b096bccb133adc593f3d626f32a4813ef2c842c7104aafb731a1e43a5389d038f46bff718f3cc6bdd28d33
6
+ metadata.gz: 1f2459465ef849c4dc012f594bcb672317909945c1061cb54a9f8e94acb07e91ed04334d28347f1dd4d708e10903ab168a142b4632289e5e9c375aa882c8bdc9
7
+ data.tar.gz: 3946a734793b215eb57296eb602ac9bdaf68791c9df541d381b41bd89ee0bc9681fff27a506dd72e5d427bee757727f613f8db7624216eefaf808062740ba9a8
@@ -35,9 +35,7 @@ module Tomo
35
35
  end
36
36
 
37
37
  def symbolize(hash)
38
- hash.each_with_object({}) do |(key, value), symbolized|
39
- symbolized[key.to_sym] = value
40
- end
38
+ hash.transform_keys(&:to_sym)
41
39
  end
42
40
 
43
41
  def dump_settings(hash)
@@ -53,8 +53,7 @@ module Tomo
53
53
  attr_reader :helper_modules, :tasks_by_name
54
54
 
55
55
  def ssh_options
56
- # TODO: replace with Hash#slice after dropping Ruby 2.4 support
57
- settings.select { |key| SSH::Options::DEFAULTS.key?(key) }
56
+ settings.slice(*SSH::Options::DEFAULTS.keys)
58
57
  end
59
58
  end
60
59
  end
@@ -44,13 +44,11 @@ module Tomo
44
44
 
45
45
  def start_io_thread(source, buffer)
46
46
  new_thread_inheriting_current_vars do
47
- begin
48
- while (line = source.gets)
49
- on_data&.call(line)
50
- buffer << line
51
- end
52
- rescue IOError # rubocop:disable Lint/SuppressedException
47
+ while (line = source.gets)
48
+ on_data&.call(line)
49
+ buffer << line
53
50
  end
51
+ rescue IOError # rubocop:disable Lint/SuppressedException
54
52
  end
55
53
  end
56
54
 
data/lib/tomo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Tomo
2
- VERSION = "0.19.0".freeze
2
+ VERSION = "1.0.0".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tomo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Brictson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-04-06 00:00:00.000000000 Z
11
+ date: 2020-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -128,14 +128,14 @@ dependencies:
128
128
  requirements:
129
129
  - - '='
130
130
  - !ruby/object:Gem::Version
131
- version: 0.8.0
131
+ version: 0.8.1
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - '='
137
137
  - !ruby/object:Gem::Version
138
- version: 0.8.0
138
+ version: 0.8.1
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: rubocop-performance
141
141
  requirement: !ruby/object:Gem::Requirement
@@ -324,7 +324,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
324
324
  requirements:
325
325
  - - ">="
326
326
  - !ruby/object:Gem::Version
327
- version: 2.4.0
327
+ version: 2.5.0
328
328
  required_rubygems_version: !ruby/object:Gem::Requirement
329
329
  requirements:
330
330
  - - ">="