Hello community, here is the log from the commit of package rubygem-atomic for openSUSE:Factory checked in at 2015-02-11 16:44:56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-atomic (Old) and /work/SRC/openSUSE:Factory/.rubygem-atomic.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-atomic" Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-atomic/rubygem-atomic.changes 2014-10-14 07:12:26.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-atomic.new/rubygem-atomic.changes 2015-02-11 16:45:02.000000000 +0100 @@ -1,0 +2,5 @@ +Tue Feb 10 17:22:35 UTC 2015 - [email protected] + +- updated to version 1.1.99 + +------------------------------------------------------------------- Old: ---- atomic-1.1.16.gem New: ---- atomic-1.1.99.gem gem2rpm.yml ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-atomic.spec ++++++ --- /var/tmp/diff_new_pack.uQuPLz/_old 2015-02-11 16:45:03.000000000 +0100 +++ /var/tmp/diff_new_pack.uQuPLz/_new 2015-02-11 16:45:03.000000000 +0100 @@ -1,7 +1,7 @@ # # spec file for package rubygem-atomic # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,8 +16,15 @@ # +# +# 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-atomic -Version: 1.1.16 +Version: 1.1.99 Release: 0 %define mod_name atomic %define mod_full_name %{mod_name}-%{version} @@ -25,8 +32,9 @@ BuildRequires: %{rubydevel} BuildRequires: %{rubygem gem2rpm} BuildRequires: ruby-macros >= 5 -Url: http://github.com/headius/ruby-atomic +Url: http://github.com/ruby-concurrency/ruby-atomic Source: http://rubygems.org/gems/%{mod_full_name}.gem +Source1: gem2rpm.yml Summary: An atomic reference implementation for JRuby, Rubinius, and MRI License: Apache-2.0 Group: Development/Languages/Ruby ++++++ atomic-1.1.16.gem -> atomic-1.1.99.gem ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.coveralls.yml new/.coveralls.yml --- old/.coveralls.yml 1970-01-01 01:00:00.000000000 +0100 +++ new/.coveralls.yml 2015-01-26 23:04:26.000000000 +0100 @@ -0,0 +1 @@ +repo_token: YHujQy7tqpw5P0TuWjwk6Vd5Vuw8LcGvo diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.gitignore new/.gitignore --- old/.gitignore 2014-03-17 14:11:40.000000000 +0100 +++ new/.gitignore 2015-01-26 23:04:26.000000000 +0100 @@ -1,8 +1,37 @@ -.*.sw? -lib/atomic_reference.jar -/nbproject -ext/*.bundle -ext/*.so -ext/*.jar +Gemfile.lock +*.gem +lib/1.8 +lib/1.9 +lib/2.0 +.rvmrc +.ruby-version +.ruby-gemset +.bundle/* +.yardoc/* +yardoc/* +tmp/* +man/* +*.tmproj +rdoc/* +*.orig +*.BACKUP.* +*.BASE.* +*.LOCAL.* +*.REMOTE.* +git_pull.txt +coverage +critic +.DS_Store +TAGS +tmtags +*.sw? +.idea +.rbx/* +lib/**/*.bundle +lib/**/*.so +lib/**/*.jar +ext/**/*.bundle +ext/**/*.so +ext/**/*.jar pkg *.gem diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.travis.yml new/.travis.yml --- old/.travis.yml 2014-03-17 14:11:40.000000000 +0100 +++ new/.travis.yml 2015-01-26 23:04:26.000000000 +0100 @@ -1,10 +1,27 @@ language: ruby + rvm: + - 2.2.0 + - 2.1.5 + - 2.1.4 - 2.0.0 - 1.9.3 - - 1.8.7 - - jruby-18mode # JRuby in 1.8 mode - - jruby-19mode # JRuby in 1.9 mode + - ruby-head + - jruby-1.7.18 + - jruby-head - rbx-2 + jdk: - oraclejdk8 + +sudo: false + +branches: + only: + - master + +matrix: + allow_failures: + - rvm: ruby-head + - rvm: jruby-head + - rvm: 1.9.3 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Gemfile new/Gemfile --- old/Gemfile 2014-03-17 14:11:40.000000000 +0100 +++ new/Gemfile 2015-01-26 23:04:26.000000000 +0100 @@ -1,4 +1,12 @@ -source "https://rubygems.org" +source 'https://rubygems.org' -gem 'rake-compiler' -gem 'minitest', :group => :development +gemspec + +group :development do + gem 'rake', '~> 10.3.2' + gem 'rake-compiler', '~> 0.9.2' +end + +group :testing do + gem 'minitest', '>= 5.0.0', :group => :development +end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.md new/README.md --- old/README.md 2014-03-17 14:11:40.000000000 +0100 +++ new/README.md 2015-01-26 23:04:26.000000000 +0100 @@ -1,10 +1,35 @@ -atomic: An atomic reference implementation for JRuby, Rubinius, and MRI. -======================================================================== +# Ruby Atomic -[](https://travis-ci.org/headius/ruby-atomic) +[](http://badge.fury.io/rb/atomic) [](https://travis-ci.org/ruby-concurrency/atomic) [](https://codeclimate.com/github/ruby-concurrency/atomic) [](https://gemnasium.com/ruby-concurrency/atomic) [](http://opensource.org/licenses/Apache-2.0) [](https://gitter.im/ruby-concurrency/concurrent-ruby) -Summary -======= +An atomic reference implementation for JRuby, Rubinius, and MRI. + +# Deprecated! + +*This gem has been deprecated in lieu of [Concurrent Ruby](http://www.concurrent-ruby.com). +This gem will be retained in GitHUb and Rubygems.org indefinitely but no new development +will occur, including updates to support new versions of Ruby, JRuby, and Java. All users +of this gem are encouraged to update their projects to use `concurrent-ruby` instead.* + +All code from this gem has been merged into `concurrent-ruby` and its companion gems. +All abstrations in this library are available in `concurrent-ruby` but have been moved +under the `Concurrent` module to avoid namespace collisions. + +```ruby +# old way +require 'atomic' +my_atomic = Atomic.new(0) + +# new way +require 'concurrent' +my_atomic = Concurrent::Atomic.new(0) +``` + +# Old Documentation + +*For historic purposes only...* + +## Summary This library provides: @@ -15,10 +40,9 @@ * update will run the provided block, passing the current value and replacing it with the block result if the value has not been changed in the meantime. It may run the block repeatedly if there are other concurrent updates in progress. * try_update will run the provided block, passing the current value and replacing it with the block result. If the value changes before the update can happen, it will throw an Atomic::ConcurrentUpdateError. -The atomic repository is at http://github.com/headius/ruby-atomic. +The atomic repository is at http://github.com/ruby-concurrency/ruby-atomic. -Usage -===== +## Usage The simplest way to use "atomic" is to call the "update" or "try_update" methods. @@ -47,7 +71,6 @@ my_atomic.compare_and_swap(2, 3) # => false, current is not 2 ``` -Building -======== +## Building As of 1.1.0, JDK8 is required to build the atomic gem, since it attempts to use the new atomic Unsafe.getAndSetObject method only in JDK8. The resulting code should still work fine as far back as Java 5. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Rakefile new/Rakefile --- old/Rakefile 2014-03-17 14:11:40.000000000 +0100 +++ new/Rakefile 2015-01-26 23:04:26.000000000 +0100 @@ -13,8 +13,6 @@ require 'rake' require 'rake/testtask' -task :default => :test - desc "Run tests" Rake::TestTask.new :test do |t| t.libs << "lib" @@ -61,3 +59,5 @@ task :package => :compile task :test => :compile + +task :default => :test diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/atomic.gemspec new/atomic.gemspec --- old/atomic.gemspec 2014-03-17 14:11:40.000000000 +0100 +++ new/atomic.gemspec 2015-01-26 23:04:26.000000000 +0100 @@ -4,13 +4,13 @@ Gem::Specification.new do |s| s.name = %q{atomic} - s.version = "1.1.16" + s.version = "1.1.99" s.authors = ["Charles Oliver Nutter", "MenTaLguY", "Sokolov Yura"] s.date = Time.now.strftime('%Y-%m-%d') s.summary = "An atomic reference implementation for JRuby, Rubinius, and MRI" s.description = s.summary s.email = ["[email protected]", "[email protected]", "[email protected]"] - s.homepage = "http://github.com/headius/ruby-atomic" + s.homepage = "http://github.com/ruby-concurrency/ruby-atomic" s.require_paths = ["lib"] s.licenses = ["Apache-2.0"] s.test_files = Dir["test/test*.rb"] @@ -21,4 +21,5 @@ s.extensions = 'ext/extconf.rb' end s.files += `git ls-files`.lines.map(&:chomp) + s.post_install_message = 'This gem has been deprecated and merged into Concurrent Ruby (http://concurrent-ruby.com).' end Files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ext/atomic_reference.c new/ext/atomic_reference.c --- old/ext/atomic_reference.c 2014-03-17 14:11:40.000000000 +0100 +++ new/ext/atomic_reference.c 2015-01-26 23:04:26.000000000 +0100 @@ -37,18 +37,31 @@ } static VALUE ir_get(VALUE self) { +#if HAVE_GCC_SYNC + __sync_synchronize(); +#elif defined _MSC_VER + MemoryBarrier(); +#elif __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1050 + OSMemoryBarrier(); +#endif return (VALUE) DATA_PTR(self); } static VALUE ir_set(VALUE self, VALUE new_value) { DATA_PTR(self) = (void *) new_value; +#if HAVE_GCC_SYNC + __sync_synchronize(); +#elif defined _MSC_VER + MemoryBarrier(); +#elif __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1050 + OSMemoryBarrier(); +#endif return new_value; } static VALUE ir_get_and_set(VALUE self, VALUE new_value) { - VALUE old_value; - old_value = (VALUE) DATA_PTR(self); - DATA_PTR(self) = (void *) new_value; + VALUE old_value = ir_get(self); + ir_set(self, new_value); return old_value; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ext/extconf.rb new/ext/extconf.rb --- old/ext/extconf.rb 2014-03-17 14:11:40.000000000 +0100 +++ new/ext/extconf.rb 2015-01-26 23:04:26.000000000 +0100 @@ -37,11 +37,10 @@ end end -try_run(<<CODE,$CFLAGS) && ($defs << '-DHAVE_GCC_CAS') +try_run(<<CODE,$CFLAGS) && ($defs << '-DHAVE_GCC_SYNC') int main() { - int i = 1; - __sync_bool_compare_and_swap(&i, 1, 4); - return (i != 4); + __sync_synchronize(); + return 0; } CODE diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2014-03-17 14:11:40.000000000 +0100 +++ new/metadata 2015-01-26 23:04:26.000000000 +0100 @@ -1,7 +1,7 @@ --- !ruby/object:Gem::Specification name: atomic version: !ruby/object:Gem::Version - version: 1.1.16 + version: 1.1.99 platform: ruby authors: - Charles Oliver Nutter @@ -10,7 +10,7 @@ autorequire: bindir: bin cert_chain: [] -date: 2014-03-17 00:00:00.000000000 Z +date: 2015-01-26 00:00:00.000000000 Z dependencies: [] description: An atomic reference implementation for JRuby, Rubinius, and MRI email: @@ -22,6 +22,7 @@ - ext/extconf.rb extra_rdoc_files: [] files: +- ".coveralls.yml" - ".gitignore" - ".travis.yml" - Gemfile @@ -47,11 +48,12 @@ - lib/atomic/rbx.rb - lib/atomic/ruby.rb - test/test_atomic.rb -homepage: http://github.com/headius/ruby-atomic +homepage: http://github.com/ruby-concurrency/ruby-atomic licenses: - Apache-2.0 metadata: {} -post_install_message: +post_install_message: This gem has been deprecated and merged into Concurrent Ruby + (http://concurrent-ruby.com). rdoc_options: [] require_paths: - lib @@ -67,10 +69,9 @@ version: '0' requirements: [] rubyforge_project: -rubygems_version: 2.2.0 +rubygems_version: 2.4.5 signing_key: specification_version: 4 summary: An atomic reference implementation for JRuby, Rubinius, and MRI test_files: - test/test_atomic.rb -has_rdoc: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/test_atomic.rb new/test/test_atomic.rb --- old/test/test_atomic.rb 2014-03-17 14:11:40.000000000 +0100 +++ new/test/test_atomic.rb 2015-01-26 23:04:26.000000000 +0100 @@ -13,7 +13,7 @@ require 'minitest/autorun' require 'atomic' -class TestAtomic < MiniTest::Test +class TestAtomic < Minitest::Test def test_construct atomic = Atomic.new assert_equal nil, atomic.value ++++++ gem2rpm.yml ++++++ # --- # ## used by gem2rpm # :summary: this is a custom summary # ## used by gem2rpm # :description: |- # this is a custom description # # it can be multiline # ## used by gem2rpm # :license: MIT or Ruby # ## used by gem2rpm and gem_packages # :version_suffix: -x_y # ## used by gem2rpm and gem_packages # :disable_docs: true # ## used by gem2rpm # :disable_automatic_rdoc_dep: true # ## used by gem2rpm # :preamble: |- # BuildRequires: foobar # Requires: foobar # ## used by gem2rpm # :patches: # foo.patch: -p1 # bar.patch: # ## used by gem2rpm :sources: # - foo.desktop # - bar.desktop # :gem_install_args: '....' # ## used by gem2rpm # :pre_install: |- # %if 0%{?use_system_libev} # export USE_VENDORED_LIBEV="no" # %endif # ## used by gem2rpm # :post_install: |- # # delete custom files here or do other fancy stuff # install -D -m 0644 %{S:1} %{buildroot}%{_bindir}/gem2rpm-opensuse # ## used by gem2rpm # :testsuite_command: |- # (pushd %{buildroot}%{gem_base}/gems/%{mod_full_name} && rake test) # ## used by gem2rpm # :filelist: |- # /usr/bin/gem2rpm-opensuse # ## used by gem2rpm # :scripts: # :post: |- # /bin/echo foo # ## used by gem_packages # :main: # :preamble: |- # Requires: util-linux # Recommends: pwgen # :filelist: |- # /usr/bin/gem2rpm-opensuse # ## used by gem_packages # :custom: # apache: # :preamble: |- # Requires: ..... # :filelist: |- # /etc/apache2/conf.d/passenger.conf # :summary: Custom summary is optional # :description: |- # Custom description is optional # # bar # :post: |- # /bin/echo foo # -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
