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 +4 -4
- data/CHANGELOG.md +2 -0
- data/LICENSE +2 -2
- data/lib/omniauth-tradegecko/version.rb +1 -1
- data/lib/omniauth/strategies/tradegecko.rb +4 -0
- data/omniauth-tradegecko.gemspec +1 -1
- data/spec/omniauth/strategies/tradegecko_spec.rb +9 -1
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f648cf303af282fb7a7a17efa54d67e45ad0192d
|
4
|
+
data.tar.gz: 9ad1a71c4722f083216dd8e56a1eef70a9cd72e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8aec1d54bb877cfad7c89ea41e8a229c17eabeb709c7e2dfef85518d186b6b68c2bca44fee1c2a38d6c763b699b4aa9bdbf2de3cd554edfa7c529ba888fd792
|
7
|
+
data.tar.gz: 5ea68621c1953c0b732c5293f29331129dc4b7ca8e8b7d80c82c04e44a97c9f50294224bf24eb6ab3d705705d00900329e2bde82b90574aa0d95ba8891b9c616
|
data/CHANGELOG.md
ADDED
data/LICENSE
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Copyright (c)
|
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.
|
data/omniauth-tradegecko.gemspec
CHANGED
@@ -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
|
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.
|
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:
|
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
|
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
|
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.
|
150
|
+
rubygems_version: 2.6.13
|
150
151
|
signing_key:
|
151
152
|
specification_version: 4
|
152
153
|
summary: Omniauth strategy for TradeGecko
|