roqua-core-api 0.1.1 → 0.2.0

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
  SHA1:
3
- metadata.gz: 308a75b5ae9970af2182e36ef88ec844f7cb4254
4
- data.tar.gz: 30577d7f7ab41d5c3eac4b1b27ac2afbd9c81a7e
3
+ metadata.gz: aac3ceb72c90b7a84b630bff828aae009bcb05f8
4
+ data.tar.gz: be357478b0c60d82552a9bd250dbf39a95655cc6
5
5
  SHA512:
6
- metadata.gz: f9a0589c49f1b1ea0e13558b0bfff9cb8259dcb76918bf9e4cb026bafcba234037be125eec9077f3ab401e1944965b9d6d7a0fa4304749aead4f09a49cb1ab7d
7
- data.tar.gz: b8e9613348b94353fcf4ea278b606b755682b3c9a8de4001b89e52c4e10cb4cbcf979a6f6a4142d8ce6b389024610ded6154f49c8f5ed8e45172058b328a2227
6
+ metadata.gz: 607a42369fdcdd4d543b707a0c7f83ab34f412824333b6c7327e31c6703a3e93b778d421593da9daf2253e4bf6effa9ff9cc0a418cc3480b2adcc69a90d3d542
7
+ data.tar.gz: 9d590a27852e4818192b1e05a6e5ba835c61fc55ac1a308cb5a93d62fd329d4cfcc9f83eabae7aea0fd363ae1c567a51187310b13d588e02ecf6f35f8756ae38
data/ChangeLog.md CHANGED
@@ -1,5 +1,13 @@
1
1
  * Added TokenSession model and CreateTokenSession, DestroyTokenSession usecases.
2
2
 
3
+ ### 0.2.0
4
+
5
+ Active interaction to v2.
6
+
7
+ ### 0.1.1
8
+
9
+ * Add token session.
10
+
3
11
  ### 0.1.0
4
12
 
5
13
  * BACKWARD INCOMPATIBLE: CreateDossier now needs a dossier and a person object.
data/Gemfile CHANGED
@@ -2,7 +2,7 @@ source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
4
  gem 'httparty', '= 0.12.0'
5
- gem 'active_interaction', '= 1.1.0'
5
+ gem 'active_interaction', '~> 2.1.0'
6
6
  gem 'omniauth-oauth2', '= 1.1.0'
7
7
  gem 'virtus', '= 1.0.0'
8
8
 
data/core_api.gemspec CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |gem|
18
18
  gem.require_paths = ['lib']
19
19
 
20
20
  gem.add_dependency 'httparty', '~> 0.12.0'
21
- gem.add_dependency 'active_interaction', '~> 1.1'
21
+ gem.add_dependency 'active_interaction', '~> 2.1'
22
22
  gem.add_dependency 'omniauth-oauth2', '~> 1.1'
23
23
  gem.add_dependency 'virtus', '~> 1.0'
24
24
 
@@ -2,10 +2,10 @@ module Roqua
2
2
  module CoreApi
3
3
  # @api private
4
4
  class CreateDossier < Base
5
- model :session, class: Sessions::AuthSession
5
+ object :session, class: Sessions::AuthSession
6
6
  string :dossier_group_id
7
- model :dossier, class: Models::Dossier, default: nil
8
- model :person, class: Models::Person, default: nil
7
+ object :dossier, class: Models::Dossier, default: nil
8
+ object :person, class: Models::Person, default: nil
9
9
 
10
10
  def execute
11
11
  response = session.post "/dossier_groups/#{dossier_group_id}/dossiers",
@@ -2,7 +2,7 @@ module Roqua
2
2
  module CoreApi
3
3
  # @api private
4
4
  class CreateDossierGroup < ActiveInteraction::Base
5
- model :session, class: Sessions::AuthSession
5
+ object :session, class: Sessions::AuthSession
6
6
  string :organization_id
7
7
  hash :attributes, strip: false
8
8
 
@@ -2,7 +2,7 @@ module Roqua
2
2
  module CoreApi
3
3
  # @api private
4
4
  class CreateDossierGroupExportSynchronously < ActiveInteraction::Base
5
- model :session, class: Sessions::AuthSession
5
+ object :session, class: Sessions::AuthSession
6
6
  string :dossier_group_id
7
7
 
8
8
  def execute
@@ -2,9 +2,9 @@ module Roqua
2
2
  module CoreApi
3
3
  # @api private
4
4
  class CreateProfessional < Base
