omniauth-tradegecko 0.1.2 → 1.0.0

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: 938ba9c173fc6eeb66b24ac9a8067a9b62c3b1f2
4
- data.tar.gz: 5fca624bd7079afc6e005974aeec2ff95f643264
3
+ metadata.gz: f648cf303af282fb7a7a17efa54d67e45ad0192d
4
+ data.tar.gz: 9ad1a71c4722f083216dd8e56a1eef70a9cd72e8
5
5
  SHA512:
6
- metadata.gz: f4a3a78023c2af7486f7d154c1b552c0932fbbfbb7a4641765806ecf6d9870dcee5b0253591d1f6f10e837e764c04de7ecedc85a49f7aacd09db84b1ba1f78ec
7
- data.tar.gz: 8fd13cdd8e511204ff472343257246cf0fb1f0c80e37e7264fe274a9576a18e8c4330e498bc76dfb21b8bc77eec392063fe3c202acce908d1c2fc6d1cfa4d601
6
+ metadata.gz: e8aec1d54bb877cfad7c89ea41e8a229c17eabeb709c7e2dfef85518d186b6b68c2bca44fee1c2a38d6c763b699b4aa9bdbf2de3cd554edfa7c529ba888fd792
7
+ data.tar.gz: 5ea68621c1953c0b732c5293f29331129dc4b7ca8e8b7d80c82c04e44a97c9f50294224bf24eb6ab3d705705d00900329e2bde82b90574aa0d95ba8891b9c616
@@ -0,0 +1,2 @@
1
+ ## 1.0.0 (2018-04-11)
2
+ - Unlock omniauth-oauth 1.3.1+ by hardcoding the exclusion of query-params
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2013 TradeGecko Pte Ltd
1
+ Copyright (c) 2018 TradeGecko Pte Ltd
2
2
 
3
3
  MIT License
4
4
 
@@ -19,4 +19,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
19
  NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
20
  LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
21
  OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module TradeGecko
3
- VERSION = "0.1.2"
3
+ VERSION = "1.0.0"
4
4
  end
5
5
  end
@@ -36,6 +36,10 @@ module OmniAuth
36
36
  def full_name
37
37
  [raw_info["first_name"], raw_info["last_name"]].compact.join(" ")
38
38
  end
39
+
40
+ def callback_url
41
+ full_host + script_name + callback_path
42
+ end
39
43
  end
40
44
  end
41
45
  end
@@ -15,7 +15,7 @@ Gem::Specification.new do |gem|
15
15
  gem.version = Omniauth::TradeGecko::VERSION
16
16
 
17
17
  gem.add_dependency 'omniauth', '~> 1.0'
18
- gem.add_dependency 'omniauth-oauth2', '~> 1.3.1'
18
+ gem.add_dependency 'omniauth-oauth2', '~> 1.3'
19
19
  gem.add_development_dependency 'rspec', '~> 3.0'
20
20
  gem.add_development_dependency 'rack-test'
21
21
  gem.add_development_dependency 'simplecov'
@@ -23,7 +23,6 @@ describe OmniAuth::Strategies::TradeGecko do
23
23
  "account_id" => 1,
24
24
  "last_name" => "Zim",
25
25
  "email" => "invaderzim@example.com",
26
- "account_id" => 1,
27
26
  "login_id" => 2
28
27
  }
29
28
  end
@@ -40,4 +39,13 @@ describe OmniAuth::Strategies::TradeGecko do
40
39
  })
41
40
  end
42
41
  end
42
+
43
+ describe '#callback_url' do
44
+ it 'is a combination of host, script name, and callback path' do
45
+ allow(strategy).to receive(:full_host).and_return('https://example.com')
46
+ allow(strategy).to receive(:script_name).and_return('/sub_uri')
47
+
48
+ expect(strategy.callback_url).to eq('https://example.com/sub_uri/auth/tradegecko/callback')
49
+ end
50
+ end
43
51
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-tradegecko
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bradley Priest
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-09 00:00:00.000000000 Z
11
+ date: 2018-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.3.1
33
+ version: '1.3'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 1.3.1
40
+ version: '1.3'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -116,6 +116,7 @@ extensions: []
116
116
  extra_rdoc_files: []
117
117
  files:
118
118
  - ".gitignore"
119
+ - CHANGELOG.md
119
120
  - Gemfile
120
121
  - LICENSE
121
122
  - README.md
@@ -146,7 +147,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
146
147
  version: '0'
147
148
  requirements: []
148
149
  rubyforge_project:
149
- rubygems_version: 2.4.5.1
150
+ rubygems_version: 2.6.13
150
151
  signing_key:
151
152
  specification_version: 4
152
153
  summary: Omniauth strategy for TradeGecko