email_crawler 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/email_crawler/page_links.rb +2 -0
- data/lib/email_crawler/version.rb +1 -1
- data/spec/lib/email_crawler/scraper_spec.rb +4 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c66a31ba29e57a09952acc7e1816093ba8aaf613
|
4
|
+
data.tar.gz: 094c99616e62b5c92d892faa02d44e322b44c2b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 387b8ef9db7125a79ed935801b07b5cfb3175895c43fdbfcc922135b150ce6535fa3508b565245905568f5ac0241d9fa57c2f50452046185984bbd96d7c40e15
|
7
|
+
data.tar.gz: 9e51f77812283e4d02ecb8130d19030d17e19716be3cad0521f6ff2f7dfe6d271134fa5fd9c4f52e422b194fba94675292b2a15bac411943e0beb7cb6abb4560
|
@@ -4,10 +4,12 @@ require File.expand_path("lib/email_crawler")
|
|
4
4
|
|
5
5
|
module EmailCrawler
|
6
6
|
describe Scraper do
|
7
|
-
|
7
|
+
let(:max_results) { 10 }
|
8
|
+
|
9
|
+
subject { Scraper.new("google.de", max_results) }
|
8
10
|
|
9
11
|
it "returns the top 10 URLs for a given search term/expression" do
|
10
|
-
subject.
|
12
|
+
subject.search_result_urls_for("berlin tours").length.must_equal max_results
|
11
13
|
end
|
12
14
|
end
|
13
15
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: email_crawler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cristian Rasch
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mechanize
|