megam_api 0.21 → 0.22
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/organizations.rb +7 -1
- data/test/test_organizations.rb +3 -1
- 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: 3467375fa08dc63c609b5eed5d8bfb802909db30
|
4
|
+
data.tar.gz: 588347a1fed3837f843a64e091b5003046d9194a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac270c67423b416c1dd629ba5d935d9017ff5b1e4bc2874e62d36ced26a20e5af7fa426d0d0f73222f71e5537f561348e75871cadab2732dff69cc6a342a4f60
|
7
|
+
data.tar.gz: 641bfcb0720e77772b11732afa8d19711f3e662c1cdf5f584013cfe664c103e18ce1be2eb31f606877d7dcf0f630a56937930eaf4acc95604222a47f0e2b0b8d
|
data/lib/megam/api/version.rb
CHANGED
@@ -125,7 +125,13 @@ def self.show(email,api_key=nil)
|
|
125
125
|
org.megam_rest.get_organizations(email)
|
126
126
|
end
|
127
127
|
|
128
|
-
|
128
|
+
def self.list(tmp_email=nil, tmp_api_key=nil)
|
129
|
+
org = self.new(tmp_email,tmp_api_key)
|
130
|
+
org.megam_rest.get_organizations
|
131
|
+
end
|
132
|
+
|
133
|
+
|
134
|
+
|
129
135
|
def create
|
130
136
|
megam_rest.post_organizations(to_hash)
|
131
137
|
end
|
data/test/test_organizations.rb
CHANGED
@@ -13,6 +13,8 @@ class TestOrganizations < MiniTest::Unit::TestCase
|
|
13
13
|
assert_equal(200, response.status)
|
14
14
|
end
|
15
15
|
|
16
|
+
=begin
|
17
|
+
|
16
18
|
|
17
19
|
def test_get_organizations_good
|
18
20
|
response =megams.get_organization(sandbox_name)
|
@@ -28,5 +30,5 @@ class TestOrganizations < MiniTest::Unit::TestCase
|
|
28
30
|
response.body.to_s
|
29
31
|
assert_equal(201, response.status)
|
30
32
|
end
|
31
|
-
|
33
|
+
=end
|
32
34
|
end
|
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.22'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kishorekumar Neelamegam, Thomas Alrin, Subash Sethurajan, Rajthilak
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10-
|
11
|
+
date: 2014-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: excon
|