phantom_svg 1.2.5 → 1.2.6
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/phantom/svg.rb +9 -3
- data/phantom_svg.gemspec +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: 57f4408d60fac53d5b366a968e4e06c7b24c01a6
|
4
|
+
data.tar.gz: 84321b9d96611f04344242b07973d1cdf4fc6ee1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce15598a5d44a8cedbed7880d3c4348ed7d59f3ad8658234a4b28352914af659fdf2403fd447c84d2097051e85941afcd8deee7ac1da8b1f4f4e97a2a91e8bc2
|
7
|
+
data.tar.gz: 0f2644738d3881eb20f9e828b1707b32197d6ee510a661fc9c4a72515ca1c629cf9e4f31f6ecee5936a96d5b7d2a1cd811a418504b12acb00a07aaec270f869a
|
data/lib/phantom/svg.rb
CHANGED
@@ -137,9 +137,15 @@ module Phantom
|
|
137
137
|
return
|
138
138
|
end
|
139
139
|
|
140
|
-
|
141
|
-
|
142
|
-
|
140
|
+
if @frames.length == 1
|
141
|
+
rest_duration = (src.total_duration * 1000).to_i
|
142
|
+
@frames[0].duration = rest_duration * 0.001
|
143
|
+
elsif src.frames.length == 1
|
144
|
+
rest_duration = (total_duration * 1000).to_i
|
145
|
+
src.frames[0].duration = rest_duration * 0.001
|
146
|
+
else
|
147
|
+
rest_duration = (total_duration * 1000).to_i.lcm((src.total_duration * 1000).to_i)
|
148
|
+
end
|
143
149
|
|
144
150
|
base_i = src_i = -1
|
145
151
|
base_duration = src_duration = 0;
|
data/phantom_svg.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phantom_svg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rika Yoshida
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-12-
|
13
|
+
date: 2016-12-14 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: gobject-introspection
|