knuckle_cluster 2.3.2 → 2.3.4

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
- SHA1:
3
- metadata.gz: 2343d5fb38d64891674b60a8ffd6b2c69a148442
4
- data.tar.gz: d3a0c2f602a05b84c28322e8eb9f871cd298283c
2
+ SHA256:
3
+ metadata.gz: c5a7377d7cc39d6948263bf53cb083177c47994ac9326850cf6892635618cd16
4
+ data.tar.gz: 37e1d8c19aba10233a69fae610fa272e1ae3211bf2cfe9d5f79e075c659676b2
5
5
  SHA512:
6
- metadata.gz: 6d4ac3beb206a62565b0f92a35bc069c0bedab373ca5b90c4145a5b2b8a90d7adfca72896c1efbaa8230187711e52d8fb77213094bd27d38302f026c54fd5f57
7
- data.tar.gz: 2004881489c23baa77c6580ab83e6eb73047f311f484f6d6c85b2d51e0e1be93826b4a839793c09040868ad72a50a40ed8225f5797070663a62014339cbe92dd
6
+ metadata.gz: afac0665c778de7a1c0c194d6409e4a08c6f37c841c7a7edb8f0d49c6e54cb432eb5225a2720cd16b8c02163158ed0fd93784b980b47d78bb8cf31ddfe51fc6f
7
+ data.tar.gz: 1ef9889813baadcbdd9bf3c4b502a160e3fafac4c9051ebaf2f7176772469a7f96c251455f99608a80cdb213726c2eae37c91eb7538f254a15131dc4bb4176f1
@@ -0,0 +1,25 @@
1
+ name: Ruby
2
+
3
+ on:
4
+ push:
5
+ branches: [ master ]
6
+ pull_request:
7
+ branches: [ master ]
8
+
9
+ jobs:
10
+ test:
11
+ runs-on: ${{ matrix.operating_system }}
12
+ strategy:
13
+ matrix:
14
+ operating_system: [ ubuntu-latest, macos-latest ]
15
+ ruby_version: [ 2.6, 2.7 ]
16
+ steps:
17
+ - uses: actions/checkout@v2
18
+ - name: Set up Ruby ${{ matrix.ruby_version }}
19
+ uses: ruby/setup-ruby@v1
20
+ with:
21
+ ruby-version: ${{ matrix.ruby_version }}
22
+ - name: Install dependencies
23
+ run: bundle install
24
+ - name: Run tests
25
+ run: bundle exec rake
data/CHANGELOG.md CHANGED
@@ -5,6 +5,27 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](http://keepachangelog.com/)
6
6
  and this project adheres to [Semantic Versioning](http://semver.org/).
7
7
 
8
+ ## [Unreleased]
9
+
10
+ ## [2.3.4] - 2023-03-06
11
+
12
+ ### Fixed
13
+
14
+ * Fix the error caused by the removal of `File.exists?` in Ruby 3.2 ([#31](https://github.com/envato/knuckle_cluster/pull/31))
15
+
16
+ ## [2.3.3] - 2020-05-11
17
+
18
+ ### Fixed
19
+
20
+ * Fix deprecation warnings in Ruby 2.7 ([#28](https://github.com/envato/knuckle_cluster/pull/28))
21
+
8
22
  ## [2.0.0] - 2018-03-27
9
- Refactor SCP implementation to use new syntax
10
- Allow SCP copy files FROM agents or containers
23
+
24
+ ### Changed
25
+
26
+ * Refactor SCP implementation to use new syntax
27
+ * Allow SCP copy files FROM agents or containers
28
+
29
+ [unreleased]: https://github.com/envato/knuckle_cluster/compare/v2.3.4...HEAD
30
+ [2.3.4]: https://github.com/envato/knuckle_cluster/compare/v2.3.2...v2.3.4
31
+ [2.3.3]: https://github.com/envato/knuckle_cluster/compare/v2.3.2...v2.3.3
data/bin/knuckle_cluster CHANGED
@@ -31,7 +31,7 @@ rescue => e
31
31
  end
32
32
 
33
33
  kc = KnuckleCluster.new(
34
- config
34
+ **config
35
35
  )
36
36
 
37
37
  if ARGV[1] == 'agents'
@@ -19,7 +19,6 @@ Gem::Specification.new do |spec|
19
19
  end
20
20
  spec.require_paths = ["lib"]
21
21
 
22
- spec.add_development_dependency "bundler", "~> 1.14"
23
22
  spec.add_development_dependency "rake", "~> 10.0"
24
23
  spec.add_development_dependency "rspec", "~> 3.0"
25
24
  spec.add_development_dependency "pry", "~> 0.11"
@@ -34,7 +34,7 @@ class KnuckleCluster::Configuration
34
34
  def self.load_data(profile_file = nil)
35
35
  @data ||= (
36
36
  profile_file ||= DEFAULT_PROFILE_FILE
37
- raise "File #{profile_file} not found" unless File.exists?(profile_file)
37
+ raise "File #{profile_file} not found" unless File.exist?(profile_file)
38
38
  YAML.load_file(profile_file)
39
39
  )
40
40
  end
@@ -1,3 +1,3 @@
1
1
  module KnuckleCluster
2
- VERSION = '2.3.2'
2
+ VERSION = '2.3.4'
3
3
  end
@@ -82,7 +82,7 @@ module KnuckleCluster
82
82
  def open_tunnel(name:)
83
83
  if tunnel = tunnels[name.to_sym]
84
84
  agent = select_agent(auto: true)
85
- open_tunnel_via_agent(tunnel.merge(agent: agent))
85
+ open_tunnel_via_agent(**tunnel.merge(agent: agent))
86
86
  else
87
87
  puts "ERROR: A tunnel configuration was not found for '#{name}'"
88
88
  end
metadata CHANGED
@@ -1,29 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knuckle_cluster
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.2
4
+ version: 2.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Envato
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-22 00:00:00.000000000 Z
11
+ date: 2023-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: bundler
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '1.14'
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: '1.14'
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: rake
29
15
  requirement: !ruby/object:Gem::Requirement
@@ -145,6 +131,7 @@ executables:
145
131
  extensions: []
146
132
  extra_rdoc_files: []
147
133
  files:
134
+ - ".github/workflows/test.yml"
148
135
  - ".gitignore"
149
136
  - ".rspec"
150
137
  - ".travis.yml"
@@ -173,7 +160,7 @@ homepage: https://github.com/envato/knuckle_cluster
173
160
  licenses:
174
161
  - MIT
175
162
  metadata: {}
176
- post_install_message:
163
+ post_install_message:
177
164
  rdoc_options: []
178
165
  require_paths:
179
166
  - lib
@@ -188,9 +175,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
188
175
  - !ruby/object:Gem::Version
189
176
  version: '0'
190
177
  requirements: []
191
- rubyforge_project:
192
- rubygems_version: 2.6.13
193
- signing_key:
178
+ rubygems_version: 3.3.7
179
+ signing_key:
194
180
  specification_version: 4
195
181
  summary: Handy cluster tool
196
182
  test_files: []