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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0c3a1b02f57f6334c92be0f01f64c1eb55ea14a9
4
- data.tar.gz: 7e49a63b8565c1c366b612cdee51e904d0313d97
3
+ metadata.gz: 0f024036dd9183dd1a68b09faf50a4115a1f67cb
4
+ data.tar.gz: 2d6a4ccebcc9812512c00175afa578d55a34255a
5
5
  SHA512:
6
- metadata.gz: 19a718bb1ed13a6a2b0c5a7c531b0b0b4abf250aa14bbfda32175e4afe5f125e7a7738213821770f4fc8118f7b1415e7fe793cd5d0885fae40081e204e81e2c3
7
- data.tar.gz: 86589e02cbc1affa3232dcb1b8da2b6cfc069309c5c36f1218b69d686db7018882498948f4e2aced5023c845f7bbf646f1dd639dcd5c8be08bf6a5314de20d97
6
+ metadata.gz: 73f7c3044711d3382b067fdcdb8c6648a3572ad0f383eefc164b5005183e06b1057facb3eaca7ac83151a633b3d23d4e45b8fdfdf5162f5850a9a78790186516
7
+ data.tar.gz: 11b9615037a7509fd579c94b1507c6eb2fa972ae8190da2b9366f07dbeea36f7e0c095c75c0b3138999cd97d6ba4e539dac6751ec4cda5e7cf18280df4ef0fcc
@@ -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)
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'imgix/version'
2
4
  require 'imgix/client'
3
5
  require 'imgix/path'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'digest'
2
4
  require 'addressable/uri'
3
5
  require 'zlib'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Imgix
2
4
  module ParamHelpers
3
5
  def rect(position)
@@ -13,4 +15,4 @@ module Imgix
13
15
  return self
14
16
  end
15
17
  end
16
- end
18
+ end
@@ -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
- base64_encoded_val = Base64.urlsafe_encode64(val.to_s).delete('=')
100
- "#{escaped_key}=#{base64_encoded_val}"
101
+ escaped_key << "=" << Base64.urlsafe_encode64(val.to_s).delete('=')
101
102
  else
102
- "#{escaped_key}=#{ERB::Util.url_encode(val.to_s)}"
103
+ escaped_key << "=" << ERB::Util.url_encode(val.to_s)
103
104
  end
104
105
  end.join('&')
105
106
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Imgix
2
- VERSION = '1.2.1'
4
+ VERSION = '1.2.2'
3
5
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'rubygems'
2
4
  require 'bundler'
3
5
  Bundler.require :test
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'test_helper'
2
4
 
3
5
  class DomainsTest < Imgix::Test
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'test_helper'
2
4
 
3
5
  class PathTest < Imgix::Test
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'test_helper'
2
4
 
3
5
  class UrlTest < Imgix::Test
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.1
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-05 00:00:00.000000000 Z
15
+ date: 2018-11-14 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: addressable