thread_safe 0.1.2-java → 0.1.3-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/thread_safe/cache.rb +3 -0
- data/lib/thread_safe/version.rb +1 -1
- data/test/test_cache.rb +2 -0
- data/thread_safe.gemspec +3 -3
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3479f71a9882aaee73a2f38a3b6c5eac7d8cf618
|
4
|
+
data.tar.gz: 4295c99e7af99e38c834735b144e931c1a3a3f90
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f0fc0f55f7bdafbae4017d8e64b46688b708ad045ac62ba175d960769395ee234984c43483ff27be55bc71be1be05e48e252f4f539ef77bf3d8d60b63c07c0c
|
7
|
+
data.tar.gz: 36b25bab3a9eabf08f4857bf8acb3cb0fa96ebf22c2411ef061fc2729699b287300d54ffc65ce8a3f01db8d7460f1234e5c3b1afd0afd9859d0071fc7cde8674
|
data/lib/thread_safe/cache.rb
CHANGED
data/lib/thread_safe/version.rb
CHANGED
data/test/test_cache.rb
CHANGED
@@ -29,8 +29,10 @@ class TestCache < Test::Unit::TestCase
|
|
29
29
|
def test_retrieval
|
30
30
|
assert_size_change 1 do
|
31
31
|
assert_equal nil, @cache[:a]
|
32
|
+
assert_equal nil, @cache.get(:a)
|
32
33
|
@cache[:a] = 1
|
33
34
|
assert_equal 1, @cache[:a]
|
35
|
+
assert_equal 1, @cache.get(:a)
|
34
36
|
end
|
35
37
|
end
|
36
38
|
|
data/thread_safe.gemspec
CHANGED
@@ -2,13 +2,13 @@
|
|
2
2
|
require File.expand_path('../lib/thread_safe/version', __FILE__)
|
3
3
|
|
4
4
|
Gem::Specification.new do |gem|
|
5
|
-
gem.authors = ["Charles Oliver Nutter"]
|
6
|
-
gem.email = ["headius@headius.com"]
|
5
|
+
gem.authors = ["Charles Oliver Nutter", "thedarkone"]
|
6
|
+
gem.email = ["headius@headius.com", "thedarkone2@gmail.com"]
|
7
7
|
gem.description = %q{Thread-safe collections and utilities for Ruby}
|
8
8
|
gem.summary = %q{A collection of data structures and utilities to make thread-safe programming in Ruby easier}
|
9
9
|
gem.homepage = "https://github.com/headius/thread_safe"
|
10
10
|
|
11
|
-
gem.files = `git ls-files`.split($\)
|
11
|
+
gem.files = `git ls-files`.split($\) | Dir['{lib,examples,test}/**/*.jar']
|
12
12
|
gem.platform = 'java' if defined?(JRUBY_VERSION)
|
13
13
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
14
14
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
metadata
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thread_safe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Charles Oliver Nutter
|
8
|
+
- thedarkone
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2013-
|
12
|
+
date: 2013-09-10 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: atomic
|
@@ -27,6 +28,7 @@ dependencies:
|
|
27
28
|
description: Thread-safe collections and utilities for Ruby
|
28
29
|
email:
|
29
30
|
- headius@headius.com
|
31
|
+
- thedarkone2@gmail.com
|
30
32
|
executables: []
|
31
33
|
extensions: []
|
32
34
|
extra_rdoc_files: []
|
@@ -88,7 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
88
90
|
version: '0'
|
89
91
|
requirements: []
|
90
92
|
rubyforge_project:
|
91
|
-
rubygems_version: 2.0
|
93
|
+
rubygems_version: 2.1.0
|
92
94
|
signing_key:
|
93
95
|
specification_version: 4
|
94
96
|
summary: A collection of data structures and utilities to make thread-safe programming in Ruby easier
|