megam_api 0.50 → 0.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 51c339062804a782ad14e595582a554ecb3f398f
4
- data.tar.gz: 38393e4e2c176d350be447aee3761565daff91e1
3
+ metadata.gz: 2190488497d9f4c3e3d06fed921715e63f354749
4
+ data.tar.gz: ac35a2d515f0a8cdbcb9cb680647e8b89d8c6e00
5
5
  SHA512:
6
- metadata.gz: 13faebc30d1a03835b4e903dd1bd851a585341c45f654c31cb28a1a2fc01d36b508c9729ede599a680b01be31b41d2608a403b791c18e09efb35fa7a2ebbd26f
7
- data.tar.gz: d4787ace7c526136bff0ff11f10674e95c1854e0dcfaae4db79d44564df5591a587001eb4e60f3bd37ee99dd7fa57940a48a832be9eb5fa542f44349b7604e22
6
+ metadata.gz: da5463e5e51f4d92c2b33ccb8b90bcb414e8465977b71971349af5d6b3b1ae18f34017f944449f0a2adfa6efe8f6fdd3138ba0828058be2daee19ae96bc25ef2
7
+ data.tar.gz: 3d13d853ebaa5368d88d0c6a633fd56da906430ed5b6a48686d047736ca27c33334b061499472550126d148f47cbbed59affbadc63669872fbf2c441fbf247f1
@@ -1,5 +1,5 @@
1
1
  module Megam
2
2
  class API
3
- VERSION = "0.50"
3
+ VERSION = "0.51"
4
4
  end
5
5
  end
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
- API_MEGAM_CO = "api.megam.co".freeze
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
- 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"))
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.co, a call to +get+ with 'nodes' will make an
29
- # HTTP GET request to http://api.megam.co/nodes using the email, api_key
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.50'
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-08 00:00:00.000000000 Z
11
+ date: 2015-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: excon