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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 65a73ff224cf514484273d9200eb5e8b908c61ed
4
- data.tar.gz: 1e386106301aaf032f5abbcaf83b1606b715c679
3
+ metadata.gz: de6827e54972f96bcc6ab9c6f155b2c0a59a887c
4
+ data.tar.gz: 296779a2cd81d36d63a13da845236c29224d5a82
5
5
  SHA512:
6
- metadata.gz: 8f24e79c6ba3e65d8bd01fd85b5b4c2fa1ab3c8aee0c9eb6fc3d399c29ea6efc804b08986740829886a62f47195687b0661f89550d61c4a1ad43c4f8cfb3c048
7
- data.tar.gz: d33336e43f22de1a0bfb14840cccdb1b98b809fa41cb8be0fddfba9b56590ac77c2bb5bd09816b2b958819880bb54ff478e16f29c140b913ad54714b1ff702ae
6
+ metadata.gz: 35b6f978f49ea770eced44d46898ba73c3f1741a9cbde1c52a587b8ffcb20efa359ce1b96c6cc57b6c1fbc016f10cc10b573dbd976212e331b3219af102cfd2d
7
+ data.tar.gz: ce04e769fbbbe0f08207d6a893df372b0a430fdff477499611bb186b2cea09d38fd70cae54de14baa520e9c764c539c46692a7cbe3321f00cacb35686499c7c9
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- tf2r (0.6.0)
4
+ tf2r (0.6.1)
5
5
  mechanize (~> 2.7)
6
6
 
7
7
  GEM
@@ -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['color'].downcase.strip
100
+ entry[:color] = entry.delete('color').downcase.strip
101
101
  entry[:avatar_link] = entry.delete('avatar')
102
102
  end
103
103
  entries
@@ -1,3 +1,3 @@
1
1
  module TF2R
2
- VERSION = '0.6.0'
2
+ VERSION = '0.6.1'
3
3
  end
@@ -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 eq('ebe2ca')
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 eq('cd9b1d')
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 eq('70b01b')
164
+ expect(result[:color]).to match(HEX_COLOR_REGEXP)
165
165
  end
166
166
  end
167
167
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tf2r
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Kim