imgix 1.2.1 → 1.2.2
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 +2 -0
- data/lib/imgix/client.rb +2 -0
- data/lib/imgix/param_helpers.rb +3 -1
- data/lib/imgix/path.rb +4 -3
- data/lib/imgix/version.rb +3 -1
- data/test/test_helper.rb +2 -0
- data/test/units/domains_test.rb +2 -0
- data/test/units/path_test.rb +2 -0
- data/test/units/url_test.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f024036dd9183dd1a68b09faf50a4115a1f67cb
|
4
|
+
data.tar.gz: 2d6a4ccebcc9812512c00175afa578d55a34255a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73f7c3044711d3382b067fdcdb8c6648a3572ad0f383eefc164b5005183e06b1057facb3eaca7ac83151a633b3d23d4e45b8fdfdf5162f5850a9a78790186516
|
7
|
+
data.tar.gz: 11b9615037a7509fd579c94b1507c6eb2fa972ae8190da2b9366f07dbeea36f7e0c095c75c0b3138999cd97d6ba4e539dac6751ec4cda5e7cf18280df4ef0fcc
|
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
|
+
## [1.2.2] - November 14, 2018
|
7
|
+
|
8
|
+
* Improvements to memory usage [#35](https://github.com/imgix/imgix-rb/pull/35)
|
9
|
+
|
6
10
|
## [1.2.1] - November 5, 2018
|
7
11
|
|
8
12
|
* Removed unused `HTTP` dependency [#38](https://github.com/imgix/imgix-rb/pull/37)
|
data/lib/imgix.rb
CHANGED
data/lib/imgix/client.rb
CHANGED
data/lib/imgix/param_helpers.rb
CHANGED
data/lib/imgix/path.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'base64'
|
2
4
|
require 'cgi/util'
|
3
5
|
require 'erb'
|
@@ -96,10 +98,9 @@ module Imgix
|
|
96
98
|
escaped_key = ERB::Util.url_encode(key.to_s)
|
97
99
|
|
98
100
|
if escaped_key.end_with? '64'
|
99
|
-
|
100
|
-
"#{escaped_key}=#{base64_encoded_val}"
|
101
|
+
escaped_key << "=" << Base64.urlsafe_encode64(val.to_s).delete('=')
|
101
102
|
else
|
102
|
-
"
|
103
|
+
escaped_key << "=" << ERB::Util.url_encode(val.to_s)
|
103
104
|
end
|
104
105
|
end.join('&')
|
105
106
|
end
|
data/lib/imgix/version.rb
CHANGED
data/test/test_helper.rb
CHANGED
data/test/units/domains_test.rb
CHANGED
data/test/units/path_test.rb
CHANGED
data/test/units/url_test.rb
CHANGED
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: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kelly Sutton
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2018-11-
|
15
|
+
date: 2018-11-14 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: addressable
|