anemone 0.1.0 → 0.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/lib/anemone/anemone.rb +1 -1
- data/lib/anemone/http.rb +3 -2
- metadata +13 -12
data/lib/anemone/anemone.rb
CHANGED
data/lib/anemone/http.rb
CHANGED
|
@@ -29,9 +29,10 @@ module Anemone
|
|
|
29
29
|
# Get an HTTPResponse for *url*, sending the appropriate User-Agent string
|
|
30
30
|
#
|
|
31
31
|
def self.get_response(url)
|
|
32
|
+
full_path = url.query.nil? ? url.path : "#{url.path}?#{url.query}"
|
|
32
33
|
Net::HTTP.start(url.host, url.port) do |http|
|
|
33
|
-
return http.get(
|
|
34
|
+
return http.get(full_path, {'User-Agent' => Anemone::USER_AGENT })
|
|
34
35
|
end
|
|
35
36
|
end
|
|
36
37
|
end
|
|
37
|
-
end
|
|
38
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: anemone
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chris Kite
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2009-07-
|
|
12
|
+
date: 2009-07-22 00:00:00 -05:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
@@ -35,22 +35,23 @@ extensions: []
|
|
|
35
35
|
extra_rdoc_files:
|
|
36
36
|
- README.rdoc
|
|
37
37
|
files:
|
|
38
|
-
- bin/anemone_url_list.rb
|
|
39
|
-
- bin/anemone_serialize.rb
|
|
40
38
|
- bin/anemone_pagedepth.rb
|
|
41
|
-
- bin/
|
|
39
|
+
- bin/anemone_url_list.rb
|
|
42
40
|
- bin/anemone_cron.rb
|
|
43
|
-
-
|
|
44
|
-
-
|
|
41
|
+
- bin/anemone_count.rb
|
|
42
|
+
- bin/anemone_serialize.rb
|
|
43
|
+
- lib/anemone/tentacle.rb
|
|
45
44
|
- lib/anemone/page.rb
|
|
45
|
+
- lib/anemone/page_hash.rb
|
|
46
46
|
- lib/anemone/core.rb
|
|
47
|
-
- lib/anemone/anemone.rb
|
|
48
47
|
- lib/anemone/http.rb
|
|
49
|
-
- lib/anemone/
|
|
50
|
-
- lib/anemone
|
|
48
|
+
- lib/anemone/anemone.rb
|
|
49
|
+
- lib/anemone.rb
|
|
51
50
|
- README.rdoc
|
|
52
51
|
has_rdoc: true
|
|
53
52
|
homepage: http://anemone.rubyforge.org
|
|
53
|
+
licenses: []
|
|
54
|
+
|
|
54
55
|
post_install_message:
|
|
55
56
|
rdoc_options:
|
|
56
57
|
- -m
|
|
@@ -74,9 +75,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
74
75
|
requirements: []
|
|
75
76
|
|
|
76
77
|
rubyforge_project: anemone
|
|
77
|
-
rubygems_version: 1.3.
|
|
78
|
+
rubygems_version: 1.3.4
|
|
78
79
|
signing_key:
|
|
79
|
-
specification_version:
|
|
80
|
+
specification_version: 3
|
|
80
81
|
summary: Anemone web-spider framework
|
|
81
82
|
test_files: []
|
|
82
83
|
|