roqua-rom-api 2.2.2 → 2.3.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
- SHA1:
3
- metadata.gz: f462862608e2cb3d00b4c0c88ff5c84014bc60c7
4
- data.tar.gz: ea8a05e942499aeada616ff85c11950ea97cc4f6
2
+ SHA256:
3
+ metadata.gz: e81b0029f74f1759fa9f105c57299feee574b0e519a13c8a2b5e671251c17f94
4
+ data.tar.gz: dad860d5231200bdbf797d6779a3615224a984546b5d1e8baef6f924441f8b9c
5
5
  SHA512:
6
- metadata.gz: 60dbb7dfc0f36f604c9bef64450f0042b0e5761194931fe4068ad7d7da377d396b2022ae6d214f25a0f8964053781d7db3dd1553a7846302b539c50b014b9652
7
- data.tar.gz: 53785218e8a2f5e75b2e69b26f94387baed4ae45bbfd76e623bfb3c1f501361df3f5a6e17c486b6d86b8afc79452e0ebc9c58bfdb052440e3796e8fea377e6bc
6
+ metadata.gz: 6c34e10cde69f5a66c6af7039fc8674b156a230fd80ba48e000bffd56c450b3d55a78a25d652f5e38722262206dbd85ab5c085c52aff851db31fa7d68119f05b
7
+ data.tar.gz: 498d5d4e6177a19fa2fa277dc23e71d7037cd93d1b1f4475b178489232e4697d63ee41df0c1333c8c2c489a2185417d24878b990be617b4fb341dc7d3b8670dc
data/Rakefile CHANGED
@@ -24,7 +24,7 @@ task default: :spec
24
24
 
25
25
  task :release do
26
26
  # run bundle in parent dir to update Gemfile.lock
27
- Bundler.with_clean_env do
27
+ Bundler.with_unbundled_env do
28
28
  `bundle --gemfile=../Gemfile`
29
29
  end
30
30
  `git add ../Gemfile.lock && git commit -m 'update roqua-rom-api in Gemfile.lock'`
@@ -10,7 +10,7 @@ module Roqua
10
10
  class CreateFillOutRequest < Endpoint
11
11
  string :dossier_id
12
12
  integer :measurement_sequence_id, default: nil
13
- array :questionnaire_keys, default: [] { string }
13
+ array :questionnaire_keys, default: [] do string end
14
14
  string :respondent_type, default: nil
15
15
  string :callback_url, default: nil
16
16
  array :reminders, default: []
@@ -3,8 +3,8 @@ module Roqua
3
3
  # @api private
4
4
  class ListResponses < Endpoint
5
5
  string :dossier_id
6
- array :response_ids, default: [] { string }
7
- array :questionnaire_keys, default: [] { string }
6
+ array :response_ids, default: [] do string end
7
+ array :questionnaire_keys, default: [] do string end
8
8
  time :completed_before, default: nil
9
9
  time :completed_after, default: nil
10
10
  string :respondent_type, default: nil
@@ -4,8 +4,8 @@ module Roqua
4
4
  class ReportCalculations < Endpoint
5
5
  string :dossier_id
6
6
  string :calculator
7
- array(:response_ids, default: nil) { string }
8
- array(:questionnaire_keys, default: nil) { string }
7
+ array :response_ids, default: nil do string end
8
+ array :questionnaire_keys, default: nil do string end
9
9
  time :completed_after, default: nil
10
10
  time :completed_before, default: nil
11
11
 
@@ -58,7 +58,11 @@ module Roqua
58
58
  when 401
59
59
  access_denied(response)
60
60
  else
61
- fail response.parsed_response || "Received HTTP response code #{response.code}!"
61
+ msg = response.parsed_response
62
+ if msg.is_a? Hash
63
+ msg = msg.fetch('error', nil)
64
+ end
65
+ fail msg || "Received HTTP response code #{response.code}!"
62
66
  end
63
67
  end
64
68
 
@@ -3,8 +3,8 @@ module Roqua
3
3
  # @api private
4
4
  class StartFillOutSession < Endpoint
