Html2Feedbooks 1.0.7 → 1.0.8
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/README +2 -1
- data/lib/app.rb +4 -1
- metadata +1 -1
data/README
CHANGED
|
@@ -6,7 +6,8 @@ A script to automate basic publishing work on Feedbooks.com.
|
|
|
6
6
|
Usage
|
|
7
7
|
-----
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
html2fb URL.html
|
|
10
|
+
(it should already reside somewhere in your PATH after installation)
|
|
10
11
|
|
|
11
12
|
You can change some settings by creating your own configuration file and using
|
|
12
13
|
|
data/lib/app.rb
CHANGED
|
@@ -64,7 +64,10 @@ class AtomPost
|
|
|
64
64
|
|
|
65
65
|
res = Net::HTTP.new(url.host, url.port).start {|http| http.request(req) }
|
|
66
66
|
case res
|
|
67
|
-
when Net::
|
|
67
|
+
when Net::HTTPRedirection
|
|
68
|
+
self.addr=res['location']
|
|
69
|
+
return send
|
|
70
|
+
when Net::HTTPSuccess
|
|
68
71
|
# STDERR.puts green(res['location']) if res['location']
|
|
69
72
|
res['location'] if res['location']
|
|
70
73
|
else
|