gamerocket 1.0.1 → 1.0.2

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: 667b06cc0358cd082415e55dd47a996cb38a697d
4
- data.tar.gz: 0bc56804afc56261522a7c6150acab65224da78f
3
+ metadata.gz: eb4b92e11deb61e3bf50b8154ee2b665a41873f8
4
+ data.tar.gz: f72d2efafad33c241de4bade26c23ccc6d6ded96
5
5
  SHA512:
6
- metadata.gz: ebf00eaa6c1b4a03d431596b6151be21a557e710f8d95d17c50b82f1bcb68c134b0a7d10e160f1ad4af2cf1a8b268c4533883f259c7b28f5837a4096d9255b0b
7
- data.tar.gz: faeafe03876e251f2117fbc71c19c6093bd0fe7e63ffad4427c11a9b8c63f9c4dbcefccfdc0907d9504708b14425a7f3cd695254d34df32d05d42e159961fcd3
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.1'
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"].nil?
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"].nil?
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)
@@ -2,7 +2,7 @@ module GameRocket
2
2
  module Version
3
3
  Major = 1
4
4
  Minor = 0
5
- Tiny = 1
5
+ Tiny = 2
6
6
 
7
7
  String = "#{Major}.#{Minor}.#{Tiny}"
8
8
  end
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.1
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-19 00:00:00.000000000 Z
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
File without changes