whos_dated_who 0.2.7 → 0.3.0

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: d32943735368faff2805567b72f33313cde9a7ae
4
- data.tar.gz: 10e314e1ab1cd6c2410daf77583065034ec5eb9c
3
+ metadata.gz: 5a514d64aca0c9604731c4787b82025cb6b72349
4
+ data.tar.gz: 0d50b08f2673d864b281fea5e44ba56eed7af320
5
5
  SHA512:
6
- metadata.gz: da030033536383f266dcedc3b9376d84ddd97a6a9f2c62b17eb33e8712e2d55e37be9302b3d7046328a1f88eecca0172927e52d428a6742d0dc5c7cb7cc466f8
7
- data.tar.gz: a5f67c32494d65c37c4bdc5385de655ff78d12a80430aef9fe516917d56e9bf348c43c83d3cfe66086f6254fe689b437a46529324a17253ffb1a60e0f9777e2d
6
+ metadata.gz: 7007d44aaf1273520b25e606973ee7ac20bfc0596655d474defad940fc303ff6141467befd8a93f479de21993461477b6b7ce05e49e0bdcb564a3972453b3895
7
+ data.tar.gz: 5cd81f8543cb39c424bd7891cf9b2a105440ae5d4255cdabad66efbdb8506c84aa6df851dbdc9b0a9fb895809309128524653d6ebcae5b03eea5b6d5bef7c522
@@ -16,6 +16,7 @@ class Biography < Hashie::Trash
16
16
  property :born_at, from: :birthplace
17
17
  property :height
18
18
  property :weight
19
+ property :description
19
20
  property :build
20
21
  property :eye_color
21
22
  property :hair_color
@@ -16,12 +16,10 @@ module WhosDatedWho
16
16
 
17
17
  private
18
18
  def extract_bio
19
- bio = @doc.css('.contentbox-r:nth-child(2)')
20
- # Check if is the annoying needs a banner thingy
21
- if bio.css('.anu').length > 0
22
- bio = @doc.css('.contentbox-r:nth-child(3)')
23
- end
24
19
  result = {}
20
+ result[:description] = @doc.css('#wikitext').text
21
+
22
+ bio = @doc.css('#rcol .cbox-nopad:nth-child(3)')
25
23
  bio.css('.posl, .posr').each do |el|
26
24
  if el.matches?('.posl')
27
25
  @key = el.content
@@ -1,3 +1,3 @@
1
1
  module WhosDatedWho
2
- VERSION = "0.2.7"
2
+ VERSION = "0.3.0"
3
3
  end