svg-graph 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
data.tar.gz.sig CHANGED
@@ -1,2 +1,2 @@
1
- �Rt�>oh)X�)�����H�� ��X�����Ⱦ>�x�h�9�A�Gp�p*Q(��+����ZB��7��{��
2
- ��L�Q��R��T��P[D�����Ӏ2#T|sU�غܢ�-�ɆZO.~�CC��Y�fY��uu�ȕ��Af$Z�eŜmEڂ�]�E�"x������V
1
+ W"f#� d�.���b'��Hp��%��-�i����<��,�
2
+ �!^�_Uң،~��ٴw��wMIG�������s{"�!s_��l�,�<j)}u^�jk�?��-��g�4۽k�J�L*YlX&x�����Ð�q�}����L&>�_s��]�(�e��XT�3ذF MQ���sy�sH<'o��vy�����m4s���P�����."��M�������٣��}����Xⶤ�c4#��a}��6
@@ -1,3 +1,6 @@
1
+ === 1.0.5 / 2011-09-03
2
+ * enabled all svg_graph tests[liehann]
3
+
1
4
  === 1.0.4 / 2011-09-03
2
5
  * Data point shape is configurable based on rule matches on description. It defaults to usual circle with radius 2.5. [pgbossi]
3
6
  * New shapes can be specified through lambdas that accept parameters x,y (coordinates) and the dataset number.[pgbossi]
data/Rakefile CHANGED
@@ -9,13 +9,11 @@ Hoe.plugin :git
9
9
  $:.unshift("./lib")
10
10
  require 'svggraph'
11
11
  Hoe.spec 'svg-graph' do
12
- self.version=SVG::Graph::VERSION
13
- self.developer('Sean Russell', 'ser_AT_germane-software.com')
14
- self.developer('Claudio Bustos', 'clbustos_AT_gmail.com')
15
- self.developer("Liehann Loots","liehhanl_AT_gmail.com")
16
- self.developer("Piergiuliano Bossi","pgbossi_AT_gmail.com")
17
- self.rubyforge_name = 'ruby-statsample' # if different than 'svg_graph'
18
- self.remote_rdoc_dir = 'svg-graph'
12
+ self.version=SVG::Graph::VERSION
13
+ self.developer('Sean Russell', 'ser_AT_germane-software.com')
14
+ self.developer('Claudio Bustos', 'clbustos_AT_gmail.com')
15
+ self.developer("Liehann Loots","liehhanl_AT_gmail.com")
16
+ self.developer("Piergiuliano Bossi","pgbossi_AT_gmail.com")
17
+ self.rubyforge_name = 'ruby-statsample' # if different than 'svg_graph'
18
+ self.remote_rdoc_dir = 'svg-graph'
19
19
  end
20
-
21
- # vim: syntax=ruby
@@ -1,6 +1,6 @@
1
1
  module SVG
2
2
  module Graph
3
- VERSION = '1.0.4'
3
+ VERSION = '1.0.5'
4
4
  autoload(:Bar, 'SVG/Graph/Bar')
5
5
  autoload(:BarBase, 'SVG/Graph/BarBase')
6
6
  autoload(:BarHorizontal, 'SVG/Graph/BarHorizontal')
@@ -8,11 +8,11 @@ Gem::Specification.new do |s|
8
8
  s.version = "1.0.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = [%q{Sean Russell}, %q{Claudio Bustos}]
12
- s.date = %q{2011-08-04}
11
+ s.authors = [%q{Sean Russell}, %q{Claudio Bustos}, %q{Liehann Loots}, %q{Piergiuliano Bossi}]
12
+ s.date = %q{2011-08-05}
13
13
  s.description = %q{Gem version of SVG:::Graph. SVG:::Graph is a pure Ruby library for generating charts, which are a type of graph where the values of one axis are not scalar. SVG::Graph has a verry similar API to the Perl library SVG::TT::Graph, and the resulting charts also look the same. This isn't surprising, because SVG::Graph started as a loose port of SVG::TT::Graph, although the internal code no longer resembles the Perl original at all.
14
14
  }
15
- s.email = [%q{ser_AT_germane-software.com}, %q{clbustos_AT_gmail.com}]
15
+ s.email = [%q{ser_AT_germane-software.com}, %q{clbustos_AT_gmail.com}, %q{liehannl_AT_gmail_DOT_com}, %q{pgbossi_AT_gmail_DOT_com}]
16
16
  s.extra_rdoc_files = [
17
17
  "LICENSE.txt",
18
18
  "README.markdown",
@@ -22,7 +22,6 @@ Gem::Specification.new do |s|
22
22
  "GPL.txt",
23
23
  "History.txt",
24
24
  "LICENSE.txt",
25
- "Manifest.txt",
26
25
  "README.txt",
27
26
  "Rakefile",
28
27
  "lib/SVG/Graph/Bar.rb",
@@ -44,8 +44,8 @@ class TestSvgGraphPlot < Test::Unit::TestCase
44
44
  end
45
45
  def test_default_plot_emits_polyline_connecting_data_points
46
46
  actual = [
47
- 0, 18, 8, 15, 9, 4, 18, 14, 10, 2, 11, 6, 14, 12,
48
- 15, 6, 4, 17, 2, 12
47
+ 0, 18, 8, 15, 9, 4, 18, 14, 10, 2, 11, 6, 14, 12,
48
+ 15, 6, 4, 17, 2, 12
49
49
  ]
50
50
 
51
51
  graph = SVG::Graph::Plot.new({
@@ -63,11 +63,11 @@ class TestSvgGraphPlot < Test::Unit::TestCase
63
63
  out=graph.burn()
64
64
  assert_match(/path.*class='line1'/, out)
65
65
  end
66
-
66
+
67
67
  def test_disabling_show_lines_does_not_emit_polyline_connecting_data_points
68
68
  actual = [
69
- 0, 18, 8, 15, 9, 4, 18, 14, 10, 2, 11, 6, 14, 12,
70
- 15, 6, 4, 17, 2, 12
69
+ 0, 18, 8, 15, 9, 4, 18, 14, 10, 2, 11, 6, 14, 12,
70
+ 15, 6, 4, 17, 2, 12
71
71
  ]
72
72
 
73
73
  graph = SVG::Graph::Plot.new({
@@ -87,9 +87,10 @@ class TestSvgGraphPlot < Test::Unit::TestCase
87
87
  out=graph.burn()
88
88
  assert_no_match(/path class='line1' d='M.* L.*'/, out)
89
89
  end
90
+
90
91
  def test_popup_values_round_to_integer_by_default_in_popups
91
92
  actual = [
92
- 0.1, 18, 8.55, 15.1234, 9.09876765, 4,
93
+ 0.1, 18, 8.55, 15.1234, 9.09876765, 4,
93
94
  ]
94
95
 
95
96
  graph = SVG::Graph::Plot.new({
@@ -114,9 +115,10 @@ class TestSvgGraphPlot < Test::Unit::TestCase
114
115
  assert_no_match(/\(9.09876765, 4\)/, out)
115
116
  assert_match(/\(9, 4\)/, out)
116
117
  end
118
+
117
119
  def test_do_not_round_popup_values_shows_decimal_values_in_popups
118
120
  actual = [
119
- 0.1, 18, 8.55, 15.1234, 9.09876765, 4,
121
+ 0.1, 18, 8.55, 15.1234, 9.09876765, 4,
120
122
  ]
121
123
 
122
124
  graph = SVG::Graph::Plot.new({
@@ -142,9 +144,10 @@ class TestSvgGraphPlot < Test::Unit::TestCase
142
144
  assert_match(/\(9.09876765, 4\)/, out)
143
145
  assert_no_match(/\(9, 4\)/, out)
144
146
  end
147
+
145
148
  def test_description_is_shown_in_popups_if_provided
146
149
  actual = [
147
- 8.55, 15.1234, 9.09876765, 4, 0.1, 18,
150
+ 8.55, 15.1234, 9.09876765, 4, 0.1, 18,
148
151
  ]
149
152
  description = [
150
153
  'first', 'second', 'third',
@@ -5,21 +5,22 @@ require "SVG/Graph/DataPoint"
5
5
 
6
6
  class TestSvgGraph < Test::Unit::TestCase
7
7
  def test_bar_line_and_pie
8
- fields = %w(Jan Feb Mar);
9
- data_sales_02 = [12, 45, 21]
10
- [SVG::Graph::Bar, SVG::Graph::BarHorizontal, SVG::Graph::Line, SVG::Graph::Pie].each do
11
- |klass|
12
- graph = klass.new(
13
- :height => 500,
14
- :width => 300,
15
- :fields => fields
16
- )
17
- graph.add_data(
18
- :data => data_sales_02,
19
- :title => 'Sales 2002'
20
- )
21
- out=graph.burn
22
- assert(out=~/Created with SVG::Graph/)
23
- end
8
+ fields = %w(Jan Feb Mar);
9
+ data_sales_02 = [12, 45, 21]
10
+ [SVG::Graph::Bar, SVG::Graph::BarHorizontal, SVG::Graph::Line, SVG::Graph::Pie].each do
11
+ |klass|
12
+ graph = klass.new(
13
+ :height => 500,
14
+ :width => 300,
15
+ :fields => fields
16
+ )
17
+ graph.add_data(
18
+ :data => data_sales_02,
19
+ :title => 'Sales 2002'
20
+ )
21
+ out=graph.burn
22
+ assert(out=~/Created with SVG::Graph/)
23
+ end
24
24
  end
25
25
  end
26
+
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: svg-graph
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 4
10
- version: 1.0.4
9
+ - 5
10
+ version: 1.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sean Russell
metadata.gz.sig CHANGED
@@ -1,3 +1 @@
1
- D����5O�,R��Xd�*pF����҆
2
- �b�1��0��B��b|�v�,V�\�gw�r�mJ�G2�B=���q��>���8�K4o�� �6mD9�� �x�`{��;�d�SP� �6
3
- �6��;��^��H���
1
+ P�)��3��!�/n/Y���nRʃSr'��0�L~�Ɛ� �W��rk�m���w��NO-HWч�}��4�ю�*�T('�&�՜<�?.��f����n��{T�$����%�^�ٲ�9E�QP��\!��,6��P�������R��ee�M�~���,jug��(he;.{�J���&�f��A�|}t����y$~W���Y��<%`���e�\����;�'� �ӨG+�Ō޿Ai(oy&���fuN�����oq