5
5
  string :dossier_id
6
- array :questionnaire_keys, default: [] { string }
7
- array :response_ids, default: [] { integer }
6
+ array :questionnaire_keys, default: [] do string end
7
+ array :response_ids, default: [] do integer end
8
8
  string :return_to
9
9
  string :progress_url, default: nil
10
10
  string :stylesheet, default: nil
@@ -5,12 +5,13 @@ module Roqua
5
5
  string :dossier_id
6
6
  string :protocol_key, default: nil # Pass the key
7
7
  integer :protocol_id, default: nil # or the id
8
+ integer :respondent_id, default: nil
8
9
  time :start_at, default: nil
9
10
  hash :flags, default: {}, strip: false
10
11
  hash :textvars, default: {}, strip: false
11
12
 
12
13
  def execute
13
- options = {protocol_key: protocol_key, protocol_id: protocol_id, flags: flags, textvars: textvars}
14
+ options = {protocol_key: protocol_key, protocol_id: protocol_id, respondent_id: respondent_id, flags: flags, textvars: textvars}
14
15
  options[:start_at] = start_at.to_i if start_at
15
16
  validate_response_for do
16
17
  basic_auth_session.post("/dossiers/#{dossier_id}/protocol_subscriptions", options)
@@ -1,5 +1,5 @@
1
1
  module Roqua
2
2
  module RomApi
3
- VERSION = '2.2.2'
3
+ VERSION = '2.3.0'
4
4
  end
5
5
  end
@@ -8,8 +8,8 @@ describe CreateFillOutRequest do
8
8
  respondent_type: 'patient_version',
9
9
  callback_url: 'http://callback.url',
10
10
  reminders: [1000, 2000],
11
- open_from: Time.now,
12
- open_till: Time.now + 100_000
11
+ open_from: Time.current,
12
+ open_till: Time.current + 100_000
13
13
  }
14
14
  end
15
15
  let(:session) { Sessions::BasicAuthSession.new }
@@ -9,7 +9,7 @@ describe CreateResponse do
9
9
  end
10
10
 
11
11
  it 'does a post to the rom responses api' do
12
- filled_out_at = Time.now
12
+ filled_out_at = Time.current
13
13
  expect(session).to receive(:post).with '/dossiers/some_dossier_id/responses',
14
14
  questionnaire_key: 'some_questionnaire_key',
15
15
  answer_data: {some: 'answer_data'},
@@ -28,7 +28,7 @@ describe ReportCalculations do
28
28
 
29
29
  describe 'given a list of questionnaire_keys' do
30
30
  let(:filters) { {questionnaire_keys: ['q1', 'q2'],
31
- completed_after: Time.now - 100_000, completed_before: Time.now} }
31
+ completed_after: Time.current - 100_000, completed_before: Time.current} }
32
32
  let(:options) { {dossier_id: '1', calculator: 'test'}.merge(filters) }
33
33
 
34
34
  it 'calls the right url' do
@@ -61,6 +61,12 @@ describe BasicAuthSession do
61
61
  expect { session.get '/some_path' }.to raise_error(RuntimeError, 'some_response')
62
62
  end
63
63
 
64
+ it 'throws an error if the reponse is not within the 200 range with json message' do
65
+ response = double('response', code: 500, parsed_response: {'error' => 'the error'})
66
+ allow(HTTParty).to receive(:get).and_return(response)
67
+ expect { session.get '/some_path' }.to raise_error(RuntimeError, 'the error')
68
+ end
69
+
64
70
  it 'throws a NoSession error if the basic auth is incorrect' do
65
71
  allow(response).to receive(:code).and_return(401)
66
72
  allow(HTTParty).to receive(:get).and_return(response)
@@ -2,7 +2,7 @@ require 'spec_helper'
2
2
 
3
3
  describe StartProtocolSubscription do
4
4
  let(:options) { {dossier_id: 'some_dossier_id', protocol_key: 'some_key', protocol_id: nil,
5
- flags: {some_flag: true}, textvars: {some_var: 'string'}} }
5
+ respondent_id: 123, flags: {some_flag: true}, textvars: {some_var: 'string'}} }
6
6
  let(:session) { Sessions::BasicAuthSession.new }
