xcal-parktronic 0.0.1 → 1.0.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.
Files changed (56) hide show
  1. checksums.yaml +8 -8
  2. data/.travis.yml +7 -0
  3. data/README.md +73 -7
  4. data/lib/xcal/parktronic.rb +11 -0
  5. data/lib/xcal/parktronic/api_client.rb +8 -5
  6. data/lib/xcal/parktronic/generic_response.rb +18 -2
  7. data/lib/xcal/parktronic/routes.rb +9 -2
  8. data/lib/xcal/parktronic/routes/alarms.rb +115 -34
  9. data/lib/xcal/parktronic/routes/command_notifications.rb +56 -0
  10. data/lib/xcal/parktronic/routes/custom_queries.rb +80 -0
  11. data/lib/xcal/parktronic/routes/event_history_items.rb +36 -0
  12. data/lib/xcal/parktronic/routes/events.rb +67 -0
  13. data/lib/xcal/parktronic/routes/metrics.rb +120 -0
  14. data/lib/xcal/parktronic/routes/nested/alarm_actions.rb +84 -0
  15. data/lib/xcal/parktronic/routes/nested/device_errors.rb +35 -0
  16. data/lib/xcal/parktronic/routes/nested/events.rb +57 -0
  17. data/lib/xcal/parktronic/routes/nested/metric_values.rb +35 -0
  18. data/lib/xcal/parktronic/routes/outages.rb +34 -0
  19. data/lib/xcal/parktronic/routes/stack_changes.rb +53 -0
  20. data/lib/xcal/parktronic/version.rb +1 -1
  21. data/spec/lib/xcal/parktronic/api_client_spec.rb +12 -2
  22. data/spec/lib/xcal/parktronic/routes/alarms_route_spec.rb +16 -1
  23. data/spec/lib/xcal/parktronic/routes/command_notifications_routes_spec.rb +32 -0
  24. data/spec/lib/xcal/parktronic/routes/event_history_items_routes_spec.rb +28 -0
  25. data/spec/lib/xcal/parktronic/routes/events_route_spec.rb +33 -0
  26. data/spec/lib/xcal/parktronic/routes/metrics_routes_spec.rb +92 -49
  27. data/spec/lib/xcal/parktronic/routes/nested/alarm_actions_spec.rb +58 -0
  28. data/spec/lib/xcal/parktronic/routes/nested/events_spec.rb +24 -0
  29. data/spec/lib/xcal/parktronic/routes/outages_routes_spec.rb +25 -0
  30. data/spec/lib/xcal/parktronic/routes/stack_changes_routes_spec.rb +38 -0
  31. data/spec/support/api_mock.rb +147 -2
  32. data/spec/support/fixtures/responses/alarm_action.json +19 -0
  33. data/spec/support/fixtures/responses/alarm_actions.json +40 -0
  34. data/spec/support/fixtures/responses/alarm_events.json +180 -0
  35. data/spec/support/fixtures/responses/alarm_post.json +12 -0
  36. data/spec/support/fixtures/responses/alarm_tags.json +1 -0
  37. data/spec/support/fixtures/responses/command_notification.json +7 -0
  38. data/spec/support/fixtures/responses/command_notifications.json +45 -0
  39. data/spec/support/fixtures/responses/event.json +22 -0
  40. data/spec/support/fixtures/responses/event_tags.json +1 -0
  41. data/spec/support/fixtures/responses/events.json +42 -0
  42. data/spec/support/fixtures/responses/events_history_page_1.json +55 -0
  43. data/spec/support/fixtures/responses/events_history_page_2.json +55 -0
  44. data/spec/support/fixtures/responses/metric.json +8 -0
  45. data/spec/support/fixtures/responses/metric_device_errors.json +610 -0
  46. data/spec/support/fixtures/responses/metric_metric_values.json +586 -0
  47. data/spec/support/fixtures/responses/metric_post.json +12 -0
  48. data/spec/support/fixtures/responses/metrics_page_1.json +90 -0
  49. data/spec/support/fixtures/responses/metrics_page_2.json +90 -0
  50. data/spec/support/fixtures/responses/outages_page_1.json +55 -0
  51. data/spec/support/fixtures/responses/outages_page_2.json +55 -0
  52. data/spec/support/fixtures/responses/stack_changes_page_1.json +80 -0
  53. data/spec/support/fixtures/responses/stack_changes_page_2.json +80 -0
  54. data/spec/support/fixtures/responses/stack_changes_post.json +12 -0
  55. data/xcal-parktronic.gemspec +1 -1
  56. metadata +76 -2
