megam_api 0.33 → 0.34

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: 7e23211f08462d65c0de895ed7a5dcc43b12dde5
4
- data.tar.gz: 396e9831ae1362ceb83cd37fcec307060ade9d39
3
+ metadata.gz: 48d98b440aacee89bf589b95006d1319f8714a39
4
+ data.tar.gz: c1fcfa07672d7b294a1532b86d648145d1b568e0
5
5
  SHA512:
6
- metadata.gz: fc4bf07867408588694cc9ff6c40a2c77f4bb447a4c03aeba71abc90d3d3fff946894931c603c6d1f7357b3b550e7f1caf61f25399ab538174bc280a80748557
7
- data.tar.gz: 3b667a7d31a9cdfc49cc42bd9160a99ba19992b003d8a2c983e117a2cd3179cb9643ae110c3bcdb574c2006de34fa7d87ee173803632658c7fb97cc6243604de
6
+ metadata.gz: dab2ba21f6079e255f61e626e525a88fb091ce203192b93971fc4bf11cda36092e3ae8d743b30f022c267e24cf444f7c913ff795062ec7e73fe6c17041f0150b
7
+ data.tar.gz: f88093b0d63464417b3d9f6a803c0af334cf45b57aacf72b647467a08092596aa59881a09771382864ea4f109e0568844511e1cccc7c2be883a405e21e49ceb2
data/lib/megam/api.rb CHANGED
@@ -5,7 +5,6 @@ require "uri"
5
5
  require "zlib"
6
6
  require 'openssl'
7
7
  require 'yaml' #COMMON YML
8
-
9
8
  # open it up when needed. This will be needed when a new customer onboarded via pug.
10
9
  require "securerandom"
11
10
 
@@ -1,5 +1,5 @@
1
1
  module Megam
2
2
  class API
3
- VERSION = "0.33"
3
+ VERSION = "0.34"
4
4
  end
5
5
  end
@@ -47,6 +47,7 @@ module Megam
47
47
  @operations = {}
48
48
  @operation_type = nil
49
49
  @target_resource = nil
50
+ @others = []
50
51
  @created_at = nil
51
52
 
52
53
  super(email, api_key)
@@ -295,6 +296,14 @@ module Megam
295
296
  @target_resource
296
297
  end
297
298
  end
299
+
300
+ def others(arg=nil)
301
+ if arg != nil
302
+ @others = arg
303
+ else
304
+ @others
305
+ end
306
+ end
298
307
 
299
308
  def created_at(arg=nil)
300
309
  if arg != nil
@@ -321,6 +330,7 @@ module Megam
321
330
  index_hash["artifacts"] = artifacts
322
331
  index_hash["related_components"] = related_components
323
332
  index_hash["operations"] = operations
333
+ index_hash["others"] = others
324
334
  index_hash["created_at"] = created_at
325
335
  index_hash
326
336
  end
@@ -342,6 +352,7 @@ module Megam
342
352
  "artifacts" => artifacts,
343
353
  "related_components" => related_components,
344
354
  "operations" => operations,
355
+ "others" => others,
345
356
  "created_at" => created_at
346
357
  }
347
358
  result
@@ -388,7 +399,8 @@ module Megam
388
399
  ope = o["operations"]
389
400
  asm.operations[:operation_type] = ope["operation_type"] if ope && ope.has_key?("operation_type")
390
401
  asm.operations[:target_resource] = ope["target_resource"] if ope && ope.has_key?("target_resource")
391
-
402
+
403
+ asm.others(o["others"]) if o.has_key?("others")
392
404
  asm.created_at(o["created_at"]) if o.has_key?("created_at")
393
405
  asm
394
406
  end
@@ -409,6 +421,7 @@ module Megam
409
421
  @artifacts = o["artifacts"] if o.has_key?("artifacts")
410
422
  @related_components = o["related_components"] if o.has_key?("related_components")
411
423
  @operations = o["operations"] if o.has_key?("operations")
424
+ @others = o["others"] if o.has_key?("others")
412
425
  @created_at = o["created_at"] if o.has_key?("created_at")
413
426
  self
414
427
  end
@@ -45,6 +45,7 @@ class TestApps < MiniTest::Unit::TestCase
45
45
  "operation_type" => "",
46
46
  "target_resource" => ""
47
47
  },
48
+ "others" => [],
48
49
  "created_at" => "2014-10-29 14:06:39 +0000"
49
50
  }
50
51
  response = megams.update_component(tmp_hash)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: megam_api
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.33'
4
+ version: '0.34'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rajthilak, Kishorekumar Neelamegam, Thomas Alrin, Yeshwanth Kumar, Subash Sethurajan