gamerocket 1.0.1 → 1.0.2
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/Rakefile +5 -5
- data/lib/gamerocket/action_gateway.rb +1 -1
- data/lib/gamerocket/purchase_gateway.rb +2 -2
- data/lib/gamerocket/version.rb +1 -1
- data/lib/gamerocket.rb +1 -10
- metadata +4 -4
- /data/{README → README.rdoc} +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: eb4b92e11deb61e3bf50b8154ee2b665a41873f8
|
|
4
|
+
data.tar.gz: f72d2efafad33c241de4bade26c23ccc6d6ded96
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3d9b05ff56e3bd8ce7f2fadef84eb1d4cea2b515a9996a4c508680ef792fc1eea00c45b320b7507064ab348463d3eb0716410e053d7733da37a85e97dddf1ac1
|
|
7
|
+
data.tar.gz: cb5e8e4280184771d8dab60fb014e3824063f39d4ded964d76b312cd91382287023281f7ec140b0fe9da33c34f71c804d6cfefe7b2c4da54aa67254d771e4daa
|
data/Rakefile
CHANGED
|
@@ -12,15 +12,15 @@ require 'rake/testtask'
|
|
|
12
12
|
|
|
13
13
|
spec = Gem::Specification.new do |s|
|
|
14
14
|
s.name = 'gamerocket'
|
|
15
|
-
s.version = '1.0.
|
|
15
|
+
s.version = '1.0.2'
|
|
16
16
|
s.has_rdoc = true
|
|
17
|
-
s.extra_rdoc_files = ['README', 'LICENSE']
|
|
17
|
+
s.extra_rdoc_files = ['README.rdoc', 'LICENSE']
|
|
18
18
|
s.summary = 'Your summary here'
|
|
19
19
|
s.description = s.summary
|
|
20
20
|
s.author = 'Work Bandits'
|
|
21
21
|
s.email = 'contact@gamerocket.io'
|
|
22
22
|
# s.executables = ['your_executable_here']
|
|
23
|
-
s.files = %w(LICENSE README Rakefile) + Dir.glob("{bin,lib,spec}/**/*")
|
|
23
|
+
s.files = %w(LICENSE README.rdoc Rakefile) + Dir.glob("{bin,lib,spec}/**/*")
|
|
24
24
|
s.require_path = "lib"
|
|
25
25
|
s.bindir = "bin"
|
|
26
26
|
s.add_dependency "builder", ">= 2.0.0"
|
|
@@ -34,9 +34,9 @@ Gem::PackageTask.new(spec) do |p|
|
|
|
34
34
|
end
|
|
35
35
|
|
|
36
36
|
Rake::RDocTask.new do |rdoc|
|
|
37
|
-
files =['README', 'LICENSE', 'lib/**/*.rb']
|
|
37
|
+
files =['README.rdoc', 'LICENSE', 'lib/**/*.rb']
|
|
38
38
|
rdoc.rdoc_files.add(files)
|
|
39
|
-
rdoc.main = "README" # page to start on
|
|
39
|
+
rdoc.main = "README.rdoc" # page to start on
|
|
40
40
|
rdoc.title = "gamerocket-ruby Docs"
|
|
41
41
|
rdoc.rdoc_dir = 'doc/rdoc' # rdoc output folder
|
|
42
42
|
rdoc.options << '--line-numbers'
|
|
@@ -18,7 +18,7 @@ module GameRocket
|
|
|
18
18
|
|
|
19
19
|
def run(id, attributes)
|
|
20
20
|
response = @config.http.post("/games/#{@config.apiKey}/actions/#{id}/run", attributes)
|
|
21
|
-
if response["error"
|
|
21
|
+
if response["status"] != "error"
|
|
22
22
|
SuccessfulResult.new(response)
|
|
23
23
|
else
|
|
24
24
|
ErrorResult.new(attributes, response)
|
|
@@ -17,8 +17,8 @@ module GameRocket
|
|
|
17
17
|
end
|
|
18
18
|
|
|
19
19
|
def buy(id, attributes)
|
|
20
|
-
response = @config.http.post("/games/#{@config.apiKey}/purchases/#{id}/buy", attributes)
|
|
21
|
-
if response["error"
|
|
20
|
+
response = @config.http.post("/games/#{@config.apiKey}/purchases/#{id}/buy", attributes)
|
|
21
|
+
if response["status"] != "error"
|
|
22
22
|
SuccessfulResult.new(response)
|
|
23
23
|
else
|
|
24
24
|
ErrorResult.new(@gateway, response)
|
data/lib/gamerocket/version.rb
CHANGED
data/lib/gamerocket.rb
CHANGED
|
@@ -37,13 +37,4 @@ require File.dirname(__FILE__) + "/gamerocket/error_result"
|
|
|
37
37
|
require File.dirname(__FILE__) + "/gamerocket/crypto"
|
|
38
38
|
require File.dirname(__FILE__) + "/gamerocket/util"
|
|
39
39
|
require File.dirname(__FILE__) + "/gamerocket/configuration"
|
|
40
|
-
require File.dirname(__FILE__) + "/gamerocket/version"
|
|
41
|
-
|
|
42
|
-
|
|
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
|
|
40
|
+
require File.dirname(__FILE__) + "/gamerocket/version"
|
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.
|
|
4
|
+
version: 1.0.2
|
|
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-
|
|
11
|
+
date: 2013-07-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: builder
|
|
@@ -43,11 +43,11 @@ email: contact@gamerocket.io
|
|
|
43
43
|
executables: []
|
|
44
44
|
extensions: []
|
|
45
45
|
extra_rdoc_files:
|
|
46
|
-
- README
|
|
46
|
+
- README.rdoc
|
|
47
47
|
- LICENSE
|
|
48
48
|
files:
|
|
49
49
|
- LICENSE
|
|
50
|
-
- README
|
|
50
|
+
- README.rdoc
|
|
51
51
|
- Rakefile
|
|
52
52
|
- lib/gamerocket/game_gateway.rb
|
|
53
53
|
- lib/gamerocket/player_gateway.rb
|
/data/{README → README.rdoc}
RENAMED
|
File without changes
|