gameball 2.1.1 → 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: bfd74e1b4babbc69fe5972ac45e485d71bb7c15bd92076ab91296b2537aa8b46
4
- data.tar.gz: a26a1472bae3ad9bf15929edf6bdedcd993b89dc3e34827b28afe1ecc1869826
3
+ metadata.gz: ed9e427488052afe12a25547ff8e5bc55046578e7b426c11fd2029e265afbb8d
4
+ data.tar.gz: d58f5a6ed436b9b3bac64c2158f9613710c61631fb940081098c8f67abe75017
5
5
  SHA512:
6
- metadata.gz: bc7d36cfb2f6813e7d03c87c480e79804d087739c6b19df694644487b98deb76ac984ec81e12bebb70caee0ea77d9e0af5fc117a90ed624d5335145697e14e12
7
- data.tar.gz: 15ccd652bbd32fddf34322b55e46074eb8beca1b12fb527604c65bf50125f8ace4fd4e02bcc2137ecebfe0262f32685e02ce6c54b04e59a669a7f54ddfd835aa
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 = "2.1.1" # Version of the SDK
2
+ VERSION = "3.1.5" # Version of the SDK
3
3
  end
data/lib/gameball.rb CHANGED
@@ -26,7 +26,7 @@ module Gameball
26
26
  @max_retries = 1
27
27
  @read_timeout = 60
28
28
  @keep_alive_timeout = 30
29
- @api_version = "v2.0"
29
+ @api_version = "v3.0"
30
30
  class << self
31
31
  attr_accessor :api_key
32
32
  attr_accessor :api_version
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,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gameball
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 3.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alsouidan
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-12-06 00:00:00.000000000 Z
11
+ date: 2022-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -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