5
- model :session, class: Sessions::AuthSession
5
+ object :session, class: Sessions::AuthSession
6
6
  string :dossier_group_id
7
- model :person, class: Models::Person
7
+ object :person, class: Models::Person
8
8
  string :email_subject, default: nil
9
9
  string :email_body, default: nil
10
10
 
@@ -2,7 +2,7 @@ module Roqua
2
2
  module CoreApi
3
3
  # @api private
4
4
  class DeleteDossierGroupRight < Base
5
- model :session, class: Sessions::AuthSession
5
+ object :session, class: Sessions::AuthSession
6
6
  string :dossier_group_id
7
7
  string :right_id
8
8
 
@@ -2,7 +2,7 @@ module Roqua
2
2
  module CoreApi
3
3
  # @api private
4
4
  class DestroyTokenSession < Base
5
- model :session, class: Sessions::TokenSession
5
+ object :session, class: Sessions::TokenSession
6
6
  string :organization_id
7
7
 
8
8
  def execute
@@ -2,7 +2,7 @@ module Roqua
2
2
  module CoreApi
3
3
  # @api private
4
4
  class DossierGroups < ActiveInteraction::Base
5
- model :session, class: Sessions::AuthSession
5
+ object :session, class: Sessions::AuthSession
6
6
 
7
7
  def execute
8
8
  response = session.get "/dossier_groups"
@@ -2,7 +2,7 @@ module Roqua
2
2
  module CoreApi
3
3
  # @api private
4
4
  class Dossiers < Base
5
- model :session, class: Sessions::AuthSession
5
+ object :session, class: Sessions::AuthSession
6
6
  string :dossier_group_id, default: nil
7
7
  string :with_name, default: nil
8
8
  string :with_external_identifier, default: nil
@@ -2,7 +2,7 @@ module Roqua
2
2
  module CoreApi
3
3
  # @api private
4
4
  class ListDossierGroupRights < Base
5
- model :session, class: Sessions::AuthSession
5
+ object :session, class: Sessions::AuthSession
6
6
  string :dossier_group_id
7
7
 
8
8
  def execute
@@ -2,7 +2,7 @@ module Roqua
2
2
  module CoreApi
3
3
  # @api private
4
4
  class People < ActiveInteraction::Base
5
- model :session, class: Sessions::AuthSession
5
+ object :session, class: Sessions::AuthSession
6
6
  string :dossier_id
7
7
 
8
8
  def execute
@@ -2,7 +2,7 @@ module Roqua
2
2
  module CoreApi
3
3
  # @api private
4
4
  class Person < ActiveInteraction::Base
5
- model :session, class: Sessions::AuthSession
5
+ object :session, class: Sessions::AuthSession
6
6
  string :person_id
7
7
 
8
8
  def execute
@@ -2,7 +2,7 @@ module Roqua
2
2
  module CoreApi
3
3
  # @api private
4
4
  class SendInviteEmail < ActiveInteraction::Base
5
- model :session, class: Sessions::AuthSession
5
+ object :session, class: Sessions::AuthSession
6
6
  string :dossier_id
7
7
  string :email_subject, default: nil
8
8
  string :email_body, default: nil
@@ -2,8 +2,8 @@ module Roqua
2
2
  module CoreApi
3
3
  # @api private
4
4
  class UpdateDossier < Base
5
- model :session, class: Sessions::AuthSession
6
- model :dossier, class: Models::Dossier
5
+ object :session, class: Sessions::AuthSession
6
+ object :dossier, class: Models::Dossier
7
7
 
8
8
  # Saves the dossier attributes to server.
9
9
  # Returns true on success, false on validation errors.
@@ -2,8 +2,8 @@ module Roqua
2
2
  module CoreApi
3
3
  # @api private
4
4
  class UpdatePerson < Base
5
- model :session, class: Sessions::AuthSession
6
- model :person, class: Models::Person
5
+ object :session, class: Sessions::AuthSession
6
+ object :person, class: Models::Person
7
7
 
8
8
  # Saves the person attributes to server.
9
9
  # Returns true on success, false on validation errors.
@@ -1,5 +1,5 @@
1
1
  module Roqua
2
2
  module CoreApi
3
- VERSION = '0.1.1'
3
+ VERSION = '0.2.0'
4
4
  end
5
5
  end
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.1.1
4
+ version: 0.2.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: 2016-01-20 00:00:00.000000000 Z
11
+ date: 2016-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.1'
33
+ version: '2.1'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.1'
40
+ version: '2.1'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: omniauth-oauth2
43
43
  requirement: !ruby/object:Gem::Requirement