osc_ruby 0.2.0 → 0.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
2
  SHA1:
3
- metadata.gz: 0262af3d710018528271b39304094ca53663c9e2
4
- data.tar.gz: 1c7000c6df53b2bc4dfa45a6e65ff0356f182246
3
+ metadata.gz: d6f94c0e39eee367ce2ed2811ae2591a3ebe91bf
4
+ data.tar.gz: 3d3d0246225077d1a2089844a407d3f31dae51df
5
5
  SHA512:
6
- metadata.gz: ab15d881832e339d67857eec0129bb5416b79f8822c8f5d7fad3b0b4998db89d300da41337cbf311b0432edd23949ea8caa46b90cacf2e013e96b89e419ef77c
7
- data.tar.gz: be2146f1137e001348c636dab826f08c8a3d4963e0da2392a52e993394ae8958085dc6d20ed3be68f9f5968428d6c017a1f5319ecee02d9b0e3e6b24a0b976dc
6
+ metadata.gz: 8a7e3f17d1c8674716e8a3f8a7962d4c9d894a77da731b1b2d4765ac0682bb4ba56555e853be0fa04fcd885cdaa5754acad86b771e380bb1b4f2faadebe3d161
7
+ data.tar.gz: ba527034f663c100a58c42d0b97c79479ef3a9f5984c35e03ae87a3aafc574e0cb50f2f76e1789537bb23b943abf2a69b3769a9bb825a1d648b1d080709f94d0
data/.travis.yml CHANGED
@@ -1,7 +1,6 @@
1
1
  language: ruby
2
2
  rvm:
3
3
  - 2.2.0
4
- - jruby
5
4
  addons:
6
5
  code_climate:
7
6
  repo_token:
data/README.md CHANGED
@@ -14,8 +14,11 @@ The create, update, and destroy methods should work on any version of Oracle Ser
14
14
 
15
15
  Currently supporting the following objects:
16
16
 
17
- **ServiceProduct**
18
- **Answer** (only new, create, and find methods supported as of 1/11)
17
+ ServiceProduct
18
+
19
+ ServiceCategory
20
+
21
+ Answer
19
22
 
20
23
  At this time, subclasses such as ServiceProduct.CategoryLinks are not currently supported.
21
24
 
