omniauth-applicaster 1.5.1 → 1.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2970b84d5af47379e1f5a8107b329553a559485a
4
- data.tar.gz: 3a3a16e0302d42409598ccd12beb66c185ab3989
3
+ metadata.gz: edf87dd26be860aed8bf8c56e8563eeb6527edcb
4
+ data.tar.gz: 0b16b09ea5d7033268eea2159d602eb84b2df0a0
5
5
  SHA512:
6
- metadata.gz: 32ea0a01e0080a9215d8e4719bb11372dbdeb8c6ab1719671b1c1d1b9e251df0d98f0428eea278d5107902f4c4e93c10a6d893197be02d2aa3b9a5c4cacbe328
7
- data.tar.gz: 03a1eaf7b226f8d664aaa6f3f32cbac7aa4e74863abbeeffa91ccb9d49671b9aa21bc1d10a3c03bc20760e297dee738df6fe6f02ca0c6a468812a4c116f53832
6
+ metadata.gz: 12da0d51621807af0deccab136ec6e1e6fe8f21f569dfe2b6e1866595d194fa2657efb92ac05ae515763156476e43ab25a85e34acededd12f7a81ff7db27701a
7
+ data.tar.gz: fb117f61e5020c553f60549584dfac6f027d1cfe78acc37fe97344fc10ec1933a28caff99ddab3d1a45af96217c747d6fbb53a3731deff4f34609c51b17422da
@@ -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, 502]
12
+ RETRYABLE_STATUS_CODES = [500, 502, 503, 504]
13
13
 
14
14
  class << self
15
15
  def connection(options = {})
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Applicaster
3
- VERSION = "1.5.1"
3
+ VERSION = "1.5.2"
4
4
  end
5
5
  end
@@ -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://accounts2.applicaster.com/",
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, 502]" do
6
- expect(Applicaster::Accounts::RETRYABLE_STATUS_CODES).to eq([500, 503, 502])
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://accounts2.applicaster.com/test.json" }
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://accounts2.applicaster.com/api/v1/accounts.json").
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
@@ -26,7 +26,7 @@ module WebmockStubsHelper
26
26
  end
27
27
 
28
28
  def accounts_host
29
- "accounts2.applicaster.com"
29
+ "accounts.applicaster.com"
30
30
  end
31
31
 
32
32
  def mock_user_response
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.1
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-31 00:00:00.000000000 Z
11
+ date: 2015-09-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler