kamifusen 1.10.2 → 1.10.3

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: 2fdd71ccadb407398ff0e93515e68ab5baf952c6126b21253f7eed7ed7a23ffe
4
- data.tar.gz: bcf6bb686e133972a594c28992d2e4c44b8f481da07ebc48667871f1909f41a3
3
+ metadata.gz: 56bd55356abc2f8c35701c288a89c82f0bde23ad807987eba2c129e28773e1ae
4
+ data.tar.gz: 10cc826b4de7b4de04de7ede89d3700c0fc9e9e581366df41f22d556ad56f788
5
5
  SHA512:
6
- metadata.gz: ea108d4ec53a1083f9c9f25ebcefeef09653f5929049cb6e7e7acb927e7e19fd83575967b2cd56531301e48758f287f748ffbc8dab9414251fd28b672c8009eb
7
- data.tar.gz: 963dd8eef230ae2fe292a65ad3e74b01a2e1b47ebd264ca6dfbc3e6acda7a753af1acfa8faaf3e87c9dd90b426cc57d67589476dba2413fd12ce3fcf06831fa7
6
+ metadata.gz: 7a59010f32ab196d5228f0065eb7f46bdea8131cb1e861716346e25beb5e9458b574e9979fa63eb2469b8c36e8a69c6bf2f0742d8b365b04215bd9887aeb29be
7
+ data.tar.gz: 6ab4e8e652dca4ec6c6edd68a0c89c2301b1b9eb0e5396f322bdb26e535a2d358be4633aa29e501fdaabe95e739f9d842498807d2d03e247da801f3ef6c5b05d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kamifusen (1.10.2)
4
+ kamifusen (1.10.3)
5
5
  image_processing
6
6
  rails
7
7
 
@@ -158,7 +158,7 @@ GEM
158
158
  sprockets (4.0.2)
159
159
  concurrent-ruby (~> 1.0)
160
160
  rack (> 1, < 3)
161
- sprockets-rails (3.3.0)
161
+ sprockets-rails (3.4.0)
162
162
  actionpack (>= 5.2)
163
163
  activesupport (>= 5.2)
164
164
  sprockets (>= 3.0.0)
data/README.md CHANGED
@@ -110,7 +110,7 @@ Webp and AVIF are more efficient formats than jpg and png. They allow better com
110
110
 
111
111
  ### The final situation
112
112
 
113
- https://sebousan.github.io/kamifusen/
113
+ https://noesya.github.io/kamifusen/
114
114
 
115
115
  The new helper is:
116
116
 
@@ -21,7 +21,7 @@ if source&.analyzed? && source.metadata.has_key?('width') && source.metadata.has
21
21
  if width.nil? && height.nil?
22
22
  # Image real dimensions
23
23
  width = [image_width, variant_sizes.last].min
24
- height = width * image_ratio
24
+ height = width / image_ratio
25
25
  elsif width.nil?
26
26
  # Calculated width, preserving the aspect ratio
27
27
  width = height * image_ratio
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Kamifusen
4
- VERSION = "1.10.2"
4
+ VERSION = "1.10.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kamifusen
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.2
4
+ version: 1.10.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sébastien Moulène
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2021-11-15 00:00:00.000000000 Z
12
+ date: 2021-11-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails