gotascii-crags 1.4.6 → 1.4.9
Sign up to get free protection for your applications and to get access to all the features.
- data/Manifest.txt +1 -1
- data/crags.gemspec +1 -1
- data/lib/crags.rb +1 -1
- data/lib/crags/fetch.rb +1 -1
- data/lib/crags/searcher.rb +1 -1
- data/test/crags/fetch_test.rb +2 -2
- data/test/crags/searcher_test.rb +5 -0
- metadata +3 -2
data/Manifest.txt
CHANGED
data/crags.gemspec
CHANGED
data/lib/crags.rb
CHANGED
data/lib/crags/fetch.rb
CHANGED
data/lib/crags/searcher.rb
CHANGED
data/test/crags/fetch_test.rb
CHANGED
@@ -12,9 +12,9 @@ class Crags::FetchTest < Test::Unit::TestCase
|
|
12
12
|
fetch_doc("url").should == "doc"
|
13
13
|
end
|
14
14
|
|
15
|
-
should "fetch html should
|
15
|
+
should "fetch html should fetch_request a url" do
|
16
16
|
curb = stub(:body_str => "uhh")
|
17
|
-
|
17
|
+
expects(:fetch_request).with("url").returns(curb)
|
18
18
|
fetch_html("url").should == "uhh"
|
19
19
|
end
|
20
20
|
|
data/test/crags/searcher_test.rb
CHANGED
@@ -14,6 +14,11 @@ class Crags::SearcherTest < Test::Unit::TestCase
|
|
14
14
|
strip_http(url).should == "omg"
|
15
15
|
end
|
16
16
|
|
17
|
+
should "strip_http should remove http:// when there is no trailing slash" do
|
18
|
+
url = "http://omg"
|
19
|
+
strip_http(url).should == "omg"
|
20
|
+
end
|
21
|
+
|
17
22
|
should "location doc should fetch doc at location url" do
|
18
23
|
expects(:fetch_doc).with("http://geo.craigslist.org/iso/us").returns("doc")
|
19
24
|
location_doc('us').should == "doc"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gotascii-crags
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Marney
|
@@ -41,6 +41,7 @@ files:
|
|
41
41
|
- test/test_helper.rb
|
42
42
|
has_rdoc: true
|
43
43
|
homepage: http://github.com/vigetlabs/crags
|
44
|
+
licenses:
|
44
45
|
post_install_message:
|
45
46
|
rdoc_options:
|
46
47
|
- --main
|
@@ -62,7 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
62
63
|
requirements: []
|
63
64
|
|
64
65
|
rubyforge_project: crags
|
65
|
-
rubygems_version: 1.
|
66
|
+
rubygems_version: 1.3.5
|
66
67
|
signing_key:
|
67
68
|
specification_version: 2
|
68
69
|
summary: A library to help search across multiple craigslist locations
|