svg_charts 1.01 → 1.02
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.
- data/VERSION +1 -1
- data/lib/charts/line.rb +3 -3
- data/svg_charts.gemspec +2 -2
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.02
|
data/lib/charts/line.rb
CHANGED
@@ -2,7 +2,7 @@ module SVGCharts
|
|
2
2
|
class Line
|
3
3
|
include SVGElements
|
4
4
|
|
5
|
-
def initialize(options
|
5
|
+
def initialize(options)
|
6
6
|
validation options, [:width, :height, :y_retreat, :x_retreat]
|
7
7
|
|
8
8
|
@width = options[:width]
|
@@ -12,7 +12,7 @@ module SVGCharts
|
|
12
12
|
@x_retreat = options[:x_retreat]
|
13
13
|
end
|
14
14
|
|
15
|
-
def scale(options
|
15
|
+
def scale(options)
|
16
16
|
validation options, [:y_label, :x_label]
|
17
17
|
|
18
18
|
scale = line({
|
@@ -55,7 +55,7 @@ module SVGCharts
|
|
55
55
|
scale
|
56
56
|
end
|
57
57
|
|
58
|
-
def draw(options
|
58
|
+
def draw(options)
|
59
59
|
validation options, [:scale, :data, :data_color, :show_scale, :show_dashed]
|
60
60
|
|
61
61
|
calculate_coordinates options[:data]
|
data/svg_charts.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
Gem::Specification.new do |s|
|
3
3
|
s.authors = ["Rogério Zambon"]
|
4
|
-
s.date = "2013-01-
|
4
|
+
s.date = "2013-01-28"
|
5
5
|
s.description = "Draw charts using SVG."
|
6
6
|
s.email = "rogeriozambon@gmail.com"
|
7
7
|
s.files = [
|
@@ -20,5 +20,5 @@ Gem::Specification.new do |s|
|
|
20
20
|
s.require_paths = ["lib"]
|
21
21
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.8.23")
|
22
22
|
s.summary = s.description
|
23
|
-
s.version = "1.
|
23
|
+
s.version = "1.02"
|
24
24
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: svg_charts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '1.
|
4
|
+
version: '1.02'
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-01-
|
12
|
+
date: 2013-01-28 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Draw charts using SVG.
|
15
15
|
email: rogeriozambon@gmail.com
|