gnista 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: d47bb0cb81b09f7ec00ad3f9af92538158afcdec
4
- data.tar.gz: 839bc1ef781bedc07e258da534cadde3629102b8
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ NzM5NjJmMjk3Mjg1NjBjY2IyNTRiNmJjMzVjMzJkZWZlNDE4YjI0Yw==
5
+ data.tar.gz: !binary |-
6
+ YTY2OWIxMDY3YTVmYjNhYjg5MjJhYWVlMWYxMjM3MTVlM2VhYzU1YQ==
5
7
  SHA512:
6
- metadata.gz: 0ac005d6a3316c3f2dfe7ec3d8f1eea9f3e57ca43d70f5fe3cc5aa92cd898c27bd84f81c0f6664bac07211af3a93cbec4df007b994d1fb91d2d374e7f018cb02
7
- data.tar.gz: 528360e116b17fb6a4472c5f5ce850b0fed5eec588804cdaa17eb109be3eb11de1cfd8e5c0588ef4b2c5d3d913520a65847a322026b363c14e4553f76af344a8
8
+ metadata.gz: !binary |-
9
+ NTYzZTg0NzZkNDQxYmNlNDhmYjM0M2FhYzRjODg2ODU4MDgxZTY0M2YzNmU0
10
+ Y2M3M2IxMGY3N2E5ZWJjMTY4NzZlNjc5NjhmZDM3YjU5MGRhMGUzOWI0N2M1
11
+ ZGY5MzRkMGNhOGRhYjM4ZTg4ZGI5ODliMWYxNTQ1ZGI0ZjdmODA=
12
+ data.tar.gz: !binary |-
13
+ MzVlYTM5MTlhZTM0NzgxZWY4NGRiZGE1NTVlYjg4ZTJlNDZmNDdiMDk0NDFj
14
+ OGE2YjY4Mjg2ZjY0MzFhMTk2M2ZhZWJiNjllODM2MDYyN2ZjNzI1MWEzYjU5
15
+ ODU0MzQzYzc5ODc4NTgwNzg0NTIxOGIwNmI0MWFlMmIyMWU5NzE=
data/HISTORY.md CHANGED
@@ -1,3 +1,11 @@
1
+ # Version 1.0.1
2
+
3
+ Release date 2016-05-20
4
+
5
+ ### Fixed
6
+
7
+ * Memory leak on hash get of non-existent key.
8
+
1
9
  # Version 1.0.0
2
10
 
3
11
  Release date 2014-05-28
@@ -487,6 +487,7 @@ static VALUE method_hash_get(VALUE self, VALUE key) {
487
487
  returncode = sparkey_hash_get(i_hashreader->hashreader, (uint8_t*)RSTRING_PTR(key), RSTRING_LEN(key), logiter);
488
488
 
489
489
  if (sparkey_logiter_state(logiter) != SPARKEY_ITER_ACTIVE) {
490
+ sparkey_logiter_close(&logiter);
490
491
  return Qnil;
491
492
  }
492
493
 
@@ -494,6 +495,7 @@ static VALUE method_hash_get(VALUE self, VALUE key) {
494
495
  uint8_t *valuebuf = malloc(wanted_valuelen);
495
496
  uint64_t actual_valuelen;
496
497
  returncode = sparkey_logiter_fill_value(logiter, sparkey_hash_getreader(i_hashreader->hashreader), wanted_valuelen, valuebuf, &actual_valuelen);
498
+ sparkey_logiter_close(&logiter);
497
499
 
498
500
  if (returncode != SPARKEY_SUCCESS) {
499
501
  free(valuebuf);
@@ -503,8 +505,6 @@ static VALUE method_hash_get(VALUE self, VALUE key) {
503
505
  rb_raise(GnistaException, "Corrupt entry in hash.");
504
506
  }
505
507
 
506
- sparkey_logiter_close(&logiter);
507
-
508
508
  VALUE v = rb_str_new((char *)valuebuf, actual_valuelen);
509
509
  free(valuebuf);
510
510
  return v;
@@ -1,3 +1,3 @@
1
1
  module Gnista
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gnista
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emanuel Andersson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-28 00:00:00.000000000 Z
11
+ date: 2016-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -28,14 +28,14 @@ dependencies:
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ! '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ! '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  description: Gnista is a wrapper for the database/hashstore Sparkey written for Ruby.
@@ -48,16 +48,16 @@ extensions:
48
48
  - ext/gnista/extconf.rb
49
49
  extra_rdoc_files: []
50
50
  files:
51
- - README.md
52
- - LICENSE.txt
53
51
  - HISTORY.md
52
+ - LICENSE.txt
53
+ - README.md
54
54
  - Rakefile
55
55
  - ext/gnista/extconf.rb
56
56
  - ext/gnista/gnista.c
57
- - test/test_gnista.rb
58
- - test/test_commands.rb
59
57
  - lib/gnista.rb
60
58
  - lib/gnista/version.rb
59
+ - test/test_commands.rb
60
+ - test/test_gnista.rb
61
61
  homepage: http://github.com/emnl/gnista
62
62
  licenses:
63
63
  - MIT
@@ -69,17 +69,17 @@ require_paths:
69
69
  - lib
70
70
  required_ruby_version: !ruby/object:Gem::Requirement
71
71
  requirements:
72
- - - '>='
72
+ - - ! '>='
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
75
  required_rubygems_version: !ruby/object:Gem::Requirement
76
76
  requirements:
77
- - - '>='
77
+ - - ! '>='
78
78
  - !ruby/object:Gem::Version
79
79
  version: '0'
80
80
  requirements: []
81
81
  rubyforge_project:
82
- rubygems_version: 2.0.0
82
+ rubygems_version: 2.4.8
83
83
  signing_key:
84
84
  specification_version: 4
85
85
  summary: Ruby wrapper for Spotify's Sparkey