psd 3.2.3 → 3.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/psd/layer_info/typetool.rb +4 -1
- data/lib/psd/layer_mask.rb +2 -0
- data/lib/psd/nodes/root.rb +2 -1
- data/lib/psd/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5853601336a5bf10d6b88f63b5531ceb88bdd4aa
|
4
|
+
data.tar.gz: d7334ea5cf8f8c4ef2ef8ee407ebbe65cffb73db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ce5801d31518ae76637c103b39847ee2a2fc09bd8ca23b4db7e60b63661e76e9881cbb4e6096a2e35ba21c6b3bd6bb640eab4e08be8af64a588e483114b9923
|
7
|
+
data.tar.gz: 380ac3504e5de0048aa9d7c229d6bed86da035d3d296dac525231f42ef0bf33c0d02d5656bd2e5aad2c00bbb9b31ead2e1b764b76ed063082470658cff73322c
|
@@ -75,6 +75,8 @@ class PSD
|
|
75
75
|
engine_data.EngineDict.ParagraphRun.RunArray.map do |s|
|
76
76
|
["left", "right", "center", "justify"][[s.ParagraphSheet.Properties.Justification.to_i,3].min]
|
77
77
|
end
|
78
|
+
rescue
|
79
|
+
[]
|
78
80
|
end
|
79
81
|
|
80
82
|
# Return all colors used for text in this layer. The colors are returned in RGBA
|
@@ -133,6 +135,7 @@ class PSD
|
|
133
135
|
|
134
136
|
css = []
|
135
137
|
definition.each do |k, v|
|
138
|
+
next if v.nil?
|
136
139
|
css << "#{k}: #{v};"
|
137
140
|
end
|
138
141
|
|
@@ -165,4 +168,4 @@ class PSD
|
|
165
168
|
end
|
166
169
|
end
|
167
170
|
end
|
168
|
-
end
|
171
|
+
end
|
data/lib/psd/layer_mask.rb
CHANGED
data/lib/psd/nodes/root.rb
CHANGED
data/lib/psd/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: psd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.
|
4
|
+
version: 3.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan LeFevre
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-10-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|