gruffy 1.0.0 → 1.0.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9b7519b50408b5dc01e159a26f651fbd00042b44
4
- data.tar.gz: c8ce2944cb646581add0da6843ae3ea6a0dd2cc8
3
+ metadata.gz: a8a588f8fea5f65239b91f3e078008cc32e9a972
4
+ data.tar.gz: f9b5c1cdfab226c55226ec03bc0b82a732d5a033
5
5
  SHA512:
6
- metadata.gz: 1afd7f06fb73745b0d7b3f6e5c0656cd199cb3ad6d11358ed9e099bdd119a3c509ddc614e74a11790fa4e6c70140d3ea113b1b18e605a423990a5f0026d08ee5
7
- data.tar.gz: 7d086f304026756a46c964f999b8e45ccdecb92259f292722a5aabe2b07d598e061caaeffece29e149f8a680bc1932cbc5267ec46afc261b7df04e976a95ece3
6
+ metadata.gz: bda392712d72cbe34cad4b2bb56e8fcbea3e7562644a229eac1f75374fc61702cc117291b7640516ed8eed32b7e7731f934f94c5169c2cf199fa64f49a8b12d7
7
+ data.tar.gz: 7bfd3eed6244aa7f97d0e72faa44361ac1b03e776467109280ce5828f288fdb5ce2aadc36bf8dce783f1b0198382081c42deac69b06131a19e0a56c60ae8e402
@@ -937,7 +937,6 @@ module Gruffy
937
937
 
938
938
  # Make a new image at the current size with a solid +color+.
939
939
  def render_solid_background(color)
940
- @background_label_height = (@labels.values.sort_by {|v| v.size }.last.size if @background_label_height == 0) rescue @background_label_height
941
940
  @rows += (@background_label_height * 7) unless @label_rotation.nil?
942
941
  Image.new(@columns, @rows) {
943
942
  self.background_color = color
@@ -961,7 +960,6 @@ module Gruffy
961
960
  gradient_fill = GradientFill.new(0, 0, 100, 0, top_color, bottom_color)
962
961
  end
963
962
 
964
- @background_label_height = (@labels.values.sort_by {|v| v.size }.last.size if @background_label_height == 0) rescue @background_label_height
965
963
  @rows += (@background_label_height * 7) unless @label_rotation.nil?
966
964
  Image.new(@columns, @rows, gradient_fill)
967
965
  end
@@ -977,7 +975,6 @@ module Gruffy
977
975
 
978
976
  # Use with a theme to make a transparent background
979
977
  def render_transparent_background
980
- @background_label_height = (@labels.values.sort_by {|v| v.size }.last.size if @background_label_height == 0) rescue @background_label_height
981
978
  @rows += (@background_label_height * 7) unless @label_rotation.nil?
982
979
  Image.new(@columns, @rows) do
983
980
  self.background_color = 'transparent'
@@ -1,3 +1,3 @@
1
1
  module Gruffy
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
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: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wuttikrai Limsakul