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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 97735b821a3727121955799ba0d8df51f4b8eabb
4
- data.tar.gz: 113f68a5deb2b7b4544db562f9ef64922f5c041b
3
+ metadata.gz: 7dc226949a54aa109c73d4b20d5bf9c2b951ea80
4
+ data.tar.gz: 34c3df16b508e276cfd695351be4afe7228bef06
5
5
  SHA512:
6
- metadata.gz: cde264c5b6f9fb15664ecc00a4f32f6c281791c0db5540e6e2d2265d783296d7f29eef51032366eba0572c172d302062a87d799497e4cb8d7771606cdd1704c8
7
- data.tar.gz: 2735d5f675acceccad2431a61e9c478e1a1ff7b845d5c88472dc274cfaeea793a1bbe02c1864a77b344651ed2fd5d0ddd1697fd0f189cdb46af64b6b1e4c4dee
6
+ metadata.gz: e6b2639085f12842c60e8374747335a571a6596d003b2e3307f72790613a674f3768b9be14385945c20cab654c514d5bcf6a21742e89b7e3e359cc0729f5f698
7
+ data.tar.gz: 2eaf5d35ff07b65a8bd25b27c9d3bc37cf4e3beb36d07756217ce19805cc5d1be9f6d593388e355620bd3fd0dcf0941622793cfb2142dc66a9500b294fcf4d87
@@ -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.preset?
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.preset?
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.preset?
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.preset?
957
+ @rows += 55 if @label_rotation.present?
958
958
  Image.new(@columns, @rows, gradient_fill)
959
959
  end
960
960
 
@@ -1,3 +1,3 @@
1
1
  module Gruffy
2
- VERSION = '0.0.5'
2
+ VERSION = '0.0.6'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gruffy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wuttikrai Limsakul