Hello community,

here is the log from the commit of package rubygem-sshkit for openSUSE:Factory 
checked in at 2018-11-26 10:33:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-sshkit (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-sshkit.new.19453 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-sshkit"

Mon Nov 26 10:33:51 2018 rev:24 rq:651619 version:1.18.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-sshkit/rubygem-sshkit.changes    
2018-07-18 22:53:13.387103522 +0200
+++ /work/SRC/openSUSE:Factory/.rubygem-sshkit.new.19453/rubygem-sshkit.changes 
2018-11-26 10:36:09.004617344 +0100
@@ -1,0 +2,10 @@
+Thu Nov 22 05:38:06 UTC 2018 - Stephan Kulow <co...@suse.com>
+
+- updated to version 1.18.0
+ see installed CHANGELOG.md
+
+  ## [1.18.0][] (2018-10-21)
+  
+    * [#435](https://github.com/capistrano/sshkit/pull/435): Consistent 
verbosity configuration #capture and #test methods - 
[@NikolayRys](https://github.com/NikolayRys)
+
+-------------------------------------------------------------------

Old:
----
  sshkit-1.17.0.gem

New:
----
  sshkit-1.18.0.gem

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ rubygem-sshkit.spec ++++++
--- /var/tmp/diff_new_pack.jQUQiE/_old  2018-11-26 10:36:21.668602529 +0100
+++ /var/tmp/diff_new_pack.jQUQiE/_new  2018-11-26 10:36:21.672602525 +0100
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
@@ -24,7 +24,7 @@
 #
 
 Name:           rubygem-sshkit
-Version:        1.17.0
+Version:        1.18.0
 Release:        0
 %define mod_name sshkit
 %define mod_full_name %{mod_name}-%{version}

++++++ sshkit-1.17.0.gem -> sshkit-1.18.0.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md
--- old/CHANGELOG.md    2018-07-08 03:07:35.000000000 +0200
+++ new/CHANGELOG.md    2018-10-22 01:18:32.000000000 +0200
@@ -7,6 +7,10 @@
 
   * Your contribution here!
 
+## [1.18.0][] (2018-10-21)
+
+  * [#435](https://github.com/capistrano/sshkit/pull/435): Consistent 
verbosity configuration #capture and #test methods - 
[@NikolayRys](https://github.com/NikolayRys)
+
 ## [1.17.0][] (2018-07-07)
 
   * [#430](https://github.com/capistrano/sshkit/pull/430): [Feature] Command 
Argument STDOUT/capistrano.log Hiding - 
[@NorseGaud](https://github.com/NorseGaud)
@@ -746,7 +750,8 @@
 
 First release.
 
-[Unreleased]: https://github.com/capistrano/sshkit/compare/v1.17.0...HEAD
+[Unreleased]: https://github.com/capistrano/sshkit/compare/v1.18.0...HEAD
+[1.18.0]: https://github.com/capistrano/sshkit/compare/v1.17.0...v1.18.0
 [1.17.0]: https://github.com/capistrano/sshkit/compare/v1.16.1...v1.17.0
 [1.16.1]: https://github.com/capistrano/sshkit/compare/v1.16.0...v1.16.1
 [1.16.0]: https://github.com/capistrano/sshkit/compare/v1.15.1...v1.16.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/README.md new/README.md
--- old/README.md       2018-07-08 03:07:35.000000000 +0200
+++ new/README.md       2018-10-22 01:18:32.000000000 +0200
@@ -445,13 +445,13 @@
 
 #### Output & Log Redaction
 
-If necessary, redact() can be used on a section of your execute arguments to 
hide it from both STDOUT and the capistrano.log. It supports the majority of 
data types.
+If necessary, `redact` can be used on a section of your `execute` arguments to 
hide it from both STDOUT and the capistrano.log. It supports the majority of 
data types.
 
 ```ruby
 # Example from capistrano-postgresql gem
 execute(:psql, fetch(:pg_system_db), '-c', %Q{"CREATE USER 
\\"#{fetch(:pg_username)}\\" PASSWORD}, redact("'#{fetch(:pg_password)}'"), 
%Q{;"})
 ```
-Once wrapped, sshkit logging will replace the actual pg_password with a 
[REDACTED] value:
+Once wrapped, sshkit logging will replace the actual pg_password with a 
[REDACTED] value. The created database user will have the value from 
`fetch(:pg_password)`.
 
 ```
 # STDOUT
@@ -467,7 +467,13 @@
 
 ```
 
-Yet, the created database user will have the value from `fetch(:pg_password)`.
+Certain commands will require that no spaces exist between a string and what 
you want hidden. Because SSHKIT will include a whitespace between each argument 
of `execute`, this can be dealt with by wrapping both in redact:
+
+```ruby
+# lib/capistrano/tasks/systemd.rake
+execute :sudo, :echo, 
redact("CONTENT_WEB_TOOLS_PASS='#{ENV['CONTENT_WEB_TOOLS_PASS']}'"), ">> 
/etc/systemd/system/#{fetch(:application)}_sidekiq.service.d/EnvironmentFile", 
'"'
+
+```
 
 #### Output Colors
 
@@ -514,6 +520,8 @@
 the `Command` instances of `Logger::DEBUG`. The default configuration for
 output verbosity is available to override with 
`SSHKit.config.output_verbosity=`,
 and defaults to `Logger::INFO`.
+Another way to is to provide a hash containing `{verbosity: Logger::INFO}` as
+a last parameter for the method call.
 
 At present the `Logger::WARN`, `ERROR` and `FATAL` are not used.
 
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/sshkit/backends/abstract.rb 
new/lib/sshkit/backends/abstract.rb
--- old/lib/sshkit/backends/abstract.rb 2018-07-08 03:07:35.000000000 +0200
+++ new/lib/sshkit/backends/abstract.rb 2018-10-22 01:18:32.000000000 +0200
@@ -55,7 +55,7 @@
       end
 
       def test(*args)
-        options = args.extract_options!.merge(raise_on_non_zero_exit: false, 
verbosity: Logger::DEBUG)
+        options = { verbosity: Logger::DEBUG, raise_on_non_zero_exit: false 
}.merge(args.extract_options!)
         create_command_and_execute(args, options).success?
       end
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/sshkit/version.rb new/lib/sshkit/version.rb
--- old/lib/sshkit/version.rb   2018-07-08 03:07:35.000000000 +0200
+++ new/lib/sshkit/version.rb   2018-10-22 01:18:32.000000000 +0200
@@ -1,3 +1,3 @@
 module SSHKit
-  VERSION = "1.17.0".freeze
+  VERSION = "1.18.0".freeze
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2018-07-08 03:07:35.000000000 +0200
+++ new/metadata        2018-10-22 01:18:32.000000000 +0200
@@ -1,7 +1,7 @@
 --- !ruby/object:Gem::Specification
 name: sshkit
 version: !ruby/object:Gem::Version
-  version: 1.17.0
+  version: 1.18.0
 platform: ruby
 authors:
 - Lee Hambley
@@ -9,7 +9,7 @@
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2018-07-08 00:00:00.000000000 Z
+date: 2018-10-21 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: net-ssh
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/test/unit/backends/test_abstract.rb 
new/test/unit/backends/test_abstract.rb
--- old/test/unit/backends/test_abstract.rb     2018-07-08 03:07:35.000000000 
+0200
+++ new/test/unit/backends/test_abstract.rb     2018-10-22 01:18:32.000000000 
+0200
@@ -40,7 +40,7 @@
         )
       end
 
-      def 
test_test_method_creates_and_executes_command_with_false_raise_on_non_zero_exit
+      def 
test_test_creates_and_executes_command_with_false_raise_on_non_zero_exit
         backend = ExampleBackend.new do
           test '[ -d /some/file ]'
         end
@@ -51,6 +51,14 @@
         assert_equal false, 
backend.executed_command.options[:raise_on_non_zero_exit], 
'raise_on_non_zero_exit option'
       end
 
+      def test_test_allows_to_override_verbosity
+        backend = ExampleBackend.new do
+          test 'echo output', {verbosity: Logger::INFO}
+        end
+        backend.run
+        assert_equal(backend.executed_command.options[:verbosity], 
Logger::INFO)
+      end
+
       def test_capture_creates_and_executes_command_and_returns_stripped_output
         output = nil
         backend = ExampleBackend.new do


Reply via email to