google_otg 1.0.14 → 1.0.15

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 (4) hide show
  1. data/VERSION +1 -1
  2. data/google_otg.gemspec +1 -1
  3. data/lib/google_otg.rb +1 -3
  4. metadata +1 -1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.14
1
+ 1.0.15
data/google_otg.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{google_otg}
8
- s.version = "1.0.14"
8
+ s.version = "1.0.15"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["esilverberg"]
data/lib/google_otg.rb CHANGED
@@ -21,8 +21,6 @@ module GoogleOtg
21
21
  y_labels = [0]
22
22
  data = []
23
23
 
24
- args[:draw_gchart] = true
25
-
26
24
  if hits[0].is_a?(Array)
27
25
  shape_markers = [['D','6699CC',0,'-1.0',4],['D','FF9933',1,'-1.0',2],['o','0000ff',0,'-1.0',8],['o','FF6600',1,'-1.0',8]]
28
26
  line_colors = ['6699CC','FF9933']
@@ -61,6 +59,7 @@ module GoogleOtg
61
59
  :shape_markers => shape_markers,
62
60
  :data => data,
63
61
  :axis_with_labels => axis_with_labels,
62
+ :max_value => y_labels[y_labels.length - 1],
64
63
  :legend => legend,
65
64
  :axis_labels => axis_labels,
66
65
  :line_colors => line_colors)
@@ -277,7 +276,6 @@ eos
277
276
  max_y = args.has_key?(:max_y) ? (args[:max_y] > max_y ? args[:max_y] : max_y) : max_y
278
277
 
279
278
  top_y = self.flto10(max_y) + 10
280
- top_y = max_y if top_y == 10 && args[:draw_gchart]
281
279
  mid_y = self.flto10(top_y / 2)
282
280
  y_labels = y_label_fn.call(mid_y, top_y)
283
281
  ## end y axis labels ##
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google_otg
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.14
4
+ version: 1.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - esilverberg