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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8b2316a1260122a385c0f707910da622ae17f7fc
4
- data.tar.gz: 0266d39cc449ed13392b0858917468eadec330a2
3
+ metadata.gz: 57f4408d60fac53d5b366a968e4e06c7b24c01a6
4
+ data.tar.gz: 84321b9d96611f04344242b07973d1cdf4fc6ee1
5
5
  SHA512:
6
- metadata.gz: a4e457e1948ad3370071b51eed31ad4cd430a744fdbf50ecf4fc56d44d1db947e1613379c67e71ac9c39e7d9ce27e71fca0e37e2a6286acf8f5541b8c51791d9
7
- data.tar.gz: d8526ef470134f5112217b42905bb93f153f293e370f72ff8255991b11025812da47bacd3c0824185b7a3b7d0fb95ba061849465729ed73f0f8aad082badc59f
6
+ metadata.gz: ce15598a5d44a8cedbed7880d3c4348ed7d59f3ad8658234a4b28352914af659fdf2403fd447c84d2097051e85941afcd8deee7ac1da8b1f4f4e97a2a91e8bc2
7
+ data.tar.gz: 0f2644738d3881eb20f9e828b1707b32197d6ee510a661fc9c4a72515ca1c629cf9e4f31f6ecee5936a96d5b7d2a1cd811a418504b12acb00a07aaec270f869a
@@ -137,9 +137,15 @@ module Phantom
137
137
  return
138
138
  end
139
139
 
140
- rest_duration = (total_duration * 1000).to_i.lcm((src.total_duration * 1000).to_i)
141
- @frames[0].duration = rest_duration * 0.001 if @frames.length == 1
142
- src.frames[0].duration = rest_duration * 0.001 if src.frames.length == 1
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;
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'phantom_svg'
3
- s.version = '1.2.5'
3
+ s.version = '1.2.6'
4
4
  s.license = 'LGPL-3.0'
5
5
  s.summary = 'Hight end SVG manipulation tools for Ruby'
6
6
  s.description = 'Hight end SVG manipulation tools for Ruby.\n' \
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.5
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-08 00:00:00.000000000 Z
13
+ date: 2016-12-14 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: gobject-introspection