hiredis 0.4.1-java → 0.4.2.pre-java

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -40,7 +40,6 @@ task :default => [:rebuild, :test]
40
40
 
41
41
  desc "Run tests"
42
42
  Rake::TestTask.new(:test) do |t|
43
- t.libs << "test"
44
43
  t.pattern = 'test/**/*_test.rb'
45
44
  t.verbose = true
46
45
  end
@@ -32,14 +32,17 @@ module Hiredis
32
32
  method_index[?*] = :process_multi_bulk_reply
33
33
  METHOD_INDEX = method_index.freeze
34
34
 
35
- attr_accessor :parent, :child
35
+ attr_reader :parent
36
+ attr_reader :depth
36
37
  attr_accessor :multi_bulk
37
38
 
38
39
  def initialize(buffer, parent = nil, depth = 0)
39
- @buffer, @parent = buffer, parent
40
+ @buffer, @parent, @depth = buffer, parent, depth
41
+ end
40
42
 
41
- # Require 3 nested tasks
42
- @child = Task.new(@buffer, self, depth + 1) if depth < 2
43
+ # Note: task depth is not checked.
44
+ def child
45
+ @child ||= Task.new(@buffer, self, depth + 1)
43
46
  end
44
47
 
45
48
  def root
@@ -1,3 +1,3 @@
1
1
  module Hiredis
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2.pre"
3
3
  end
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hiredis
3
3
  version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 0.4.1
4
+ prerelease: 6
5
+ version: 0.4.2.pre
6
6
  platform: java
7
7
  authors:
8
8
  - Pieter Noordhuis
@@ -10,20 +10,20 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-10-26 00:00:00 -07:00
13
+ date: 2011-12-02 00:00:00 -08:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rake-compiler
18
- prerelease: false
19
- requirement: &id001 !ruby/object:Gem::Requirement
18
+ version_requirements: &id001 !ruby/object:Gem::Requirement
20
19
  none: false
21
20
  requirements:
22
21
  - - ~>
23
22
  - !ruby/object:Gem::Version
24
23
  version: 0.7.1
24
+ requirement: *id001
25
+ prerelease: false
25
26
  type: :development
26
- version_requirements: *id001
27
27
  description: Ruby extension that wraps Hiredis (blocking connection and reply parsing)
28
28
  email:
29
29
  - pcnoordhuis@gmail.com
@@ -58,13 +58,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
+ hash: 2
62
+ segments:
63
+ - 0
61
64
  version: "0"
62
65
  required_rubygems_version: !ruby/object:Gem::Requirement
63
66
  none: false
64
67
  requirements:
65
- - - ">="
68
+ - - ">"
66
69
  - !ruby/object:Gem::Version
67
- version: "0"
70
+ version: 1.3.1
68
71
  requirements: []
69
72
 
70
73
  rubyforge_project: