roqua-rom-api 2.2.3 → 2.2.5

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
  SHA256:
3
- metadata.gz: 3c2bfa04b35a8c4c6f3e49c6cc5592ec6039e2b4386d6037f749aee5aaa0820e
4
- data.tar.gz: d4632c21992144c7777d156da61b8fb88b1b6deec32e5f37f25888c86254e481
3
+ metadata.gz: 0a4869fe5ebc3afa012ae97feda45d62c09971c983cf7c5b88367e395aec3cee
4
+ data.tar.gz: 3985167ea4cd4d54cd2b6c5aec7ddd9af7323486394c890bc47c32f9cb2bb003
5
5
  SHA512:
6
- metadata.gz: 5f0f658018e29c81b372deafe12e85c506a927e6b4f25054180d72f6531060fe5cd03f42222f659b912bb22ac8ef7feaed1238b5a4f3a45cbba9a5f0e8063991
7
- data.tar.gz: 8bdb705b5aeada861d3d28cba38dcd076454496c3491b18da47c5458dce811944c1ba69bd4d3f6782ff287d345b4ffcacd629703c1274da472494c76cfbcd8f2
6
+ metadata.gz: e8805936a42535dbc65de31820f49fba939b9e5e2bfd289ad087754d13a488653f5592695819269305e67e9df1c6019ce261a55751969f5eaa0e8b90d200f5dc
7
+ data.tar.gz: 609dcc6e850ea64f6747e113fc23dc4dfd2ca437f27febf5f1fb552522d5728c3bd2350538a9433a555ee2b93c6a0c7d51eb76b64fb8d2f4aac8bdfda99cd013
@@ -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
 
@@ -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.3'
3
+ VERSION = '2.2.5'
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.3
4
+ version: 2.2.5
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: 2019-04-30 00:00:00.000000000 Z
15
+ date: 2021-10-19 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: httparty
@@ -20,14 +20,14 @@ 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
@@ -42,6 +42,20 @@ dependencies:
42
42
  - - "~>"
43
43
  - !ruby/object:Gem::Version
