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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 132bbf5e6c8240792d987ce61aeba2f3ee25b74d799728571ba55121ac9001c2
4
- data.tar.gz: 63cb3e5713732f21313a27c8cb375685e776943b7ebc69e658014d24aa9660b2
3
+ metadata.gz: 2e0f85c2312a1bc18bb492c5a546bafd3f3a499ef5836d6b7edd136e2fb21b4c
4
+ data.tar.gz: cd8ee6ba66283bc5238b98bf029509af2424c63d4d2186f33cb0651e8934d8c9
5
5
  SHA512:
6
- metadata.gz: 375cc3679fd4207b0741c41dca8590c81b150c0f3764eb294ebe08b77e3fb71e1f51bb171f99f1fe255e9ecaae88482ee0764a95a04834e7bfc16cd073bcc2d0
7
- data.tar.gz: c4770992ef49118ee093f098cfc3a140aaf2c8da816f3e2e8b610967da88604aa6e12eb62bb6c7aa6b6431a0030927fd83599e39e1087ebe76802c8de1df0397
6
+ metadata.gz: b6e0162360725f79bf6b48ea7293ebcdbd200b1fe1c4c0ff83a336c7138407e09b74888d1bcbb6677293bf1dac5fbd7fb82b9874474ea7188aa17d4589829961
7
+ data.tar.gz: c8ad8ec4472d83fbcd0b0c732bfd66065344313828bcbeac8c1a1907f8ab7e81b9480f7b49bdf453c6480a20a7aed5963b7a6f4918a22b0211c2b264f64f8a3e
data/ChangeLog.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 0.7.0
2
+
3
+ * Ruby 3.0 support
4
+
1
5
  ### 0.6.0
2
6
 
3
7
  require active_interaction 4.*
@@ -1,7 +1,7 @@
1
1
  begin
2
2
  require 'rails'
3
3
  module I18n
4
- class CoreApiRailtie < ::Rails::Railtie #:nodoc:
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!
@@ -10,7 +10,7 @@ module Roqua
10
10
  **additional_arguments)
11
11
  @username = username
12
12
  @password = password
13
- super additional_arguments
13
+ super(**additional_arguments)
14
14
  end
15
15
 
16
16
  private
@@ -18,7 +18,7 @@ module Roqua
18
18
  @timestamp = timestamp
19
19
  @nonce = nonce
20
20
  @hmac = hmac
21
- super additional_arguments
21
+ super(**additional_arguments)
22
22
  end
23
23
 
24
24
  def headers(request_method, path, params)
@@ -11,7 +11,7 @@ module Roqua
11
11
  **additional_arguments)
12
12
  @consumer_key = consumer_key
13
13
  @consumer_secret = consumer_secret
14
- super additional_arguments
14
+ super(**additional_arguments)
15
15
  end
16
16
 
17
17
  private
@@ -6,7 +6,7 @@ module Roqua
6
6
 
7
7
  def initialize(access_token:, **additional_arguments)
8
8
  @access_token = access_token
9
- super additional_arguments
9
+ super(**additional_arguments)
10
10
  end
11
11
 
12
12
  def logout
@@ -1,5 +1,5 @@
1
1
  module Roqua
2
2
  module CoreApi
3
- VERSION = '0.6.0'
3
+ VERSION = '0.7.0'
4
4
  end
5
5
  end
@@ -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['CORE_SITE']
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['CORE_BASICAUTH_ID']
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['CORE_BASICAUTH_SECRET']
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['CORE_SITE']
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['CORE_SITE']
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.6.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: 2021-11-08 00:00:00.000000000 Z
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.1.6
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