@@ -0,0 +1,12 @@
1
+ {
2
+ "message":"Change event accepted.",
3
+ "stack_change":{
4
+ "id":23,
5
+ "ticket_id":"CHANGE-23",
6
+ "ticket_summary":"CHANGE 23 accepted",
7
+ "element":"STACK23",
8
+ "resolution_date":"2013-11-22T18:05:17.000Z",
9
+ "created_at":"2013-11-22T18:05:17.000Z",
10
+ "updated_at":"2013-12-12T13:59:17.492Z"
11
+ }
12
+ }
@@ -6,7 +6,7 @@ require 'xcal/parktronic/version'
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = 'xcal-parktronic'
8
8
  spec.version = Xcal::Parktronic::VERSION
9
- spec.authors = ['Max Reznichenko']
9
+ spec.authors = ['Vitaliy Omelchenko', 'Andrew Rudenko', 'Max Reznichenko']
10
10
  spec.email = ['max.reznichenko@gmail.com']
11
11
  spec.description = %q{OIV API gem}
12
12
  spec.summary = %q{Get easy access to the most OIV data}
metadata CHANGED
@@ -1,14 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xcal-parktronic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
+ - Vitaliy Omelchenko
8
+ - Andrew Rudenko
7
9
  - Max Reznichenko
8
10
  autorequire:
9
11
  bindir: bin
10
12
  cert_chain: []
11
- date: 2013-12-14 00:00:00.000000000 Z
13
+ date: 2014-01-29 00:00:00.000000000 Z
12
14
  dependencies:
13
15
  - !ruby/object:Gem::Dependency
14
16
  name: hashie
@@ -116,6 +118,7 @@ extensions: []
116
118
  extra_rdoc_files: []
117
119
  files:
118
120
  - .gitignore
121
+ - .travis.yml
119
122
  - Gemfile
120
123
  - LICENSE.txt
121
124
  - README.md
@@ -126,18 +129,59 @@ files:
126
129
  - lib/xcal/parktronic/generic_response.rb
127
130
  - lib/xcal/parktronic/routes.rb
128
131
  - lib/xcal/parktronic/routes/alarms.rb
132
+ - lib/xcal/parktronic/routes/command_notifications.rb
133
+ - lib/xcal/parktronic/routes/custom_queries.rb
134
+ - lib/xcal/parktronic/routes/event_history_items.rb
135
+ - lib/xcal/parktronic/routes/events.rb
136
+ - lib/xcal/parktronic/routes/metrics.rb
137
+ - lib/xcal/parktronic/routes/nested/alarm_actions.rb
138
+ - lib/xcal/parktronic/routes/nested/device_errors.rb
139
+ - lib/xcal/parktronic/routes/nested/events.rb
140
+ - lib/xcal/parktronic/routes/nested/metric_values.rb
141
+ - lib/xcal/parktronic/routes/outages.rb
142
+ - lib/xcal/parktronic/routes/stack_changes.rb
129
143
  - lib/xcal/parktronic/version.rb
130
144
  - spec/lib/xcal/parktronic/api_client_spec.rb
131
145
  - spec/lib/xcal/parktronic/generic_response_spec.rb
132
146
  - spec/lib/xcal/parktronic/routes/alarms_route_spec.rb
147
+ - spec/lib/xcal/parktronic/routes/command_notifications_routes_spec.rb
148
+ - spec/lib/xcal/parktronic/routes/event_history_items_routes_spec.rb
149
+ - spec/lib/xcal/parktronic/routes/events_route_spec.rb
133
150
  - spec/lib/xcal/parktronic/routes/metrics_routes_spec.rb
151
+ - spec/lib/xcal/parktronic/routes/nested/alarm_actions_spec.rb
152
+ - spec/lib/xcal/parktronic/routes/nested/events_spec.rb
153
+ - spec/lib/xcal/parktronic/routes/outages_routes_spec.rb
154
+ - spec/lib/xcal/parktronic/routes/stack_changes_routes_spec.rb
134
155
  - spec/spec_helper.rb
135
156
  - spec/support/api_mock.rb
136
157
  - spec/support/fixtures/responses/alarm.json
158
+ - spec/support/fixtures/responses/alarm_action.json
159
+ - spec/support/fixtures/responses/alarm_actions.json
160
+ - spec/support/fixtures/responses/alarm_events.json
161
+ - spec/support/fixtures/responses/alarm_post.json
162
+ - spec/support/fixtures/responses/alarm_tags.json
137
163
  - spec/support/fixtures/responses/alarms_page_1.json
