Html2Feedbooks 1.0.7 → 1.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README +2 -1
  2. data/lib/app.rb +4 -1
  3. 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
- ./html2fb URL.html
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::HTTPSuccess, Net::HTTPRedirection
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Html2Feedbooks
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benoit Larroque