vectory 0.7.5 → 0.7.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0a6c18ba7c79e9fe87d1a9ccdd8456e250b85d91e4955c9d84487a1b0d13d30e
4
- data.tar.gz: 710be6d71399fc7cfc0dcd18b016edb6f4fa4ab5587b5af9dec0c011e7cdc31b
3
+ metadata.gz: 9517c7e8299f78520e9e150b4282b84e11dc94d1bb61f5319fd4b8f7c66c5e75
4
+ data.tar.gz: e75a98ab4378796775d128d8acc8d2a9a9416ed34fb998c28a704f20fdc85a3d
5
5
  SHA512:
6
- metadata.gz: 0b78ec2bbaaeff9a1de40cb3b259b6dec8530b867c25bda9a9c2f593649f6ce1e8d825a9b3d9e534ba68b5a6188d4b99dfa7a8997b81e5815c547b950a60531d
7
- data.tar.gz: 7d3d896903020a026a6d2da467e8a23f996a69b0fc5033ca7a6c6741a41ebb19330702b1d68c896deca84f44db69f37fc38ce7cd4e8d6aa27297e412aa3b3fdb
6
+ metadata.gz: 83a607b2d61ae61a7f57396da3d6f06cdf6191fb23f8520a9226c4461f4ab3bc7448bc8ed51694af9eb7cb25ef2a2645fc0fa8e6ef13966b984cf01eccce3df0
7
+ data.tar.gz: 1c76f063a7de3d16f7859717a8b437628d2448b5d0b678bb600f43c21faea3224ee3e7549701270a485179babce981ac3308a2d0a361306244c569799ed6e031
@@ -15,7 +15,8 @@ module Vectory
15
15
  end
16
16
 
17
17
  def get_image_size(img, path)
18
- realsize = ImageSize.path(path).size
18
+ detected = ImageSize.path(path).size
19
+ realsize = detected unless detected.all? { |x| x.nil? || x.zero? }
19
20
  s = image_size_interpret(img, realsize || [nil, nil])
20
21
  image_size_zeroes_complete(s, realsize)
21
22
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Vectory
4
- VERSION = "0.7.5"
4
+ VERSION = "0.7.6"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vectory
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.5
4
+ version: 0.7.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-04-23 00:00:00.000000000 Z
11
+ date: 2024-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: emf2svg