omniauth-digitalocean 0.1.0 → 0.2.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 14748fd5f32fe8328b7ad8cf15e17a3c0d0726b0
|
4
|
+
data.tar.gz: d28f1f2dbd3093a26820962a15293ac7942a007c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38758990c7d3443ab1266e868ffef1eacf609474975fccb46a8cec884d0c591d6ba9f1013ede0b9e5cdefd154a190b1245d238f43ccbfa265b687db3b0b58061
|
7
|
+
data.tar.gz: 901f4f71dd1d202918ca37ae73559e83a77e84272c34c5450e0fcc4b4c0b579ed9dbb4e2a46ce9cf4eee0298f6c1c671b633c94c99556cada5b2e9c7d91ac01a
|
data/.travis.yml
ADDED
@@ -1,11 +1,11 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
describe OmniAuth::Strategies::
|
3
|
+
describe OmniAuth::Strategies::Digitalocean do
|
4
4
|
subject do
|
5
|
-
|
5
|
+
described_class.new({})
|
6
6
|
end
|
7
7
|
|
8
|
-
|
8
|
+
describe "production client options" do
|
9
9
|
it { expect(subject.options.name).to eq(:digitalocean) }
|
10
10
|
|
11
11
|
it { expect(subject.options.client_options.site).to eq("https://cloud.digitalocean.com") }
|
@@ -13,4 +13,25 @@ describe OmniAuth::Strategies::DigitalOcean do
|
|
13
13
|
it { expect(subject.options.client_options.token_url).to eq("https://cloud.digitalocean.com/v1/oauth/token") }
|
14
14
|
end
|
15
15
|
|
16
|
-
|
16
|
+
describe "callback phase instance methods" do
|
17
|
+
let(:uuid) { 123 }
|
18
|
+
let(:response_params) {
|
19
|
+
{
|
20
|
+
'info' => {
|
21
|
+
'uuid' => uuid
|
22
|
+
}
|
23
|
+
}
|
24
|
+
}
|
25
|
+
let(:access_token) { double('AccessToken', params: response_params) }
|
26
|
+
|
27
|
+
before do
|
28
|
+
allow(subject).to receive(:access_token).and_return(access_token)
|
29
|
+
end
|
30
|
+
|
31
|
+
describe "#uid" do
|
32
|
+
it "returns uuid from the info hash" do
|
33
|
+
expect(subject.uid).to eq(uuid)
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-digitalocean
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Phillip Baker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-09-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth
|
@@ -130,6 +130,7 @@ extensions: []
|
|
130
130
|
extra_rdoc_files: []
|
131
131
|
files:
|
132
132
|
- ".gitignore"
|
133
|
+
- ".travis.yml"
|
133
134
|
- Gemfile
|
134
135
|
- LICENSE.txt
|
135
136
|
- README.md
|
@@ -163,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
163
164
|
version: '0'
|
164
165
|
requirements: []
|
165
166
|
rubyforge_project:
|
166
|
-
rubygems_version: 2.2
|
167
|
+
rubygems_version: 2.4.2
|
167
168
|
signing_key:
|
168
169
|
specification_version: 4
|
169
170
|
summary: Official OmniAuth strategy for Digitalocean
|