triad 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/lib/triad.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require "triad/version"
2
+ require 'thread_safe'
2
3
 
3
4
  class Triad
4
5
  include Enumerable
@@ -10,7 +11,7 @@ class Triad
10
11
 
11
12
  # stored as {key => ['Descriptor', value]}
12
13
  def initialize(*args)
13
- @storage = {}
14
+ @storage = ThreadSafe::Hash.new
14
15
  end
15
16
  attr_reader :storage
16
17
  private :storage
data/lib/triad/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Triad
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
data/test/triad_test.rb CHANGED
@@ -11,7 +11,7 @@ describe Triad, '#<<' do
11
11
  error = assert_raises(Triad::InvalidAddition){
12
12
  triad << [:test, 'Test', Object.new, 'Other']
13
13
  }
14
- assert_match /array length must be 3/, error.message
14
+ assert_match(/array length must be 3/, error.message)
15
15
  end
16
16
 
17
17
  it 'rejects arrays with fewer than 3 items' do
data/triad.gemspec CHANGED
@@ -18,6 +18,8 @@ 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.1.3"
22
+
21
23
  spec.add_development_dependency "bundler", "~> 1.3"
22
24
  spec.add_development_dependency "rake"
23
25
  end
metadata CHANGED
@@ -1,18 +1,36 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: triad
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - '''Jim Gay'''
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2013-07-10 00:00:00.000000000 Z
12
+ date: 2013-10-02 00:00:00.000000000 Z
12
13
  dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: thread_safe
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 0.1.3
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: 0.1.3
13
30
  - !ruby/object:Gem::Dependency
14
31
  name: bundler
15
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
16
34
  requirements:
17
35
  - - ~>
18
36
  - !ruby/object:Gem::Version
@@ -20,6 +38,7 @@ dependencies:
20
38
  type: :development
21
39
  prerelease: false
22
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
23
42
  requirements:
24
43
  - - ~>
25
44
  - !ruby/object:Gem::Version
@@ -27,6 +46,7 @@ dependencies:
27
46
  - !ruby/object:Gem::Dependency
28
47
  name: rake
29
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
30
50
  requirements:
31
51
  - - '>='
32
52
  - !ruby/object:Gem::Version
@@ -34,6 +54,7 @@ dependencies:
34
54
  type: :development
35
55
  prerelease: false
36
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
37
58
  requirements:
38
59
  - - '>='
39
60
  - !ruby/object:Gem::Version
@@ -59,26 +80,27 @@ files:
59
80
  homepage: ''
60
81
  licenses:
61
82
  - MIT
62
- metadata: {}
63
83
  post_install_message:
64
84
  rdoc_options: []
65
85
  require_paths:
66
86
  - lib
67
87
  required_ruby_version: !ruby/object:Gem::Requirement
88
+ none: false
68
89
  requirements:
69
90
  - - '>='
70
91
  - !ruby/object:Gem::Version
71
92
  version: '0'
72
93
  required_rubygems_version: !ruby/object:Gem::Requirement
94
+ none: false
73
95
  requirements:
74
96
  - - '>='
75
97
  - !ruby/object:Gem::Version
76
98
  version: '0'
77
99
  requirements: []
78
100
  rubyforge_project:
79
- rubygems_version: 2.0.3
101
+ rubygems_version: 1.8.26
80
102
  signing_key:
81
- specification_version: 4
103
+ specification_version: 3
82
104
  summary: Manage a collection with 3 data points
83
105
  test_files:
84
106
  - test/test_helper.rb
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 4c4a3d5a34d53b03e28a07a31212d75a5ad6742a
4
- data.tar.gz: ed8be35c9c1089723081621d2f899d6261dcefde
5
- SHA512:
6
- metadata.gz: 0705916e6ab3a0a9df08c2223d67f7ebb2df920e4a714a1dad425a4e920d1e849d84ab80f38a8656ef44c30266f2982ead91bc81b366d779f1050ea5514dfc75
7
- data.tar.gz: 731dbb05b135b0afbfc9556f3b9f1a27d20899859f08d6195f6a9ebeec6a1118fd2e9d4966dac0ec89c43625fd44d7ee9c8704e166fdeae93f4bd75c4bfb43bf