megam_api 0.32 → 0.33
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -0
- data/lib/megam/api/predef_clouds.rb +10 -0
- data/lib/megam/api/version.rb +1 -1
- data/lib/megam/core/predefcloud.rb +5 -0
- 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: 7e23211f08462d65c0de895ed7a5dcc43b12dde5
|
4
|
+
data.tar.gz: 396e9831ae1362ceb83cd37fcec307060ade9d39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc4bf07867408588694cc9ff6c40a2c77f4bb447a4c03aeba71abc90d3d3fff946894931c603c6d1f7357b3b550e7f1caf61f25399ab538174bc280a80748557
|
7
|
+
data.tar.gz: 3b667a7d31a9cdfc49cc42bd9160a99ba19992b003d8a2c983e117a2cd3179cb9643ae110c3bcdb574c2006de34fa7d87ee173803632658c7fb97cc6243604de
|
data/README.md
CHANGED
File without changes
|
@@ -20,6 +20,16 @@ module Megam
|
|
20
20
|
)
|
21
21
|
end
|
22
22
|
|
23
|
+
def delete_predefcloud(predefcloud_name)
|
24
|
+
@options = {:path => "/predefclouds/#{predefcloud_name}",:body => ""}.merge(@options)
|
25
|
+
|
26
|
+
request(
|
27
|
+
:expects => 200,
|
28
|
+
:method => :delete,
|
29
|
+
:body => @options[:body]
|
30
|
+
)
|
31
|
+
end
|
32
|
+
|
23
33
|
def post_predefcloud(new_predefcloud)
|
24
34
|
@options = {:path => '/predefclouds/content',
|
25
35
|
:body => Megam::JSONCompat.to_json(new_predefcloud)}.merge(@options)
|
data/lib/megam/api/version.rb
CHANGED
@@ -220,6 +220,11 @@ module Megam
|
|
220
220
|
pre.megam_rest.get_predefcloud(p_name)
|
221
221
|
end
|
222
222
|
|
223
|
+
def self.delete(p_name,tmp_email=nil, tmp_api_key=nil)
|
224
|
+
pre = self.new(tmp_email,tmp_api_key)
|
225
|
+
pre.megam_rest.delete_predefcloud(p_name)
|
226
|
+
end
|
227
|
+
|
223
228
|
def to_s
|
224
229
|
Megam::Stuff.styled_hash(to_hash)
|
225
230
|
#"---> Megam::Account:[error=#{error?}]\n"+
|
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.33'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rajthilak, Kishorekumar Neelamegam, Thomas Alrin, Yeshwanth Kumar, Subash Sethurajan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: excon
|