gameball 2.0.0 → 2.0.1
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 +4 -4
- data/Gemfile.lock +2 -2
- data/gameball.gemspec +1 -1
- data/lib/gameball/lang.rb +12 -0
- data/lib/gameball/utils/request.rb +7 -3
- data/lib/gameball/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4dd0bd2cb33b40d5304d30000362d3068ceb983448e87cb36ccab460db579094
|
|
4
|
+
data.tar.gz: 6c0936a0568b8f44c27b43156ea4161473a0a8145e9ee46a05df338826883f17
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: db7f937f3375d252da17f111641c5b3e7e1ba2cec25e4bfcbde85185e8ebdef023f04918d3bb235686670d51b24f2feae2d816ea18b19db9c9165549e39be2ef
|
|
7
|
+
data.tar.gz: d78ef1500580168e0ad048f6efa184490ff744f1ccbf8126039c7c5224b7a7fc5ced09e73f45e22be9738fb047cc4951f58a37e60e90a917c623693012664367
|
data/Gemfile.lock
CHANGED
data/gameball.gemspec
CHANGED
|
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
|
|
|
15
15
|
# spec.metadata["allowed_push_host"] = "https://github.com/Alsouidan/alphasdk"
|
|
16
16
|
|
|
17
17
|
spec.metadata["homepage_uri"] = spec.homepage
|
|
18
|
-
spec.metadata["source_code_uri"] = "
|
|
18
|
+
spec.metadata["source_code_uri"] = "https://github.com/gameballers/gameball-ruby"
|
|
19
19
|
spec.metadata["changelog_uri"] = "http://mygemserver.com"
|
|
20
20
|
|
|
21
21
|
# Specify which files should be added to the gem when it is released.
|
|
@@ -2,7 +2,8 @@ module Gameball
|
|
|
2
2
|
module Utils
|
|
3
3
|
extend self
|
|
4
4
|
|
|
5
|
-
def request(verb, path, body = {},params:{})
|
|
5
|
+
def request(verb, path, body = {},lang:"",params:{})
|
|
6
|
+
|
|
6
7
|
# check for api_version and key and throw error if not included
|
|
7
8
|
if !Gameball.api_key
|
|
8
9
|
raise Gameball::GameballError.new("Please provide the api_key before making a request, try Gameball::api_key='your_key'")
|
|
@@ -33,7 +34,9 @@ module Gameball
|
|
|
33
34
|
if body != {}
|
|
34
35
|
req.body = body.to_json
|
|
35
36
|
end
|
|
36
|
-
|
|
37
|
+
if lang!=""
|
|
38
|
+
req["lang"]=lang
|
|
39
|
+
end
|
|
37
40
|
req["APIKey"] = Gameball.api_key
|
|
38
41
|
req["secretKey"]=Gameball.transaction_key
|
|
39
42
|
res = https.request(req)
|
|
@@ -68,8 +71,9 @@ module Gameball
|
|
|
68
71
|
if body != {}
|
|
69
72
|
req.body = body.to_json
|
|
70
73
|
end
|
|
71
|
-
req["APIKey"] = Gameball.api_key
|
|
72
74
|
Thread.new do
|
|
75
|
+
req["APIKey"] = Gameball.api_key
|
|
76
|
+
req["secretKey"]=Gameball.transaction_key
|
|
73
77
|
res = https.request(req)
|
|
74
78
|
return res
|
|
75
79
|
end
|
data/lib/gameball/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gameball
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alsouidan
|
|
@@ -61,6 +61,7 @@ files:
|
|
|
61
61
|
- gameball.gemspec
|
|
62
62
|
- lib/gameball.rb
|
|
63
63
|
- lib/gameball/exceptions/gameballException.rb
|
|
64
|
+
- lib/gameball/lang.rb
|
|
64
65
|
- lib/gameball/models/action.rb
|
|
65
66
|
- lib/gameball/models/configurations.rb
|
|
66
67
|
- lib/gameball/models/coupon.rb
|
|
@@ -80,7 +81,7 @@ licenses:
|
|
|
80
81
|
- MIT
|
|
81
82
|
metadata:
|
|
82
83
|
homepage_uri: https://www.gameball.co/
|
|
83
|
-
source_code_uri:
|
|
84
|
+
source_code_uri: https://github.com/gameballers/gameball-ruby
|
|
84
85
|
changelog_uri: http://mygemserver.com
|
|
85
86
|
post_install_message:
|
|
86
87
|
rdoc_options: []
|