whos_dated_who 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +62 -0
- data/{LICENSE.txt → LICENSE.md} +1 -1
- data/README.md +245 -55
- data/lib/whos_dated_who/client.rb +3 -1
- data/lib/whos_dated_who/parser.rb +9 -1
- data/lib/whos_dated_who/version.rb +1 -1
- data/spec/acceptance/whos_dated_who_spec.rb +5 -5
- data/spec/fixtures/scarlett_johansson.resp +567 -1882
- data/spec/spec_helper.rb +1 -0
- data/spec/whos_dated_who/parser_spec.rb +2 -3
- metadata +4 -3
data/spec/spec_helper.rb
CHANGED
@@ -12,8 +12,7 @@ module WhosDatedWho
|
|
12
12
|
context 'biography' do
|
13
13
|
it 'parses the HTML and returns a result hash' do
|
14
14
|
expect(@result.first_name).to eq('Scarlett')
|
15
|
-
expect(@result.last_name).to eq('
|
16
|
-
expect(@result.maiden_name).to eq('Johansson')
|
15
|
+
expect(@result.last_name).to eq('Johansson')
|
17
16
|
end
|
18
17
|
|
19
18
|
it 'translates keys' do
|
@@ -52,7 +51,7 @@ module WhosDatedWho
|
|
52
51
|
expect(@result.websites).to include(/scarlett-fan\.com/)
|
53
52
|
expect(@result.brothers).to include(/Hunter Johansson/)
|
54
53
|
expect(@result.sisters.size).to eq(2)
|
55
|
-
expect(@result.friends.size).to eq(
|
54
|
+
expect(@result.friends.size).to eq(5)
|
56
55
|
expect(@result.pets.size).to eq(2)
|
57
56
|
expect(@result.favorite_movies).to include(/Heat/)
|
58
57
|
expect(@result.favorite_places).to include('London')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: whos_dated_who
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adrian Perez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-08-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -246,8 +246,9 @@ files:
|
|
246
246
|
- ".rspec"
|
247
247
|
- ".rubocop.yml"
|
248
248
|
- ".travis.yml"
|
249
|
+
- CHANGELOG.md
|
249
250
|
- Gemfile
|
250
|
-
- LICENSE.
|
251
|
+
- LICENSE.md
|
251
252
|
- README.md
|
252
253
|
- Rakefile
|
253
254
|
- bin/whos_dated_who
|