imgix 3.2.0 → 3.2.1

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
  SHA1:
3
- metadata.gz: 2888effee0dc9f00b05832a337fc22d08973703a
4
- data.tar.gz: 0d55efe17b819635689e9e9a361339702ae2df73
3
+ metadata.gz: 6bdd9b0132a6ca25ef31c4329cb9208b4797509e
4
+ data.tar.gz: 33b0aa5a0b0db17caba521df0c0795b018f7042e
5
5
  SHA512:
6
- metadata.gz: 6a4c006d3efb6e4e60552a7330e22632f40f57f8fee2a0b5ea845f354890a8cf1eb8c7594e5e6ca64fc933bcb2fbab6017c0b9f8da276657d25ce8b4abaf968e
7
- data.tar.gz: 0127e8b6c7643b63e2d89437499493bf4d9eb1cf7fb7dd5392436e17a55e480f5e7a923064204f2490084b79339832ec6e9da85af4ccf6aaac03d192ac37d3a8
6
+ metadata.gz: 0cb3543b4cf85f1d8226f1d9b994265936c9ff08c8db12f9d0f72f75eaa6852c26ca20fefc095935c2b3162e4c81402510df1f554507341a83ffda4f6945ee8d
7
+ data.tar.gz: 4089e89e2b128bf031e300f38e8686a77606f0ee8a60233d83ee89827efebf728ae86be88053ecaadb044c1f44ae9eb4c6dc1377b1f98b7587b1b680478f881f
@@ -3,6 +3,10 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  This project adheres to [Semantic Versioning](http://semver.org/).
5
5
 
6
+ ## [3.2.1](https://github.com/imgix/imgix-rb/compare/3.2.0...3.2.1) - November 15, 2019
7
+
8
+ * fix: duplicate entries when using `min_width` or `max_width` ([#59](https://github.com/imgix/imgix-rb/pull/59))
9
+
6
10
  ## [3.2.0](https://github.com/imgix/imgix-rb/compare/3.1.1...3.2.0) - November 15, 2019
7
11
 
8
12
  * feat: append variable qualities to dpr srcsets ([#58](https://github.com/imgix/imgix-rb/pull/58))
@@ -28,7 +28,7 @@ module Imgix
28
28
  resolutions = []
29
29
  prev = min || MIN_WIDTH
30
30
 
31
- while(prev <= max_size)
31
+ while(prev < max_size)
32
32
  # ensures that each width is even
33
33
  resolutions.push((2 * (prev / 2).round))
34
34
  prev *= 1 + (increment_percentage * 2)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Imgix
4
- VERSION = '3.2.0'
4
+ VERSION = '3.2.1'
5
5
  end
@@ -694,7 +694,16 @@ module SrcsetTest
694
694
 
695
695
  assert_operator min, :>=, min_width
696
696
  assert_operator max, :<=, max_width
697
+ end
698
+
699
+ def test_max_as_100
700
+ srcset = Imgix::Client.new(host: 'testing.imgix.net', include_library_param: false).path('image.jpg').to_srcset(options: {max_width: 100})
701
+ assert_equal(srcset, "https://testing.imgix.net/image.jpg?w=100 100w")
702
+ end
697
703
 
704
+ def test_min_as_8192
705
+ srcset = Imgix::Client.new(host: 'testing.imgix.net', include_library_param: false).path('image.jpg').to_srcset(options: {min_width: 8192})
706
+ assert_equal(srcset, "https://testing.imgix.net/image.jpg?w=8192 8192w")
698
707
  end
699
708
 
700
709
  private
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: imgix
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.0
4
+ version: 3.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kelly Sutton
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2019-11-15 00:00:00.000000000 Z
16
+ date: 2019-11-20 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: addressable
@@ -81,8 +81,8 @@ licenses:
81
81
  metadata:
82
82
  bug_tracker_uri: https://github.com/imgix/imgix-rb/issues
83
83
  changelog_uri: https://github.com/imgix/imgix-rb/blob/master/CHANGELOG.md
84
- documentation_uri: https://www.rubydoc.info/gems/imgix/3.2.0
85
- source_code_uri: https://github.com/imgix/imgix-rb/tree/3.2.0
84
+ documentation_uri: https://www.rubydoc.info/gems/imgix/3.2.1
85
+ source_code_uri: https://github.com/imgix/imgix-rb/tree/3.2.1
86
86
  post_install_message:
87
87
  rdoc_options: []
88
88
  require_paths: