gamerocket 1.0.0 → 1.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
  SHA1:
3
- metadata.gz: 37895025aecc1ccb572dc9432737f7a48afd3e44
4
- data.tar.gz: 8cf474027374df10ffb4d511a74d3f9421b7d6f9
3
+ metadata.gz: 667b06cc0358cd082415e55dd47a996cb38a697d
4
+ data.tar.gz: 0bc56804afc56261522a7c6150acab65224da78f
5
5
  SHA512:
6
- metadata.gz: 443abd226ecff43f51a2b4cd9ceb02ebfc6fdb9e1187dd37439482c2dccc94efed7916d3af3a05cfefee120026a3f784dd6b20682fefb1bafa00e0fed90bb091
7
- data.tar.gz: 83e86b52cc1f95c066c5d64cdb1b07e8801ef93f77159e32563a3419868bc0cd749b4b9082c5165543d76f7465cda5fb955017d5f3f1dff484b4fec6c95a7313
6
+ metadata.gz: ebf00eaa6c1b4a03d431596b6151be21a557e710f8d95d17c50b82f1bcb68c134b0a7d10e160f1ad4af2cf1a8b268c4533883f259c7b28f5837a4096d9255b0b
7
+ data.tar.gz: faeafe03876e251f2117fbc71c19c6093bd0fe7e63ffad4427c11a9b8c63f9c4dbcefccfdc0907d9504708b14425a7f3cd695254d34df32d05d42e159961fcd3
data/Rakefile CHANGED
@@ -12,7 +12,7 @@ require 'rake/testtask'
12
12
 
13
13
  spec = Gem::Specification.new do |s|
14
14
  s.name = 'gamerocket'
15
- s.version = '1.0.0'
15
+ s.version = '1.0.1'
16
16
  s.has_rdoc = true
17
17
  s.extra_rdoc_files = ['README', 'LICENSE']
18
18
  s.summary = 'Your summary here'
@@ -12,7 +12,7 @@ module GameRocket
12
12
  if !json["achievement"].nil?
13
13
  Achievement._new(@gateway, json["achievement"])
14
14
  else
15
- raise NotFoundError, "Achievement with id #{id} not found."
15
+ nil
16
16
  end
17
17
  end
18
18
  end
@@ -12,7 +12,7 @@ module GameRocket
12
12
  if !response["action"].nil?
13
13
  Action._new(@gateway, response["action"])
14
14
  else
15
- raise NotFoundError, "Action with id #{id} not found."
15
+ nil
16
16
  end
17
17
  end
18
18
 
@@ -12,7 +12,7 @@ module GameRocket
12
12
  if !response["game"].nil?
13
13
  Game._new(@gateway, response[:game])
14
14
  else
15
- raise NotFoundError, "Game with id #{id} not found."
15
+ nil
16
16
  end
17
17
  end
18
18
  end
@@ -23,7 +23,7 @@ module GameRocket
23
23
  if !json["player"].nil?
24
24
  Player._new(@gateway, json["player"])
25
25
  else
26
- raise NotFoundError, "player with id#{id.inspect} not found"
26
+ nil
27
27
  end
28
28
  end
29
29
 
@@ -12,7 +12,7 @@ module GameRocket
12
12
  if !response["purchase"].nil?
13
13
  Purchase._new(@gateway, response["purchase"])
14
14
  else
15
- raise NotFoundError, "Purchase with id #{id} not found."
15
+ nil
16
16
  end
17
17
  end
18
18
 
@@ -2,7 +2,7 @@ module GameRocket
2
2
  module Version
3
3
  Major = 1
4
4
  Minor = 0
5
- Tiny =0
5
+ Tiny = 1
6
6
 
7
7
  String = "#{Major}.#{Minor}.#{Tiny}"
8
8
  end
data/lib/gamerocket.rb CHANGED
@@ -40,6 +40,10 @@ require File.dirname(__FILE__) + "/gamerocket/configuration"
40
40
  require File.dirname(__FILE__) + "/gamerocket/version"
41
41
 
42
42
 
43
- GameRocket::Configuration.environment = "your_environment"#:development or :production
44
- GameRocket::Configuration.apiKey = "your_apiKey"#use your apiKey
45
- GameRocket::Configuration.secretKey = "your_secret_key"#use your secretKey
43
+ GameRocket::Configuration.environment = :development#:development or :production
44
+ GameRocket::Configuration.apiKey = "7b53224077114512ba6684d8b9078df9"#use your apiKey
45
+ GameRocket::Configuration.secretKey = "4fb6dc47402e4d2dba3d064c5f17b303"#use your secretKey
46
+
47
+ result = GameRocket::Action.find("4564")
48
+
49
+ p result
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gamerocket
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Work Bandits
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-18 00:00:00.000000000 Z
11
+ date: 2013-07-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: builder