megam_api 0.77 → 0.78

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8425f7c1d458f71a142ce97114a8530e4fed4336
4
- data.tar.gz: ff54ea8456f042cf79616c70ef34307135463c78
3
+ metadata.gz: 51eceb4ec1ff92180ac4592a24064baa2547fdad
4
+ data.tar.gz: 7dec9a0156625550f4701034794eae62347ccb7f
5
5
  SHA512:
6
- metadata.gz: 755d8b9d59fa9ff9a085c3aaf0b570027d9e858efe69b939f7c7235391d84694ea76b0601f37e84fe65a01eb5bba8a95632d321034b6651d6be83db8fc43ec6d
7
- data.tar.gz: 69483f9bf6ac8a348f03e6a5897cc5a0926864f75ab1be1d27c183fd5bab38fe2d11edfa2ad5a083a5736fd2838a29ed98615ce8db431b61d6bd9213b600d4d9
6
+ metadata.gz: 5740d0d62c5c306999b2ee28c4081e2186e9a96d8fb494ebcb815227b3db9777f895eb202af7e457db6d103c5957408bf8eae19b083eedad7560dd4023e0902d
7
+ data.tar.gz: e8cb2cecfce4bd4bab33a52aefe6647c6e0f07c7011d4bb00d852633c50f0a795193ca30b8a4b602a5fe5b17117da30de6fc0d8a7a5bfc90d23a2da29c47b0ab
@@ -1,5 +1,5 @@
1
1
  module Megam
2
2
  class API
3
- VERSION = "0.77"
3
+ VERSION = "0.78"
4
4
  end
5
5
  end
@@ -20,52 +20,52 @@ module Megam
20
20
  class JSONCompat
21
21
  JSON_MAX_NESTING = 1000
22
22
 
23
- JSON_CLAZ = "json_claz".freeze
24
-
25
- MEGAM_ACCOUNT = "Megam::Account".freeze
26
- MEGAM_ASSEMBLIES = "Megam::Assemblies".freeze
27
- MEGAM_ASSEMBLIESCOLLECTION = "Megam::AssembliesCollection".freeze
28
- MEGAM_ASSEMBLY = "Megam::Assembly".freeze
29
- MEGAM_ASSEMBLYCOLLECTION = "Megam::AssemblyCollection".freeze
30
- MEGAM_AUTH = "Megam::Auth".freeze
31
- MEGAM_AVAILABLEUNITS = "Megam::Availableunits".freeze
32
- MEGAM_AVAILABLEUNITSCOLLECTION = "Megam::AvailableunitsCollection".freeze
33
- MEGAM_BALANCES = "Megam::Balances".freeze
34
- MEGAM_BALANCESCOLLECTION = "Megam::BalancesCollection".freeze
35
- MEGAM_BILLEDHISTORIES = "Megam::Billedhistories".freeze
36
- MEGAM_BILLEDHISTORIESCOLLECTION = "Megam::BilledhistoriesCollection".freeze
37
- MEGAM_INVOICESCOLLECTION = "Megam::InvoicesCollection".freeze
38
- MEGAM_INVOICES = "Megam::Invoices".freeze
39
- MEGAM_BILLINGSCOLLECTION = "Megam::BillingsCollection".freeze
40
- MEGAM_CLOUDTOOLSETTING = "Megam::CloudToolSetting".freeze
41
- MEGAM_CLOUDTOOLSETTINGCOLLECTION = "Megam::CloudToolSettingCollection".freeze
42
- MEGAM_COMPONENTS = "Megam::Components".freeze
43
- MEGAM_COMPONENTSCOLLECTION = "Megam::ComponentsCollection".freeze
44
- MEGAM_CREDITHISTORIES = "Megam::Credithistories".freeze
45
- MEGAM_CREDITHISTORIESCOLLECTION = "Megam::CredithistoriesCollection".freeze
46
- MEGAM_CSAR = "Megam::CSAR".freeze
47
- MEGAM_CSARCOLLECTION = "Megam::CSARCollection".freeze
48
- MEGAM_DOMAIN = "Megam::Domains".freeze
49
- MEGAM_DISCOUNTS = "Megam::Discounts".freeze
50
- MEGAM_DISCOUNTSCOLLECTION = "Megam::DiscountsCollection".freeze
51
- MEGAM_ERROR = "Megam::Error".freeze
52
- MEGAM_SENSORS = "Megam::Sensors".freeze
53
- MEGAM_SENSORSCOLLECTION = "Megam::SensorsCollection".freeze
54
- MEGAM_MARKETPLACE = "Megam::MarketPlace".freeze
55
- MEGAM_MARKETPLACECOLLECTION = "Megam::MarketPlaceCollection".freeze
56
- MEGAM_MARKETPLACEADDON = "Megam::MarketPlaceAddons".freeze
57
- MEGAM_MARKETPLACEADDONCOLLECTION = "Megam::MarketPlaceAddonsCollection".freeze
58
- MEGAM_ORGANIZATION = "Megam::Organizations".freeze
59
- MEGAM_ORGANIZATIONSCOLLECTION = "Megam::OrganizationsCollection".freeze
60
- MEGAM_REQUEST = "Megam::Request".freeze
61
- MEGAM_REQUESTCOLLECTION = "Megam::RequestCollection".freeze
62
- MEGAM_SSHKEY = "Megam::SshKey".freeze
63
- MEGAM_SSHKEYCOLLECTION = "Megam::SshKeyCollection".freeze
64
- MEGAM_SUBSCRIPTIONS = "Megam::Subscriptions".freeze
65
- MEGAM_SUBSCRIPTIONSCOLLECTION = "Megam::SubscriptionsCollection".freeze
66
- MEGAM_PROMOS = "Megam::Promos".freeze
67
-
68
23
 
