New Upstream Snapshot - ruby-atomic

Ready changes

Summary

Merged new upstream version: 1.1.16+git20140606.1.e4c9c40 (was: 1.1.16).

Resulting package

Built on 2022-12-30T05:14 (took 8m20s)

The resulting binary packages can be installed (if you have the apt repository enabled) by running one of:

apt install -t fresh-snapshots ruby-atomic-dbgsymapt install -t fresh-snapshots ruby-atomic

Lintian Result

Diff

diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index 5f3f73d..0000000
--- a/.gitignore
+++ /dev/null
@@ -1,8 +0,0 @@
-.*.sw?
-lib/atomic_reference.jar
-/nbproject
-ext/*.bundle
-ext/*.so
-ext/*.jar
-pkg
-*.gem
diff --git a/Gemfile b/Gemfile
index 83d71a7..55034a9 100644
--- a/Gemfile
+++ b/Gemfile
@@ -1,4 +1,4 @@
 source "https://rubygems.org"
 
 gem 'rake-compiler'
-gem 'minitest', :group => :development
+gem 'minitest', '>= 5.0.0', :group => :development
diff --git a/README.md b/README.md
index 6001f9f..2b39ed4 100644
--- a/README.md
+++ b/README.md
@@ -1,53 +1,3 @@
-atomic: An atomic reference implementation for JRuby, Rubinius, and MRI.
-========================================================================
+This library has been moved to https://github.com/ruby-concurrency/atomic.
 
-[![Build Status](https://travis-ci.org/headius/ruby-atomic.png?branch=master)](https://travis-ci.org/headius/ruby-atomic)
-
-Summary
-=======
-
-This library provides:
-
-* an Atomic class that guarantees atomic updates to its contained value
-
-The Atomic class provides accessors for the contained "value" plus two update methods:
-
-* 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.
-
-Usage
-=====
-
-The simplest way to use "atomic" is to call the "update" or "try_update" methods.
-
-"try_update" and "update" both call the given block, passing the current value and using the block's result as the new value. If the value is updated by another thread before the block completes, "try update" raises a ConcurrentUpdateError and "update" retries the block. Because "update" may call the block several times when multiple threads are all updating the same value, the block's logic should be kept as simple as possible.
-
-```ruby
-require 'atomic'
-
-my_atomic = Atomic.new(0)
-my_atomic.update {|v| v + 1}
-begin
-  my_atomic.try_update {|v| v + 1}
-rescue Atomic::ConcurrentUpdateError => cue
-  # deal with it (retry, propagate, etc)
-end
-```
-
-It's also possible to use the regular get/set operations on the Atomic, if you want to avoid the exception and respond to contended changes in some other way.
-
-```ruby
-my_atomic = Atomic.new(0)
-my_atomic.value # => 0
-my_atomic.value = 1
-my_atomic.swap(2) # => 1
-my_atomic.compare_and_swap(2, 3) # => true, updated to 3
-my_atomic.compare_and_swap(2, 3) # => false, current is not 2
-```
-
-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.
+It will be merged with the concurrent-ruby gem under the same org soon.
diff --git a/checksums.yaml.gz b/checksums.yaml.gz
deleted file mode 100644
index 179d4a6..0000000
Binary files a/checksums.yaml.gz and /dev/null differ
diff --git a/debian/changelog b/debian/changelog
index 2427360..76c0c9b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,12 +1,13 @@
-ruby-atomic (1.1.16-4) UNRELEASED; urgency=medium
+ruby-atomic (1.1.16+git20140606.1.e4c9c40-1) UNRELEASED; urgency=medium
 
   * Apply multi-arch hints.
     + ruby-atomic: Add Multi-Arch: same.
   * Update watch file format version to 4.
   * Bump debhelper from old 12 to 13.
   * Update standards version to 4.5.1, no changes needed.
+  * New upstream snapshot.
 
- -- Debian Janitor <janitor@jelmer.uk>  Tue, 27 Oct 2020 04:25:05 -0000
+ -- Debian Janitor <janitor@jelmer.uk>  Fri, 30 Dec 2022 05:08:13 -0000
 
 ruby-atomic (1.1.16-3) unstable; urgency=medium
 
diff --git a/metadata.yml b/metadata.yml
deleted file mode 100644
index 92e85c1..0000000
--- a/metadata.yml
+++ /dev/null
@@ -1,76 +0,0 @@
---- !ruby/object:Gem::Specification
-name: atomic
-version: !ruby/object:Gem::Version
-  version: 1.1.16
-platform: ruby
-authors:
-- Charles Oliver Nutter
-- MenTaLguY
-- Sokolov Yura
-autorequire: 
-bindir: bin
-cert_chain: []
-date: 2014-03-17 00:00:00.000000000 Z
-dependencies: []
-description: An atomic reference implementation for JRuby, Rubinius, and MRI
-email:
-- headius@headius.com
-- mental@rydia.net
-- funny.falcon@gmail.com
-executables: []
-extensions:
-- ext/extconf.rb
-extra_rdoc_files: []
-files:
-- ".gitignore"
-- ".travis.yml"
-- Gemfile
-- LICENSE
-- README.md
-- Rakefile
-- atomic.gemspec
-- examples/atomic_example.rb
-- examples/bench_atomic.rb
-- examples/bench_atomic_1.rb
-- examples/graph_atomic_bench.rb
-- ext/AtomicReferenceService.java
-- ext/atomic_reference.c
-- ext/extconf.rb
-- ext/org/jruby/ext/atomic/AtomicReferenceLibrary.java
-- lib/atomic.rb
-- lib/atomic/concurrent_update_error.rb
-- lib/atomic/delegated_update.rb
-- lib/atomic/direct_update.rb
-- lib/atomic/fallback.rb
-- lib/atomic/jruby.rb
-- lib/atomic/numeric_cas_wrapper.rb
-- lib/atomic/rbx.rb
-- lib/atomic/ruby.rb
-- test/test_atomic.rb
-homepage: http://github.com/headius/ruby-atomic
-licenses:
-- Apache-2.0
-metadata: {}
-post_install_message: 
-rdoc_options: []
-require_paths:
-- lib
-required_ruby_version: !ruby/object:Gem::Requirement
-  requirements:
-  - - ">="
-    - !ruby/object:Gem::Version
-      version: '0'
-required_rubygems_version: !ruby/object:Gem::Requirement
-  requirements:
-  - - ">="
-    - !ruby/object:Gem::Version
-      version: '0'
-requirements: []
-rubyforge_project: 
-rubygems_version: 2.2.0
-signing_key: 
-specification_version: 4
-summary: An atomic reference implementation for JRuby, Rubinius, and MRI
-test_files:
-- test/test_atomic.rb
-has_rdoc: 
diff --git a/test/test_atomic.rb b/test/test_atomic.rb
index 79eb315..0e8f62a 100644
--- a/test/test_atomic.rb
+++ b/test/test_atomic.rb
@@ -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

Debdiff

[The following lists of changes regard files as different if they have different names, permissions or owners.]

Files in second set of .debs but not in first

-rw-r--r--  root/root   /usr/lib/debug/.build-id/81/a52e5c3e36406be34a46490730256c96f9c6e5.debug

Files in first set of .debs but not in second

-rw-r--r--  root/root   /usr/lib/debug/.build-id/eb/0a5514848b18e62eaef90549b24dc57fa26c9e.debug

No differences were encountered between the control files of package ruby-atomic

Control files of package ruby-atomic-dbgsym: lines which differ (wdiff format)

  • Build-Ids: eb0a5514848b18e62eaef90549b24dc57fa26c9e 81a52e5c3e36406be34a46490730256c96f9c6e5

More details

Full run details