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 +4 -4
- data/lib/megam/api/version.rb +1 -1
- data/lib/megam/core/node.rb +5 -0
- data/test/test_nodes.rb +6 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9757fc9057a94efb7a7aa4ba8ddd78fc70b69fbb
|
4
|
+
data.tar.gz: ee01e1f309ecc0a567fe1c6e86cf6c615e88a09b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c53373a37b19b2e57673d92e0c0aa908b7ef18bf0b9747c78979c2c7c4d18d9b53e595fe469cf75d5d4445cf6957a32e033cf1817cd81256e768ff0a1c5d7f7
|
7
|
+
data.tar.gz: a7e70f0190b2f3624a4f1769c94e2dc3542f1262d7b47cd18342ff7d59ed99c809ae6cf16c1f8d37f55fe1106093d566995d4af4a85b1837951df543f0302330
|
data/lib/megam/api/version.rb
CHANGED
data/lib/megam/core/node.rb
CHANGED
@@ -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"+
|
data/test/test_nodes.rb
CHANGED
@@ -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
|
-
|
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.
|
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
|
+
date: 2013-11-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: excon
|