beanstalk-client-rspec 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 41ec535758e29a12880881ce1c73715e2738fd4b
4
+ data.tar.gz: 9d07f313ab3eaeff420b537b5f5093a79a44b8ff
5
+ SHA512:
6
+ metadata.gz: 2f1d91a00624af84478d3c0792a18a1edab94da1a2c1d52bf7ba06d0e52610b857bf7e0b7ea7e03294fdeaa53f45662f01aa63e9d78fb9a774e79915a90cedcd
7
+ data.tar.gz: b23ab6c783d701ebb95a57c032cf4370fad29247d5fe68e7a165ad9f647c13221b765242f8d50a84a280b7a272186d8408e9043e4121faa05a561a8169343518
data/CHANGELOG.mkd CHANGED
@@ -1,3 +1,10 @@
1
+ # 0.0.7 (2013-12-07)
2
+
3
+ Bugfixes
4
+ --------
5
+
6
+ * Fix reset.
7
+
1
8
  # 0.0.6 (2012-09-23)
2
9
 
3
10
  Features
@@ -6,15 +6,25 @@ module Beanstalk
6
6
  class MockConnection < Beanstalk::Connection
7
7
  def initialize(addr, default_tube=nil)
8
8
  super
9
+ @default_tube = default_tube
10
+ reset!
11
+ end
12
+
13
+ # Tests use this to rest stuff
14
+ def reset!
9
15
  @id_mutex = Mutex.new
10
16
  @tube_mutex = Mutex.new
11
17
  @tubes = {}
12
18
  @id = 0
13
- end
14
19
 
15
- # Tests use this to rest stuff
16
- def reset!
17
- initialize(nil, @default_tube)
20
+ # Super reset
21
+ @mutex = Mutex.new
22
+ @tube_mutex = Mutex.new
23
+ @waiting = false
24
+ @last_used = 'default'
25
+ @watch_list = [@last_used]
26
+ self.use(@default_tube) if @default_tube
27
+ self.watch(@default_tube) if @default_tube
18
28
  end
19
29
 
20
30
  def connect
@@ -1,7 +1,7 @@
1
1
  module Beanstalk
2
2
  module Client
3
3
  module Rspec
4
- VERSION = '0.0.6'
4
+ VERSION = '0.0.7'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,62 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beanstalk-client-rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
5
- prerelease:
4
+ version: 0.0.7
6
5
  platform: ruby
7
6
  authors:
8
7
  - John Ferlito
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-09-23 00:00:00.000000000 Z
11
+ date: 2013-12-07 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rspec
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: beanstalk-client
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: rake
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - '>='
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - '>='
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
62
55
  description: Provides a fairly complete mock for beanstalk-client by imitating beanstalkd
@@ -85,32 +78,25 @@ files:
85
78
  homepage: https://github.com/johnf/beanstalk-client-rspec
86
79
  licenses:
87
80
  - MIT
81
+ metadata: {}
88
82
  post_install_message:
89
83
  rdoc_options: []
90
84
  require_paths:
91
85
  - lib
92
86
  required_ruby_version: !ruby/object:Gem::Requirement
93
- none: false
94
87
  requirements:
95
- - - ! '>='
88
+ - - '>='
96
89
  - !ruby/object:Gem::Version
97
90
  version: '0'
98
- segments:
99
- - 0
100
- hash: 750356280578376697
101
91
  required_rubygems_version: !ruby/object:Gem::Requirement
102
- none: false
103
92
  requirements:
104
- - - ! '>='
93
+ - - '>='
105
94
  - !ruby/object:Gem::Version
106
95
  version: '0'
107
- segments:
108
- - 0
109
- hash: 750356280578376697
110
96
  requirements: []
111
97
  rubyforge_project:
112
- rubygems_version: 1.8.23
98
+ rubygems_version: 2.1.11
113
99
  signing_key:
114
- specification_version: 3
100
+ specification_version: 4
115
101
  summary: Mock and RSpec for beanstalk-client
116
102
  test_files: []