gatherer_set_parser 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE +22 -0
- data/README.md +67 -0
- data/Rakefile +2 -0
- data/gatherer_set_parser.gemspec +25 -0
- data/lib/gatherer_set_parser/card_parser.rb +114 -0
- data/lib/gatherer_set_parser/fetch.rb +46 -0
- data/lib/gatherer_set_parser/query_string.rb +25 -0
- data/lib/gatherer_set_parser/version.rb +3 -0
- data/lib/gatherer_set_parser.rb +7 -0
- data/spec/gatherer_set_parser/card_parser_spec.rb +181 -0
- data/spec/gatherer_set_parser/fetch_spec.rb +30 -0
- data/spec/gatherer_set_parser/query_string_spec.rb +21 -0
- data/spec/gatherer_set_parser_spec.rb +2 -0
- data/spec/support/artifact.html +35 -0
- data/spec/support/dual_land.html +40 -0
- data/spec/support/enchant.html +40 -0
- data/spec/support/flipped_creature.html +35 -0
- data/spec/support/gold.html +35 -0
- data/spec/support/instant.html +35 -0
- data/spec/support/land.html +40 -0
- data/spec/support/legendary.html +35 -0
- data/spec/support/phyrexia.html +34 -0
- data/spec/support/planeswalker.html +35 -0
- data/spec/vcr_cassettes/dark_ascension.yml +17181 -0
- data/spec/vcr_setup.rb +10 -0
- metadata +176 -0
data/spec/vcr_setup.rb
ADDED
metadata
ADDED
@@ -0,0 +1,176 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: gatherer_set_parser
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- David Ratajczak
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-11-28 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rake
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: rspec
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :development
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: fakeweb
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: vcr
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: nokogiri
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
86
|
+
type: :runtime
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
94
|
+
description: ! "Parses the MTG Gatherer website for a collection of\n cards
|
95
|
+
from the provided set."
|
96
|
+
email:
|
97
|
+
- david@mockra.com
|
98
|
+
executables: []
|
99
|
+
extensions: []
|
100
|
+
extra_rdoc_files: []
|
101
|
+
files:
|
102
|
+
- .gitignore
|
103
|
+
- Gemfile
|
104
|
+
- LICENSE
|
105
|
+
- README.md
|
106
|
+
- Rakefile
|
107
|
+
- gatherer_set_parser.gemspec
|
108
|
+
- lib/gatherer_set_parser.rb
|
109
|
+
- lib/gatherer_set_parser/card_parser.rb
|
110
|
+
- lib/gatherer_set_parser/fetch.rb
|
111
|
+
- lib/gatherer_set_parser/query_string.rb
|
112
|
+
- lib/gatherer_set_parser/version.rb
|
113
|
+
- spec/gatherer_set_parser/card_parser_spec.rb
|
114
|
+
- spec/gatherer_set_parser/fetch_spec.rb
|
115
|
+
- spec/gatherer_set_parser/query_string_spec.rb
|
116
|
+
- spec/gatherer_set_parser_spec.rb
|
117
|
+
- spec/support/artifact.html
|
118
|
+
- spec/support/dual_land.html
|
119
|
+
- spec/support/enchant.html
|
120
|
+
- spec/support/flipped_creature.html
|
121
|
+
- spec/support/gold.html
|
122
|
+
- spec/support/instant.html
|
123
|
+
- spec/support/land.html
|
124
|
+
- spec/support/legendary.html
|
125
|
+
- spec/support/phyrexia.html
|
126
|
+
- spec/support/planeswalker.html
|
127
|
+
- spec/vcr_cassettes/dark_ascension.yml
|
128
|
+
- spec/vcr_setup.rb
|
129
|
+
homepage: https://github.com/mockra/gatherer_set_parser
|
130
|
+
licenses: []
|
131
|
+
post_install_message:
|
132
|
+
rdoc_options: []
|
133
|
+
require_paths:
|
134
|
+
- lib
|
135
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
136
|
+
none: false
|
137
|
+
requirements:
|
138
|
+
- - ! '>='
|
139
|
+
- !ruby/object:Gem::Version
|
140
|
+
version: '0'
|
141
|
+
segments:
|
142
|
+
- 0
|
143
|
+
hash: 2028407096841779222
|
144
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
145
|
+
none: false
|
146
|
+
requirements:
|
147
|
+
- - ! '>='
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: '0'
|
150
|
+
segments:
|
151
|
+
- 0
|
152
|
+
hash: 2028407096841779222
|
153
|
+
requirements: []
|
154
|
+
rubyforge_project:
|
155
|
+
rubygems_version: 1.8.23
|
156
|
+
signing_key:
|
157
|
+
specification_version: 3
|
158
|
+
summary: This gem will return an array of card hashes that you can use to build a
|
159
|
+
database of Magic the Gathering cards.
|
160
|
+
test_files:
|
161
|
+
- spec/gatherer_set_parser/card_parser_spec.rb
|
162
|
+
- spec/gatherer_set_parser/fetch_spec.rb
|
163
|
+
- spec/gatherer_set_parser/query_string_spec.rb
|
164
|
+
- spec/gatherer_set_parser_spec.rb
|
165
|
+
- spec/support/artifact.html
|
166
|
+
- spec/support/dual_land.html
|
167
|
+
- spec/support/enchant.html
|
168
|
+
- spec/support/flipped_creature.html
|
169
|
+
- spec/support/gold.html
|
170
|
+
- spec/support/instant.html
|
171
|
+
- spec/support/land.html
|
172
|
+
- spec/support/legendary.html
|
173
|
+
- spec/support/phyrexia.html
|
174
|
+
- spec/support/planeswalker.html
|
175
|
+
- spec/vcr_cassettes/dark_ascension.yml
|
176
|
+
- spec/vcr_setup.rb
|