138
164
  - spec/support/fixtures/responses/alarms_page_2.json
139
165
  - spec/support/fixtures/responses/alarms_post.json
166
+ - spec/support/fixtures/responses/command_notification.json
167
+ - spec/support/fixtures/responses/command_notifications.json
168
+ - spec/support/fixtures/responses/event.json
169
+ - spec/support/fixtures/responses/event_tags.json
170
+ - spec/support/fixtures/responses/events.json
171
+ - spec/support/fixtures/responses/events_history_page_1.json
172
+ - spec/support/fixtures/responses/events_history_page_2.json
140
173
  - spec/support/fixtures/responses/forbidden.json
174
+ - spec/support/fixtures/responses/metric.json
175
+ - spec/support/fixtures/responses/metric_device_errors.json
176
+ - spec/support/fixtures/responses/metric_metric_values.json
177
+ - spec/support/fixtures/responses/metric_post.json
178
+ - spec/support/fixtures/responses/metrics_page_1.json
179
+ - spec/support/fixtures/responses/metrics_page_2.json
180
+ - spec/support/fixtures/responses/outages_page_1.json
181
+ - spec/support/fixtures/responses/outages_page_2.json
182
+ - spec/support/fixtures/responses/stack_changes_page_1.json
183
+ - spec/support/fixtures/responses/stack_changes_page_2.json
184
+ - spec/support/fixtures/responses/stack_changes_post.json
141
185
  - xcal-parktronic.gemspec
142
186
  homepage: ''
143
187
  licenses:
@@ -167,11 +211,41 @@ test_files:
167
211
  - spec/lib/xcal/parktronic/api_client_spec.rb
168
212
  - spec/lib/xcal/parktronic/generic_response_spec.rb
169
213
  - spec/lib/xcal/parktronic/routes/alarms_route_spec.rb
214
+ - spec/lib/xcal/parktronic/routes/command_notifications_routes_spec.rb
215
+ - spec/lib/xcal/parktronic/routes/event_history_items_routes_spec.rb
216
+ - spec/lib/xcal/parktronic/routes/events_route_spec.rb
170
217
  - spec/lib/xcal/parktronic/routes/metrics_routes_spec.rb
218
+ - spec/lib/xcal/parktronic/routes/nested/alarm_actions_spec.rb
219
+ - spec/lib/xcal/parktronic/routes/nested/events_spec.rb
220
+ - spec/lib/xcal/parktronic/routes/outages_routes_spec.rb
221
+ - spec/lib/xcal/parktronic/routes/stack_changes_routes_spec.rb
171
222
  - spec/spec_helper.rb
172
223
  - spec/support/api_mock.rb
173
224
  - spec/support/fixtures/responses/alarm.json
225
+ - spec/support/fixtures/responses/alarm_action.json
226
+ - spec/support/fixtures/responses/alarm_actions.json
227
+ - spec/support/fixtures/responses/alarm_events.json
228
+ - spec/support/fixtures/responses/alarm_post.json
229
+ - spec/support/fixtures/responses/alarm_tags.json
174
230
  - spec/support/fixtures/responses/alarms_page_1.json
175
231
  - spec/support/fixtures/responses/alarms_page_2.json
176
232
  - spec/support/fixtures/responses/alarms_post.json
233
+ - spec/support/fixtures/responses/command_notification.json
234
+ - spec/support/fixtures/responses/command_notifications.json
235
+ - spec/support/fixtures/responses/event.json
236
+ - spec/support/fixtures/responses/event_tags.json
237
+ - spec/support/fixtures/responses/events.json
238
+ - spec/support/fixtures/responses/events_history_page_1.json
239
+ - spec/support/fixtures/responses/events_history_page_2.json
177
240
  - spec/support/fixtures/responses/forbidden.json
241
+ - spec/support/fixtures/responses/metric.json
242
+ - spec/support/fixtures/responses/metric_device_errors.json
243
+ - spec/support/fixtures/responses/metric_metric_values.json
244
+ - spec/support/fixtures/responses/metric_post.json
245
+ - spec/support/fixtures/responses/metrics_page_1.json
246
+ - spec/support/fixtures/responses/metrics_page_2.json
247
+ - spec/support/fixtures/responses/outages_page_1.json
248
+ - spec/support/fixtures/responses/outages_page_2.json
249
+ - spec/support/fixtures/responses/stack_changes_page_1.json
250
+ - spec/support/fixtures/responses/stack_changes_page_2.json
251
+ - spec/support/fixtures/responses/stack_changes_post.json