tf2r 0.0.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +3 -0
- data/.ruby-gemset +1 -1
- data/.travis.yml +3 -0
- data/CHANGELOG.md +0 -0
- data/Gemfile.lock +38 -2
- data/README.md +30 -2
- data/Rakefile +8 -1
- data/lib/tf2r/scraper.rb +262 -166
- data/lib/tf2r/version.rb +1 -1
- data/spec/raffles.html +320 -0
- data/spec/scraper_spec.rb +210 -3
- data/spec/spec_helper.rb +14 -1
- data/spec/vcr/cassettes/raffles.yml +243 -0
- data/spec/vcr/cassettes/scrape_raffle_for_creator.yml +213 -0
- data/spec/vcr/cassettes/scrape_raffle_for_participants.yml +213 -0
- data/spec/vcr/cassettes/scrape_raffle_for_raffle.yml +213 -0
- data/spec/vcr/cassettes/scrape_ranks.yml +197 -0
- data/spec/vcr/cassettes/scrape_user_not_found.yml +119 -0
- data/spec/vcr/cassettes/scrape_user_real.yml +275 -0
- data/tf2r.gemspec +17 -11
- metadata +84 -10
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tf2r
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Kim
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-08-
|
11
|
+
date: 2014-08-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
19
|
+
version: '1.3'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '1.
|
26
|
+
version: '1.3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -39,19 +39,33 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '10.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: cane
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '2.6'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '2.6'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: coveralls
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0.7'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0.7'
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: pry
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,6 +80,48 @@ dependencies:
|
|
66
80
|
- - "~>"
|
67
81
|
- !ruby/object:Gem::Version
|
68
82
|
version: '0.10'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rspec
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '3.0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '3.0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: vcr
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '2.9'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '2.9'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: webmock
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '1.18'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '1.18'
|
69
125
|
- !ruby/object:Gem::Dependency
|
70
126
|
name: mechanize
|
71
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -90,6 +146,8 @@ files:
|
|
90
146
|
- ".gitignore"
|
91
147
|
- ".ruby-gemset"
|
92
148
|
- ".ruby-version"
|
149
|
+
- ".travis.yml"
|
150
|
+
- CHANGELOG.md
|
93
151
|
- Gemfile
|
94
152
|
- Gemfile.lock
|
95
153
|
- LICENSE
|
@@ -98,9 +156,17 @@ files:
|
|
98
156
|
- lib/tf2r.rb
|
99
157
|
- lib/tf2r/scraper.rb
|
100
158
|
- lib/tf2r/version.rb
|
159
|
+
- spec/raffles.html
|
101
160
|
- spec/scraper_spec.rb
|
102
161
|
- spec/spec_helper.rb
|
103
162
|
- spec/test_cookies.txt
|
163
|
+
- spec/vcr/cassettes/raffles.yml
|
164
|
+
- spec/vcr/cassettes/scrape_raffle_for_creator.yml
|
165
|
+
- spec/vcr/cassettes/scrape_raffle_for_participants.yml
|
166
|
+
- spec/vcr/cassettes/scrape_raffle_for_raffle.yml
|
167
|
+
- spec/vcr/cassettes/scrape_ranks.yml
|
168
|
+
- spec/vcr/cassettes/scrape_user_not_found.yml
|
169
|
+
- spec/vcr/cassettes/scrape_user_real.yml
|
104
170
|
- tf2r.gemspec
|
105
171
|
homepage: https://github.com/justinkim/tf2r
|
106
172
|
licenses:
|
@@ -112,9 +178,9 @@ require_paths:
|
|
112
178
|
- lib
|
113
179
|
required_ruby_version: !ruby/object:Gem::Requirement
|
114
180
|
requirements:
|
115
|
-
- - "
|
181
|
+
- - "~>"
|
116
182
|
- !ruby/object:Gem::Version
|
117
|
-
version: '
|
183
|
+
version: '2.1'
|
118
184
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
119
185
|
requirements:
|
120
186
|
- - ">="
|
@@ -122,11 +188,19 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
122
188
|
version: '0'
|
123
189
|
requirements: []
|
124
190
|
rubyforge_project:
|
125
|
-
rubygems_version: 2.
|
191
|
+
rubygems_version: 2.2.2
|
126
192
|
signing_key:
|
127
193
|
specification_version: 4
|
128
194
|
summary: A utility for use with TF2R.
|
129
195
|
test_files:
|
196
|
+
- spec/raffles.html
|
130
197
|
- spec/scraper_spec.rb
|
131
198
|
- spec/spec_helper.rb
|
132
199
|
- spec/test_cookies.txt
|
200
|
+
- spec/vcr/cassettes/raffles.yml
|
201
|
+
- spec/vcr/cassettes/scrape_raffle_for_creator.yml
|
202
|
+
- spec/vcr/cassettes/scrape_raffle_for_participants.yml
|
203
|
+
- spec/vcr/cassettes/scrape_raffle_for_raffle.yml
|
204
|
+
- spec/vcr/cassettes/scrape_ranks.yml
|
205
|
+
- spec/vcr/cassettes/scrape_user_not_found.yml
|
206
|
+
- spec/vcr/cassettes/scrape_user_real.yml
|