news2kindle 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/news2kindle/generator/internet-watch.rb +3 -2
- data/lib/news2kindle/generator/nikkei-paid.rb +3 -2
- data/lib/news2kindle/generator/tdiary.rb +2 -1
- data/lib/news2kindle/generator/wsj-paid.rb +3 -2
- data/lib/news2kindle/generator/wsjus-paid.rb +2 -1
- data/lib/news2kindle/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f2d8583e288f9e37f82d78ae57a839788c7ee2c1
|
4
|
+
data.tar.gz: d4307ac419f022f2e9a3c97f10b10dda3f5f7ea4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70a6b9c437594f652c37e49199819f89cabf712e9ace976e10b2ecb7f1c1ab4fa3988907b7070a5e4ef10431a95f0088b0ef927c270a53e6ba1ca6ffdc2a5203
|
7
|
+
data.tar.gz: e3b99b0404da2bc243229f7a16864d98bf8d8efa082ad904fc81121d7c6022148a01ab4bb9c63671563d7a4bbe3c1022829a6057a9bccc5633008b8ee6d64b85
|
data/Gemfile.lock
CHANGED
@@ -22,8 +22,9 @@ module News2Kindle
|
|
22
22
|
|
23
23
|
@dst_dir = @current_dir + '/dst'
|
24
24
|
Dir::mkdir( @dst_dir )
|
25
|
-
|
26
|
-
FileUtils.cp( "
|
25
|
+
resource = Pathname(__FILE__) + '../../../../resource'
|
26
|
+
FileUtils.cp(resource + "internet-watch.jpg", @dst_dir)
|
27
|
+
FileUtils.cp(resource + "internet-watch.css", @dst_dir)
|
27
28
|
end
|
28
29
|
|
29
30
|
def generate(opts)
|
@@ -24,8 +24,9 @@ module News2Kindle
|
|
24
24
|
|
25
25
|
@dst_dir = @current_dir + '/dst'
|
26
26
|
Dir::mkdir( @dst_dir )
|
27
|
-
|
28
|
-
FileUtils.cp( "
|
27
|
+
resource = Pathname(__FILE__) + '../../../../resource'
|
28
|
+
FileUtils.cp(resource + "nikkei.jpg", @dst_dir)
|
29
|
+
FileUtils.cp(resource + "nikkei.css", @dst_dir)
|
29
30
|
end
|
30
31
|
|
31
32
|
def generate(opts)
|
@@ -10,7 +10,8 @@ module News2Kindle
|
|
10
10
|
class Tdiary
|
11
11
|
def initialize( tmpdir )
|
12
12
|
@current_dir = tmpdir
|
13
|
-
|
13
|
+
resource = Pathname(__FILE__) + '../../../../resource'
|
14
|
+
FileUtils.cp(resource + "tdiary.css", @current_dir)
|
14
15
|
end
|
15
16
|
|
16
17
|
def generate(opts)
|
@@ -37,8 +37,9 @@ module News2Kindle
|
|
37
37
|
|
38
38
|
@dst_dir = @current_dir + '/dst'
|
39
39
|
Dir::mkdir( @dst_dir ) if(!File.exist?( @dst_dir ))
|
40
|
-
|
41
|
-
FileUtils.cp( "
|
40
|
+
resource = Pathname(__FILE__) + '../../../../resource'
|
41
|
+
FileUtils.cp(resource + "wsj.jpg", @dst_dir)
|
42
|
+
FileUtils.cp(resource + "wsj.css", @dst_dir)
|
42
43
|
end
|
43
44
|
|
44
45
|
def generate(opts)
|
@@ -16,7 +16,8 @@ module Kindlizer
|
|
16
16
|
@now_str = now.strftime '%Y-%m-%d %H:%M'
|
17
17
|
@title = "WSJ U.S."
|
18
18
|
@lang = "en-US"
|
19
|
-
|
19
|
+
resource = Pathname(__FILE__) + '../../../../resource'
|
20
|
+
FileUtils.cp(rescue + "wsj-us.jpg", @dst_dir + "/wsj.jpg")
|
20
21
|
|
21
22
|
agent = Mechanize::new
|
22
23
|
agent.set_proxy( *ENV['HTTP_PROXY'].split( /:/ ) ) if ENV['HTTP_PROXY']
|
data/lib/news2kindle/version.rb
CHANGED