bookscan 0.5.3 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/bookscan.gemspec +1 -1
- data/lib/bookscan/agent.rb +2 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.4
|
data/bookscan.gemspec
CHANGED
data/lib/bookscan/agent.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
2
|
require "rubygems"
|
3
|
+
require "uri"
|
3
4
|
require "mechanize"
|
4
5
|
require 'httpclient'
|
5
6
|
require 'progressbar'
|
@@ -43,7 +44,7 @@ module Bookscan
|
|
43
44
|
if TUNED_PATTERN =~ td.to_s
|
44
45
|
a = td.at("a")
|
45
46
|
book = Book.new
|
46
|
-
book.title = $1
|
47
|
+
book.title = URI.decode($1)
|
47
48
|
book.url = a.attributes["href"].value.to_s
|
48
49
|
book.group_url = "/tunelablist.php"
|
49
50
|
bs << book
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bookscan
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 3
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 0.5.
|
9
|
+
- 4
|
10
|
+
version: 0.5.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Yoshihiro TAKAHARA
|