roqua-core-api 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog.md +4 -0
- data/lib/i18n/core_api_i18n.rb +1 -1
- data/lib/roqua/core_api/sessions/basic_auth_session.rb +1 -1
- data/lib/roqua/core_api/sessions/hmac_auth_request.rb +1 -1
- data/lib/roqua/core_api/sessions/hmac_auth_session.rb +1 -1
- data/lib/roqua/core_api/sessions/token_session.rb +1 -1
- data/lib/roqua/core_api/version.rb +1 -1
- data/spec/lib/roqua/core_api/sessions/auth_session_spec.rb +1 -1
- data/spec/lib/roqua/core_api/sessions/basic_auth_session_spec.rb +3 -3
- data/spec/lib/roqua/core_api/sessions/token_session_spec.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e0f85c2312a1bc18bb492c5a546bafd3f3a499ef5836d6b7edd136e2fb21b4c
|
4
|
+
data.tar.gz: cd8ee6ba66283bc5238b98bf029509af2424c63d4d2186f33cb0651e8934d8c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6e0162360725f79bf6b48ea7293ebcdbd200b1fe1c4c0ff83a336c7138407e09b74888d1bcbb6677293bf1dac5fbd7fb82b9874474ea7188aa17d4589829961
|
7
|
+
data.tar.gz: c8ad8ec4472d83fbcd0b0c732bfd66065344313828bcbeac8c1a1907f8ab7e81b9480f7b49bdf453c6480a20a7aed5963b7a6f4918a22b0211c2b264f64f8a3e
|
data/ChangeLog.md
CHANGED
data/lib/i18n/core_api_i18n.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
begin
|
2
2
|
require 'rails'
|
3
3
|
module I18n
|
4
|
-
class CoreApiRailtie < ::Rails::Railtie
|
4
|
+
class CoreApiRailtie < ::Rails::Railtie # :nodoc:
|
5
5
|
initializer 'rails-i18n' do
|
6
6
|
I18n.load_path << Dir[File.join(File.expand_path(File.dirname(__FILE__) + '/../../config/locales'), '*.yml')]
|
7
7
|
I18n.load_path.flatten!
|
@@ -12,7 +12,7 @@ describe AuthSession do
|
|
12
12
|
end
|
13
13
|
|
14
14
|
it 'defaults the core_site to the CORE_SITE env variable' do
|
15
|
-
original_env_core_site = ENV
|
15
|
+
original_env_core_site = ENV.fetch('CORE_SITE')
|
16
16
|
ENV['CORE_SITE'] = 'some_env_core_site'
|
17
17
|
session = AuthSession.new
|
18
18
|
ENV['CORE_SITE'] = original_env_core_site
|
@@ -9,7 +9,7 @@ describe BasicAuthSession do
|
|
9
9
|
end
|
10
10
|
|
11
11
|
it 'defaults the username to the CORE_BASICAUTH_ID env variable' do
|
12
|
-
original_env_core_key = ENV
|
12
|
+
original_env_core_key = ENV.fetch('CORE_BASICAUTH_ID')
|
13
13
|
ENV['CORE_BASICAUTH_ID'] = 'some_env_core_key'
|
14
14
|
session = Roqua::CoreApi.basic_auth_session
|
15
15
|
ENV['CORE_BASICAUTH_ID'] = original_env_core_key
|
@@ -22,7 +22,7 @@ describe BasicAuthSession do
|
|
22
22
|
end
|
23
23
|
|
24
24
|
it 'defaults the password to the CORE_BASICAUTH_SECRET env variable' do
|
25
|
-
original_env_core_secret = ENV
|
25
|
+
original_env_core_secret = ENV.fetch('CORE_BASICAUTH_SECRET')
|
26
26
|
ENV['CORE_BASICAUTH_SECRET'] = 'some_env_core_secret'
|
27
27
|
session = Roqua::CoreApi.basic_auth_session
|
28
28
|
ENV['CORE_BASICAUTH_SECRET'] = original_env_core_secret
|
@@ -35,7 +35,7 @@ describe BasicAuthSession do
|
|
35
35
|
end
|
36
36
|
|
37
37
|
it 'defaults the AuthSession core_site CORE_SITE env variable default value' do
|
38
|
-
orginal_env_core_site = ENV
|
38
|
+
orginal_env_core_site = ENV.fetch('CORE_SITE')
|
39
39
|
ENV['CORE_SITE'] = 'some_env_core_site'
|
40
40
|
session = Roqua::CoreApi.basic_auth_session
|
41
41
|
ENV['CORE_SITE'] = orginal_env_core_site
|
@@ -17,7 +17,7 @@ describe TokenSession do
|
|
17
17
|
end
|
18
18
|
|
19
19
|
it 'defaults the AuthSession core_site CORE_SITE env variable default value' do
|
20
|
-
original_env_core_site = ENV
|
20
|
+
original_env_core_site = ENV.fetch('CORE_SITE')
|
21
21
|
ENV['CORE_SITE'] = 'some_env_core_site'
|
22
22
|
session = Roqua::CoreApi.token_session access_token: 'some_access_token'
|
23
23
|
ENV['CORE_SITE'] = original_env_core_site
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: roqua-core-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marten Veldthuis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: active_interaction
|
@@ -213,7 +213,8 @@ files:
|
|
213
213
|
homepage: https://github.com/roqua/core/blob/master/core_api/README.markdown
|
214
214
|
licenses:
|
215
215
|
- MIT
|
216
|
-
metadata:
|
216
|
+
metadata:
|
217
|
+
rubygems_mfa_required: 'true'
|
217
218
|
post_install_message:
|
218
219
|
rdoc_options: []
|
219
220
|
require_paths:
|
@@ -229,7 +230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
229
230
|
- !ruby/object:Gem::Version
|
230
231
|
version: '0'
|
231
232
|
requirements: []
|
232
|
-
rubygems_version: 3.
|
233
|
+
rubygems_version: 3.2.33
|
233
234
|
signing_key:
|
234
235
|
specification_version: 4
|
235
236
|
summary: API wrapper gem around Core's API
|