kitchen-sync 2.2.0 → 2.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ba5198731d1dd70eb8db2ceef6d7840c142d32e1
4
- data.tar.gz: c97d2770874f52912239bc74bc2aca14d04af937
3
+ metadata.gz: d92f830da3a20aa2b16cbe285b484974301734cb
4
+ data.tar.gz: f4ddbaef0d6d7c1e1f62947a3d7db6cfc5fd08b5
5
5
  SHA512:
6
- metadata.gz: 3cb717358878edbf818963330b8a920ca3f98fcaed7575c0d2c185cb174433c6502554c9d353f04f6b6f2d5d5ed61a29a90fb6603fc62a655b0c9360c099546d
7
- data.tar.gz: 5c8c7c0d131d8906d4269a149c38a7081fea54b586b6d8b6ff49ade103155b44c26b6053dcb990d14a6728cc577685081458555dd183b7a3c98279c88c12dbf7
6
+ metadata.gz: decac92f7062ce9301096f557e88d86fec816087ad8edaacbacf2a2707dce686d34c1fd22efd4919e70fb4904fbf1df2f4b542f51e899c203f972074562de47f
7
+ data.tar.gz: e0eac175bd0e9616d92a5a04d50e9cef1ae21be9468f6901ca4cf866d1f8d7233531b589c882966432737967a45ac490e5f5334abe19cfa825a3f1a10546e625
@@ -1,5 +1,9 @@
1
1
  # Kitchen-Sync Changelog
2
2
 
3
+ ## v2.2.1
4
+
5
+ Fix compatibility with current `kitchen-inspec` verifier.
6
+
3
7
  ## v2.2.0
4
8
 
5
9
  Add configurable `ruby_path` for `sftp` transport.
@@ -16,5 +16,5 @@
16
16
 
17
17
 
18
18
  class KitchenSync
19
- VERSION = '2.2.0'
19
+ VERSION = '2.2.1'
20
20
  end
@@ -24,6 +24,16 @@ require 'kitchen-sync/core_ext'
24
24
  module Kitchen
25
25
  module Transport
26
26
  class Rsync < Ssh
27
+ def finalize_config!(instance)
28
+ super.tap do
29
+ if defined?(Kitchen::Verifier::Inspec) && instance.verifier.is_a?(Kitchen::Verifier::Inspec)
30
+ instance.verifier.send(:define_singleton_method, :runner_options_for_rsync) do |config_data|
31
+ runner_options_for_ssh(config_data)
32
+ end
33
+ end
34
+ end
35
+ end
36
+
27
37
  # Copy-pasta from Ssh#create_new_connection because I need the Rsync
28
38
  # connection class.
29
39
  # Tracked in https://github.com/test-kitchen/test-kitchen/pull/726
@@ -34,6 +34,16 @@ module Kitchen
34
34
 
35
35
  default_config :ruby_path, '/opt/chef/embedded/bin/ruby'
36
36
 
37
+ def finalize_config!(instance)
38
+ super.tap do
39
+ if defined?(Kitchen::Verifier::Inspec) && instance.verifier.is_a?(Kitchen::Verifier::Inspec)
40
+ instance.verifier.send(:define_singleton_method, :runner_options_for_sftp) do |config_data|
41
+ runner_options_for_ssh(config_data)
42
+ end
43
+ end
44
+ end
45
+ end
46
+
37
47
  # Copy-pasta from Ssh#create_new_connection because I need the SFTP
38
48
  # connection class.
39
49
  # Tracked in https://github.com/test-kitchen/test-kitchen/pull/726
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen-sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Noah Kantrowitz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-10 00:00:00.000000000 Z
11
+ date: 2018-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-kitchen
@@ -106,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
106
  version: '0'
107
107
  requirements: []
108
108
  rubyforge_project:
109
- rubygems_version: 2.6.11
109
+ rubygems_version: 2.6.13
110
110
  signing_key:
111
111
  specification_version: 4
112
112
  summary: Improved file transfers for for test-kitchen