triad 0.2.2 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8756a3b0b674b03d67e6a023ee355b22a8691d52
4
- data.tar.gz: d734b942dc1082f916f7d2f7549df499b5fd66d5
3
+ metadata.gz: c509af042f22f2fb764c0d6218b0ed45d0cce53d
4
+ data.tar.gz: 5958c9b4e43aeba09e4956393918730a30c25189
5
5
  SHA512:
6
- metadata.gz: c97783ff733c9649933ec43ec2f5cc3d5faa8e3bdcda567ea486eb8b6839370f2a899e7b6933b69dbb656fce5e16ad0591fd0354d0cb0b8d3348b4f9a99a79c4
7
- data.tar.gz: 9e21beed54b78584fdd12d04c4fb58b57da83df893b7001346ee8a47848cba908add9d5425e98223de556e23a0a4a1b56aa27670d725d514df08b8d79bf06f60
6
+ metadata.gz: 0bc285d97ec8e4f1418d27f53d5cec3822faf793e32a45871cbc2e84e6e403ddb01756864f56eb1d007555871dd10a03f0c7dc1d4bf88e9d247dd25fd3c58f18
7
+ data.tar.gz: e3f7700cc6f6410994b627c05a573c219df2ba41e055f99452a64499b98cb476a637be78bc674d6fe2adbad43d6b2a053cefa2a045fecfe1972b5ccdb26658c4
@@ -1,15 +1,16 @@
1
+ before_install:
2
+ - gem install bundler
1
3
  language: ruby
4
+ cache: bundler
2
5
  rvm:
3
- - 1.9.3
4
- - 2.0.0
5
- - jruby-19mode # JRuby in 1.9 mode
6
+ - 2.3.1
7
+ - 2.2.5
8
+ - 2.1.10
6
9
  - ruby-head
7
10
  - jruby-head
8
- - rbx-19mode
9
11
  env:
10
12
  - COVERALLS=true
11
13
  matrix:
12
14
  allow_failures:
13
15
  - rvm: ruby-head
14
16
  - rvm: jruby-head
15
- - rvm: rbx-19mode
data/Gemfile CHANGED
@@ -1,6 +1,5 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- # Specify your gem's dependencies in triad.gemspec
4
3
  gemspec
5
4
 
6
5
  group :test do
@@ -1,4 +1,4 @@
1
- Copyright (c) 2013 'Jim Gay'
1
+ Copyright (c) 2013-2016 'Jim Gay'
2
2
 
3
3
  MIT License
4
4
 
@@ -1,5 +1,5 @@
1
1
  require "triad/version"
2
- require 'thread_safe'
2
+ require "concurrent/hash"
3
3
 
4
4
  class Triad
5
5
  include Enumerable
@@ -9,7 +9,7 @@ class Triad
9
9
 
10
10
  # stored as {key => ['Descriptor', value]}
11
11
  def initialize
12
- @storage = ThreadSafe::Hash.new
12
+ @storage = Concurrent::Hash.new
13
13
  end
14
14
  attr_reader :storage
15
15
  private :storage
@@ -54,9 +54,9 @@ class Triad
54
54
  storage[key] = [descriptor, value]
55
55
  end
56
56
 
57
- def each
57
+ def each(&block)
58
58
  storage.each do |key, (descriptor, value)|
59
- yield key, descriptor, value
59
+ block.call key, descriptor, value
60
60
  end
61
61
  end
62
62
 
@@ -1,3 +1,3 @@
1
1
  class Triad
2
- VERSION = "0.2.2"
2
+ VERSION = "0.3.0"
3
3
  end
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_dependency "thread_safe", "~> 0.3.5"
21
+ spec.add_dependency "concurrent-ruby", "> 0.9"
22
22
 
23
23
  spec.add_development_dependency "bundler", "~> 1.3"
24
24
  spec.add_development_dependency "rake"
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: triad
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - "'Jim Gay'"
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-26 00:00:00.000000000 Z
11
+ date: 2016-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: thread_safe
14
+ name: concurrent-ruby
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.3.5
19
+ version: '0.9'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.3.5
26
+ version: '0.9'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -90,10 +90,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
90
90
  version: '0'
91
91
  requirements: []
92
92
  rubyforge_project:
93
- rubygems_version: 2.4.5
93
+ rubygems_version: 2.5.1
94
94
  signing_key:
95
95
  specification_version: 4
96
96
  summary: Manage a collection with 3 data points
97
97
  test_files:
98
98
  - test/test_helper.rb
99
99
  - test/triad_test.rb
100
+ has_rdoc: