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 +4 -4
- data/lib/megam/api/version.rb +1 -1
- data/lib/megam/core/json_compat.rb +45 -45
- data/test/test_helper.rb +3 -3
- data/test/test_promos.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 51eceb4ec1ff92180ac4592a24064baa2547fdad
|
4
|
+
data.tar.gz: 7dec9a0156625550f4701034794eae62347ccb7f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5740d0d62c5c306999b2ee28c4081e2186e9a96d8fb494ebcb815227b3db9777f895eb202af7e457db6d103c5957408bf8eae19b083eedad7560dd4023e0902d
|
7
|
+
data.tar.gz: e8cb2cecfce4bd4bab33a52aefe6647c6e0f07c7011d4bb00d852633c50f0a795193ca30b8a4b602a5fe5b17117da30de6fc0d8a7a5bfc90d23a2da29c47b0ab
|
data/lib/megam/api/version.rb
CHANGED
@@ -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
|
-
"
|
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
|
-
|
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("
|
6
|
+
response = megams.get_promos("megamfree5")
|
7
7
|
assert_equal(200, response.status)
|
8
8
|
|
9
9
|
end
|