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 +4 -4
- data/.travis.yml +6 -5
- data/Gemfile +0 -1
- data/LICENSE.txt +1 -1
- data/lib/triad.rb +4 -4
- data/lib/triad/version.rb +1 -1
- data/triad.gemspec +1 -1
- metadata +9 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c509af042f22f2fb764c0d6218b0ed45d0cce53d
|
4
|
+
data.tar.gz: 5958c9b4e43aeba09e4956393918730a30c25189
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0bc285d97ec8e4f1418d27f53d5cec3822faf793e32a45871cbc2e84e6e403ddb01756864f56eb1d007555871dd10a03f0c7dc1d4bf88e9d247dd25fd3c58f18
|
7
|
+
data.tar.gz: e3f7700cc6f6410994b627c05a573c219df2ba41e055f99452a64499b98cb476a637be78bc674d6fe2adbad43d6b2a053cefa2a045fecfe1972b5ccdb26658c4
|
data/.travis.yml
CHANGED
@@ -1,15 +1,16 @@
|
|
1
|
+
before_install:
|
2
|
+
- gem install bundler
|
1
3
|
language: ruby
|
4
|
+
cache: bundler
|
2
5
|
rvm:
|
3
|
-
-
|
4
|
-
- 2.
|
5
|
-
-
|
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
data/LICENSE.txt
CHANGED
data/lib/triad.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
require "triad/version"
|
2
|
-
require
|
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 =
|
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
|
-
|
59
|
+
block.call key, descriptor, value
|
60
60
|
end
|
61
61
|
end
|
62
62
|
|
data/lib/triad/version.rb
CHANGED
data/triad.gemspec
CHANGED
@@ -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 "
|
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.
|
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:
|
11
|
+
date: 2016-06-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
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.
|
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.
|
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.
|
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:
|