gotascii-crags 1.1.0 → 1.1.1

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.
data/crags.gemspec CHANGED
@@ -1,16 +1,16 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{crags}
3
- s.version = "1.1.0"
3
+ s.version = "1.1.1"
4
4
 
5
5
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
6
6
  s.authors = ["Justin Marney"]
7
7
  s.date = %q{2009-01-31}
8
8
  s.description = %q{A library to help search across multiple craigslist locations.}
9
- s.email = %q{gotascii@gmail.com}
9
+ s.email = %q{justin.marney@viget.com}
10
10
  s.extra_rdoc_files = ["History.txt", "README.txt", "lib/js/client.html"]
11
11
  s.files = [".gitignore", "History.txt", "Manifest.txt", "README.txt", "Rakefile", "crags.gemspec", "lib/crags.rb", "lib/crags/fetch.rb", "lib/crags/proxy.rb", "lib/crags/runner.rb", "lib/crags/searcher.rb", "lib/js/client.html", "tasks/ann.rake", "tasks/bones.rake", "tasks/gem.rake", "tasks/git.rake", "tasks/manifest.rake", "tasks/notes.rake", "tasks/post_load.rake", "tasks/rdoc.rake", "tasks/rubyforge.rake", "tasks/setup.rb", "tasks/spec.rake", "tasks/svn.rake", "tasks/test.rake", "test/crags/fetch_test.rb", "test/crags/proxy_test.rb", "test/crags/runner_test.rb", "test/crags/searcher_test.rb", "test/test_helper.rb"]
12
12
  s.has_rdoc = true
13
- s.homepage = %q{http://github.com/gotascii/crags}
13
+ s.homepage = %q{http://github.com/vigetlabs/crags}
14
14
  s.rdoc_options = ["--main", "README.txt"]
15
15
  s.require_paths = ["lib"]
16
16
  s.rubyforge_project = %q{crags}
@@ -36,7 +36,7 @@ module Crags
36
36
  end
37
37
 
38
38
  def search_location(keyword, loc, category = 'sss', &block)
39
- doc = fetch_doc("#{loc}search/#{category}?query=#{keyword}&format=rss")
39
+ doc = fetch_doc("http://#{loc}/search/#{category}?query=#{keyword}&format=rss")
40
40
  items(doc).collect do |item|
41
41
  link = create_link(item)
42
42
  yield link if block_given?
data/lib/crags.rb CHANGED
@@ -3,7 +3,7 @@ require 'curb'
3
3
  require 'hpricot'
4
4
 
5
5
  module Crags
6
- VERSION = '1.1.0'
6
+ VERSION = '1.1.1'
7
7
  LIBPATH = ::File.expand_path(::File.dirname(__FILE__)) + ::File::SEPARATOR
8
8
  PATH = ::File.dirname(LIBPATH) + ::File::SEPARATOR
9
9
 
@@ -46,7 +46,7 @@ context "Searcher with stubbed fetch doc" do
46
46
  end
47
47
 
48
48
  specify "search location should fetch doc for search url" do
49
- expects(:fetch_doc).with("urlsearch/sss?query=keyword&format=rss")
49
+ expects(:fetch_doc).with("http://url/search/sss?query=keyword&format=rss")
50
50
  stubs(:items).returns([])
51
51
  search_location("keyword", "url")
52
52
  end
@@ -98,13 +98,13 @@ context "Searcher with stubbed fetch doc" do
98
98
  end
99
99
 
100
100
  specify "search location should accept a category parameter" do
101
- expects(:fetch_doc).with("locsearch/scram?query=keyword&format=rss")
101
+ expects(:fetch_doc).with("http://loc/search/scram?query=keyword&format=rss")
102
102
  stubs(:items).returns([])
103
103
  search_location('keyword', 'loc', 'scram')
104
104
  end
105
105
 
106
106
  specify "search location default category is sss" do
107
- expects(:fetch_doc).with("locsearch/sss?query=keyword&format=rss")
107
+ expects(:fetch_doc).with("http://loc/search/sss?query=keyword&format=rss")
108
108
  stubs(:items).returns([])
109
109
  search_location('keyword', 'loc')
110
110
  end
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.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Marney
@@ -14,7 +14,7 @@ default_executable:
14
14
  dependencies: []
15
15
 
16
16
  description: A library to help search across multiple craigslist locations.
17
- email: gotascii@gmail.com
17
+ email: justin.marney@viget.com
18
18
  executables: []
19
19
 
20
20
  extensions: []
@@ -55,7 +55,7 @@ files:
55
55
  - test/crags/searcher_test.rb
56
56
  - test/test_helper.rb
57
57
  has_rdoc: true
58
- homepage: http://github.com/gotascii/crags
58
+ homepage: http://github.com/vigetlabs/crags
59
59
  post_install_message:
60
60
  rdoc_options:
61
61
  - --main