tf2r 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/tf2r/raffle.rb +1 -1
- data/lib/tf2r/version.rb +1 -1
- data/spec/scraper_spec.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de6827e54972f96bcc6ab9c6f155b2c0a59a887c
|
4
|
+
data.tar.gz: 296779a2cd81d36d63a13da845236c29224d5a82
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35b6f978f49ea770eced44d46898ba73c3f1741a9cbde1c52a587b8ffcb20efa359ce1b96c6cc57b6c1fbc016f10cc10b573dbd976212e331b3219af102cfd2d
|
7
|
+
data.tar.gz: ce04e769fbbbe0f08207d6a893df372b0a430fdff477499611bb186b2cea09d38fd70cae54de14baa520e9c764c539c46692a7cbe3321f00cacb35686499c7c9
|
data/Gemfile.lock
CHANGED
data/lib/tf2r/raffle.rb
CHANGED
@@ -97,7 +97,7 @@ module TF2R
|
|
97
97
|
entries.map do |entry|
|
98
98
|
entry[:steam_id] = extract_steam_id entry.delete('link')
|
99
99
|
entry[:username] = entry.delete('name')
|
100
|
-
entry[:color] = entry
|
100
|
+
entry[:color] = entry.delete('color').downcase.strip
|
101
101
|
entry[:avatar_link] = entry.delete('avatar')
|
102
102
|
end
|
103
103
|
entries
|
data/lib/tf2r/version.rb
CHANGED
data/spec/scraper_spec.rb
CHANGED
@@ -135,11 +135,11 @@ describe TF2R::Scraper do
|
|
135
135
|
it 'returns correct values' do
|
136
136
|
expect(result[0][:steam_id]).to eq(76561198017461530)
|
137
137
|
expect(result[0][:username]).to eq('TheJohn')
|
138
|
-
expect(result[0][:color]).to
|
138
|
+
expect(result[0][:color]).to match(HEX_COLOR_REGEXP)
|
139
139
|
|
140
140
|
expect(result[-1][:steam_id]).to eq(76561198029274581)
|
141
141
|
expect(result[-1][:username]).to eq('big bad booty daddyᵐᵃˣ')
|
142
|
-
expect(result[-1][:color]).to
|
142
|
+
expect(result[-1][:color]).to match(HEX_COLOR_REGEXP)
|
143
143
|
end
|
144
144
|
end
|
145
145
|
|
@@ -161,7 +161,7 @@ describe TF2R::Scraper do
|
|
161
161
|
expect(result[:avatar_link]).to match(STEAM_AVATAR_LINK_REGEXP)
|
162
162
|
expect(result[:posrep]).to be > 11459
|
163
163
|
expect(result[:negrep]).to eq(0)
|
164
|
-
expect(result[:color]).to
|
164
|
+
expect(result[:color]).to match(HEX_COLOR_REGEXP)
|
165
165
|
end
|
166
166
|
end
|
167
167
|
|