roqua-core-api 0.0.1 → 0.0.2
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 +13 -5
- data/ChangeLog.md +6 -0
- data/Gemfile +4 -0
- data/Guardfile +4 -0
- data/Rakefile +5 -5
- data/core_api.gemspec +3 -2
- data/lib/roqua/core_api/models/dossier.rb +1 -1
- data/lib/roqua/core_api/models/organization.rb +1 -1
- data/lib/roqua/core_api/models.rb +1 -1
- data/lib/roqua/core_api/sessions/app_session.rb +23 -14
- data/lib/roqua/core_api/sessions/dossier_session.rb +26 -0
- data/lib/roqua/core_api/sessions/organization_session.rb +35 -0
- data/lib/roqua/core_api/sessions.rb +4 -1
- data/lib/roqua/core_api/version.rb +1 -1
- data/lib/roqua/core_api.rb +0 -2
- data/spec/fabricators/app_session_fabricator.rb +3 -0
- data/spec/fabricators/dossier_fabricator.rb +3 -0
- data/spec/fabricators/organization_fabricator.rb +3 -0
- data/spec/fabricators/organization_session_fabricator.rb +5 -0
- data/spec/fixtures/dossiers/can_be_created.yml +81 -0
- data/spec/fixtures/dossiers/can_be_started.yml +36 -0
- data/spec/fixtures/{Organizations → organizations}/can_be_created.yml +0 -0
- data/spec/integration/dossiers_spec.rb +18 -0
- data/spec/integration/organizations_spec.rb +3 -3
- data/spec/lib/roqua/core_api/sessions/app_session_spec.rb +33 -0
- data/spec/lib/roqua/core_api/sessions/organization_session_spec.rb +33 -0
- data/spec/spec_helper.rb +3 -1
- metadata +82 -47
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
ZjQxNmYyYjNkMjRiOTVjOWMzNzA2YzU5ZDJlZjA3NDc0NDM2NzgyNw==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
YWEzMmUyODIzOGI5MTczOTE0YTQxZmZhOTEzYjE4YWRjYmM1NTBhMQ==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
NmZlNDdhNjk0ZmY3MjE4MDNhMThmODYyZGY1YjcyNmI3YTdhMTMzNWM0NDgx
|
10
|
+
Yzk2NTFlM2Y0MDA5YTYwMDNmNzdmNzg1N2E3NDM5MzI0MDg1OTMyNjlhY2Fl
|
11
|
+
ZDQxODIwNTY2YzJjYTA1M2U0N2Q4NWU1OWFkYmFlZmY5ZmQxOWY=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
MWFlN2U0NTQzZDc0Y2Y4NjBiZDcxNWExMTdjMDUxZWQyZDA0YjExZmViNWMy
|
14
|
+
YzU2NjFlMzFkMmIzYzE1ZDNlM2QzYWY3YzhiNDc5ZjgyZTM3ZTYzZTQ4MmRh
|
15
|
+
NWY1Zjg1YTJjNTVhN2YzZGIxYTVkNzdjODNhMTUzY2ViNWM1MmI=
|
data/ChangeLog.md
CHANGED
data/Gemfile
CHANGED
data/Guardfile
ADDED
data/Rakefile
CHANGED
@@ -7,7 +7,7 @@ begin
|
|
7
7
|
rescue LoadError => e
|
8
8
|
warn e.message
|
9
9
|
warn "Run `gem install bundler` to install Bundler."
|
10
|
-
exit
|
10
|
+
exit(-1)
|
11
11
|
end
|
12
12
|
|
13
13
|
begin
|
@@ -23,11 +23,11 @@ require 'rake'
|
|
23
23
|
require 'rspec/core/rake_task'
|
24
24
|
RSpec::Core::RakeTask.new
|
25
25
|
|
26
|
-
task :
|
27
|
-
task :
|
26
|
+
task test: :spec
|
27
|
+
task default: :spec
|
28
28
|
|
29
29
|
require "bundler/gem_tasks"
|
30
30
|
|
31
31
|
require 'yard'
|
32
|
-
YARD::Rake::YardocTask.new
|
33
|
-
task :
|
32
|
+
YARD::Rake::YardocTask.new
|
33
|
+
task doc: :yard
|
data/core_api.gemspec
CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |gem|
|
|
13
13
|
gem.homepage = "https://github.com/roqua/core/blob/master/core_api/README.markdown"
|
14
14
|
|
15
15
|
gem.files = `git ls-files`.split($/)
|
16
|
-
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
16
|
+
gem.executables = gem.files.grep(%r{^bin/}).map { |f| File.basename(f) }
|
17
17
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
18
18
|
gem.require_paths = ['lib']
|
19
19
|
|
@@ -21,8 +21,9 @@ Gem::Specification.new do |gem|
|
|
21
21
|
|
22
22
|
gem.add_development_dependency 'bundler', '~> 1.0'
|
23
23
|
gem.add_development_dependency 'rake', '~> 10.0'
|
24
|
-
gem.add_development_dependency 'rspec', '~> 3.0.0.beta1'
|
25
24
|
gem.add_development_dependency 'yard', '~> 0.8'
|
25
|
+
gem.add_development_dependency 'rspec', '~> 3.0.0.beta1'
|
26
26
|
gem.add_development_dependency 'vcr', '~> 2.8.0'
|
27
27
|
gem.add_development_dependency 'webmock', '~> 1.17.1'
|
28
|
+
gem.add_development_dependency 'fabrication', '~> 2.9.6'
|
28
29
|
end
|
@@ -1,2 +1,2 @@
|
|
1
1
|
require 'roqua/core_api/models/organization'
|
2
|
-
require 'roqua/core_api/models/dossier'
|
2
|
+
require 'roqua/core_api/models/dossier'
|
@@ -1,5 +1,3 @@
|
|
1
|
-
require 'httparty'
|
2
|
-
|
3
1
|
module Roqua
|
4
2
|
module CoreApi
|
5
3
|
module Sessions
|
@@ -8,34 +6,45 @@ module Roqua
|
|
8
6
|
# but only on a anonymous base. It is not allowed to know who these dossiers
|
9
7
|
# represent.
|
10
8
|
class AppSession
|
11
|
-
|
12
|
-
base_uri ENV["CORE_URL"]
|
13
|
-
|
9
|
+
attr_reader :server
|
14
10
|
attr_reader :key
|
15
11
|
|
16
|
-
def initialize(key)
|
17
|
-
@
|
12
|
+
def initialize(key, server = ENV["CORE_URL"])
|
13
|
+
@server = server
|
14
|
+
@key = key
|
18
15
|
end
|
19
16
|
|
20
17
|
def create_organization(attributes)
|
21
18
|
response = post "/organizations", organization: attributes
|
22
|
-
|
19
|
+
fail response.inspect unless response.code == 201
|
23
20
|
Models::Organization.new(response)
|
24
21
|
end
|
25
22
|
|
26
|
-
def
|
27
|
-
|
28
|
-
|
29
|
-
|
23
|
+
def organization_session(attributes)
|
24
|
+
if attributes.is_a? Models::Organization
|
25
|
+
organization = attributes
|
26
|
+
else
|
27
|
+
organization = create_organization(attributes)
|
28
|
+
end
|
29
|
+
OrganizationSession.new organization, key, server
|
30
30
|
end
|
31
31
|
|
32
32
|
private
|
33
33
|
|
34
34
|
def post(url, params = {})
|
35
35
|
# TODO: Handle authentication here
|
36
|
-
|
36
|
+
HTTParty.post(server + base_url + url + ".json", body: params)
|
37
|
+
end
|
38
|
+
|
39
|
+
def put(url, params = {})
|
40
|
+
# TODO: Handle authentication here
|
41
|
+
HTTParty.put(server + base_url + url + ".json", body: params)
|
42
|
+
end
|
43
|
+
|
44
|
+
def base_url
|
45
|
+
"/apps/#{key}"
|
37
46
|
end
|
38
47
|
end
|
39
48
|
end
|
40
49
|
end
|
41
|
-
end
|
50
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
module Roqua
|
2
|
+
module CoreApi
|
3
|
+
module Sessions
|
4
|
+
class DossierSession < OrganizationSession
|
5
|
+
attr_reader :dossier
|
6
|
+
|
7
|
+
def initialize(dossier, organization, key, server = ENV["CORE_URL"])
|
8
|
+
@dossier = dossier
|
9
|
+
super(organization, key, server)
|
10
|
+
end
|
11
|
+
|
12
|
+
def start(attributes)
|
13
|
+
response = put "/start", attributes: attributes
|
14
|
+
fail response.inspect unless response.code / 100 == 2 # Success 2xx
|
15
|
+
response
|
16
|
+
end
|
17
|
+
|
18
|
+
private
|
19
|
+
|
20
|
+
def base_url
|
21
|
+
super + "/dossiers/#{dossier.id}"
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
module Roqua
|
2
|
+
module CoreApi
|
3
|
+
module Sessions
|
4
|
+
class OrganizationSession < AppSession
|
5
|
+
attr_reader :organization
|
6
|
+
|
7
|
+
def initialize(organization, key, server = ENV["CORE_URL"])
|
8
|
+
@organization = organization
|
9
|
+
super(key, server)
|
10
|
+
end
|
11
|
+
|
12
|
+
def create_dossier(attributes)
|
13
|
+
response = post "/dossiers", dossier: attributes
|
14
|
+
fail response.inspect unless response.code == 201
|
15
|
+
Models::Dossier.new(response)
|
16
|
+
end
|
17
|
+
|
18
|
+
def dossier_session(attributes)
|
19
|
+
if attributes.is_a? Models::Dossier
|
20
|
+
dossier = attributes
|
21
|
+
else
|
22
|
+
dossier = create_dossier(attributes)
|
23
|
+
end
|
24
|
+
DossierSession.new dossier, organization, key, server
|
25
|
+
end
|
26
|
+
|
27
|
+
private
|
28
|
+
|
29
|
+
def base_url
|
30
|
+
super + "/organizations/#{organization.key}"
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
data/lib/roqua/core_api.rb
CHANGED
@@ -0,0 +1,81 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://core.dev/apps/development/organizations.json
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: organization[key]=some_key&organization[name]=some_name
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 201
|
13
|
+
message: Created
|
14
|
+
headers:
|
15
|
+
X-Frame-Options:
|
16
|
+
- SAMEORIGIN
|
17
|
+
X-Xss-Protection:
|
18
|
+
- 1; mode=block
|
19
|
+
X-Content-Type-Options:
|
20
|
+
- nosniff
|
21
|
+
X-Ua-Compatible:
|
22
|
+
- chrome=1
|
23
|
+
Location:
|
24
|
+
- http://core.dev/apps/1/organizations/2
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=utf-8
|
27
|
+
Etag:
|
28
|
+
- ! '"ee236155ad2af3b9c115a6dbd3210082"'
|
29
|
+
Cache-Control:
|
30
|
+
- max-age=0, private, must-revalidate
|
31
|
+
X-Request-Id:
|
32
|
+
- 9ac2b602-479f-4c61-96c4-f5ba48aa8e5f
|
33
|
+
X-Runtime:
|
34
|
+
- '1.107816'
|
35
|
+
Connection:
|
36
|
+
- close
|
37
|
+
body:
|
38
|
+
encoding: US-ASCII
|
39
|
+
string: ! '{"id":2,"key":"some_key","name":"some_name","created_at":"2014-01-29T21:22:11.081Z","updated_at":"2014-01-29T21:22:11.081Z","app_id":1}'
|
40
|
+
http_version:
|
41
|
+
recorded_at: Wed, 29 Jan 2014 21:22:11 GMT
|
42
|
+
- request:
|
43
|
+
method: post
|
44
|
+
uri: http://core.dev/apps/development/organizations/some_key/dossiers.json
|
45
|
+
body:
|
46
|
+
encoding: US-ASCII
|
47
|
+
string: dossier[id]=some_id
|
48
|
+
headers: {}
|
49
|
+
response:
|
50
|
+
status:
|
51
|
+
code: 201
|
52
|
+
message: Created
|
53
|
+
headers:
|
54
|
+
X-Frame-Options:
|
55
|
+
- SAMEORIGIN
|
56
|
+
X-Xss-Protection:
|
57
|
+
- 1; mode=block
|
58
|
+
X-Content-Type-Options:
|
59
|
+
- nosniff
|
60
|
+
X-Ua-Compatible:
|
61
|
+
- chrome=1
|
62
|
+
Location:
|
63
|
+
- http://core.dev/apps/1/organizations/2/dossiers/1
|
64
|
+
Content-Type:
|
65
|
+
- application/json; charset=utf-8
|
66
|
+
Etag:
|
67
|
+
- ! '"958c0debedcabd980620e4c7a1299600"'
|
68
|
+
Cache-Control:
|
69
|
+
- max-age=0, private, must-revalidate
|
70
|
+
X-Request-Id:
|
71
|
+
- 4bd305b7-cd21-43c9-9724-6943e6f1956d
|
72
|
+
X-Runtime:
|
73
|
+
- '0.055516'
|
74
|
+
Connection:
|
75
|
+
- close
|
76
|
+
body:
|
77
|
+
encoding: US-ASCII
|
78
|
+
string: ! '{"id":1,"identifier":"fca8af4de679dc32ffc9412862397291","organization_id":2}'
|
79
|
+
http_version:
|
80
|
+
recorded_at: Wed, 29 Jan 2014 21:22:11 GMT
|
81
|
+
recorded_with: VCR 2.8.0
|
@@ -0,0 +1,36 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: put
|
5
|
+
uri: http://core.dev/apps/development/organizations/some_key/dossiers/1/start.json
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: attributes[protocols][]=some_protocol
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 204
|
13
|
+
message: No Content
|
14
|
+
headers:
|
15
|
+
X-Frame-Options:
|
16
|
+
- SAMEORIGIN
|
17
|
+
X-Xss-Protection:
|
18
|
+
- 1; mode=block
|
19
|
+
X-Content-Type-Options:
|
20
|
+
- nosniff
|
21
|
+
X-Ua-Compatible:
|
22
|
+
- chrome=1
|
23
|
+
Cache-Control:
|
24
|
+
- no-cache
|
25
|
+
X-Request-Id:
|
26
|
+
- b4cdc7f0-ec00-4db0-bf28-a3eb0900df98
|
27
|
+
X-Runtime:
|
28
|
+
- '0.007831'
|
29
|
+
Connection:
|
30
|
+
- close
|
31
|
+
body:
|
32
|
+
encoding: US-ASCII
|
33
|
+
string: ''
|
34
|
+
http_version:
|
35
|
+
recorded_at: Thu, 30 Jan 2014 19:40:59 GMT
|
36
|
+
recorded_with: VCR 2.8.0
|
File without changes
|
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'dossiers' do
|
4
|
+
|
5
|
+
let(:organization) { Fabricate :organization }
|
6
|
+
let(:session) { Sessions::OrganizationSession.new(organization, 'development', 'http://core.dev') }
|
7
|
+
|
8
|
+
it 'can be created', :vcr do
|
9
|
+
dossier = session.create_dossier({})
|
10
|
+
expect(dossier.id).to eq(1)
|
11
|
+
end
|
12
|
+
|
13
|
+
it 'can be started', :vcr do
|
14
|
+
dossier = Fabricate :dossier
|
15
|
+
dossier_session = Sessions::DossierSession.new(dossier, organization, 'development', 'http://core.dev')
|
16
|
+
expect { dossier_session.start(protocols: ['some_protocol']) }.to_not raise_error
|
17
|
+
end
|
18
|
+
end
|
@@ -1,11 +1,11 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
describe '
|
4
|
-
let(:session) { Sessions::AppSession.new('development') }
|
3
|
+
describe 'organizations' do
|
4
|
+
let(:session) { Sessions::AppSession.new('development', 'http://core.dev') }
|
5
5
|
|
6
6
|
it 'can be created', :vcr do
|
7
7
|
organization = session.create_organization(key: 'foobar', name: 'Foo Bar')
|
8
8
|
expect(organization.key).to eq("foobar")
|
9
9
|
expect(organization.name).to eq("Foo Bar")
|
10
10
|
end
|
11
|
-
end
|
11
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
module Roqua
|
4
|
+
module CoreApi
|
5
|
+
module Sessions
|
6
|
+
describe AppSession do
|
7
|
+
let(:session) { Fabricate :app_session }
|
8
|
+
|
9
|
+
describe '#organization_session' do
|
10
|
+
it 'creates a new organization when attributes are provided' do
|
11
|
+
organization_attributes = double
|
12
|
+
expect(session).to receive(:create_organization).with organization_attributes
|
13
|
+
session.organization_session organization_attributes
|
14
|
+
end
|
15
|
+
|
16
|
+
it 'initializes an organization session with a newly created organization' do
|
17
|
+
organization_attributes = double
|
18
|
+
organization = double
|
19
|
+
allow(session).to receive(:create_organization).with(organization_attributes).and_return organization
|
20
|
+
expect(OrganizationSession).to receive(:new).with(organization, session.key, session.server)
|
21
|
+
session.organization_session organization_attributes
|
22
|
+
end
|
23
|
+
|
24
|
+
it 'initializes an organization session with a given organization' do
|
25
|
+
organization = Fabricate :organization
|
26
|
+
expect(OrganizationSession).to receive(:new).with(organization, session.key, session.server)
|
27
|
+
session.organization_session organization
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
module Roqua
|
4
|
+
module CoreApi
|
5
|
+
module Sessions
|
6
|
+
describe OrganizationSession do
|
7
|
+
let(:session) { Fabricate :organization_session }
|
8
|
+
|
9
|
+
describe '#dossier_session' do
|
10
|
+
it 'creates a new dossier when attributes are provided' do
|
11
|
+
dossier_attributes = double
|
12
|
+
expect(session).to receive(:create_dossier).with dossier_attributes
|
13
|
+
session.dossier_session dossier_attributes
|
14
|
+
end
|
15
|
+
|
16
|
+
it 'initializes a dossier session with a newly created dossier' do
|
17
|
+
dossier_attributes = double
|
18
|
+
dossier = double
|
19
|
+
allow(session).to receive(:create_dossier).with(dossier_attributes).and_return dossier
|
20
|
+
expect(DossierSession).to receive(:new).with(dossier, session.organization, session.key, session.server)
|
21
|
+
session.dossier_session dossier_attributes
|
22
|
+
end
|
23
|
+
|
24
|
+
it 'initializes an organization session with a given organization' do
|
25
|
+
dossier = Fabricate :dossier
|
26
|
+
expect(DossierSession).to receive(:new).with(dossier, session.organization, session.key, session.server)
|
27
|
+
session.dossier_session dossier
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1,11 +1,13 @@
|
|
1
1
|
require 'rspec'
|
2
|
+
require 'fabrication'
|
2
3
|
|
3
4
|
require 'vcr'
|
4
5
|
VCR.configure do |c|
|
5
6
|
c.cassette_library_dir = 'spec/fixtures'
|
7
|
+
c.allow_http_connections_when_no_cassette = false
|
6
8
|
c.hook_into :webmock
|
7
9
|
c.configure_rspec_metadata!
|
8
10
|
end
|
9
11
|
|
10
12
|
require 'roqua-core-api'
|
11
|
-
include Roqua::CoreApi
|
13
|
+
include Roqua::CoreApi
|
metadata
CHANGED
@@ -1,125 +1,140 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: roqua-core-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marten Veldthuis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
+
version_requirements: !ruby/object:Gem::Requirement
|
15
|
+
requirements:
|
16
|
+
- - ~>
|
17
|
+
- !ruby/object:Gem::Version
|
18
|
+
version: 0.12.0
|
19
|
+
prerelease: false
|
14
20
|
name: httparty
|
15
21
|
requirement: !ruby/object:Gem::Requirement
|
16
22
|
requirements:
|
17
|
-
- -
|
23
|
+
- - ~>
|
18
24
|
- !ruby/object:Gem::Version
|
19
25
|
version: 0.12.0
|
20
26
|
type: :runtime
|
21
|
-
|
27
|
+
- !ruby/object:Gem::Dependency
|
22
28
|
version_requirements: !ruby/object:Gem::Requirement
|
23
29
|
requirements:
|
24
|
-
- -
|
30
|
+
- - ~>
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
27
|
-
|
32
|
+
version: '1.0'
|
33
|
+
prerelease: false
|
28
34
|
name: bundler
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
30
36
|
requirements:
|
31
|
-
- -
|
37
|
+
- - ~>
|
32
38
|
- !ruby/object:Gem::Version
|
33
39
|
version: '1.0'
|
34
40
|
type: :development
|
35
|
-
|
41
|
+
- !ruby/object:Gem::Dependency
|
36
42
|
version_requirements: !ruby/object:Gem::Requirement
|
37
43
|
requirements:
|
38
|
-
- -
|
44
|
+
- - ~>
|
39
45
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
41
|
-
|
46
|
+
version: '10.0'
|
47
|
+
prerelease: false
|
42
48
|
name: rake
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|
44
50
|
requirements:
|
45
|
-
- -
|
51
|
+
- - ~>
|
46
52
|
- !ruby/object:Gem::Version
|
47
53
|
version: '10.0'
|
48
54
|
type: :development
|
49
|
-
|
55
|
+
- !ruby/object:Gem::Dependency
|
50
56
|
version_requirements: !ruby/object:Gem::Requirement
|
51
57
|
requirements:
|
52
|
-
- -
|
58
|
+
- - ~>
|
53
59
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
55
|
-
|
56
|
-
name:
|
60
|
+
version: '0.8'
|
61
|
+
prerelease: false
|
62
|
+
name: yard
|
57
63
|
requirement: !ruby/object:Gem::Requirement
|
58
64
|
requirements:
|
59
|
-
- -
|
65
|
+
- - ~>
|
60
66
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
67
|
+
version: '0.8'
|
62
68
|
type: :development
|
63
|
-
|
69
|
+
- !ruby/object:Gem::Dependency
|
64
70
|
version_requirements: !ruby/object:Gem::Requirement
|
65
71
|
requirements:
|
66
|
-
- -
|
72
|
+
- - ~>
|
67
73
|
- !ruby/object:Gem::Version
|
68
74
|
version: 3.0.0.beta1
|
69
|
-
|
70
|
-
name:
|
75
|
+
prerelease: false
|
76
|
+
name: rspec
|
71
77
|
requirement: !ruby/object:Gem::Requirement
|
72
78
|
requirements:
|
73
|
-
- -
|
79
|
+
- - ~>
|
74
80
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
81
|
+
version: 3.0.0.beta1
|
76
82
|
type: :development
|
77
|
-
|
83
|
+
- !ruby/object:Gem::Dependency
|
78
84
|
version_requirements: !ruby/object:Gem::Requirement
|
79
85
|
requirements:
|
80
|
-
- -
|
86
|
+
- - ~>
|
81
87
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
83
|
-
|
88
|
+
version: 2.8.0
|
89
|
+
prerelease: false
|
84
90
|
name: vcr
|
85
91
|
requirement: !ruby/object:Gem::Requirement
|
86
92
|
requirements:
|
87
|
-
- -
|
93
|
+
- - ~>
|
88
94
|
- !ruby/object:Gem::Version
|
89
95
|
version: 2.8.0
|
90
96
|
type: :development
|
91
|
-
|
97
|
+
- !ruby/object:Gem::Dependency
|
92
98
|
version_requirements: !ruby/object:Gem::Requirement
|
93
99
|
requirements:
|
94
|
-
- -
|
100
|
+
- - ~>
|
95
101
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
97
|
-
|
102
|
+
version: 1.17.1
|
103
|
+
prerelease: false
|
98
104
|
name: webmock
|
99
105
|
requirement: !ruby/object:Gem::Requirement
|
100
106
|
requirements:
|
101
|
-
- -
|
107
|
+
- - ~>
|
102
108
|
- !ruby/object:Gem::Version
|
103
109
|
version: 1.17.1
|
104
110
|
type: :development
|
105
|
-
|
111
|
+
- !ruby/object:Gem::Dependency
|
106
112
|
version_requirements: !ruby/object:Gem::Requirement
|
107
113
|
requirements:
|
108
|
-
- -
|
114
|
+
- - ~>
|
109
115
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
116
|
+
version: 2.9.6
|
117
|
+
prerelease: false
|
118
|
+
name: fabrication
|
119
|
+
requirement: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - ~>
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: 2.9.6
|
124
|
+
type: :development
|
111
125
|
description: Provides authenticated access to Core
|
112
126
|
email: marten@veldthuis.com
|
113
127
|
executables: []
|
114
128
|
extensions: []
|
115
129
|
extra_rdoc_files: []
|
116
130
|
files:
|
117
|
-
-
|
118
|
-
-
|
119
|
-
-
|
120
|
-
-
|
131
|
+
- .document
|
132
|
+
- .gitignore
|
133
|
+
- .rspec
|
134
|
+
- .yardopts
|
121
135
|
- ChangeLog.md
|
122
136
|
- Gemfile
|
137
|
+
- Guardfile
|
123
138
|
- LICENSE.txt
|
124
139
|
- README.md
|
125
140
|
- Rakefile
|
@@ -131,10 +146,21 @@ files:
|
|
131
146
|
- lib/roqua/core_api/models/organization.rb
|
132
147
|
- lib/roqua/core_api/sessions.rb
|
133
148
|
- lib/roqua/core_api/sessions/app_session.rb
|
149
|
+
- lib/roqua/core_api/sessions/dossier_session.rb
|
150
|
+
- lib/roqua/core_api/sessions/organization_session.rb
|
134
151
|
- lib/roqua/core_api/version.rb
|
135
152
|
- spec/core_api_spec.rb
|
136
|
-
- spec/
|
153
|
+
- spec/fabricators/app_session_fabricator.rb
|
154
|
+
- spec/fabricators/dossier_fabricator.rb
|
155
|
+
- spec/fabricators/organization_fabricator.rb
|
156
|
+
- spec/fabricators/organization_session_fabricator.rb
|
157
|
+
- spec/fixtures/dossiers/can_be_created.yml
|
158
|
+
- spec/fixtures/dossiers/can_be_started.yml
|
159
|
+
- spec/fixtures/organizations/can_be_created.yml
|
160
|
+
- spec/integration/dossiers_spec.rb
|
137
161
|
- spec/integration/organizations_spec.rb
|
162
|
+
- spec/lib/roqua/core_api/sessions/app_session_spec.rb
|
163
|
+
- spec/lib/roqua/core_api/sessions/organization_session_spec.rb
|
138
164
|
- spec/spec_helper.rb
|
139
165
|
homepage: https://github.com/roqua/core/blob/master/core_api/README.markdown
|
140
166
|
licenses:
|
@@ -146,12 +172,12 @@ require_paths:
|
|
146
172
|
- lib
|
147
173
|
required_ruby_version: !ruby/object:Gem::Requirement
|
148
174
|
requirements:
|
149
|
-
- -
|
175
|
+
- - ! '>='
|
150
176
|
- !ruby/object:Gem::Version
|
151
177
|
version: '0'
|
152
178
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
153
179
|
requirements:
|
154
|
-
- -
|
180
|
+
- - ! '>='
|
155
181
|
- !ruby/object:Gem::Version
|
156
182
|
version: '0'
|
157
183
|
requirements: []
|
@@ -162,7 +188,16 @@ specification_version: 4
|
|
162
188
|
summary: API wrapper gem around Core's API
|
163
189
|
test_files:
|
164
190
|
- spec/core_api_spec.rb
|
165
|
-
- spec/
|
191
|
+
- spec/fabricators/app_session_fabricator.rb
|
192
|
+
- spec/fabricators/dossier_fabricator.rb
|
193
|
+
- spec/fabricators/organization_fabricator.rb
|
194
|
+
- spec/fabricators/organization_session_fabricator.rb
|
195
|
+
- spec/fixtures/dossiers/can_be_created.yml
|
196
|
+
- spec/fixtures/dossiers/can_be_started.yml
|
197
|
+
- spec/fixtures/organizations/can_be_created.yml
|
198
|
+
- spec/integration/dossiers_spec.rb
|
166
199
|
- spec/integration/organizations_spec.rb
|
200
|
+
- spec/lib/roqua/core_api/sessions/app_session_spec.rb
|
201
|
+
- spec/lib/roqua/core_api/sessions/organization_session_spec.rb
|
167
202
|
- spec/spec_helper.rb
|
168
203
|
has_rdoc:
|