7
7
  let(:response) { httparty_response({}) }
8
8
  before do
@@ -14,16 +14,18 @@ describe StartProtocolSubscription do
14
14
  expect(session).to receive(:post).with("/dossiers/#{options[:dossier_id]}/protocol_subscriptions",
15
15
  protocol_key: options[:protocol_key],
16
16
  protocol_id: options[:protocol_id],
17
+ respondent_id: options[:respondent_id],
17
18
  flags: {some_flag: true},
18
19
  textvars: {some_var: 'string'})
19
20
  StartProtocolSubscription.run!(options)
20
21
  end
21
22
 
22
23
  it 'passes in the start_at option when provided' do
23
- start_at = Time.now
24
+ start_at = Time.current
24
25
  expect(session).to receive(:post).with("/dossiers/#{options[:dossier_id]}/protocol_subscriptions",
25
26
  protocol_key: options[:protocol_key],
26
27
  protocol_id: options[:protocol_id],
28
+ respondent_id: options[:respondent_id],
27
29
  start_at: start_at.to_i,
28
30
  flags: {some_flag: true},
29
31
  textvars: {some_var: 'string'})
@@ -10,7 +10,7 @@ describe UpdateResponse do
10
10
  end
11
11
 
12
12
  it 'does a post to the rom responses api' do
13
- filled_out_at = Time.now
13
+ filled_out_at = Time.current
14
14
  expect(session).to receive(:patch).with '/dossiers/some_dossier_id/responses/230',
15
15
  questionnaire_key: 'some_questionnaire_key',
16
16
  answer_data: {some: 'answer_data'},
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roqua-rom-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.2
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Esposito
@@ -9,10 +9,10 @@ authors:
9
9
  - Ivan Malykh
10
10
  - Henk van der Veen
11
11
  - Jorn van de Beek
12
- autorequire:
12
+ autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2018-07-11 00:00:00.000000000 Z
15
+ date: 2022-06-22 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: httparty
@@ -20,28 +20,42 @@ dependencies:
20
20
  requirements:
21
21
  - - "~>"
22
22
  - !ruby/object:Gem::Version
23
- version: 0.14.0
23
+ version: '0.14'
24
24
  type: :runtime
25
25
  prerelease: false
26
26
  version_requirements: !ruby/object:Gem::Requirement
27
27
  requirements:
28
28
  - - "~>"
29
29
  - !ruby/object:Gem::Version
30
- version: 0.14.0
30
+ version: '0.14'
31
31
  - !ruby/object:Gem::Dependency
32
32
  name: active_interaction
33
33
  requirement: !ruby/object:Gem::Requirement
34
34
  requirements:
35
35
  - - "~>"
36
36
  - !ruby/object:Gem::Version
37
- version: '3.2'
37
+ version: '4.0'
38
38
  type: :runtime
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
41
41
  requirements:
42
42
  - - "~>"
43
43
  - !ruby/object:Gem::Version
44
- version: '3.2'
44
+ version: '4.0'
45
+ - !ruby/object:Gem::Dependency
46
+ name: activemodel
47
+ requirement: !ruby/object:Gem::Requirement
48
+ requirements:
49
+ - - "<"
50
+ - !ruby/object:Gem::Version
51
+ version: '6.1'
52
+ type: :runtime
53
+ prerelease: false
54
+ version_requirements: !ruby/object:Gem::Requirement
55
+ requirements:
56
+ - - "<"
57
+ - !ruby/object:Gem::Version
58
+ version: '6.1'
45
59
  - !ruby/object:Gem::Dependency
46
60
  name: virtus
47
61
  requirement: !ruby/object:Gem::Requirement
@@ -74,30 +88,30 @@ dependencies:
74
88
  name: bundler
75
89
  requirement: !ruby/object:Gem::Requirement
76
90
  requirements:
