karousel 0.9.9 → 0.9.10

Sign up to get free protection for your applications and to get access to all the features.
data/.rvmrc CHANGED
@@ -1 +1,2 @@
1
+ #rvm use ruby-1.9.2-p290@karousel --create
1
2
  rvm use ruby-1.9.3-p194@karousel --create
@@ -1,5 +1,4 @@
1
1
  rvm:
2
- - 1.8.7
3
2
  - 1.9.2
4
3
  - 1.9.3
5
4
  branches:
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.9
1
+ 0.9.10
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "karousel"
8
- s.version = "0.9.9"
8
+ s.version = "0.9.10"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Dmitry Mozzherin", "David Shorthouse"]
@@ -7,9 +7,6 @@ class ClientJobDummy < Karousel::ClientJob
7
7
  @@dummy_data = 0
8
8
  end
9
9
 
10
- def self.reset_failures
11
- end
12
-
13
10
  def self.populate(karousel_size)
14
11
  @@dummy_data += karousel_size
15
12
  return [] if @@dummy_data > 100
@@ -19,12 +16,11 @@ class ClientJobDummy < Karousel::ClientJob
19
16
  def send
20
17
  @server = DummyServer.new
21
18
  @server.first_request
22
- rand(0..10) > 9 ? false : true
19
+ rand(100) > 95 ? false : true
23
20
  end
24
21
 
25
22
  def finished?
26
- @server.following_request
27
- rand(0..10) > 8 ? false : true
23
+ @server.are_we_there_yet_request
28
24
  end
29
25
 
30
26
  def process
@@ -1,11 +1,11 @@
1
1
  class DummyServer
2
2
 
3
3
  def first_request
4
- @wait_num = rand(1..10)
4
+ @wait_num = rand(10) + 1
5
5
  @tries_num = 0
6
6
  end
7
7
 
8
- def following_request
8
+ def are_we_there_yet_request
9
9
  @tries_num += 1
10
10
  @tries_num == @wait_num ? true : false
11
11
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: karousel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.9
4
+ version: 0.9.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -122,7 +122,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
122
122
  version: '0'
123
123
  segments:
124
124
  - 0
125
- hash: 3770005762549287035
125
+ hash: -1959574064499877518
126
126
  required_rubygems_version: !ruby/object:Gem::Requirement
127
127
  none: false
128
128
  requirements: