ruri 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/ruri/search.rb +6 -2
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.2
|
data/lib/ruri/search.rb
CHANGED
@@ -47,8 +47,12 @@ module Ruri
|
|
47
47
|
result = []
|
48
48
|
doc = Nokogiri::HTML(html)
|
49
49
|
doc.css('.entries').each do |dl|
|
50
|
-
[
|
51
|
-
|
50
|
+
[
|
51
|
+
dl.css('.entry-name .signature'),
|
52
|
+
dl.css('.entry-document .entry-link a'),
|
53
|
+
dl.css('.entry-summary')
|
54
|
+
].transpose.each do |name, link, summary|
|
55
|
+
result << Result.new(name.content.strip, BASE_URL + link[:href], summary.content.strip)
|
52
56
|
end
|
53
57
|
end
|
54
58
|
result
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 2
|
9
|
+
version: 0.1.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- jugyo
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2011-
|
17
|
+
date: 2011-02-02 00:00:00 +09:00
|
18
18
|
default_executable: ruri
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -212,7 +212,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
212
212
|
requirements:
|
213
213
|
- - ">="
|
214
214
|
- !ruby/object:Gem::Version
|
215
|
-
hash: -
|
215
|
+
hash: -3218145778283058628
|
216
216
|
segments:
|
217
217
|
- 0
|
218
218
|
version: "0"
|