sankey 0.0.0 → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.0
1
+ 0.0.1
@@ -82,8 +82,8 @@ module Sankey
82
82
  def draw_process(process)
83
83
  layer = @max_distances_to_processes[process] - 1
84
84
  height = process.total_reagents_mass
85
- corner = Point.new (layer+1)*(ProcessLayerStep+ProcessWidth) + Margin,
86
- Margin
85
+ corner = Point.new((layer+1)*(ProcessLayerStep+ProcessWidth) + Margin,
86
+ Margin)
87
87
  v = ProcessVertex.new corner, corner + [0, height],
88
88
  corner + [ProcessWidth, height], corner + [ProcessWidth, 0]
89
89
  @vertices.push v
@@ -8,7 +8,7 @@ module Sankey
8
8
  end
9
9
 
10
10
  def +(val)
11
- if val.is_a? Array and 2 == val.count
11
+ if val.is_a? Array and 2 == val.length
12
12
  x = val[0]
13
13
  y = val[1]
14
14
  else
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{sankey}
8
- s.version = "0.0.0"
8
+ s.version = "0.0.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jan Stępień"]
12
- s.date = %q{2010-02-18}
12
+ s.date = %q{2010-02-27}
13
13
  s.description = %q{A small tool which generates Sankey diagrams.}
14
14
  s.email = %q{jstepien@users.sourceforge.net}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sankey
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Jan St\xC4\x99pie\xC5\x84"
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-02-18 00:00:00 +01:00
12
+ date: 2010-02-27 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency