atomic 1.1.6 → 1.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/atomic.gemspec +2 -2
- data/ext/extconf.rb +1 -1
- metadata +15 -12
data/atomic.gemspec
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
|
3
3
|
# Update these to get proper version and commit history
|
4
|
-
new_version = "1.1.
|
5
|
-
old_version = "1.1.
|
4
|
+
new_version = "1.1.7"
|
5
|
+
old_version = "1.1.6"
|
6
6
|
|
7
7
|
git_lines = `git log --oneline #{old_version}...#{new_version}`.lines.map {|str| "* #{str}"}.join
|
8
8
|
doc_lines = File.readlines("README.rdoc")
|
data/ext/extconf.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: atomic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,19 +11,22 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2013-04-
|
14
|
+
date: 2013-04-11 00:00:00.000000000 Z
|
15
15
|
dependencies: []
|
16
16
|
description: ! "= An atomic reference implementation for JRuby, Rubinius, and MRI.\n\n\n==
|
17
|
-
Changes since 1.1.
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
17
|
+
Changes since 1.1.6\n\n* fa74e58 Bump version to 1.1.7.\n* 9b58cf0 Merge pull request
|
18
|
+
#20 from lazyspark/master\n* 14fc4a9 Removed compiled gem from src\n* 7d0ade6 Changing
|
19
|
+
the arch to native, to make it successfully compile using mingw\n\n== Summary\n\n\n\nThis
|
20
|
+
library provides:\n\n\n\n* an Atomic class that guarantees atomic updates to its
|
21
|
+
contained value\n\n\n\nThe Atomic class provides accessors for the contained \"value\"
|
22
|
+
plus two update methods:\n\n\n\n* update will run the provided block, passing the
|
23
|
+
current value and replacing it with the block result iff the value has not been
|
24
|
+
changed in the mean time. It may run the block repeatedly if there are other concurrent
|
25
|
+
updates in progress.\n\n* try_update will run the provided block, passing the current
|
26
|
+
value and replacing it with the block result. If the value changes before the update
|
27
|
+
can happen, it will throw Atomic::ConcurrentUpdateError.\n\n\n\nThe atomic repository
|
28
|
+
is at http://github.com/headius/ruby-atomic.\n\n\n\n== Usage\n\n\n\nThe simplest
|
29
|
+
way to use \"atomic\" is to call the \"update\" or \"try_update\" methods.\n\n\n\n\"try_update\"
|
27
30
|
and \"update\" both call the given block, passing the current value and using the
|
28
31
|
block's result as the new value. If the value is updated by another thread before
|
29
32
|
the block completes, \"try update\" raises a ConcurrentUpdateError and \"update\"
|