games_radar 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,4 @@
1
+ /coverage
2
+ /pkg
3
+ /doc
4
+ Gemfile.lock
data/Gemfile ADDED
@@ -0,0 +1,2 @@
1
+ source :rubygems
2
+ gemspec
@@ -39,7 +39,7 @@ For full usage information, check it out the API (GamesRadar::Game#all).
39
39
 
40
40
  (The MIT License)
41
41
 
42
- Copyright © 2010:
42
+ Copyright © 2011:
43
43
 
44
44
  * Nando Vieira (http://simplesideias.com.br)
45
45
 
@@ -0,0 +1,9 @@
1
+ require "bundler"
2
+ Bundler::GemHelper.install_tasks
3
+
4
+ require "rake/testtask"
5
+ Rake::TestTask.new do |t|
6
+ t.libs << "test"
7
+ t.test_files = FileList["test/**/*_test.rb"]
8
+ t.verbose = true
9
+ end
@@ -0,0 +1,22 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "games_radar/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "games_radar"
7
+ s.version = GamesRadar::Version::STRING
8
+ s.platform = Gem::Platform::RUBY
9
+ s.authors = ["Nando Vieira"]
10
+ s.email = ["fnando.vieira@gmail.com"]
11
+ s.homepage = "http://rubygems.org/gems/games_radar"
12
+ s.summary = "GamesRadar is an API wrapper for the games website http://gamesradar.com"
13
+ s.description = s.summary
14
+
15
+ s.files = `git ls-files`.split("\n")
16
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
17
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
18
+ s.require_paths = ["lib"]
19
+
20
+ s.add_dependency "nokogiri", "~> 1.4.4"
21
+ s.add_development_dependency "fakeweb", "~> 1.3.0"
22
+ end
@@ -3,17 +3,18 @@ require "nokogiri"
3
3
  require "open-uri"
4
4
  require "uri"
5
5
 
6
- require "games_radar/request"
7
- require "games_radar/config"
8
- require "games_radar/errors"
9
- require "games_radar/game"
10
- require "games_radar/genre"
11
- require "games_radar/platform"
12
- require "games_radar/result"
13
- require "games_radar/screenshot"
14
- require "games_radar/version"
15
-
16
6
  module GamesRadar
7
+ require "games_radar/errors"
8
+
9
+ autoload :Request , "games_radar/request"
10
+ autoload :Config , "games_radar/config"
11
+ autoload :Game , "games_radar/game"
12
+ autoload :Genre , "games_radar/genre"
13
+ autoload :Platform , "games_radar/platform"
14
+ autoload :Result , "games_radar/result"
15
+ autoload :Screenshot , "games_radar/screenshot"
16
+ autoload :Version , "games_radar/version"
17
+
17
18
  # Use this shortcut for GamesRadar::Config. Refer to the GamesRadar::Config
18
19
  # for all available options.
19
20
  #
@@ -82,7 +82,7 @@ module GamesRadar
82
82
 
83
83
  params.merge!(:api_key => GamesRadar::Config.api_key)
84
84
 
85
- params.each do |name, value|
85
+ params.dup.each do |name, value|
86
86
  name = PARAMS[name.to_sym] || name.to_sym
87
87
  value = value.to_s.to_sym
88
88
 
@@ -2,7 +2,7 @@ module GamesRadar
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
- PATCH = 2
5
+ PATCH = 3
6
6
  STRING = "#{MAJOR}.#{MINOR}.#{PATCH}"
7
7
  end
8
8
  end
@@ -1,3 +1,5 @@
1
+ # encoding: utf-8
2
+
1
3
  require "test_helper"
2
4
 
3
5
  class GamesRadar::GameTest < Test::Unit::TestCase
metadata CHANGED
@@ -1,7 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: games_radar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ prerelease:
5
+ version: 0.1.3
5
6
  platform: ruby
6
7
  authors:
7
8
  - Nando Vieira
@@ -9,30 +10,46 @@ autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
12
 
12
- date: 2010-02-20 00:00:00 -02:00
13
+ date: 2011-03-22 00:00:00 -03:00
13
14
  default_executable:
14
15
  dependencies:
15
16
  - !ruby/object:Gem::Dependency
16
17
  name: nokogiri
18
+ prerelease: false
19
+ requirement: &id001 !ruby/object:Gem::Requirement
20
+ none: false
21
+ requirements:
22
+ - - ~>
23
+ - !ruby/object:Gem::Version
24
+ version: 1.4.4
17
25
  type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
26
+ version_requirements: *id001
27
+ - !ruby/object:Gem::Dependency
28
+ name: fakeweb
29
+ prerelease: false
30
+ requirement: &id002 !ruby/object:Gem::Requirement
31
+ none: false
20
32
  requirements:
21
- - - ">="
33
+ - - ~>
22
34
  - !ruby/object:Gem::Version
23
- version: "0"
24
- version:
35
+ version: 1.3.0
36
+ type: :development
37
+ version_requirements: *id002
25
38
  description: GamesRadar is an API wrapper for the games website http://gamesradar.com
26
- email: fnando.vieira@gmail.com
39
+ email:
40
+ - fnando.vieira@gmail.com
27
41
  executables: []
28
42
 
29
43
  extensions: []
30
44
 
31
- extra_rdoc_files:
32
- - README.rdoc
45
+ extra_rdoc_files: []
46
+
33
47
  files:
34
- - CHANGELOG.rdoc
48
+ - .gitignore
49
+ - Gemfile
35
50
  - README.rdoc
51
+ - Rakefile
52
+ - games_radar.gemspec
36
53
  - lib/games-radar.rb
37
54
  - lib/games_radar.rb
38
55
  - lib/games_radar/config.rb
@@ -61,30 +78,30 @@ files:
61
78
  - test/screenshot_test.rb
62
79
  - test/test_helper.rb
63
80
  has_rdoc: true
64
- homepage: http://github.com/fnando/games_radar
81
+ homepage: http://rubygems.org/gems/games_radar
65
82
  licenses: []
66
83
 
67
84
  post_install_message:
68
- rdoc_options:
69
- - --charset=UTF-8
85
+ rdoc_options: []
86
+
70
87
  require_paths:
71
88
  - lib
72
89
  required_ruby_version: !ruby/object:Gem::Requirement
90
+ none: false
73
91
  requirements:
74
92
  - - ">="
75
93
  - !ruby/object:Gem::Version
76
94
  version: "0"
77
- version:
78
95
  required_rubygems_version: !ruby/object:Gem::Requirement
96
+ none: false
79
97
  requirements:
80
98
  - - ">="
81
99
  - !ruby/object:Gem::Version
82
100
  version: "0"
83
- version:
84
101
  requirements: []
85
102
 
86
103
  rubyforge_project:
87
- rubygems_version: 1.3.5
104
+ rubygems_version: 1.6.0
88
105
  signing_key:
89
106
  specification_version: 3
90
107
  summary: GamesRadar is an API wrapper for the games website http://gamesradar.com
@@ -95,6 +112,13 @@ test_files:
95
112
  - test/genre_test.rb
96
113
  - test/platform_test.rb
97
114
  - test/request_test.rb
115
+ - test/resources/game.xml
116
+ - test/resources/game_not_found.xml
117
+ - test/resources/games.xml
118
+ - test/resources/invalid_api_key.xml
119
+ - test/resources/no_games.xml
120
+ - test/resources/platforms.xml
121
+ - test/resources/screenshots.xml
98
122
  - test/result_test.rb
99
123
  - test/screenshot_test.rb
100
124
  - test/test_helper.rb
@@ -1,14 +0,0 @@
1
- = Changelog
2
-
3
- == Feb 18 2010
4
-
5
- * Feature: added screenshot support
6
-
7
- == Feb 17 2010
8
-
9
- * Bug fix: game description and genre are optional and raised an error.
10
- * Released version 0.1.1
11
-
12
- == Feb 16 2010
13
-
14
- * Released version 0.1.0