44
44
  version: '3.2'
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
@@ -90,14 +104,14 @@ dependencies:
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,40 +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.7.9
266
- signing_key:
271
+ rubygems_version: 3.1.6
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
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,188 +0,0 @@
1
- ### HEAD
2
-
3
- ### 2.2.3 / 2019-04-30
4
-
5
- * Add support for Ruby 2.5
6
-
7
- ### 2.2.2 / 2018-07-11
8
-
9
- * Offical support for rails 5.0, 5.1 and 5.2
10
-
11
- ### 2.2.1 / 2018-06-06
12
-
13
- * Add key attribute to Protocol model
14
- * Allow protocol_id as parameter for StartProtocolSubscription
15
-
16
- ### 2.2.0 / 2017-02-12
17
-
18
- * Added ListNonResponses
19
- * Added GetNonResponse
20
- * Added sbg_info to responses
21
-
22
- ### 2.1.0 / 2017-02-07
23
-
24
- * Added ListProtocollen
25
- * Added GetProtocol
26
- * Added GetMeasurement
27
- * Added ListRespondents
28
- * Added GetRespondent
29
-
30
- ### 2.0.1 / 2016-08-15
31
-
32
- * Updated httparty gem to 0.14.0 to fix Virtus incompatibility
33
-
34
- ### 2.0.0 / 2016-08-03
35
-
36
- * Updated ActiveInteraction to version 3.2. See: https://github.com/orgsync/active_interaction/releases/tag/v3.2.0
37
-
38
- ### 1.0.0 / 2015-12-08
39
-
40
- * Updated ActiveInteraction to version 2.1. AI 2 has various breaking changes, see http://taylor.fausak.me/2015/05/07/announcing-active-interaction-2/
41
-
42
- ### 0.4.2 / 2015-8-20
43
-
44
- * Add ability to use different basic_auth_sessions than the global one
45
-
46
- ### 0.4.1 / 2015-8-12
47
-
48
- * Add charts to questionnaire model
49
- * Add internal quby_key to questionnaire model
50
-
51
- ### 0.4.0 / 2015-6-2
52
-
53
- * Add CancelFillOutRequest api
54
-
55
- ### 0.3.0 / 2015-2-13
56
-
57
- * Add dossier stats api
58
- * Retrieve responses by response_ids.
59
-
60
- ### 0.2.2 / 2014-12-15
61
-
62
- * Improve validation errors for protocol_subscriptions
63
- * Add API endpoint for retrieving questionnaires
64
- * Pass textvar and flag definitions of questionnaires
65
- * Pass textvars and flags of responses
66
-
67
- ### 0.2.1 / 2014-11-17
68
-
69
- * Add progress url to fill_out session api endpoint
70
-
71
- ### 0.2.0 / 2014-11-11
72
-
73
- * Added CreateMeasurementSequence
74
- * BACKWARD INCOMPATIBLE: Starting a protocol subscription now returns ProtocolSubscription model
75
- * Add responses to protocol subscriptions
76
-
77
- ### 0.1.12 / 2014-10-28
78
-
79
- * Add started_at timestamp to response create and update api endpoint
80
-
81
- ### 0.1.11 / 2014-10-20
82
-
83
- * Add textvars parameter to protocol subscriptions
84
-
85
- ### 0.1.10 / 2014-10-07
86
-
87
- * Add flags parameter to protocol subscriptions
88
-
89
- ### 0.1.9 / 2014-10-07
90
-
91
- * Add API endpoint for updating responses
92
-
93
- ### 0.1.8 / 2014-09-22
94
-
95
- * Add API endpoint for creating responses
96
-
97
- ### 0.1.7 / 2014-07-10
98
-
99
- * Add id to responses api
100
-
101
- ### 0.1.6 / 2014-07-02
102
-
103
- * Implement start\_fill\_out session for aborted answers
104
- * Add id to the responses api
105
- * Add 'aborted' status to the responses api
106
- * Allow multiple questionnaires in start\_fill\_out_session api
107
-
108
- ### 0.1.5 / 2014-06-10
109
-
110
- * Added CreateFillOutRequest
111
-
112
- ### 0.1.4 / 2014-05-26
113
-
114
- * add answers and outcome to rom responses api
115
-
116
- ### 0.1.3 / 2014-05-20
117
-
118
- * remove next_run_time from protocol_subscriptions api
119
-
120
- ### 0.1.2 / 2014-05-13
121
-
122
- #### Responses API
123
- * rename Responses to ListResponses
124
- * return responses through `result` accessor
125
-
126
- #### ProtocolSubscriptions API
127
- * rename ProtocolSubscriptions to ListProtocolSubscriptions
128
- * return protocol_subscriptions through `result` accessor
129
- * remove `state` from ProtocolSubscriptions API
130
- * only list active ProtocolSubscriptions
131
-
132
- #### FillOutSessions API
133
- * return questionnaire_url through `result` accessor
134
-
135
- #### Localization
136
- * 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.
137
-
138
- #### Validations
139
- * 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.
140
-
141
- ### 0.1.1 / 2014-04-23
142
-
143
- * Validate api responses
144
- * 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.
145
- * 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.
146
- * Add accessor for fill_out_session api questionnaire_url
147
- * Update documentation in README
148
-
149
- ### 0.0.9 / 2014-04-14
150
-
151
- * Added Virtus to the gemspec
152
- * Model::Response date attributes are DateTimes now.
153
- * Added list_protocol_subscriptions
154
- * Add fill_out sessions api
155
-
156
- ### 0.0.8 / 2014-03-13
157
-
158
- * rename env vars for consistency with roqua-core-api gem
159
-
160
- ### 0.0.7 / 2014-03-13
161
-
162
- * relax active-interaction version requirement
163
-
164
- ### 0.0.6 / 2014-03-12
165
-
166
- * Fix ProtocolSubscription api return value
167
-
168
- ### 0.0.5 / 2014-03-12
169
-
170
- * Remove RoQua prefix from env vars
171
-
172
- ### 0.0.4 / 2014-03-06
173
-
174
- * Use BasicAuthSession for http requests instead of RomApi::Base class
175
-
176
- ### 0.0.3 / 2014-02-18
177
-
178
- * Remove daily start time from api
179
-
180
- ### 0.0.2 / 2014-02-17
181
-
182
- * Raise when API response is not in 200 range
183
-
184
- ### 0.0.1 / 2014-02-14
185
-
186
- * Initial release:
187
-
188
- Here be dragons
data/Gemfile DELETED
@@ -1,9 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gemspec
4
-
5
- group :test do
6
- gem 'fuubar'
7
- gem 'guard-rspec'
8
- gem 'rb-readline'
9
- end
data/Guardfile DELETED
@@ -1,16 +0,0 @@
1
- guard :rspec, cmd: "bundle exec rspec" do
2
- require "guard/rspec/dsl"
3
- dsl = Guard::RSpec::Dsl.new(self)
4
-
5
- # Feel free to open issues for suggestions and improvements
6
-
7
- # RSpec files
8
- rspec = dsl.rspec
9
- watch(rspec.spec_helper) { rspec.spec_dir }
10
- watch(rspec.spec_support) { rspec.spec_dir }
11
- watch(rspec.spec_files)
12
-
13
- # Ruby files
14
- ruby = dsl.ruby
15
- dsl.watch_spec_files_for(ruby.lib_files)
16
- 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'
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