grid 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/grid.gemspec +1 -1
  3. data/lib/grid.rb +12 -0
  4. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.3.0
data/grid.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{grid}
8
- s.version = "0.2.0"
8
+ s.version = "0.3.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Tim Koopmans"]
data/lib/grid.rb CHANGED
@@ -40,6 +40,18 @@ class Grid
40
40
  grid.release_tuples
41
41
  end
42
42
 
43
+ private
44
+
45
+ ##
46
+ # Calculate rampup in seconds
47
+ def self.rampup(total_threads, params = {})
48
+ if params[:rampup]
49
+ params[:rampup] / total_threads
50
+ else
51
+ 0.5
52
+ end
53
+ end
54
+
43
55
  class Helper
44
56
  def initialize(params = {})
45
57
  @grid_id = params[:grid_id]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grid
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 2
8
+ - 3
9
9
  - 0
10
- version: 0.2.0
10
+ version: 0.3.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tim Koopmans