omniauth-shopify-oauth2 1.1.16 → 1.1.17

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: 149d0261fcd19f5c0dd6579c2687fe20c3236bf0
4
- data.tar.gz: 0ecf58eef1c0c11d57f3cab5a14635dd9833a53f
3
+ metadata.gz: 0b6fbcbe291d21114d47d6196a722837055e9394
4
+ data.tar.gz: 43eb0e4000a54fd406557cf04202cfb86ad8b116
5
5
  SHA512:
6
- metadata.gz: 7cd3fccf23e29b9a6754febef0abdeca4513c307b2cab98d7897a953c0f59e9436c372050bddaff545fefcf39c0d93fd8860741a22d22c9723d856f89d9bed5d
7
- data.tar.gz: 723e15532785dc671eea26e5267b021f63756eed40c56952fdd42871db0b9e0d7e48a5fd9de84f1de960c18173b2c5820a4a6077e881daa7fe352de40716e4ba
6
+ metadata.gz: a71588eb45084637cc745aa617292732dbb65073d33de2db826648a72484b58d58856d7e6f9577fb7197429a1b836bb21bc7ca311ba3822c936047dca83690e8
7
+ data.tar.gz: cb4ba6c5d535bf5b1eb1906e7367c791d9a424a1615c7fc02106624bb6310ab6537fd584eb13ff32908331e64f52db0bd8676de1fbb89077c644ea8aeadc16fa
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Shopify
3
- VERSION = "1.1.16"
3
+ VERSION = "1.1.17"
4
4
  end
5
5
  end
@@ -90,7 +90,7 @@ module OmniAuth
90
90
  end
91
91
 
92
92
  def fix_https
93
- options[:client_options][:site].gsub!(/\Ahttp\:/, 'https:')
93
+ options[:client_options][:site] = options[:client_options][:site].gsub(/\Ahttp\:/, 'https:')
94
94
  end
95
95
 
96
96
  def setup_phase
@@ -29,6 +29,12 @@ describe OmniAuth::Strategies::Shopify do
29
29
  subject.options[:client_options][:site].should eq('https://foo.bar/')
30
30
  end
31
31
 
32
+ it 'replaces http scheme by https with an immutable string' do
33
+ @options = {:client_options => {:site => 'http://foo.bar/'.freeze}}
34
+ subject.fix_https
35
+ subject.options[:client_options][:site].should eq('https://foo.bar/')
36
+ end
37
+
32
38
  it 'does not replace https scheme' do
33
39
  @options = {:client_options => {:site => 'https://foo.bar/'}}
34
40
  subject.fix_https
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-shopify-oauth2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.16
4
+ version: 1.1.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Denis Odorcic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-21 00:00:00.000000000 Z
11
+ date: 2017-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth-oauth2