transfermarkt 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/transfermarkt/entity_base.rb +1 -1
- data/lib/transfermarkt/player.rb +2 -2
- data/lib/transfermarkt/version.rb +1 -1
- 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: 228363fcbcdaccf2698d46c1f0b80c8dd5c571f4
|
4
|
+
data.tar.gz: 9dd250eb66d239c6785ce85e7374b14299746487
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab92a62fb63ed795f6fea58a78c8d02a281ab76898a0687fa0f34a8d3d17267ce5cb005f9f52afacf1bd6b85d0ee4ac49e256b9a55f562edd4acc9f5f45de2e3
|
7
|
+
data.tar.gz: a0b4872eb02d424bb0eca21cf23d7f5569e410457b575943758ce8a6ba4ad9aaa607386bfe15dbf5067aef0ce0f4ac8d72a1b954c3cd7ac86eeaf1fe21c56951
|
data/lib/transfermarkt/player.rb
CHANGED
@@ -27,9 +27,9 @@ module Transfermarkt
|
|
27
27
|
:UNIVERSAL_NEWLINE_DECORATOR => true # Always break lines with \n
|
28
28
|
}
|
29
29
|
self.age = self.age.to_i
|
30
|
-
self.market_value = #self.market_value.to_s.gsub(",", "").to_i
|
30
|
+
#self.market_value = #self.market_value.to_s.gsub(",", "").to_i
|
31
31
|
self.height = self.height.to_s.gsub(",", "").to_i
|
32
|
-
self.nationality = self.nationality.to_s.encode(Encoding.find('ASCII'), encoding_options).split("\
|
32
|
+
self.nationality = self.nationality.to_s.encode(Encoding.find('ASCII'), encoding_options).split("\t").collect(&:strip)
|
33
33
|
if self.date_of_birth.present?
|
34
34
|
self.age = Date.today.year - Date.parse(self.date_of_birth).year
|
35
35
|
end
|