Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package rubygem-chef-utils for 
openSUSE:Factory checked in at 2021-08-24 10:54:20
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-chef-utils (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-chef-utils.new.1899 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-chef-utils"

Tue Aug 24 10:54:20 2021 rev:3 rq:912492 version:17.3.48

Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-chef-utils/rubygem-chef-utils.changes    
2021-07-02 13:28:25.420315259 +0200
+++ 
/work/SRC/openSUSE:Factory/.rubygem-chef-utils.new.1899/rubygem-chef-utils.changes
  2021-08-24 10:55:12.516294265 +0200
@@ -1,0 +2,6 @@
+Mon Jul 26 05:51:02 UTC 2021 - Stephan Kulow <[email protected]>
+
+updated to version 17.3.48
+  no changelog found
+
+-------------------------------------------------------------------

Old:
----
  chef-utils-17.2.29.gem

New:
----
  chef-utils-17.3.48.gem

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

Other differences:
------------------
++++++ rubygem-chef-utils.spec ++++++
--- /var/tmp/diff_new_pack.Q3XNXh/_old  2021-08-24 10:55:12.968293667 +0200
+++ /var/tmp/diff_new_pack.Q3XNXh/_new  2021-08-24 10:55:12.976293656 +0200
@@ -24,7 +24,7 @@
 #
 
 Name:           rubygem-chef-utils
-Version:        17.2.29
+Version:        17.3.48
 Release:        0
 %define mod_name chef-utils
 %define mod_full_name %{mod_name}-%{version}

++++++ chef-utils-17.2.29.gem -> chef-utils-17.3.48.gem ++++++
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/chef-utils/dsl/platform_family.rb 
new/lib/chef-utils/dsl/platform_family.rb
--- old/lib/chef-utils/dsl/platform_family.rb   2021-06-09 16:11:27.000000000 
+0200
+++ new/lib/chef-utils/dsl/platform_family.rb   2021-07-21 23:30:58.000000000 
+0200
@@ -77,7 +77,7 @@
       # @return [Boolean]
       #
       def macos?(node = __getnode)
-        node["platform_family"] == "mac_os_x"
+        node ? node["platform_family"] == "mac_os_x" : macos_ruby?
       end
       # chef-sugar backcompat method
       alias_method :osx?, :macos?
@@ -86,6 +86,17 @@
       # chef-sugar backcompat method
       alias_method :mac_os_x?, :macos?
 
+      # Determine if the Ruby VM is currently running on a Mac node (This is 
useful primarily for internal use
+      # by Chef Infra Client before the node object exists).
+      #
+      # @since 17.3
+      #
+      # @return [Boolean]
+      #
+      def macos_ruby?
+        !!(RUBY_PLATFORM =~ /darwin/)
+      end
+
       # Determine if the current node is a member of the 'rhel' platform 
family (Red Hat, CentOS, Oracle or Scientific Linux, but NOT Amazon Linux or 
Fedora).
       #
       # @param [Chef::Node] node the node to check
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/chef-utils/parallel_map.rb 
new/lib/chef-utils/parallel_map.rb
--- old/lib/chef-utils/parallel_map.rb  2021-06-09 16:11:27.000000000 +0200
+++ new/lib/chef-utils/parallel_map.rb  2021-07-21 23:30:58.000000000 +0200
@@ -45,7 +45,7 @@
         pool ||= ChefUtils::DefaultThreadPool.instance.pool
 
         futures = map do |item|
-          future = Concurrent::Future.execute(executor: pool) do
+          Concurrent::Future.execute(executor: pool) do
             yield item
           end
         end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/chef-utils/version.rb 
new/lib/chef-utils/version.rb
--- old/lib/chef-utils/version.rb       2021-06-09 16:11:27.000000000 +0200
+++ new/lib/chef-utils/version.rb       2021-07-21 23:30:58.000000000 +0200
@@ -16,5 +16,5 @@
 
 module ChefUtils
   CHEFUTILS_ROOT = File.expand_path("..", __dir__)
-  VERSION = "17.2.29"
+  VERSION = "17.3.48"
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2021-06-09 16:11:27.000000000 +0200
+++ new/metadata        2021-07-21 23:30:58.000000000 +0200
@@ -1,14 +1,14 @@
 --- !ruby/object:Gem::Specification
 name: chef-utils
 version: !ruby/object:Gem::Version
-  version: 17.2.29
+  version: 17.3.48
 platform: ruby
 authors:
 - Chef Software, Inc
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2021-06-09 00:00:00.000000000 Z
+date: 2021-07-21 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: concurrent-ruby
@@ -94,7 +94,7 @@
     - !ruby/object:Gem::Version
       version: '0'
 requirements: []
-rubygems_version: 3.2.15
+rubygems_version: 3.2.22
 signing_key: 
 specification_version: 4
 summary: Basic utility functions for Core Chef Infra development
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/spec/unit/dsl/platform_family_spec.rb 
new/spec/unit/dsl/platform_family_spec.rb
--- old/spec/unit/dsl/platform_family_spec.rb   2021-06-09 16:11:27.000000000 
+0200
+++ new/spec/unit/dsl/platform_family_spec.rb   2021-07-21 23:30:58.000000000 
+0200
@@ -25,7 +25,7 @@
       expect(described_class.send(method, node)).to be true
     end
   end
-  (PLATFORM_FAMILY_HELPERS - [ :windows_ruby? ] - args).each do |method|
+  (PLATFORM_FAMILY_HELPERS - %i{windows_ruby? macos_ruby?} - args).each do 
|method|
     it "reports false for #{method}" do
       expect(described_class.send(method, node)).to be false
     end
@@ -41,7 +41,7 @@
     end
   end
 
-  ( PLATFORM_FAMILY_HELPERS - [ :windows_ruby? ]).each do |helper|
+  ( PLATFORM_FAMILY_HELPERS - %i{windows_ruby? macos_ruby?}).each do |helper|
     it "has the #{helper} in the ChefUtils module" do
       expect(ChefUtils).to respond_to(helper)
     end
@@ -220,4 +220,16 @@
       end
     end
   end
+
+  context "node-independent mac APIs" do
+    if RUBY_PLATFORM.match?(/darwin/)
+      it "reports true for :macos_ruby?" do
+        expect(described_class.macos_ruby?).to be true
+      end
+    else
+      it "reports false for :macos_ruby?" do
+        expect(described_class.macos_ruby?).to be false
+      end
+    end
+  end
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/spec/unit/parallel_map_spec.rb 
new/spec/unit/parallel_map_spec.rb
--- old/spec/unit/parallel_map_spec.rb  2021-06-09 16:11:27.000000000 +0200
+++ new/spec/unit/parallel_map_spec.rb  2021-07-21 23:30:58.000000000 +0200
@@ -112,7 +112,7 @@
     end
 
     it "recursive parallel_each will not deadlock" do
-      ans = Timeout.timeout(30) do
+      Timeout.timeout(30) do
         (1..2).parallel_each { |i| (1..2).parallel_each { |i| i } }
       end
     end
@@ -125,7 +125,7 @@
     end
 
     it "parallel_each is lazy" do
-      ans = Timeout.timeout(30) do
+      Timeout.timeout(30) do
         (1..).lazy.parallel_each { |i| i }.first(5)
       end
     end

Reply via email to