File without changes
@@ -0,0 +1,214 @@
1
+ require 'osc_ruby/client'
2
+ require 'osc_ruby/query_module'
3
+ require 'osc_ruby/validations_module'
4
+ require 'osc_ruby/class_factory_module'
5
+ require 'json'
6
+ require 'uri'
7
+
8
+ module OSCRuby
9
+
10
+ class ServiceCategory
11
+
12
+ include QueryModule
13
+ include ValidationsModule
14
+ include ClassFactoryModule
15
+
16
+ attr_accessor :names,:parent,:displayOrder,:adminVisibleInterfaces,:endUserVisibleInterfaces,:id,:lookupName,:createdTime,:updatedTime,:name
17
+
18
+ def initialize(attributes = nil)
19
+
20
+ @names = []
21
+ @adminVisibleInterfaces = []
22
+ @endUserVisibleInterfaces = []
23
+
24
+ if attributes.nil?
25
+
26
+ @parent = {}
27
+ @displayOrder = 1
28
+
29
+ else
30
+
31
+ @id = attributes["id"]
32
+ @lookupName = attributes["lookupName"]
33
+ @createdTime = attributes["createdTime"]
34
+ @updatedTime = attributes["updatedTime"]
35
+ @displayOrder = attributes["displayOrder"]
36
+ @name = attributes["name"]
37
+ @parent = attributes["parent"]
38
+
39
+ end
40
+
41
+ end
42
+
43
+
44
+ def create(client,return_json = false)
45
+
46
+ ClassFactoryModule.create(client,self,"/serviceCategories",return_json)
47
+
48
+ end
49
+
50
+
51
+ def self.find(client,id = nil,return_json = false)
52
+
53
+ ClassFactoryModule.find(client,id,'serviceCategories',return_json,OSCRuby::ServiceCategory)
54
+
55
+ end
56
+
57
+
58
+ def self.all(client, return_json = false)
59
+
60
+ ClassFactoryModule.all(client,'serviceCategories',return_json,OSCRuby::ServiceCategory)
61
+
62
+ end
63
+
64
+
65
+ def self.where(client, query = '', return_json = false)
66
+
67
+ ClassFactoryModule.where(client,query,'serviceCategories',return_json,OSCRuby::ServiceCategory)
68
+
69
+ end
70
+
71
+
72
+ def update(client, return_json = false)
73
+
74
+ ClassFactoryModule::update(client,self,"serviceCategories",return_json)
75
+
76
+ end
77
+
78
+
79
+ def destroy(client, return_json = false)
80
+
81
+ ClassFactoryModule.destroy(client,self,'serviceCategories',return_json)
82
+
83
+ end
84
+
85
+
86
+
87
+
88
+ # Convenience Methods for making the CRUD operations nicer to use
89
+
90
+ def set_attributes(response_body)
91
+
92
+ self.id = response_body["id"]
93
+
94
+ self.name = response_body["lookupName"]
95
+
96
+ self.lookupName = response_body["lookupName"]
97
+
98
+ self.displayOrder = response_body["displayOrder"]
99
+
100
+ if !response_body["parent"].nil?
101
+
102
+ self.parent = response_body["parent"]["links"][0]["href"].split('/').pop.to_i
103
+
104
+ else
105
+
106
+ self.parent = nil
107
+
108
+ end
109
+
110
+ end
111
+
112
+ def update_attributes(updated_category)
113
+
114
+ self.lookupName = updated_category.lookupName
115
+
116
+ self.createdTime = updated_category.createdTime
117
+
118
+ self.updatedTime = updated_category.updatedTime
119
+
120
+ self.name = updated_category.name
121
+
122
+ self.parent = updated_category.parent
123
+
124
+ end
125
+
126
+ def self.check_self(obj,is_update = false)
127
+
128
+ obj_attrs = ValidationsModule::extract_attributes(obj)
129
+
130
+ obj_attrs = check_interfaces(obj_attrs)
131
+
132
+ if is_update == true
133
+
134
+ obj_attrs = remove_unused_new_attrs(obj_attrs)
135
+
136
+ else
137
+
138
+ obj_attrs = check_for_names(obj_attrs)
139
+
140
+ obj_attrs = check_for_parents(obj_attrs)
141
+
142
+ end
143
+
144
+ obj_attrs
145
+
146
+ end
147
+
148
+ def self.check_for_names(obj_attrs)
149
+
150
+ if obj_attrs[0]['names'].count == 0 || obj_attrs[0]['names'][0]['labelText'].nil? || obj_attrs[0]['names'][0]['language'].nil?
151
+
152
+ raise ArgumentError, 'ServiceCategory should at least have one name set (new_service_category.names[0] = {"labelText" => "QTH45-test", "language" => {"id" => 1}} )'
153
+
154
+ end
155
+
156
+ obj_attrs
157
+
158
+ end
159
+
160
+ def self.check_for_parents(obj_attrs)
161
+
162
+ if !obj_attrs[0]['parent'].nil? && obj_attrs[0]['parent'].is_a?(Hash) && !obj_attrs[0]['parent'].key?('id') && !obj_attrs[0]['parent'].key?('lookupName')
163
+
164
+ obj_attrs[0].delete('parent')
165
+
166
+ end
167
+
168
+ obj_attrs
169
+
170
+ end
171
+
172
+ def self.remove_unused_new_attrs(obj_attrs)
173
+
174
+ obj_attrs[0].delete('id')
175
+
176
+ obj_attrs[0].delete('lookupName')
177
+
178
+ obj_attrs[0].delete('createdTime')
179
+
180
+ obj_attrs[0].delete('updatedTime')
181
+
182
+ obj_attrs[0].delete('name')
183
+
184
+ if !obj_attrs[0]['parent'].nil?
185
+
186
+ obj_attrs[0].delete('parent')
187
+
188
+ end
189
+
190
+ obj_attrs
191
+
192
+ end
193
+
194
+ def self.check_interfaces(empty_arr)
195
+
196
+ if empty_arr[0]['adminVisibleInterfaces'].empty?
197
+
198
+ empty_arr[0].delete('adminVisibleInterfaces')
199
+
200
+ end
201
+
202
+ if empty_arr[0]['endUserVisibleInterfaces'].empty?
203
+
204
+ empty_arr[0].delete('endUserVisibleInterfaces')
205
+
206
+ end
207
+
208
+ empty_arr
209
+
210
+ end
211
+
212
+ end
213
+
214
+ end
@@ -1,3 +1,3 @@
1
1
  module OSCRuby
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
data/lib/osc_ruby.rb CHANGED
@@ -3,4 +3,5 @@ module OSCRuby; end
3
3
  require 'osc_ruby/client'