77
- - - "~>"
91
+ - - ">="
78
92
  - !ruby/object:Gem::Version
79
- version: '1.6'
93
+ version: '0'
80
94
  type: :development
81
95
  prerelease: false
82
96
  version_requirements: !ruby/object:Gem::Requirement
83
97
  requirements:
84
- - - "~>"
98
+ - - ">="
85
99
  - !ruby/object:Gem::Version
86
- version: '1.6'
100
+ version: '0'
87
101
  - !ruby/object:Gem::Dependency
88
102
  name: rake
89
103
  requirement: !ruby/object:Gem::Requirement
90
104
  requirements:
91
105
  - - "~>"
92
106
  - !ruby/object:Gem::Version
93
- version: '10.2'
107
+ version: '13.0'
94
108
  type: :development
95
109
  prerelease: false
96
110
  version_requirements: !ruby/object:Gem::Requirement
97
111
  requirements:
98
112
  - - "~>"
99
113
  - !ruby/object:Gem::Version
100
- version: '10.2'
114
+ version: '13.0'
101
115
  - !ruby/object:Gem::Dependency
102
116
  name: yard
103
117
  requirement: !ruby/object:Gem::Requirement
@@ -118,14 +132,14 @@ dependencies:
118
132
  requirements:
119
133
  - - "~>"
120
134
  - !ruby/object:Gem::Version
121
- version: 3.0.0
135
+ version: '3.0'
122
136
  type: :development
123
137
  prerelease: false
124
138
  version_requirements: !ruby/object:Gem::Requirement
125
139
  requirements:
126
140
  - - "~>"
127
141
  - !ruby/object:Gem::Version
128
- version: 3.0.0
142
+ version: '3.0'
129
143
  - !ruby/object:Gem::Dependency
130
144
  name: fabrication
131
145
  requirement: !ruby/object:Gem::Requirement
@@ -146,26 +160,20 @@ dependencies:
146
160
  requirements:
147
161
  - - "~>"
148
162
  - !ruby/object:Gem::Version
149
- version: 1.5.0
163
+ version: '1.5'
150
164
  type: :development
151
165
  prerelease: false
152
166
  version_requirements: !ruby/object:Gem::Requirement
153
167
  requirements:
154
168
  - - "~>"
155
169
  - !ruby/object:Gem::Version
156
- version: 1.5.0
170
+ version: '1.5'
157
171
  description: Provides authenticated access to ROM utilities
158
172
  email: support@roqua.nl
159
173
  executables: []
160
174
  extensions: []
161
175
  extra_rdoc_files: []
162
176
  files:
163
- - ".document"
164
- - ".gitignore"
165
- - Appraisals
166
- - CHANGELOG.md
167
- - Gemfile
168
- - Guardfile
169
177
  - LICENSE.txt
170
178
  - README.md
171
179
  - Rakefile
@@ -210,7 +218,6 @@ files:
210
218
  - lib/roqua/rom_api/stop_protocol_subscription.rb
211
219
  - lib/roqua/rom_api/update_response.rb
212
220
  - lib/roqua/rom_api/version.rb
213
- - roqua_rom_api.gemspec
214
221
  - spec/fabricators/basic_auth_session_fabricator.rb
215
222
  - spec/lib/roqua/rom_api/cancel_fill_out_request_spec.rb
216
223
  - spec/lib/roqua/rom_api/create_fill_out_request_spec.rb
@@ -246,7 +253,7 @@ homepage: https://github.com/roqua/roqua/blob/master/rom_api/README.md
246
253
  licenses:
247
254
  - MIT
248
255
  metadata: {}
249
- post_install_message:
256
+ post_install_message:
250
257
  rdoc_options: []
251
258
  require_paths:
252
259
  - lib
@@ -261,41 +268,39 @@ required_rubygems_version: !ruby/object:Gem::Requirement
261
268
  - !ruby/object:Gem::Version
262
269
  version: '0'
263
270
  requirements: []
264
- rubyforge_project:
265
- rubygems_version: 2.6.14
266
- signing_key:
271
+ rubygems_version: 3.3.8
272
+ signing_key:
267
273
  specification_version: 4
