gameball 2.0.0 → 2.0.1

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
  SHA256:
3
- metadata.gz: e76ceb653022cf925639251ccd30953f40ff1a4fe9cbaa2332264f399ad157e2
4
- data.tar.gz: 9640afd5fb6c83431574739bcb09e30af4def005a72e7b30c6c3b6b7fdb303ea
3
+ metadata.gz: 4dd0bd2cb33b40d5304d30000362d3068ceb983448e87cb36ccab460db579094
4
+ data.tar.gz: 6c0936a0568b8f44c27b43156ea4161473a0a8145e9ee46a05df338826883f17
5
5
  SHA512:
6
- metadata.gz: 7a58b4da506b549ddea9ba1f74db54eebf2cdf2a51209986a2534e05ac6e7c37251f34817c49f772c5a50e6c0e2ce8cfd231b6e8a7245e823cdd9b65220d34d2
7
- data.tar.gz: 338f242e2d71098cf5eaad9c6888ffcd3d75377dca060b4b080fc1b8980a4cd0d01ad91856ae653e019a293628fcf57979acbf3dd07a064bf5029485769235b0
6
+ metadata.gz: db7f937f3375d252da17f111641c5b3e7e1ba2cec25e4bfcbde85185e8ebdef023f04918d3bb235686670d51b24f2feae2d816ea18b19db9c9165549e39be2ef
7
+ data.tar.gz: d78ef1500580168e0ad048f6efa184490ff744f1ccbf8126039c7c5224b7a7fc5ced09e73f45e22be9738fb047cc4951f58a37e60e90a917c623693012664367
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- alphaSDK (1.0.0)
4
+ gameball (1.0.1)
5
5
  rake (>= 12.0)
6
6
  rspec (>= 3.0)
7
7
 
@@ -28,7 +28,7 @@ PLATFORMS
28
28
  x64-mingw32
29
29
 
30
30
  DEPENDENCIES
31
- alphaSDK!
31
+ gameball!
32
32
  rake (>= 12.0)
33
33
  rspec (>= 3.0)
34
34
 
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"] = "http://mygemserver.com"
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.
@@ -0,0 +1,12 @@
1
+ module Gameball
2
+ module Lang
3
+ ENGLISH='en'
4
+ SPANISH='es'
5
+ PORTUGUESE='pt'
6
+ POLISH='pl'
7
+ ITALIAN='it'
8
+ GERMAN='de'
9
+ FRENCH='fr'
10
+ ARABIC='ar'
11
+ end
12
+ end
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Gameball
2
- VERSION = "2.0.0" # Version of the SDK
2
+ VERSION = "2.0.1" # Version of the SDK
3
3
  end
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.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: http://mygemserver.com
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: []