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 +4 -4
- data/lib/gruffy/base.rb +0 -3
- 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: a8a588f8fea5f65239b91f3e078008cc32e9a972
|
|
4
|
+
data.tar.gz: f9b5c1cdfab226c55226ec03bc0b82a732d5a033
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bda392712d72cbe34cad4b2bb56e8fcbea3e7562644a229eac1f75374fc61702cc117291b7640516ed8eed32b7e7731f934f94c5169c2cf199fa64f49a8b12d7
|
|
7
|
+
data.tar.gz: 7bfd3eed6244aa7f97d0e72faa44361ac1b03e776467109280ce5828f288fdb5ce2aadc36bf8dce783f1b0198382081c42deac69b06131a19e0a56c60ae8e402
|
data/lib/gruffy/base.rb
CHANGED
|
@@ -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'
|
data/lib/gruffy/version.rb
CHANGED