megam_api 0.50 → 0.51
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/api.rb +2 -2
- data/lib/megam/core/server_api.rb +2 -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: 2190488497d9f4c3e3d06fed921715e63f354749
|
4
|
+
data.tar.gz: ac35a2d515f0a8cdbcb9cb680647e8b89d8c6e00
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da5463e5e51f4d92c2b33ccb8b90bcb414e8465977b71971349af5d6b3b1ae18f34017f944449f0a2adfa6efe8f6fdd3138ba0828058be2daee19ae96bc25ef2
|
7
|
+
data.tar.gz: 3d13d853ebaa5368d88d0c6a633fd56da906430ed5b6a48686d047736ca27c33334b061499472550126d148f47cbbed59affbadc63669872fbf2c441fbf247f1
|
data/lib/megam/api/version.rb
CHANGED
data/lib/megam/api.rb
CHANGED
@@ -96,7 +96,7 @@ module Megam
|
|
96
96
|
#text is used to print stuff in the terminal (message, log, info, warn etc.)
|
97
97
|
attr_accessor :text
|
98
98
|
|
99
|
-
|
99
|
+
API_MEGAM_IO = "api.megam.io".freeze
|
100
100
|
API_VERSION2 = "/v2".freeze
|
101
101
|
|
102
102
|
X_Megam_DATE = "X-Megam-DATE".freeze
|
@@ -244,7 +244,7 @@ module Megam
|
|
244
244
|
else
|
245
245
|
Megam::Log.debug("Certificate found")
|
246
246
|
Excon.defaults[:ssl_verify_peer] = true
|
247
|
-
|
247
|
+
Excon.defaults[:ssl_ca_file] = File.expand_path(File.join("#{ENV['MEGAM_HOME']}", "#{@common["api"]["pub_key"]}")) || File.expand_path(File.join(File.dirname(__FILE__), "..", "certs", "cacert.pem"))
|
248
248
|
end
|
249
249
|
end
|
250
250
|
|
@@ -25,8 +25,8 @@ module Megam
|
|
25
25
|
|
26
26
|
# Create a Megam REST object. The supplied email and api_key is used as the base for
|
27
27
|
# all subsequent requests. For example, when initialized with an email, api_key url
|
28
|
-
# https://api.megam.
|
29
|
-
# HTTP GET request to
|
28
|
+
# https://api.megam.io, a call to +get+ with 'accounts' will make an
|
29
|
+
# HTTP GET request to https://api.megam.io/accounts using the email, api_key
|
30
30
|
def initialize(email=nil, api_key=nil)
|
31
31
|
@email = email
|
32
32
|
@api_key = api_key
|
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.51'
|
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-05-
|
11
|
+
date: 2015-05-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: excon
|