google_hash 0.8.5 → 0.8.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,6 @@
1
+ 0.8.6
2
+ add #size method
3
+
1
4
  0.8.5
2
5
  fix build for 2.2.x [I hope]
3
6
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.8.5
1
+ 0.8.6
data/ext/go.bat CHANGED
@@ -1,4 +1,4 @@
1
1
  call clean.bat
2
2
  ruby extconf.rb
3
- call make
3
+ call make -j 2
4
4
  spec.bat
data/ext/go.sh CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -369,6 +369,7 @@ void init_<%= type %>_<%= english_key_type %>_to_<%= english_value_type %>() {
369
369
  rb_define_method(rb_cGoogleHashLocal, "include?", RUBY_METHOD_FUNC(rb_ghash_get_present), 1);
370
370
  rb_define_method(rb_cGoogleHashLocal, "keys_combination_2", RUBY_METHOD_FUNC(rb_ghash_combination_2), 0);
371
371
  rb_define_method(rb_cGoogleHashLocal, "length", RUBY_METHOD_FUNC(rb_ghash_size), 0);
372
+ rb_define_method(rb_cGoogleHashLocal, "size", RUBY_METHOD_FUNC(rb_ghash_size), 0);
372
373
  // add a higher quality #inspect...
373
374
  rb_eval_string("class <%= class_name %>;def inspect;all = '<%= class_name %> {'; join = []; self.each{|k, v| join << (k.to_s + '=>' + v.to_s)}; all << join.join(',') << '}'; end; end");
374
375
  id_eql = rb_intern("eql?");
@@ -52,6 +52,7 @@ describe "google_hash" do
52
52
  @subject.each{|k, v| raise}
53
53
  @subject[33] = 34
54
54
  @subject.length.should == 1
55
+ @subject.size.should == 1
55
56
  sum = 0
56
57
  @subject.each{|k, v| sum += k; sum += v}
57
58
  sum.should == (33+34)
@@ -63,6 +64,7 @@ describe "google_hash" do
63
64
 
64
65
  @subject.clear
65
66
  @subject.length.should == 0
67
+ @subject.size.should == 0
66
68
  @subject.keys.should == []
67
69
  @subject[33] = 'abc'
68
70
  @subject.delete(33).should == 'abc' # we don't actually have these methods yet :)
metadata CHANGED
@@ -1,69 +1,78 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google_hash
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.5
4
+ version: 0.8.6
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - rogerdpack
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2015-01-21 00:00:00.000000000 Z
12
+ date: 2015-03-23 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: sane
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
- - - "~>"
19
+ - - ~>
18
20
  - !ruby/object:Gem::Version
19
21
  version: '0'
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
- - - "~>"
27
+ - - ~>
25
28
  - !ruby/object:Gem::Version
26
29
  version: '0'
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: hitimes
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
- - - "~>"
35
+ - - ~>
32
36
  - !ruby/object:Gem::Version
33
37
  version: '0'
34
38
  type: :development
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
- - - "~>"
43
+ - - ~>
39
44
  - !ruby/object:Gem::Version
40
45
  version: '0'
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: rspec
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
- - - "~>"
51
+ - - ~>
46
52
  - !ruby/object:Gem::Version
47
53
  version: 2.14.1
48
54
  type: :development
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
51
58
  requirements:
52
- - - "~>"
59
+ - - ~>
53
60
  - !ruby/object:Gem::Version
54
61
  version: 2.14.1
55
62
  - !ruby/object:Gem::Dependency
56
63
  name: jeweler
57
64
  requirement: !ruby/object:Gem::Requirement
65
+ none: false
58
66
  requirements:
59
- - - ">="
67
+ - - ! '>='
60
68
  - !ruby/object:Gem::Version
61
69
  version: '0'
62
70
  type: :development
63
71
  prerelease: false
64
72
  version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
65
74
  requirements:
66
- - - ">="
75
+ - - ! '>='
67
76
  - !ruby/object:Gem::Version
68
77
  version: '0'
69
78
  description: Ruby wrappers to the google hash library
@@ -194,25 +203,26 @@ files:
194
203
  - to_build_locally_run_ext_go_bat
195
204
  homepage: http://github.com/rdp/ruby_google_hash
196
205
  licenses: []
197
- metadata: {}
198
206
  post_install_message:
199
207
  rdoc_options: []
200
208
  require_paths:
201
209
  - lib
202
210
  required_ruby_version: !ruby/object:Gem::Requirement
211
+ none: false
203
212
  requirements:
204
- - - ">="
213
+ - - ! '>='
205
214
  - !ruby/object:Gem::Version
206
215
  version: '0'
207
216
  required_rubygems_version: !ruby/object:Gem::Requirement
217
+ none: false
208
218
  requirements:
209
- - - ">="
219
+ - - ! '>='
210
220
  - !ruby/object:Gem::Version
211
221
  version: '0'
212
222
  requirements: []
213
223
  rubyforge_project:
214
- rubygems_version: 2.4.5
224
+ rubygems_version: 1.8.24
215
225
  signing_key:
216
- specification_version: 4
226
+ specification_version: 3
217
227
  summary: Ruby wrappers to the google hash library
218
228
  test_files: []
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: c8edcf102d93a5c863f984e01c6359767fde17a5
4
- data.tar.gz: 7b9c417d19e4b7e91f57c28b12a38f41d70827b7
5
- SHA512:
6
- metadata.gz: 0d601b30366d4daf143984e72ae890bc253ec1e04e7d7d2a5d155bc3f31e629967f2d88c81f455d494b5cf569620803511571bbdbb195975c45ae773cd43b500
7
- data.tar.gz: 66a4a74fd1201911475592756a1c7b4a21e9ab72cfa6d535973b4c000700bbad56159b59120e23527dd16e8852e75350f4c20c4e2b59a79ad33f93998b21040c