roqua-core-api 0.5.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: 30f8c823e4ff8e1a50c7b299b99fd9b61a250642253e7e86b6b1b5243843917b
4
- data.tar.gz: e579c453635e8a91d55b49c0ec9c7bad4f6e941718e243928a9a862036ee9cce
3
+ metadata.gz: 2e0f85c2312a1bc18bb492c5a546bafd3f3a499ef5836d6b7edd136e2fb21b4c
4
+ data.tar.gz: cd8ee6ba66283bc5238b98bf029509af2424c63d4d2186f33cb0651e8934d8c9
5
5
  SHA512:
6
- metadata.gz: ea8e37b35220405c19a1dbf95d9dc3a0a6373c35c765207387cb13b3feb7513b2a5b2c0996099d0db4d618aecd19800c905ae9479455bfcd0c26d6d0f655a032
7
- data.tar.gz: 152e5994dd65d27b81f4ee04e8cee2cda0140693c0f64f71174121b1e19b800ab47fa2223bf1c682df011f35d83c9da39bf342b4f043ee9277a5459f22cb0321
6
+ metadata.gz: b6e0162360725f79bf6b48ea7293ebcdbd200b1fe1c4c0ff83a336c7138407e09b74888d1bcbb6677293bf1dac5fbd7fb82b9874474ea7188aa17d4589829961
7
+ data.tar.gz: c8ad8ec4472d83fbcd0b0c732bfd66065344313828bcbeac8c1a1907f8ab7e81b9480f7b49bdf453c6480a20a7aed5963b7a6f4918a22b0211c2b264f64f8a3e
data/ChangeLog.md CHANGED
@@ -1,3 +1,11 @@
1
+ ### 0.7.0
2
+
3
+ * Ruby 3.0 support
4
+
5
+ ### 0.6.0
6
+
7
+ require active_interaction 4.*
8
+
1
9
  ### 0.5.0
2
10
 
3
11
  require ruby 2.7
@@ -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!
@@ -7,7 +7,7 @@ module Roqua
7
7
  string :with_name, default: nil
8
8
  string :with_external_identifier, default: nil
9
9
 
10
- validates :dossier_group_id, presence: true, if: :with_external_identifier?
10
+ validates :dossier_group_id, presence: true, if: -> { with_external_identifier.present? }
11
11
 
12
12
  # usage:
13
13
  # Roqua.CoreApi.Dossiers.run!.each do |d|
@@ -8,7 +8,7 @@ module Roqua
8
8
  string :email_subject, default: nil
9
9
  string :email_body, default: nil
10
10
 
11
- validates :person_id, presence: true, unless: :dossier_id?
11
+ validates :person_id, presence: true, if: -> { dossier_id.nil? }
12
12
 
13
13
  def execute
14
14
  session.post url, params
@@ -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.5.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.5.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-03-26 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
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '3.2'
19
+ version: '4.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '3.2'
26
+ version: '4.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: httparty
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -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.4
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