osso 0.0.3.23 → 0.0.3.24

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
  SHA256:
3
- metadata.gz: 7d6374d1bf4804936900b667a432e5cd651b050813338821a491c930e868c22c
4
- data.tar.gz: e4f3826a5300fce7bfaff6fc58c91a938e7f17763b7515df9d2df454b1fff0f3
3
+ metadata.gz: 5d48075518d12201e52ee12e25f7db5de43ef13e3fc04e8902ba27787aabbd4a
4
+ data.tar.gz: f511a13be8a898cf863e00966fc551b3d5a3f4bb5999f534ccb3bf0d1de7004e
5
5
  SHA512:
6
- metadata.gz: f091491e21a3e4131504da14d39a4e6b2901ae34e98e3fc60d05136fee29e48e2b94b999d8c38fff613caa54af2a1ea0d7b61c5793087955abf8e3f82b5f0d66
7
- data.tar.gz: a6b78f9747cef840b2269dace7b6e305759c9355c8a710051b0478a2f31a5ef7c92f91873386bb02f5aa6d9b0f7fc13a1c44d7190543800094bc61cd94621d05
6
+ metadata.gz: ee6f360d04918e40109a8349a5f8230d79069cd8399731ab98be4cf11d52a1979ca6cdcb5d2f18d2b20f9af1e0bb8d7b1310d30a43ef8dbe9e7835d7e3663b4f
7
+ data.tar.gz: d23ba69bfa85ea6174df1789aadad1edc53fcaaffe93cd7f1773d923687bd492d65abe6aba0cd680813c66d84f8410d3b985d1d9453ac0bd2406d416c8e01a1a
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- osso (0.0.3.23)
4
+ osso (0.0.3.24)
5
5
  activesupport (>= 6.0.3.2)
6
6
  graphql
7
7
  jwt
@@ -42,7 +42,7 @@ module Osso
42
42
  end
43
43
 
44
44
  def root_url
45
- return "https://${ENV['HEROKU_APP_NAME']}.herokuapp.com" if ENV['HEROKU_APP_NAME']
45
+ return "https://#{ENV['HEROKU_APP_NAME']}.herokuapp.com" if ENV['HEROKU_APP_NAME']
46
46
 
47
47
  ENV.fetch('BASE_URL')
48
48
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Osso
4
- VERSION = '0.0.3.23'
4
+ VERSION = '0.0.3.24'
5
5
  end
@@ -6,13 +6,21 @@ describe Osso::Models::IdentityProvider do
6
6
  subject { create(:okta_identity_provider) }
7
7
 
8
8
  describe '#assertion_consumer_service_url' do
9
- it 'returns the expected URI' do
9
+ it 'returns the expected URI for BASE_URL' do
10
10
  ENV['BASE_URL'] = 'https://example.com'
11
11
 
12
12
  expect(subject.assertion_consumer_service_url).to eq(
13
13
  "https://example.com/auth/saml/#{subject.id}/callback",
14
14
  )
15
15
  end
16
+
17
+ it 'returns the expected URI for HEROKU_APP_NAME' do
18
+ ENV['HEROKU_APP_NAME'] = 'test'
19
+
20
+ expect(subject.assertion_consumer_service_url).to eq(
21
+ "https://test.herokuapp.com/auth/saml/#{subject.id}/callback",
22
+ )
23
+ end
16
24
  end
17
25
 
18
26
  describe '#saml_options' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: osso
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3.23
4
+ version: 0.0.3.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Bauch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-27 00:00:00.000000000 Z
11
+ date: 2020-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport