Hello community,

here is the log from the commit of package rubygem-winrm-fs for 
openSUSE:Factory checked in at 2020-02-04 19:57:56
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-winrm-fs (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-winrm-fs.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-winrm-fs"

Tue Feb  4 19:57:56 2020 rev:8 rq:770019 version:1.3.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-winrm-fs/rubygem-winrm-fs.changes        
2019-01-21 10:54:18.943731435 +0100
+++ 
/work/SRC/openSUSE:Factory/.rubygem-winrm-fs.new.26092/rubygem-winrm-fs.changes 
    2020-02-04 19:57:59.845484123 +0100
@@ -1,0 +2,11 @@
+Tue Feb  4 14:53:01 UTC 2020 - Dan Čermák <[email protected]>
+
+- New upstream release 1.3.4
+
+  # 1.3.4
+  - Bump rubyzip dependency
+
+  # 1.3.3
+  - Replace erubis with erubi
+
+-------------------------------------------------------------------

Old:
----
  winrm-fs-1.3.2.gem

New:
----
  winrm-fs-1.3.4.gem

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

Other differences:
------------------
++++++ rubygem-winrm-fs.spec ++++++
--- /var/tmp/diff_new_pack.YaX5t2/_old  2020-02-04 19:58:01.725485219 +0100
+++ /var/tmp/diff_new_pack.YaX5t2/_new  2020-02-04 19:58:01.761485240 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-winrm-fs
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,30 +16,29 @@
 #
 
 
+%define mod_name winrm-fs
+%define mod_full_name %{mod_name}-%{version}
 #
 # This file was generated with a gem2rpm.yml and not just plain gem2rpm.
 # All sections marked as MANUAL, license headers, summaries and descriptions
 # can be maintained in that file. Please consult this file before editing any
 # of those fields
 #
-
 Name:           rubygem-winrm-fs
-Version:        1.3.2
+Version:        1.3.4
 Release:        0
-%define mod_name winrm-fs
-%define mod_full_name %{mod_name}-%{version}
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-BuildRequires:  %{ruby >= 2.2.0}
+Summary:        WinRM File System
+License:        Apache-2.0
+Group:          Development/Languages/Ruby
+URL:            https://github.com/WinRb/winrm-fs
+Source:         https://rubygems.org/gems/%{mod_full_name}.gem
+Source1:        gem2rpm.yml
+BuildRequires:  %{ruby >= 2.4.0}
 BuildRequires:  %{rubygem gem2rpm}
 BuildRequires:  %{rubygem rdoc > 3.10}
 BuildRequires:  ruby-macros >= 5
 BuildRequires:  update-alternatives
-Url:            http://github.com/WinRb/winrm-fs
-Source:         https://rubygems.org/gems/%{mod_full_name}.gem
-Source1:        gem2rpm.yml
-Summary:        WinRM File System
-License:        Apache-2.0
-Group:          Development/Languages/Ruby
+# FIXME: use proper Requires(pre/post/preun/...)
 PreReq:         update-alternatives
 
 %description

++++++ winrm-fs-1.3.2.gem -> winrm-fs-1.3.4.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/bin/rwinrmcp new/bin/rwinrmcp
--- old/bin/rwinrmcp    2018-12-20 01:31:25.000000000 +0100
+++ new/bin/rwinrmcp    2019-11-14 16:58:24.000000000 +0100
@@ -1,4 +1,6 @@
 #!/usr/bin/env ruby
+# frozen_string_literal: true
+
 #
 # Copyright 2014 Shawn Neal <[email protected]>
 #
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/winrm-fs/core/file_transporter.rb 
new/lib/winrm-fs/core/file_transporter.rb
--- old/lib/winrm-fs/core/file_transporter.rb   2018-12-20 01:31:25.000000000 
+0100
+++ new/lib/winrm-fs/core/file_transporter.rb   2019-11-14 16:58:24.000000000 
+0100
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
 #
 # Author:: Fletcher (<[email protected]>)
 #
@@ -31,7 +33,7 @@
       #
       # @author Fletcher Nichol <[email protected]>
       class FileTransporterFailed < ::WinRM::WinRMError; end
-      # rubocop:disable MethodLength, AbcSize, ClassLength
+      # rubocop:disable Metrics/MethodLength, Metrics/AbcSize, 
Metrics/ClassLength
 
       # Exception for the case where upload source contains more than one
       # StringIO object, or a combination of file/directory paths and StringIO 
object
@@ -449,8 +451,9 @@
           read_size = ((max_encoded_write - dest.length) / 4) * 3
           chunk = 1
           bytes = 0
+          # Do not freeze this string
           buffer = ''
-          shell.run(<<-EOS
+          shell.run(<<-PS
             $to = 
$ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath("#{dest}")
             $parent = Split-Path $to
             if(!(Test-path $parent)) { mkdir $parent | Out-Null }
@@ -469,7 +472,7 @@
             # ClearScriptBlockCache to clear it.
             $bindingFlags= [Reflection.BindingFlags] "NonPublic,Static"
             $method = [scriptblock].GetMethod("ClearScriptBlockCache", 
$bindingFlags)
-          EOS
+          PS
                    )
 
           while input_io.read(read_size, buffer)
@@ -486,11 +489,11 @@
         end
 
         def stream_command(encoded_bytes)
-          <<-EOS
+          <<-PS
             if($method) { $method.Invoke($Null, $Null) }
             $bytes=[Convert]::FromBase64String('#{encoded_bytes}')
             $fileStream.Write($bytes, 0, $bytes.length)
-          EOS
+          PS
         end
 
         # Uploads a local file.
@@ -560,7 +563,7 @@
           size / 3 * 4
         end
       end
-      # rubocop:enable MethodLength, AbcSize, ClassLength
+      # rubocop:enable Metrics/MethodLength, Metrics/AbcSize, 
Metrics/ClassLength
     end
   end
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/winrm-fs/core/tmp_zip.rb 
new/lib/winrm-fs/core/tmp_zip.rb
--- old/lib/winrm-fs/core/tmp_zip.rb    2018-12-20 01:31:25.000000000 +0100
+++ new/lib/winrm-fs/core/tmp_zip.rb    2019-11-14 16:58:24.000000000 +0100
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 #
 # Author:: Fletcher (<[email protected]>)
 #
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/winrm-fs/exceptions.rb 
new/lib/winrm-fs/exceptions.rb
--- old/lib/winrm-fs/exceptions.rb      2018-12-20 01:31:25.000000000 +0100
+++ new/lib/winrm-fs/exceptions.rb      2019-11-14 16:58:24.000000000 +0100
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 #
 # Copyright 2015 Shawn Neal <[email protected]>
 #
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/winrm-fs/file_manager.rb 
new/lib/winrm-fs/file_manager.rb
--- old/lib/winrm-fs/file_manager.rb    2018-12-20 01:31:25.000000000 +0100
+++ new/lib/winrm-fs/file_manager.rb    2019-11-14 16:58:24.000000000 +0100
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 #
 # Copyright 2015 Shawn Neal <[email protected]>
 #
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/winrm-fs/scripts/scripts.rb 
new/lib/winrm-fs/scripts/scripts.rb
--- old/lib/winrm-fs/scripts/scripts.rb 2018-12-20 01:31:25.000000000 +0100
+++ new/lib/winrm-fs/scripts/scripts.rb 2019-11-14 16:58:24.000000000 +0100
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 #
 # Copyright 2015 Shawn Neal <[email protected]>
 #
@@ -13,18 +15,32 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-require 'erubis'
+require 'erubi'
 
 module WinRM
   module FS
     # PS1 scripts
     module Scripts
+      # rubocop:disable Metrics/MethodLength
       def self.render(template, context)
+        # rubocop:enable Metrics/MethodLength
         template_path = File.expand_path(
           "#{File.dirname(__FILE__)}/#{template}.ps1.erb"
         )
         template = File.read(template_path)
-        Erubis::Eruby.new(template).result(context)
+        case context
+        when Hash
+          b = binding
+          locals = context.collect { |k, _| "#{k} = context[#{k.inspect}]; " }
+          b.eval(locals.join)
+        when Binding
+          b = context
+        when NilClass
+          b = binding
+        else
+          raise ArgumentError
+        end
+        b.eval(Erubi::Engine.new(template).src)
       end
     end
   end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/winrm-fs.rb new/lib/winrm-fs.rb
--- old/lib/winrm-fs.rb 2018-12-20 01:31:25.000000000 +0100
+++ new/lib/winrm-fs.rb 2019-11-14 16:58:24.000000000 +0100
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 #
 # Copyright 2015 Shawn Neal <[email protected]>
 #
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2018-12-20 01:31:25.000000000 +0100
+++ new/metadata        2019-11-14 16:58:24.000000000 +0100
@@ -1,7 +1,7 @@
 --- !ruby/object:Gem::Specification
 name: winrm-fs
 version: !ruby/object:Gem::Version
-  version: 1.3.2
+  version: 1.3.4
 platform: ruby
 authors:
 - Shawn Neal
@@ -9,22 +9,22 @@
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2018-12-19 00:00:00.000000000 Z
+date: 2019-11-14 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
-  name: erubis
+  name: erubi
   requirement: !ruby/object:Gem::Requirement
     requirements:
     - - "~>"
       - !ruby/object:Gem::Version
-        version: '2.7'
+        version: '1.8'
   type: :runtime
   prerelease: false
   version_requirements: !ruby/object:Gem::Requirement
     requirements:
     - - "~>"
       - !ruby/object:Gem::Version
-        version: '2.7'
+        version: '1.8'
 - !ruby/object:Gem::Dependency
   name: logging
   requirement: !ruby/object:Gem::Requirement
@@ -51,14 +51,14 @@
     requirements:
     - - "~>"
       - !ruby/object:Gem::Version
-        version: '1.1'
+        version: '2.0'
   type: :runtime
   prerelease: false
   version_requirements: !ruby/object:Gem::Requirement
     requirements:
     - - "~>"
       - !ruby/object:Gem::Version
-        version: '1.1'
+        version: '2.0'
 - !ruby/object:Gem::Dependency
   name: winrm
   requirement: !ruby/object:Gem::Requirement
@@ -127,14 +127,14 @@
     requirements:
     - - "~>"
       - !ruby/object:Gem::Version
-        version: '0.51'
+        version: 0.68.0
   type: :development
   prerelease: false
   version_requirements: !ruby/object:Gem::Requirement
     requirements:
     - - "~>"
       - !ruby/object:Gem::Version
-        version: '0.51'
+        version: 0.68.0
 description: "    Ruby library for file system operations via Windows Remote 
Management\n"
 email:
 - [email protected]
@@ -178,7 +178,7 @@
   requirements:
   - - ">="
     - !ruby/object:Gem::Version
-      version: 2.2.0
+      version: 2.4.0
 required_rubygems_version: !ruby/object:Gem::Requirement
   requirements:
   - - ">="
@@ -186,7 +186,7 @@
       version: '0'
 requirements: []
 rubyforge_project: 
-rubygems_version: 2.7.6
+rubygems_version: 2.7.8
 signing_key: 
 specification_version: 4
 summary: WinRM File System


Reply via email to