268
274
  summary: API wrapper gem around RoQua's ROM API
269
275
  test_files:
276
+ - spec/spec_helper.rb
277
+ - spec/support/test.yml
278
+ - spec/support/httparty_helpers.rb
270
279
  - spec/fabricators/basic_auth_session_fabricator.rb
271
- - spec/lib/roqua/rom_api/cancel_fill_out_request_spec.rb
280
+ - spec/lib/roqua/rom_api/list_respondents_spec.rb
281
+ - spec/lib/roqua/rom_api/update_response_spec.rb
272
282
  - spec/lib/roqua/rom_api/create_fill_out_request_spec.rb
273
- - spec/lib/roqua/rom_api/create_response_spec.rb
274
283
  - spec/lib/roqua/rom_api/endpoint_spec.rb
275
- - spec/lib/roqua/rom_api/get_measurement_spec.rb
276
- - spec/lib/roqua/rom_api/get_non_response_spec.rb
277
- - spec/lib/roqua/rom_api/get_protocol_spec.rb
278
284
  - spec/lib/roqua/rom_api/get_respondent_spec.rb
279
- - spec/lib/roqua/rom_api/list_dossier_stats_spec.rb
285
+ - spec/lib/roqua/rom_api/get_protocol_spec.rb
286
+ - spec/lib/roqua/rom_api/stop_protocol_subscription_spec.rb
280
287
  - spec/lib/roqua/rom_api/list_non_responses_spec.rb
281
- - spec/lib/roqua/rom_api/list_protocol_subscriptions_spec.rb
282
- - spec/lib/roqua/rom_api/list_protocols_spec.rb
283
- - spec/lib/roqua/rom_api/list_respondents_spec.rb
288
+ - spec/lib/roqua/rom_api/create_response_spec.rb
284
289
  - spec/lib/roqua/rom_api/list_responses_spec.rb
290
+ - spec/lib/roqua/rom_api/report_calculations_spec.rb
291
+ - spec/lib/roqua/rom_api/cancel_fill_out_request_spec.rb
292
+ - spec/lib/roqua/rom_api/get_non_response_spec.rb
293
+ - spec/lib/roqua/rom_api/models/stats_spec.rb
285
294
  - spec/lib/roqua/rom_api/models/dossier_stats_spec.rb
286
- - spec/lib/roqua/rom_api/models/fill_out_request_spec.rb
287
- - spec/lib/roqua/rom_api/models/protocol_subscription_spec.rb
288
295
  - spec/lib/roqua/rom_api/models/respondent_spec.rb
296
+ - spec/lib/roqua/rom_api/models/fill_out_request_spec.rb
289
297
  - spec/lib/roqua/rom_api/models/response_spec.rb
290
- - spec/lib/roqua/rom_api/models/stats_spec.rb
291
- - spec/lib/roqua/rom_api/report_calculations_spec.rb
298
+ - spec/lib/roqua/rom_api/models/protocol_subscription_spec.rb
292
299
  - spec/lib/roqua/rom_api/sessions/basic_auth_session_spec.rb
293
300
  - spec/lib/roqua/rom_api/start_fill_out_session_spec.rb
301
+ - spec/lib/roqua/rom_api/list_protocols_spec.rb
294
302
  - spec/lib/roqua/rom_api/start_protocol_subscription_spec.rb
295
- - spec/lib/roqua/rom_api/stop_protocol_subscription_spec.rb
296
- - spec/lib/roqua/rom_api/update_response_spec.rb
303
+ - spec/lib/roqua/rom_api/get_measurement_spec.rb
304
+ - spec/lib/roqua/rom_api/list_protocol_subscriptions_spec.rb
305
+ - spec/lib/roqua/rom_api/list_dossier_stats_spec.rb
297
306
  - spec/lib/roqua_rom_api_spec.rb