4
4
  require 'osc_ruby/connect'
5
5
  require 'osc_ruby/service_product'
6
+ require 'osc_ruby/service_category'
6
7
  require 'osc_ruby/answer'
@@ -0,0 +1,441 @@
1
+ require 'core/spec_helper'
2
+ require 'json'
3
+ require 'uri'
4
+
5
+ describe OSCRuby::ServiceCategory do
6
+
7
+ let(:service_category){
8
+
9
+ OSCRuby::ServiceCategory.new
10
+
11
+ }
12
+
13
+ context '#initialize' do
14
+
15
+ it 'should not throw an error when initialized' do
16
+
17
+ expect{service_category}.not_to raise_error
18
+
19
+ end
20
+
21
+ it 'should initialize with names being an array; parent is an empty hash;
22
+ displayOrder is 1; adminVisibleInterfaces is an empty array; and endUserVisibleInterfaces is an empty array' do
23
+
24
+ expect(service_category.names).to eq([])
25
+
26
+ expect(service_category.parent).to eq({})
27
+
28
+ expect(service_category.displayOrder).to eq(1)
29
+
30
+ expect(service_category.adminVisibleInterfaces).to eq([])
31
+
32
+ expect(service_category.endUserVisibleInterfaces).to eq([])
33
+
34
+ end
35
+
36
+ end
37
+
38
+ # let(:attributes){
39
+ # {'id' => 1,
40
+ # 'lookupName' => 'Test category Lookup Name',
41
+ # 'createdTime'=>nil,
42
+ # 'updatedTime'=>nil,
43
+ # 'displayOrder'=>1,
44
+ # 'name'=>'Test Product Lookup Name',
45
+ # 'parent' => nil
46
+ # }
47
+ # }
48
+
49
+ # context '#new_from_fetch' do
50
+
51
+ # it 'should accept an attributes as a hash' do
52
+
53
+ # expect do
54
+
55
+ # attributes = []
56
+
57
+ # OSCRuby::ServiceCategory.new_from_fetch(attributes)
58
+
59
+ # end.to raise_error("Attributes must be a hash; please use the appropriate data structure")
60
+
61
+ # expect do
62
+
63
+ # OSCRuby::ServiceCategory.new_from_fetch(attributes)
64
+
65
+ # end.not_to raise_error
66
+
67
+ # end
68
+
69
+ # it 'should instantiate an id, lookupName, createdTime, updatedTime, displayOrder, name, and parent with the correct values' do
70
+
71
+ # test = OSCRuby::ServiceCategory.new_from_fetch(attributes)
72
+
73
+ # expect(test.id).to eq(1)
74
+
75
+ # expect(test.lookupName).to eq('Test Product Lookup Name')
76
+
77
+ # expect(test.createdTime).to eq(nil)
78
+
79
+ # expect(test.updatedTime).to eq(nil)
80
+
81
+ # expect(test.displayOrder).to eq(1)
82
+
83
+ # expect(test.name).to eq('Test Product Lookup Name')
84
+
85
+ # expect(test.name).to eq(test.lookupName)
86
+
87
+ # expect(test.parent).to eq(nil)
88
+
89
+ # end
90
+
91
+ # end
92
+
93
+ let(:client) {
94
+
95
+ OSCRuby::Client.new do |config|
96
+
97
+ config.interface = ENV['OSC_TEST_SITE']
98
+
99
+ config.username = ENV['OSC_ADMIN']
100
+
101
+ config.password = ENV['OSC_PASSWORD']
102
+
103
+ end
104
+ }
105
+
106
+ let(:new_service_category){
107
+ OSCRuby::ServiceCategory.new
108
+ }
109
+
110
+ context '#create' do
111
+
112
+ it 'should expect client is an instance of OSCRuby::Client class and raise an error if does not' do
113
+
114
+ expect(client).to be_an(OSCRuby::Client)
115
+
116
+ client = nil
117
+
118
+ expect{new_service_category.create(client)}.to raise_error('Client must have some configuration set; please create an instance of OSCRuby::Client with configuration settings')
119
+
120
+ end
121
+
122
+ it 'should check the object and make sure that it at least has a name set' do
123
+
124
+ expect{new_service_category.create(client)}.to raise_error('ServiceCategory should at least have one name set (new_service_category.names[0] = {"labelText" => "QTH45-test", "language" => {"id" => 1}} )')
125
+
126
+ end
127
+
128
+ it 'should expect the name in a hash as the value of the labelText key' do
129
+
130
+ new_service_category.names[0] = "new category name"
131
+
132
+ expect{new_service_category.create(client)}.to raise_error('ServiceCategory should at least have one name set (new_service_category.names[0] = {"labelText" => "QTH45-test", "language" => {"id" => 1}} )')
133
+
134
+ end
135
+
136
+ it 'should expect a language => id key pair within the hash' do
137
+
138
+ new_service_category.names[0] = {"labelText" => "New Category"}
139
+
140
+ expect{new_service_category.create(client)}.to raise_error('ServiceCategory should at least have one name set (new_service_category.names[0] = {"labelText" => "QTH45-test", "language" => {"id" => 1}} )')
141
+
142
+ end
143
+
144
+ it 'should return an instance of an OSCRuby::ServiceCategory if the json_response param is set to false (which it is by default)', :vcr do
145
+
146
+ new_service_category.names[0] = {"labelText" => "TEST-CATEGORY", "language" => {"id" => 1}}
147
+ new_service_category.names[1] = {"labelText" => "TEST-CATEGORY", "language" => {"id" => 11}}
148
+
149
+ new_service_category.parent = {'id' => 6}
150
+
151
+ new_service_category.displayOrder = 1
152
+
153
+ new_service_category.create(client)
154
+
155
+ expect(new_service_category).to be_a(OSCRuby::ServiceCategory)
156
+
157
+ expect(new_service_category.name).to eq("TEST-CATEGORY")
158
+
159
+ expect(new_service_category.lookupName).to eq("TEST-CATEGORY")
160
+
161
+ expect(new_service_category.displayOrder).to eq(1)
162
+
163
+ end
164
+
165
+
166
+ it 'should return the body object if the json_response param is set to true', :vcr do
167
+
168
+ new_service_category.displayOrder = 11
169
+
170
+ new_service_category.parent = {'id' => 6}
171
+
172
+ new_service_category.names[0] = {"labelText" => "TEST-CATEGORY", "language" => {"id" => 1}}
173
+ new_service_category.names[1] = {'labelText' => 'TEST-CATEGORY', 'language' => {'id' => 11}}
174
+
175
+ expect(new_service_category.create(client,true)).to be_a(String)
176
+
177
+ end
178
+
179
+ end
180
+
181
+ context '#find' do
182
+
183
+ it 'should expect client is an instance of OSCRuby::Client class and raise an error if does not' do
184
+
185
+ expect(client).to be_an(OSCRuby::Client)
186
+
187
+ client = nil
188
+
189
+ expect{OSCRuby::ServiceCategory.find(client,6)}.to raise_error('Client must have some configuration set; please create an instance of OSCRuby::Client with configuration settings')
190
+
191
+ end
192
+
193
+ it 'should raise an error if ID is undefined' do
194
+
195
+ expect{OSCRuby::ServiceCategory.find(client)}.to raise_error('ID cannot be nil')
196
+
197
+ end
198
+
199
+ it 'should raise an error if ID is not an integer' do
200
+
201
+ expect{OSCRuby::ServiceCategory.find(client, 'a')}.to raise_error('ID must be an integer')
202
+
203
+ end
204
+
205
+ it 'should return a warning if empty/no instances of the object can be found', :vcr do
206
+
207
+ expect{OSCRuby::ServiceCategory.find(client, 1)}.to raise_error('There were no objects matching your query; please try again.')
208
+
209
+ end
210
+
211
+
212
+ it 'should return an instance of a new OSCRuby::ServiceCategory object with at least a name and displayOrder', :vcr do
213
+
214
+ known_working_category = OSCRuby::ServiceCategory.find(client, 6)
215
+
216
+ expect(known_working_category).to be_an(OSCRuby::ServiceCategory)
217
+
218
+ expect(known_working_category.name).to eq('Manuals & Guides')
219
+
220
+ expect(known_working_category.displayOrder).to eq(2)
221
+
222
+ end
223
+
224
+ it 'should return the raw json response if the return_json parameter is set to true', :vcr do
225
+
226
+ known_working_category_in_json = OSCRuby::ServiceCategory.find(client, 6, true)
227
+
228
+ expect(known_working_category_in_json).to be_an(String)
229
+
230
+ end
231
+
232
+ end
233
+
234
+ context '#all' do
235
+
236
+ it 'should expect client is an instance of OSCRuby::Client class and raise an error if does not' do
237
+
238
+ expect(client).to be_an(OSCRuby::Client)
239
+
240
+ client = nil
241
+
242
+ expect{OSCRuby::ServiceCategory.all(client)}.to raise_error('Client must have some configuration set; please create an instance of OSCRuby::Client with configuration settings')
243
+
244
+ end
245
+
246
+ it 'should return multiple instances of OSCRuby::ServiceCategory', :vcr do
247
+
248
+ categories = OSCRuby::ServiceCategory.all(client)
249
+
250
+ expect(categories.size).to be > 0
251
+
252
+ # puts "Checking if OSCRuby::ServiceCategory.all produces multiple instances of categories"
253
+
254
+ categories.each_with_index do |p,i|
255
+
256
+ if i < 10
257
+
258
+ expect(p).to be_an(OSCRuby::ServiceCategory)
259
+
260
+ # puts p.name
261
+
262
+ end
263
+
264
+ end
265
+
266
+ end
267
+
268
+ it 'should just return JSON if the return_json parameter is set to true', :vcr do
269
+
270
+ expect(OSCRuby::ServiceCategory.all(client,true)).to be_a(String)
271
+
272
+ end
273
+
274
+ end
275
+
276
+ context '#where' do
277
+
278
+ it 'should expect client is an instance of OSCRuby::Client class and raise an error if does not' do
279
+
280
+ expect(client).to be_an(OSCRuby::Client)
281
+
282
+ client = nil
283
+
284
+ expect{OSCRuby::ServiceCategory.where(client,'query')}.to raise_error('Client must have some configuration set; please create an instance of OSCRuby::Client with configuration settings')
285
+
286
+ end
287
+
288
+ it 'should raise an error if there is no query' do
289
+
290
+ expect{OSCRuby::ServiceCategory.where(client)}.to raise_error('A query must be specified when using the "where" method')
291
+
292
+ end
293
+
294
+ it 'should take a query and return results', :vcr do
295
+
296
+ categories_lvl_1 = OSCRuby::ServiceCategory.where(client,"parent is null and lookupname not like 'Unsure'")
297
+
298
+ expect(categories_lvl_1.count).to be > 0
299
+
300
+ categories_lvl_1.each_with_index do |p,i|
301
+
302
+ if i < 10
303
+
304
+ expect(p).to be_an(OSCRuby::ServiceCategory)
305
+
306
+ # puts p.name
307
+
308
+ end
309
+
310
+ end
311
+
312
+ end
313
+
314
+ it 'should raise an error if the query returns 0 results', :vcr do
315
+
316
+ expect{OSCRuby::ServiceCategory.where(client,"parent = 6546546546546")}.to raise_error('There were no objects matching your query; please try again.')
317
+
318
+ end
319
+
320
+ it 'should just return JSON if the return_json parameter is set to true', :vcr do
321
+
322
+ parents = OSCRuby::ServiceCategory.where(client,"parent is null and lookupname not like 'Unsure'",true)
323
+
324
+ expect(parents).to be_a(String)
325
+
326
+ # puts parents
327
+
328
+ end
329
+
330
+ end
331
+
332
+
333
+
334
+ context '#update' do
335
+
336
+ it 'should expect client is an instance of OSCRuby::Client class and raise an error if does not', :vcr do
337
+
338
+ known_working_category = OSCRuby::ServiceCategory.find(client, 6)
339
+
340
+ expect(client).to be_an(OSCRuby::Client)
341
+
342
+ client = nil
343
+
344
+ expect{known_working_category.update(client)}.to raise_error('Client must have some configuration set; please create an instance of OSCRuby::Client with configuration settings')
345
+
346
+ end
347
+
348
+ it 'should expect that the Service Category is an instance of a OSCRuby::ServiceCategory', :vcr do
349
+
350
+ known_working_category = OSCRuby::ServiceCategory.find(client, 6)
351
+
352
+ expect(known_working_category).to be_an(OSCRuby::ServiceCategory)
353
+
354
+ end
355
+
356
+ it 'should expect that the category has an ID and spit out an error if it does not', :vcr do
357
+
358
+ known_working_category = OSCRuby::ServiceCategory.find(client, 6)
359
+
360
+ known_working_category.id = nil
361
+
362
+ expect{known_working_category.destroy(client)}.to raise_error('OSCRuby::ServiceCategory must have a valid ID set')
363
+
364
+ end
365
+
366
+ it 'should update name when the names is updated', :vcr do
367
+
368
+ test_prods = OSCRuby::ServiceCategory.where(client,"name like 'TEST-CATEGORY'")
369
+ first_prod = test_prods[0]
370
+
371
+ first_prod.names[0] = {"labelText" => "TEST-CATEGORY-UPDATED", "language" => {"id" => 1}}
372
+
373
+ first_prod.update(client)
374
+
375
+ expect(first_prod.name).to eq('TEST-CATEGORY-UPDATED')
376
+
377
+ end
378
+
379
+ it 'should just return JSON if the return_json parameter is set to true', :vcr do
380
+
381
+ known_working_category = OSCRuby::ServiceCategory.find(client, 6)
382
+
383
+ test = known_working_category.update(client,true)
384
+
385
+ expect(test).to be_a(String)
386
+
387
+ end
388
+
389
+ end
390
+
391
+ context '#destroy' do
392
+
393
+ it 'should expect client is an instance of OSCRuby::Client class and raise an error if does not', :vcr do
394
+
395
+ test_prods = OSCRuby::ServiceCategory.where(client,"name like 'TEST-CATEGORY-UPDATED'")
396
+ category_to_delete = test_prods[0]
397
+
398
+ expect(client).to be_an(OSCRuby::Client)
399
+
400
+ client = nil
401
+
402
+ expect{category_to_delete.destroy(client)}.to raise_error('Client must have some configuration set; please create an instance of OSCRuby::Client with configuration settings')
403
+
404
+ end
405
+
406
+ it 'should expect that the Service Category is an instance of a OSCRuby::ServiceCategory', :vcr do
407
+
408
+ test_prods = OSCRuby::ServiceCategory.where(client,"name like 'TEST-CATEGORY-UPDATED'")
409
+ category_to_delete = test_prods[0]
410
+
411
+ expect(category_to_delete).to be_an(OSCRuby::ServiceCategory)
412
+
413
+ end
414
+
415
+ it 'should expect that the category has an ID and spit out an error if it does not', :vcr do
416
+
417
+ test_prods = OSCRuby::ServiceCategory.where(client,"name like 'TEST-CATEGORY-UPDATED'")
418
+ category_to_delete = test_prods[0]
419
+
420
+ category_to_delete.id = nil
421
+
422
+ expect{category_to_delete.destroy(client)}.to raise_error('OSCRuby::ServiceCategory must have a valid ID set')
423
+
424
+ end
425
+
426
+ it 'should delete the category', :vcr do
427
+
428
+ test_prods = OSCRuby::ServiceCategory.where(client,"name like 'TEST-CATEGORY-UPDATED'")
429
+ category_to_delete = test_prods[0]
430
+
431
+ id_to_find = category_to_delete.id
432
+
433
+ category_to_delete.destroy(client)
434
+
435
+ expect{OSCRuby::ServiceCategory.find(client, id_to_find)}.to raise_error('There were no objects matching your query; please try again.')
436
+
437
+ end
438
+
439
+ end
440
+
441
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: osc_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rajan Davis
@@ -146,7 +146,9 @@ files:
146
146
  - lib/osc_ruby/client.rb
147
147
  - lib/osc_ruby/configuration.rb
148
148
  - lib/osc_ruby/connect.rb
149
+ - lib/osc_ruby/incident.rb
149
150
  - lib/osc_ruby/query_module.rb
151
+ - lib/osc_ruby/service_category.rb
150
152
  - lib/osc_ruby/service_product.rb
151
153
  - lib/osc_ruby/validations_module.rb
152
154
  - lib/osc_ruby/version.rb
@@ -155,6 +157,7 @@ files:
155
157
  - spec/core/client_spec.rb
156
158
  - spec/core/configuration_spec.rb
157
159
  - spec/core/connect_spec.rb
160
+ - spec/core/service_category_spec.rb
158
161
  - spec/core/service_product_spec.rb
159
162
  - spec/core/spec_helper.rb
160
163
  - tasks/rspec.rake
@@ -187,6 +190,7 @@ test_files:
187
190
  - spec/core/client_spec.rb
188
191
  - spec/core/configuration_spec.rb
189
192
  - spec/core/connect_spec.rb
193
+ - spec/core/service_category_spec.rb
190
194
  - spec/core/service_product_spec.rb
191
195
  - spec/core/spec_helper.rb
192
196
  has_rdoc: