gruffy 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gruffy/base.rb +4 -4
- data/lib/gruffy/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7dc226949a54aa109c73d4b20d5bf9c2b951ea80
|
4
|
+
data.tar.gz: 34c3df16b508e276cfd695351be4afe7228bef06
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6b2639085f12842c60e8374747335a571a6596d003b2e3307f72790613a674f3768b9be14385945c20cab654c514d5bcf6a21742e89b7e3e359cc0729f5f698
|
7
|
+
data.tar.gz: 2eaf5d35ff07b65a8bd25b27c9d3bc37cf4e3beb36d07756217ce19805cc5d1be9f6d593388e355620bd3fd0dcf0941622793cfb2142dc66a9500b294fcf4d87
|
data/lib/gruffy/base.rb
CHANGED
@@ -863,9 +863,9 @@ module Gruffy
|
|
863
863
|
end
|
864
864
|
end
|
865
865
|
|
866
|
-
y_offset += ((label_text.size - different_size) * 4) + 10 if @label_rotation.
|
866
|
+
y_offset += ((label_text.size - different_size) * 4) + 10 if @label_rotation.present?
|
867
867
|
if x_offset >= @graph_left && x_offset <= @graph_right
|
868
|
-
@d.rotation = (@label_rotation.to_i * (-1)) if @label_rotation.
|
868
|
+
@d.rotation = (@label_rotation.to_i * (-1)) if @label_rotation.present?
|
869
869
|
@d.fill = @font_color
|
870
870
|
@d.font = @font if @font
|
871
871
|
@d.stroke('transparent')
|
@@ -876,7 +876,7 @@ module Gruffy
|
|
876
876
|
1.0, 1.0,
|
877
877
|
x_offset, y_offset,
|
878
878
|
label_text, @scale)
|
879
|
-
@d.rotation = @label_rotation.to_i if @label_rotation.
|
879
|
+
@d.rotation = @label_rotation.to_i if @label_rotation.present?
|
880
880
|
end
|
881
881
|
@labels_seen[index] = 1
|
882
882
|
debug { @d.line 0.0, y_offset, @raw_columns, y_offset }
|
@@ -954,7 +954,7 @@ module Gruffy
|
|
954
954
|
else
|
955
955
|
gradient_fill = GradientFill.new(0, 0, 100, 0, top_color, bottom_color)
|
956
956
|
end
|
957
|
-
@rows += 55 if @label_rotation.
|
957
|
+
@rows += 55 if @label_rotation.present?
|
958
958
|
Image.new(@columns, @rows, gradient_fill)
|
959
959
|
end
|
960
960
|
|
data/lib/gruffy/version.rb
CHANGED