suranyami-tuftify 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/tuftify.gemspec +3 -3
  2. metadata +2 -4
  3. data/lib/tuftify/graph.rb +0 -61
data/tuftify.gemspec CHANGED
@@ -2,14 +2,14 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{tuftify}
5
- s.version = "0.1.6"
5
+ s.version = "0.1.7"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["David Parry, Ingrid Anzola"]
9
9
  s.date = %q{2009-06-09}
10
10
  s.description = %q{A graphing library.}
11
- s.email = %q{david.parry@suranyami.com}
12
- s.extra_rdoc_files = ["CHANGELOG", "lib/playing_around.rb", "lib/tuftify/graph.rb", "lib/tuftify.rb", "README", "README.rdoc"]
11
+ s.email = %q{ingrid.anzola@kinesis.org}
12
+ s.extra_rdoc_files = ["CHANGELOG", "lib/playing_around.rb", "lib/tuftify.rb", "README", "README.rdoc"] + Dir["lib/tuftify/*.rb"]
13
13
  s.files = ["CHANGELOG", "init.rb", "lib/playing_around.rb", "lib/tuftify.rb", "Manifest", "Rakefile", "README", "README.rdoc", "tuftify.gemspec"] + Dir["lib/tuftify/*.rb"]
14
14
  s.homepage = %q{http://github.com/suranyami/tuftify}
15
15
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Tuftify", "--main", "README"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: suranyami-tuftify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Parry, Ingrid Anzola
@@ -23,7 +23,7 @@ dependencies:
23
23
  version: "0"
24
24
  version:
25
25
  description: A graphing library.
26
- email: david.parry@suranyami.com
26
+ email: ingrid.anzola@kinesis.org
27
27
  executables: []
28
28
 
29
29
  extensions: []
@@ -31,7 +31,6 @@ extensions: []
31
31
  extra_rdoc_files:
32
32
  - CHANGELOG
33
33
  - lib/playing_around.rb
34
- - lib/tuftify/graph.rb
35
34
  - lib/tuftify.rb
36
35
  - README
37
36
  - README.rdoc
@@ -45,7 +44,6 @@ files:
45
44
  - README
46
45
  - README.rdoc
47
46
  - tuftify.gemspec
48
- - lib/tuftify/graph.rb
49
47
  has_rdoc: false
50
48
  homepage: http://github.com/suranyami/tuftify
51
49
  licenses:
data/lib/tuftify/graph.rb DELETED
@@ -1,61 +0,0 @@
1
- require 'tuftify/graph_layer'
2
-
3
- module Tuftify
4
- # Basic Graph class.
5
- class Graph
6
- include Magick
7
-
8
- attr_accessor :width, :height
9
- attr_accessor :font_size, :resolution
10
- attr_accessor :canvas
11
- attr_accessor :title
12
-
13
-
14
- def initialize(width, height)
15
- @width = width
16
- @height = height
17
- @font_size = 9
18
- @resolution = 72.0
19
- d = "#{@resolution}x#{@resolution}"
20
-
21
- @canvas = Magick::Image.new(@width, @height) {
22
- self.background_color = 'white'
23
- self.density = d
24
- }
25
-
26
- @details = {:canvas => @canvas, :height => height, :width => width}
27
-
28
- @graph_layer = []
29
- end
30
-
31
- def add_layer(data, options = {})
32
- @graph_layer << Tuftify::GraphLayer.new(data, @details, options)
33
- end
34
-
35
- def draw
36
- @graph_layer.each do |layer|
37
- layer.draw
38
- end
39
-
40
- return @canvas
41
- end
42
-
43
- end
44
- end
45
- #
46
- #
47
- # if !@labels[index].nil? && @labels_seen[index].nil?
48
- # y_offset = @graph_bottom + LABEL_MARGIN
49
- #
50
- # @d.fill = @font_color
51
- # @d.font = @font if @font
52
- # @d.stroke('transparent')
53
- # @d.font_weight = NormalWeight
54
- # @d.pointsize = scale_fontsize(@marker_font_size)
55
- # @d.gravity = NorthGravity
56
- # @d = @d.annotate_scaled(@base_image,
57
- # 1.0, 1.0,
58
- # x_offset, y_offset,
59
- # @labels[index], @scale)
60
- # @labels_seen[index] = 1
61
- # debug { @d.line 0.0, y_offset, @raw_columns, y_offset }