megam_api 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ccc2ae9264e6436a9b0666621ecb0879fe379bbe
4
- data.tar.gz: 19b6deaa2019753e93ca348f934d53b7f51a9349
3
+ metadata.gz: 9757fc9057a94efb7a7aa4ba8ddd78fc70b69fbb
4
+ data.tar.gz: ee01e1f309ecc0a567fe1c6e86cf6c615e88a09b
5
5
  SHA512:
6
- metadata.gz: 97e9b2e54332b48b800dbb251ac49042b57db17c999bb432836e603b5c3e960a55782046773b819fe0e8cf0f106fd5a1c7e6c2a9e82928262963e869e112d589
7
- data.tar.gz: ad3dcb46efc71642713bb190d9e502578e7b6815555ce6c63ee4ea2a54845a99e8f67fb64ee859e60b992e04bd98ecf1bd8b138eedea9c0eaaa6d9349dd93ee1
6
+ metadata.gz: 9c53373a37b19b2e57673d92e0c0aa908b7ef18bf0b9747c78979c2c7c4d18d9b53e595fe469cf75d5d4445cf6957a32e033cf1817cd81256e768ff0a1c5d7f7
7
+ data.tar.gz: a7e70f0190b2f3624a4f1769c94e2dc3542f1262d7b47cd18342ff7d59ed99c809ae6cf16c1f8d37f55fe1106093d566995d4af4a85b1837951df543f0302330
@@ -1,5 +1,5 @@
1
1
  module Megam
2
2
  class API
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
@@ -338,6 +338,11 @@ module Megam
338
338
  node.megam_rest.get_node(node_name)
339
339
  end
340
340
 
341
+ def self.list
342
+ node = self.new()
343
+ node.megam_rest.get_nodes
344
+ end
345
+
341
346
  def to_s
342
347
  Megam::Stuff.styled_hash(to_hash)
343
348
  #"---> Megam::Account:[error=#{error?}]\n"+
@@ -66,12 +66,16 @@ tmp_hash = {
66
66
  response = megams.post_node(tmp_hash)
67
67
  assert_equal(201, response.status)
68
68
  end
69
-
69
+ =end
70
70
  def test_get_nodes
71
71
  response = megams.get_nodes
72
+
73
+ puts "=================> GET NODES Response ========>"
74
+ puts response.inspect
75
+
72
76
  assert_equal(200, response.status)
73
77
  end
74
- =end
78
+
75
79
  def test_get_node0
76
80
  response = megams.get_node("black1.megam.co")
77
81
  puts "=================> Response ========>"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: megam_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kishorekumar Neelamegam, Thomas Alrin, Subash Sethurajan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-11 00:00:00.000000000 Z
11
+ date: 2013-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: excon