omniauth-applicaster 1.5.1 → 1.5.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: edf87dd26be860aed8bf8c56e8563eeb6527edcb
|
4
|
+
data.tar.gz: 0b16b09ea5d7033268eea2159d602eb84b2df0a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12da0d51621807af0deccab136ec6e1e6fe8f21f569dfe2b6e1866595d194fa2657efb92ac05ae515763156476e43ab25a85e34acededd12f7a81ff7db27701a
|
7
|
+
data.tar.gz: fb117f61e5020c553f60549584dfac6f027d1cfe78acc37fe97344fc10ec1933a28caff99ddab3d1a45af96217c747d6fbb53a3731deff4f34609c51b17422da
|
data/lib/applicaster/accounts.rb
CHANGED
@@ -9,7 +9,7 @@ module Applicaster
|
|
9
9
|
autoload :Permission, "applicaster/accounts/permission"
|
10
10
|
autoload :User, "applicaster/accounts/user"
|
11
11
|
|
12
|
-
RETRYABLE_STATUS_CODES = [500, 503,
|
12
|
+
RETRYABLE_STATUS_CODES = [500, 502, 503, 504]
|
13
13
|
|
14
14
|
class << self
|
15
15
|
def connection(options = {})
|
@@ -3,7 +3,7 @@ RSpec.describe Applicaster::Accounts::Configuration do
|
|
3
3
|
|
4
4
|
specify "defaults" do
|
5
5
|
expect(config.attributes).to eq({
|
6
|
-
base_url: "https://
|
6
|
+
base_url: "https://accounts.applicaster.com/",
|
7
7
|
client_id: nil,
|
8
8
|
client_secret: nil,
|
9
9
|
retries: 2,
|
@@ -2,13 +2,13 @@ RSpec.describe Applicaster::Accounts do
|
|
2
2
|
let(:accounts_service) { Applicaster::Accounts.new }
|
3
3
|
|
4
4
|
describe "::RETRYABLE_STATUS_CODES" do
|
5
|
-
it "is [500, 503,
|
6
|
-
expect(Applicaster::Accounts::RETRYABLE_STATUS_CODES).to eq([500, 503,
|
5
|
+
it "is [500, 502, 503, 504]" do
|
6
|
+
expect(Applicaster::Accounts::RETRYABLE_STATUS_CODES).to eq([500, 502, 503, 504])
|
7
7
|
end
|
8
8
|
end
|
9
9
|
|
10
10
|
describe ".connection" do
|
11
|
-
let(:remote_url) { "https
|
11
|
+
let(:remote_url) { "https://#{accounts_host}/test.json" }
|
12
12
|
let(:request_stub) { stub_request(:get, remote_url) }
|
13
13
|
|
14
14
|
context "with successful response" do
|
@@ -162,7 +162,7 @@ RSpec.describe Applicaster::Accounts do
|
|
162
162
|
end
|
163
163
|
|
164
164
|
def stub_accounts_index_request(token)
|
165
|
-
stub_request(:get, "https
|
165
|
+
stub_request(:get, "https://#{accounts_host}/api/v1/accounts.json").
|
166
166
|
with(query: { access_token: token }).
|
167
167
|
to_return(successful_json_response(mock_accounts_response))
|
168
168
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-applicaster
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Neer Friedman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-08
|
11
|
+
date: 2015-09-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|