roqua-core-api 0.0.18 → 0.0.19

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: 525bad4bd5d6f0bf56e38eae8f8aa3c266932ba9
4
- data.tar.gz: 3e56da95c04d4bf6b166a6582cb3eda467167c8f
3
+ metadata.gz: 4eb936192f85004604aa556609f20c8599145c68
4
+ data.tar.gz: e1092a2f8df763e5d7c523f5391eb2746b885f78
5
5
  SHA512:
6
- metadata.gz: 5d3606d20042a3e8a644172f2ee0b00868925598e09f4fcbe9baf7703e113d6c462553fcc505970e681754121976da795f85180b11ebc36874ed3afacf988722
7
- data.tar.gz: 0cc51596844ae875770c0108bc64d2ed893dd0bf490bda376614497c77cc0dbf31ad21b47d3fb2ae513d822ae2329be8538b5904070d6f72d0d4828a74efd9e8
6
+ metadata.gz: 10db5afae75c08b21d222ed07afb56d0a4004d350fa465fe5b3b13378ac0abe3430452ced74ec08eb71128780641f9741b24de2e49ef0873876a6f86c8a142d4
7
+ data.tar.gz: 5381ac7c9773312c54b4f92eca3d219fab9a2d4e0bbd813a0832b95e2eeb865bd7f704f3cb75c45c9ec6b152090c9c508aa4adc65402ae8abcb0b588cb15b3da
@@ -5,7 +5,9 @@ module Roqua
5
5
  attr_reader :username
6
6
  attr_reader :password
7
7
 
8
- def initialize(username: ENV.fetch('CORE_KEY'), password: ENV.fetch('CORE_SECRET'), **additional_arguments)
8
+ def initialize(username: ENV.fetch('CORE_BASICAUTH_ID'),
9
+ password: ENV.fetch('CORE_BASICAUTH_SECRET'),
10
+ **additional_arguments)
9
11
  @username = username
10
12
  @password = password
11
13
  super additional_arguments
@@ -1,5 +1,5 @@
1
1
  module Roqua
2
2
  module CoreApi
3
- VERSION = "0.0.18"
3
+ VERSION = "0.0.19"
4
4
  end
5
5
  end
@@ -7,11 +7,11 @@ describe BasicAuthSession do
7
7
  expect(session.username).to eq('some_username')
8
8
  end
9
9
 
10
- it 'defaults the username to the CORE_KEY env variable' do
11
- original_env_core_key = ENV['CORE_KEY']
12
- ENV['CORE_KEY'] = 'some_env_core_key'
10
+ it 'defaults the username to the CORE_BASICAUTH_ID env variable' do
11
+ original_env_core_key = ENV['CORE_BASICAUTH_ID']
12
+ ENV['CORE_BASICAUTH_ID'] = 'some_env_core_key'
13
13
  session = Roqua::CoreApi.basic_auth_session
14
- ENV['CORE_KEY'] = original_env_core_key
14
+ ENV['CORE_BASICAUTH_ID'] = original_env_core_key
15
15
  expect(session.username).to eq('some_env_core_key')
16
16
  end
17
17
 
@@ -20,11 +20,11 @@ describe BasicAuthSession do
20
20
  expect(session.password).to eq('some_password')
21
21
  end
22
22
 
23
- it 'defaults the password to the CORE_SECRET env variable' do
24
- original_env_core_secret = ENV['CORE_SECRET']
25
- ENV['CORE_SECRET'] = 'some_env_core_secret'
23
+ it 'defaults the password to the CORE_BASICAUTH_SECRET env variable' do
24
+ original_env_core_secret = ENV['CORE_BASICAUTH_SECRET']
25
+ ENV['CORE_BASICAUTH_SECRET'] = 'some_env_core_secret'
26
26
  session = Roqua::CoreApi.basic_auth_session
27
- ENV['CORE_SECRET'] = original_env_core_secret
27
+ ENV['CORE_BASICAUTH_SECRET'] = original_env_core_secret
28
28
  expect(session.password).to eq('some_env_core_secret')
29
29
  end
30
30
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roqua-core-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.18
4
+ version: 0.0.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marten Veldthuis