kamifusen 0.9.7 → 1.0

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: 2664cf5dea01a7294d0f2c9b017b2d6bd00a3d0a81daaa161f95f924ee62479e
4
- data.tar.gz: 5301c3d3ad0733b2a7376f3a8a417b4a02d74c59eebf35f5cde3906e2e179523
3
+ metadata.gz: 3f238efa9930dad4bbd2b9986e601120870e7a0f96e2628c2a8d7b217c284e87
4
+ data.tar.gz: 3bc265f3e7deee21f942bb8391c77426bcc335fff4bd7d4bb05adc7f178febe5
5
5
  SHA512:
6
- metadata.gz: 3c06c337ed793d477bd3dd9539517c4ba09011e8c0e801b084e8ae477991dc168f45d63165fa4754170003b60aab1ce0ef886eacd98bf2a80823f9dc7ab81eda
7
- data.tar.gz: 69acef22af9cb3beb364f593f7fb6005e564f3f93ec95af6005bf3255b166715cb79f11fd3253e56f1fc0e3b1c6cb09f1d171126236a148bb180b737736fa5a0
6
+ metadata.gz: f35d8b955ca59cf265cbae61e229f68a0663d8e091a8216e8fbcacc785d3a6b0e4344cfc9a12f6c5f89ede49cab4835deded944f50764370909b74f773971033
7
+ data.tar.gz: 8ef30b63560714cc9b3f35cf1367554aec03f11ce4da37eac904346860d380b2367494e1dd1b79ccf1730c33f334473e3fa8ab5d326bc66ce06975f407517772
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kamifusen (0.9.7)
4
+ kamifusen (1.0)
5
5
  image_processing
6
6
  rails
7
7
 
@@ -94,7 +94,7 @@ GEM
94
94
  mini_mime (1.0.3)
95
95
  minitest (5.14.4)
96
96
  nio4r (2.5.7)
97
- nokogiri (1.11.6-x86_64-darwin)
97
+ nokogiri (1.11.7-x86_64-darwin)
98
98
  racc (~> 1.4)
99
99
  parallel (1.20.1)
100
100
  parser (3.0.1.1)
@@ -19,15 +19,9 @@ parameters += " class=\"#{ options[:class] }\"" if klass
19
19
  # Computing
20
20
  if width
21
21
  width_retina = width * 2
22
- # If we ask for a 175px width, we should have 320 and 576 sizes
23
- size_is_too_big = false
24
- sizes.reject! do |size|
25
- # If the previous size was too big, we should reject this one
26
- should_reject_this_size = size_is_too_big
27
- # If this size is the first "too big" size, we should take it
28
- size_is_too_big = size > width_retina
29
- should_reject_this_size
30
- end
22
+ sizes.reject! { |size| size > width_retina }
23
+ sizes << width_retina
24
+ sizes.uniq!
31
25
  end
32
26
  default_width = sizes.max
33
27
  default_width = width_retina if width_retina && width_retina > default_width
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Kamifusen
4
- VERSION = "0.9.7"
4
+ VERSION = "1.0"
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: 0.9.7
4
+ version: '1.0'
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-06-02 00:00:00.000000000 Z
12
+ date: 2021-06-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails