gameball 3.1.4 → 3.1.5

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: be4efc05c1535767adbdd123cd2199da4c81c9b029ce5bb2b9197c17eda97edd
4
- data.tar.gz: a598d4d148434b5d1ee11e980eda55bf9e3f171a283b778e5db75a7f1bfdf256
3
+ metadata.gz: ed9e427488052afe12a25547ff8e5bc55046578e7b426c11fd2029e265afbb8d
4
+ data.tar.gz: d58f5a6ed436b9b3bac64c2158f9613710c61631fb940081098c8f67abe75017
5
5
  SHA512:
6
- metadata.gz: ce55288de6b2f042aad44fcae3baa44a1bf8104a48eaa38ff50d0dd8fbb8177feaad03d6e39b0266a501d7755c7e2a0842123ea441d2e277f5673979891e80c2
7
- data.tar.gz: 2341cadac414264bbe4f5c199c4ed419b12e995ffd7e8bbdb3775847bb0209e8cf5b6e7d9751fe5b5eba23ac783652820a20da8e9290118c9f972481041b9cd6
6
+ metadata.gz: 4ca83f651ff38203a363d0dc382de62d6a40d5fe4be0c89bd0d54259c704994d3cc19524af7a2851bcc6a12537090eb9a0194baa6cce5d6d148eb59b619b097e
7
+ data.tar.gz: 647aad70caf51fdee10e36d452792c2b8890ce198a7c4968e57d0bcba8e12e39ac40441f3c6a48dbe9ce9251718aaa4e404fbd8e50c55bac9dfd233d31956c61
data/README.md CHANGED
@@ -12,7 +12,7 @@ You don't need this source code unless you want to modify the SDK. If you just
12
12
  want to use the SDK, just run:
13
13
 
14
14
  ```sh
15
- gem install gameballSDK
15
+ gem install gameball
16
16
  ```
17
17
 
18
18
  ### Requirements
@@ -28,11 +28,11 @@ require 'gameball'
28
28
 
29
29
  Gameball.api_key="api_key"
30
30
  Gameball.transaction_key="transaction_key"
31
- # If using API Version 3.0
32
- Gameball.api_version="v3.0
31
+ # If using API Version 2.0
32
+ Gameball.api_version="v2.0"
33
33
  ```
34
34
 
35
- ### Example
35
+ ### Examples
36
36
 
37
37
  #### Create Player
38
38
 
@@ -49,8 +49,8 @@ Gameball::Player.initialize_player({
49
49
  mobile: "+1234567",
50
50
  email:"jon.snow@example.com",
51
51
  gender:"M",
52
- dateOfBirth:"1980-09-19T00:00:00.000Z",
53
- joinDate:"2019-09-19T21:06:29.158Z",
52
+ dateOfBirth:DateTime.iso8601("1980-09-19T00:00:00.000Z"),
53
+ joinDate:DateTime.iso8601("2019-09-19T21:06:29.158Z"),
54
54
  tags: "VIP,Platinum",
55
55
  custom:{
56
56
  location:"Miami",
@@ -69,8 +69,8 @@ Gameball::Player.initialize_player({
69
69
  lastName:"Lannister",
70
70
  email:"tyrion@example.com",
71
71
  gender:"M",
72
- dateOfBirth:"1978-01-11T00:00:00.000Z",
73
- joinDate:"2019-09-19T21:06:29.158Z",
72
+ dateOfBirth:DateTime.iso8601("1978-01-11T00:00:00.000Z"),
73
+ joinDate:DateTime.iso8601("2019-09-19T21:06:29.158Z"),
74
74
  custom:{
75
75
  location:"Miami",
76
76
  graduationDate:"2018-07-04T21:06:29.158Z",
Binary file
@@ -1,3 +1,3 @@
1
1
  module Gameball
2
- VERSION = "3.1.4" # Version of the SDK
2
+ VERSION = "3.1.5" # Version of the SDK
3
3
  end
data/test.rb ADDED
@@ -0,0 +1,30 @@
1
+ require_relative "./lib/gameball"
2
+ Gameball.api_version="v3.0"
3
+ Gameball.api_key="184be486ad124379a8d1bf6dbe59cd8b"
4
+ Gameball.transaction_key="5cd1cb2bef9f475c85e8d2a6edd85894"
5
+
6
+
7
+
8
+
9
+ res= Gameball::Player.initialize_player({
10
+ playerUniqueId:"player121233",
11
+ mobile: "+1234567",
12
+ email: "jon.snow@example.com",
13
+ playerAttributes:{
14
+ displayName:"Jon Snow",
15
+ firstName: "Jon",
16
+ lastName: "Snow",
17
+ mobile: "+1234567",
18
+ email:"jon.snow@example.com",
19
+ gender:"M",
20
+ dateOfBirth:DateTime.iso8601("1980-09-19T00:00:00.000Z"),
21
+ joinDate:DateTime.iso8601("2019-09-19T21:06:29.158Z"),
22
+ tags: "VIP,Platinum",
23
+ custom:{
24
+ location:"Miami",
25
+ graduationDate:"2018-07-04T21:06:29.158Z",
26
+ isMarried:false
27
+ }
28
+ }
29
+ })
30
+ puts res.body
@@ -1,7 +1,8 @@
1
1
  # This file is not to be executed, this is for offering examples for the usage of the SDK
2
2
  require "gameball"
3
3
  Gameball.api_key = "api_key"
4
- Gameball::transaction_key = "transaction_key"
4
+ Gameball.transaction_key = "transaction_key"
5
+ Gameball.api_version= "v2.0"
5
6
  # Events
6
7
  # Example 1
7
8
  Gameball::Event.send_event({
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: 3.1.4
4
+ version: 3.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alsouidan
@@ -57,7 +57,7 @@ files:
57
57
  - bin/console
58
58
  - bin/setup
59
59
  - config.rb
60
- - examples.rb
60
+ - gameball-3.1.4.gem
61
61
  - gameball.gemspec
62
62
  - lib/gameball.rb
63
63
  - lib/gameball/exceptions/gameballException.rb
@@ -76,6 +76,8 @@ files:
76
76
  - lib/gameball/utils/request.rb
77
77
  - lib/gameball/utils/validation.rb
78
78
  - lib/gameball/version.rb
79
+ - test.rb
80
+ - v2_examples.rb
79
81
  homepage: https://www.gameball.co/
80
82
  licenses:
81
83
  - MIT