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.
- data/.gitignore +4 -0
- data/Gemfile +2 -0
- data/README.rdoc +1 -1
- data/Rakefile +9 -0
- data/games_radar.gemspec +22 -0
- data/lib/games_radar.rb +11 -10
- data/lib/games_radar/request.rb +1 -1
- data/lib/games_radar/version.rb +1 -1
- data/test/game_test.rb +2 -0
- metadata +41 -17
- data/CHANGELOG.rdoc +0 -14
data/.gitignore
ADDED
data/Gemfile
ADDED
data/README.rdoc
CHANGED
data/Rakefile
ADDED
data/games_radar.gemspec
ADDED
@@ -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
|
data/lib/games_radar.rb
CHANGED
@@ -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
|
#
|
data/lib/games_radar/request.rb
CHANGED
data/lib/games_radar/version.rb
CHANGED
data/test/game_test.rb
CHANGED
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
|
-
|
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:
|
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
|
-
|
19
|
-
|
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:
|
24
|
-
|
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:
|
39
|
+
email:
|
40
|
+
- fnando.vieira@gmail.com
|
27
41
|
executables: []
|
28
42
|
|
29
43
|
extensions: []
|
30
44
|
|
31
|
-
extra_rdoc_files:
|
32
|
-
|
45
|
+
extra_rdoc_files: []
|
46
|
+
|
33
47
|
files:
|
34
|
-
-
|
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://
|
81
|
+
homepage: http://rubygems.org/gems/games_radar
|
65
82
|
licenses: []
|
66
83
|
|
67
84
|
post_install_message:
|
68
|
-
rdoc_options:
|
69
|
-
|
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.
|
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
|
data/CHANGELOG.rdoc
DELETED