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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/imgix.rb +1 -1
- data/lib/imgix/version.rb +1 -1
- data/test/units/srcset_test.rb +9 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6bdd9b0132a6ca25ef31c4329cb9208b4797509e
|
4
|
+
data.tar.gz: 33b0aa5a0b0db17caba521df0c0795b018f7042e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0cb3543b4cf85f1d8226f1d9b994265936c9ff08c8db12f9d0f72f75eaa6852c26ca20fefc095935c2b3162e4c81402510df1f554507341a83ffda4f6945ee8d
|
7
|
+
data.tar.gz: 4089e89e2b128bf031e300f38e8686a77606f0ee8a60233d83ee89827efebf728ae86be88053ecaadb044c1f44ae9eb4c6dc1377b1f98b7587b1b680478f881f
|
data/CHANGELOG.md
CHANGED
@@ -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))
|
data/lib/imgix.rb
CHANGED
data/lib/imgix/version.rb
CHANGED
data/test/units/srcset_test.rb
CHANGED
@@ -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.
|
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-
|
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.
|
85
|
-
source_code_uri: https://github.com/imgix/imgix-rb/tree/3.2.
|
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:
|