Hello community, here is the log from the commit of package rubygem-concurrent-ruby for openSUSE:Factory checked in at 2019-03-04 09:19:36 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-concurrent-ruby (Old) and /work/SRC/openSUSE:Factory/.rubygem-concurrent-ruby.new.28833 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-concurrent-ruby" Mon Mar 4 09:19:36 2019 rev:8 rq:679517 version:1.1.4 Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-concurrent-ruby/rubygem-concurrent-ruby.changes 2018-11-20 22:43:34.270257533 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-concurrent-ruby.new.28833/rubygem-concurrent-ruby.changes 2019-03-04 09:19:41.392608381 +0100 @@ -1,0 +2,11 @@ +Wed Dec 19 07:04:11 UTC 2018 - Stephan Kulow <co...@suse.com> + +- updated to version 1.1.4 + see installed CHANGELOG.md + + ## Release v1.1.4 (14 Dec 2018) + + * (#780) Remove java_alias of 'submit' method of Runnable to let executor service work on java 11 + * (#776) Fix NameError on defining a struct with a name which is already taken in an ancestor + +------------------------------------------------------------------- Old: ---- concurrent-ruby-1.1.3.gem New: ---- concurrent-ruby-1.1.4.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-concurrent-ruby.spec ++++++ --- /var/tmp/diff_new_pack.f1OSB2/_old 2019-03-04 09:19:42.320608214 +0100 +++ /var/tmp/diff_new_pack.f1OSB2/_new 2019-03-04 09:19:42.324608213 +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-concurrent-ruby -Version: 1.1.3 +Version: 1.1.4 Release: 0 %define mod_name concurrent-ruby %define mod_full_name %{mod_name}-%{version} ++++++ concurrent-ruby-1.1.3.gem -> concurrent-ruby-1.1.4.gem ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md --- old/CHANGELOG.md 2018-11-07 08:57:25.000000000 +0100 +++ new/CHANGELOG.md 2018-12-15 18:44:20.000000000 +0100 @@ -1,5 +1,10 @@ ## Current +## Release v1.1.4 (14 Dec 2018) + +* (#780) Remove java_alias of 'submit' method of Runnable to let executor service work on java 11 +* (#776) Fix NameError on defining a struct with a name which is already taken in an ancestor + ## Release v1.1.3 (7 Nov 2018) * (#775) fix partial require of the gem (although not officially supported) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.md new/README.md --- old/README.md 2018-11-07 08:57:25.000000000 +0100 +++ new/README.md 2018-12-15 18:44:20.000000000 +0100 @@ -43,7 +43,7 @@ *Concurrent Ruby makes one of the strongest thread safety guarantees of any Ruby concurrency library, providing consistent behavior and guarantees on all three of the main Ruby interpreters -(MRI/CRuby, JRuby, and Rubinius).* +(MRI/CRuby, JRuby, Rubinius, TruffleRuby).* Every abstraction in this library is thread safe. Specific thread safety guarantees are documented with each abstraction. @@ -59,7 +59,7 @@ immutable variable types and data structures. We've also initiated discussion to document [memory model](docs-source/synchronization.md) of Ruby which -would provide consistent behaviour and guarantees on all three of the main Ruby interpreters +would provide consistent behaviour and guarantees on all four of the main Ruby interpreters (MRI/CRuby, JRuby, Rubinius, TruffleRuby). ## Features & Documentation diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Rakefile new/Rakefile --- old/Rakefile 2018-11-07 08:57:25.000000000 +0100 +++ new/Rakefile 2018-12-15 18:44:20.000000000 +0100 @@ -18,11 +18,10 @@ require 'rake/javaextensiontask' -JRUBY_JAR_PATH = '/usr/local/opt/rbenv/versions/jruby-9.1.17.0/lib/jruby.jar' - class ConcurrentRubyJavaExtensionTask < Rake::JavaExtensionTask def java_classpath_arg(*args) jruby_cpath = nil + if RUBY_PLATFORM =~ /java/ begin cpath = Java::java.lang.System.getProperty('java.class.path').split(File::PATH_SEPARATOR) @@ -30,11 +29,26 @@ jruby_cpath = cpath.compact.join(File::PATH_SEPARATOR) rescue => e end + + unless jruby_cpath + libdir = RbConfig::CONFIG['libdir'] + if libdir.start_with? "classpath:" + raise 'Cannot build with jruby-complete' + end + jruby_cpath = File.join(libdir, "jruby.jar") + end end + unless jruby_cpath - jruby_cpath = JRUBY_JAR_PATH - raise "#{jruby_cpath} does not exist" unless File.exist? jruby_cpath + jruby_home = ENV['JRUBY_HOME'] + if jruby_home + candidate = File.join(jruby_home, 'lib', 'jruby.jar') + jruby_cpath = candidate if File.exist? candidate + end end + + raise "jruby.jar path not found" unless jruby_cpath + jruby_cpath += File::PATH_SEPARATOR + args.join(File::PATH_SEPARATOR) unless args.empty? jruby_cpath ? "-cp \"#{jruby_cpath}\"" : "" end @@ -63,7 +77,9 @@ desc '* with Windows fat distributions' task :all do Dir.chdir(__dir__) do + # store gems in vendor cache for docker sh 'bundle package' + # needed only if the jar is built outside of docker Rake::Task['lib/concurrent/concurrent_ruby.jar'].invoke RakeCompilerDock.exec 'support/cross_building.sh' @@ -119,7 +135,7 @@ puts 'RSpec is not installed, skipping test task definitions: ' + e.message end -current_yard_version_name = Concurrent::VERSION.split('.')[0..2].join('.') +current_yard_version_name = [*Concurrent::VERSION.split('.')[0..1], 'x'].join('.') begin require 'yard' Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ Binary files old/lib/concurrent/concurrent_ruby.jar and new/lib/concurrent/concurrent_ruby.jar differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/concurrent/executor/java_executor_service.rb new/lib/concurrent/executor/java_executor_service.rb --- old/lib/concurrent/executor/java_executor_service.rb 2018-11-07 08:57:25.000000000 +0100 +++ new/lib/concurrent/executor/java_executor_service.rb 2018-12-15 18:44:21.000000000 +0100 @@ -20,13 +20,12 @@ def initialize(*args, &block) super - ns_make_executor_runnable end def post(*args, &task) raise ArgumentError.new('no block given') unless block_given? return handle_fallback(*args, &task) unless running? - @executor.submit_runnable Job.new(args, task) + @executor.submit Job.new(args, task) true rescue Java::JavaUtilConcurrent::RejectedExecutionException raise RejectedExecutionError @@ -75,14 +74,6 @@ @executor.isShutdown || @executor.isTerminated end - def ns_make_executor_runnable - if !defined?(@executor.submit_runnable) - @executor.class.class_eval do - java_alias :submit_runnable, :submit, [java.lang.Runnable.java_class] - end - end - end - class Job include Runnable def initialize(args, block) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/concurrent/synchronization/abstract_struct.rb new/lib/concurrent/synchronization/abstract_struct.rb --- old/lib/concurrent/synchronization/abstract_struct.rb 2018-11-07 08:57:25.000000000 +0100 +++ new/lib/concurrent/synchronization/abstract_struct.rb 2018-12-15 18:44:21.000000000 +0100 @@ -138,7 +138,7 @@ end unless name.nil? begin - parent.send :remove_const, name if parent.const_defined? name + parent.send :remove_const, name if parent.const_defined?(name, false) parent.const_set(name, clazz) clazz rescue NameError diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/concurrent/version.rb new/lib/concurrent/version.rb --- old/lib/concurrent/version.rb 2018-11-07 08:57:25.000000000 +0100 +++ new/lib/concurrent/version.rb 2018-12-15 18:44:22.000000000 +0100 @@ -1,4 +1,4 @@ module Concurrent - VERSION = '1.1.3' + VERSION = '1.1.4' EDGE_VERSION = '0.4.1' end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2018-11-07 08:57:25.000000000 +0100 +++ new/metadata 2018-12-15 18:44:20.000000000 +0100 @@ -1,7 +1,7 @@ --- !ruby/object:Gem::Specification name: concurrent-ruby version: !ruby/object:Gem::Version - version: 1.1.3 + version: 1.1.4 platform: ruby authors: - Jerry D'Antonio @@ -10,7 +10,7 @@ autorequire: bindir: bin cert_chain: [] -date: 2018-11-07 00:00:00.000000000 Z +date: 2018-12-15 00:00:00.000000000 Z dependencies: [] description: | Modern concurrency tools including agents, futures, promises, thread pools, actors, supervisors, and more.