298
- - spec/spec_helper.rb
299
- - spec/support/httparty_helpers.rb
300
- - spec/support/test.yml
301
- has_rdoc:
data/.document DELETED
@@ -1,5 +0,0 @@
1
- lib/**/*.rb
2
- bin/*
3
- -
4
- features/**/*.feature
5
- LICENSE.txt
data/.gitignore DELETED
@@ -1,52 +0,0 @@
1
- Gemfile.lock
2
- gemfiles
3
-
4
- # rcov generated
5
- coverage
6
- coverage.data
7
-
8
- # rdoc generated
9
- rdoc
10
-
11
- # yard generated
12
- doc
13
- .yardoc
14
-
15
- # bundler
16
- .bundle
17
-
18
- # jeweler generated
19
- pkg
20
-
21
- # Have editor/IDE/OS specific files you need to ignore? Consider using a global gitignore:
22
- #
23
- # * Create a file at ~/.gitignore
24
- # * Include files you want ignored
25
- # * Run: git config --global core.excludesfile ~/.gitignore
26
- #
27
- # After doing this, these files will be ignored in all your git projects,
28
- # saving you from having to 'pollute' every project you touch with them
29
- #
30
- # Not sure what to needs to be ignored for particular editors/OSes? Here's some ideas to get you started. (Remember, remove the leading # of the line)
31
- #
32
- # For MacOS:
33
- #
34
- #.DS_Store
35
-
36
- # For TextMate
37
- #*.tmproj
38
- #tmtags
39
-
40
- # For emacs:
41
- #*~
42
- #\#*
43
- #.\#*
44
-
45
- # For vim:
46
- #*.swp
47
-
48
- # For redcar:
49
- #.redcar
50
-
51
- # For rubinius:
52
- #*.rbc
data/Appraisals DELETED
@@ -1,11 +0,0 @@
1
- appraise 'rails-5.0' do
2
- gem 'activemodel', '~> 5.0.0'
3
- end
4
-
5
- appraise 'rails-5.1' do
6
- gem 'activemodel', '~> 5.1.0'
7
- end
8
-
9
- appraise 'rails-5.2' do
10
- gem 'activemodel', '~> 5.2.0'
11
- end
data/CHANGELOG.md DELETED
@@ -1,184 +0,0 @@
1
- ### HEAD
2
-
3
- ### 2.2.2 / 2018-07-11
4
-
5
- * Offical support for rails 5.0, 5.1 and 5.2
6
-
7
- ### 2.2.1 / 2018-06-06
8
-
9
- * Add key attribute to Protocol model
10
- * Allow protocol_id as parameter for StartProtocolSubscription
11
-
12
- ### 2.2.0 / 2017-02-12
13
-
14
- * Added ListNonResponses
15
- * Added GetNonResponse
16
- * Added sbg_info to responses
17
-
18
- ### 2.1.0 / 2017-02-07
19
-
20
- * Added ListProtocollen
21
- * Added GetProtocol
22
- * Added GetMeasurement
23
- * Added ListRespondents
24
- * Added GetRespondent
25
-
26
- ### 2.0.1 / 2016-08-15
27
-
28
- * Updated httparty gem to 0.14.0 to fix Virtus incompatibility
29
-
30
- ### 2.0.0 / 2016-08-03
31
-
32
- * Updated ActiveInteraction to version 3.2. See: https://github.com/orgsync/active_interaction/releases/tag/v3.2.0
33
-
34
- ### 1.0.0 / 2015-12-08
35
-
36
- * Updated ActiveInteraction to version 2.1. AI 2 has various breaking changes, see http://taylor.fausak.me/2015/05/07/announcing-active-interaction-2/
37
-
38
- ### 0.4.2 / 2015-8-20
39
-
40
- * Add ability to use different basic_auth_sessions than the global one
41
-
42
- ### 0.4.1 / 2015-8-12
43
-
44
- * Add charts to questionnaire model
45
- * Add internal quby_key to questionnaire model
46
-
47
- ### 0.4.0 / 2015-6-2
48
-
49
- * Add CancelFillOutRequest api
50
-
51
- ### 0.3.0 / 2015-2-13
52
-
53
- * Add dossier stats api
54
- * Retrieve responses by response_ids.
55
-
56
- ### 0.2.2 / 2014-12-15
57
-
58
- * Improve validation errors for protocol_subscriptions
59
- * Add API endpoint for retrieving questionnaires
60
- * Pass textvar and flag definitions of questionnaires
61
- * Pass textvars and flags of responses
62
-
63
- ### 0.2.1 / 2014-11-17
64
-
65
- * Add progress url to fill_out session api endpoint
66
-
67
- ### 0.2.0 / 2014-11-11
68
-
69
- * Added CreateMeasurementSequence
70
- * BACKWARD INCOMPATIBLE: Starting a protocol subscription now returns ProtocolSubscription model
71
- * Add responses to protocol subscriptions
72
-
73
- ### 0.1.12 / 2014-10-28
74
-
75
- * Add started_at timestamp to response create and update api endpoint
76
-
77
- ### 0.1.11 / 2014-10-20
78
-
79
- * Add textvars parameter to protocol subscriptions
80
-
81
- ### 0.1.10 / 2014-10-07
82
-
83
- * Add flags parameter to protocol subscriptions
84
-
85
- ### 0.1.9 / 2014-10-07
86
-
87
- * Add API endpoint for updating responses
88
-
89
- ### 0.1.8 / 2014-09-22
90
-
91
- * Add API endpoint for creating responses
92
-
93
- ### 0.1.7 / 2014-07-10
94
-
95
- * Add id to responses api
96
-
97
- ### 0.1.6 / 2014-07-02
98
-
99
- * Implement start\_fill\_out session for aborted answers
100
- * Add id to the responses api
101
- * Add 'aborted' status to the responses api
102
- * Allow multiple questionnaires in start\_fill\_out_session api
103
-
104
- ### 0.1.5 / 2014-06-10
105
-
106
- * Added CreateFillOutRequest
107
-
108
- ### 0.1.4 / 2014-05-26
109
-
110
- * add answers and outcome to rom responses api
111
-
112
- ### 0.1.3 / 2014-05-20
113
-
114
- * remove next_run_time from protocol_subscriptions api
115
-
116
- ### 0.1.2 / 2014-05-13
117
-
118
- #### Responses API
119
- * rename Responses to ListResponses
120
- * return responses through `result` accessor
121
-
122
- #### ProtocolSubscriptions API
123
- * rename ProtocolSubscriptions to ListProtocolSubscriptions
124
- * return protocol_subscriptions through `result` accessor
125
- * remove `state` from ProtocolSubscriptions API
126
- * only list active ProtocolSubscriptions
127
-
128
- #### FillOutSessions API
129
- * return questionnaire_url through `result` accessor
130
-
131
- #### Localization
132
- * Instead of full messages the HTTP API returns hashes with attribute and error keys. The Ruby Gem uses these keys to compile localized messages using I18n.
133
-
134
- #### Validations
135
- * Some of the 422 response codes are changed to 404 and will now raise an exception when using the Ruby Gem. See the [HTTP API documentation](http://docs.roqua.net/developer/rom_v1/dossier/) for more info.
136
-
137
- ### 0.1.1 / 2014-04-23
138
-
139
- * Validate api responses
140
- * From now on the Responses API is accessible through the Responses interactor. The received responses can be obtained through the `#responses` accessor when the interactor outcome is valid.
141
- * Similarly the the ProtocolSubscriptions API is hence forth accessible through the ProtocolSubscriptions interactor. The received protocol subscriptions can be obtained through the `#protocol_subscriptions` accessor when the interactor outcome is valid.
142
- * Add accessor for fill_out_session api questionnaire_url
143
- * Update documentation in README
144
-
145
- ### 0.0.9 / 2014-04-14
146
-
147
- * Added Virtus to the gemspec
148
- * Model::Response date attributes are DateTimes now.
149
- * Added list_protocol_subscriptions
150
- * Add fill_out sessions api
151
-
152
- ### 0.0.8 / 2014-03-13
153
-
154
- * rename env vars for consistency with roqua-core-api gem
155
-
156
- ### 0.0.7 / 2014-03-13
157
-
158
- * relax active-interaction version requirement
159
-
160
- ### 0.0.6 / 2014-03-12
161
-
162
- * Fix ProtocolSubscription api return value
163
-
164
- ### 0.0.5 / 2014-03-12
165
-
166
- * Remove RoQua prefix from env vars
167
-
168
- ### 0.0.4 / 2014-03-06
169
-
170
- * Use BasicAuthSession for http requests instead of RomApi::Base class
171
-
172
- ### 0.0.3 / 2014-02-18
173
-
174
- * Remove daily start time from api
175
-
176
- ### 0.0.2 / 2014-02-17
177
-
178
- * Raise when API response is not in 200 range
179
-
180
- ### 0.0.1 / 2014-02-14
181
-
182
- * Initial release:
183
-
184
- Here be dragons
data/Gemfile DELETED
@@ -1,10 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gemspec
4
-
5
- group :test do
6
- gem 'fuubar'
7
- gem 'guard-bundler'
8
- gem 'guard-rspec'
9
- gem 'rb-readline'
10
- end
data/Guardfile DELETED
@@ -1,28 +0,0 @@
1
- guard :bundler do
2
- require 'guard/bundler'
3
- require 'guard/bundler/verify'
4
- helper = Guard::Bundler::Verify.new
5
-
6
- files = ['Gemfile']
7
- files += Dir['*.gemspec'] if files.any? { |f| helper.uses_gemspec?(f) }
8
-
9
- # Assume files are symlinked from somewhere
10
- files.each { |file| watch(helper.real_path(file)) }
11
- end
12
-
13
- guard :rspec, cmd: "bundle exec rspec" do
14
- require "guard/rspec/dsl"
15
- dsl = Guard::RSpec::Dsl.new(self)
16
-
17
- # Feel free to open issues for suggestions and improvements
18
-
19
- # RSpec files
20
- rspec = dsl.rspec
21
- watch(rspec.spec_helper) { rspec.spec_dir }
22
- watch(rspec.spec_support) { rspec.spec_dir }
23
- watch(rspec.spec_files)
24
-
25
- # Ruby files
26
- ruby = dsl.ruby
27
- dsl.watch_spec_files_for(ruby.lib_files)
28
- end
@@ -1,30 +0,0 @@
1
- # encoding: utf-8
2
- require File.expand_path('../lib/roqua/rom_api/version', __FILE__)
3
-
4
- Gem::Specification.new do |gem|
5
- gem.name = "roqua-rom-api"
6
- gem.version = Roqua::RomApi::VERSION
7
- gem.summary = "API wrapper gem around RoQua's ROM API"
8
- gem.description = 'Provides authenticated access to ROM utilities'
9
- gem.license = "MIT"
10
- gem.authors = ['Samuel Esposito', 'Marten Veldthuis', 'Ivan Malykh', 'Henk van der Veen', 'Jorn van de Beek']
11
- gem.email = "support@roqua.nl"
12
- gem.homepage = "https://github.com/roqua/roqua/blob/master/rom_api/README.md"
13
-
14
- gem.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
15
- gem.executables = gem.files.grep(%r{^bin/}).map { |f| File.basename(f) }
16
- gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
17
- gem.require_paths = ['lib']
18
-
19
- gem.add_dependency 'httparty', '~> 0.14.0'
20
- gem.add_dependency 'active_interaction', '~> 3.2'
21
- gem.add_dependency 'virtus', '~> 1.0'
22
-
23
- gem.add_development_dependency 'appraisal'
24
- gem.add_development_dependency 'bundler', '~> 1.6'
25
- gem.add_development_dependency 'rake', '~> 10.2'
26
- gem.add_development_dependency 'yard', '~> 0.8'
27
- gem.add_development_dependency 'rspec', '~> 3.0.0'
28
- gem.add_development_dependency 'fabrication', '~> 2.9'
29
- gem.add_development_dependency 'ruby_dep', '~> 1.5.0'
30
- end