24
+ JSON_CLAZ = 'json_claz'.freeze
25
+
26
+ MEGAM_ACCOUNT = 'Megam::Account'.freeze
27
+ MEGAM_ASSEMBLIES = 'Megam::Assemblies'.freeze
28
+ MEGAM_ASSEMBLIESCOLLECTION = 'Megam::AssembliesCollection'.freeze
29
+ MEGAM_ASSEMBLY = 'Megam::Assembly'.freeze
30
+ MEGAM_ASSEMBLYCOLLECTION = 'Megam::AssemblyCollection'.freeze
31
+ MEGAM_AUTH = 'Megam::Auth'.freeze
32
+ MEGAM_AVAILABLEUNITS = 'Megam::Availableunits'.freeze
33
+ MEGAM_AVAILABLEUNITSCOLLECTION = 'Megam::AvailableunitsCollection'.freeze
34
+ MEGAM_BALANCES = 'Megam::Balances'.freeze
35
+ MEGAM_BALANCESCOLLECTION = 'Megam::BalancesCollection'.freeze
36
+ MEGAM_BILLEDHISTORIES = 'Megam::Billedhistories'.freeze
37
+ MEGAM_BILLEDHISTORIESCOLLECTION = 'Megam::BilledhistoriesCollection'.freeze
38
+ MEGAM_INVOICESCOLLECTION = 'Megam::InvoicesCollection'.freeze
39
+ MEGAM_INVOICES = 'Megam::Invoices'.freeze
40
+ MEGAM_BILLINGS = 'Megam::Billings'.freeze
41
+ MEGAM_BILLINGSCOLLECTION = 'Megam::BillingsCollection'.freeze
42
+ MEGAM_CLOUDTOOLSETTING = 'Megam::CloudToolSetting'.freeze
43
+ MEGAM_CLOUDTOOLSETTINGCOLLECTION = 'Megam::CloudToolSettingCollection'.freeze
44
+ MEGAM_COMPONENTS = 'Megam::Components'.freeze
45
+ MEGAM_COMPONENTSCOLLECTION = 'Megam::ComponentsCollection'.freeze
46
+ MEGAM_CREDITHISTORIES = 'Megam::Credithistories'.freeze
47
+ MEGAM_CREDITHISTORIESCOLLECTION = 'Megam::CredithistoriesCollection'.freeze
48
+ MEGAM_CSAR = 'Megam::CSAR'.freeze
49
+ MEGAM_CSARCOLLECTION = 'Megam::CSARCollection'.freeze
50
+ MEGAM_DOMAIN = 'Megam::Domains'.freeze
51
+ MEGAM_DISCOUNTS = 'Megam::Discounts'.freeze
52
+ MEGAM_DISCOUNTSCOLLECTION = 'Megam::DiscountsCollection'.freeze
53
+ MEGAM_ERROR = 'Megam::Error'.freeze
54
+ MEGAM_SENSORS = 'Megam::Sensors'.freeze
55
+ MEGAM_SENSORSCOLLECTION = 'Megam::SensorsCollection'.freeze
56
+ MEGAM_MARKETPLACE = 'Megam::MarketPlace'.freeze
57
+ MEGAM_MARKETPLACECOLLECTION = 'Megam::MarketPlaceCollection'.freeze
58
+ MEGAM_MARKETPLACEADDON = 'Megam::MarketPlaceAddons'.freeze
59
+ MEGAM_MARKETPLACEADDONCOLLECTION = 'Megam::MarketPlaceAddonsCollection'.freeze
60
+ MEGAM_ORGANIZATION = 'Megam::Organizations'.freeze
61
+ MEGAM_ORGANIZATIONSCOLLECTION = 'Megam::OrganizationsCollection'.freeze
62
+ MEGAM_REQUEST = 'Megam::Request'.freeze
63
+ MEGAM_REQUESTCOLLECTION = 'Megam::RequestCollection'.freeze
64
+ MEGAM_SSHKEY = 'Megam::SshKey'.freeze
65
+ MEGAM_SSHKEYCOLLECTION = 'Megam::SshKeyCollection'.freeze
66
+ MEGAM_SUBSCRIPTIONS = 'Megam::Subscriptions'.freeze
67
+ MEGAM_SUBSCRIPTIONSCOLLECTION = 'Megam::SubscriptionsCollection'.freeze
68
+ MEGAM_PROMOS = 'Megam::Promos'.freeze
69
69
 
70
70
  class <<self
71
71
  # Increase the max nesting for JSON, which defaults
data/test/test_helper.rb CHANGED
@@ -69,11 +69,11 @@ def sandbox_name
69
69
  end
70
70
 
71
71
  def sandbox_apikey
72
- "mIF3GMz1t-atEeVmtilxSw=="
72
+ "IamAtlas{74}NobdyCanSedfefdeME#07"
73
73
  end
74
74
 
75
75
  def sandbox_email
76
76
  # "darth@vader.com"
77
- "qwe@qwe.co"
78
- #"rr@e.com"
77
+ #"qwe@qwe.co"
78
+ "coolvader@iamswag.com"
79
79
  end
data/test/test_promos.rb CHANGED
@@ -3,7 +3,7 @@ require File.expand_path("#{File.dirname(__FILE__)}/test_helper")
3
3
  class TestApps < MiniTest::Unit::TestCase
4
4
 
5
5
  def test_get_promos()
6
- response = megams.get_promos("megamiscool")
6
+ response = megams.get_promos("megamfree5")
7
7
  assert_equal(200, response.status)
8
8
 
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: megam_api
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.77'
4
+ version: '0.78'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rajthilak, Kishorekumar Neelamegam, Thomas Alrin, Yeshwanth Kumar, Subash Sethurajan,