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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7d94ebc86c80c6feb22ad91f1467083a2d0ef3c7
4
- data.tar.gz: 65e21c3bf9c757f41a030268b6e413370c0ccc16
3
+ metadata.gz: f2d8583e288f9e37f82d78ae57a839788c7ee2c1
4
+ data.tar.gz: d4307ac419f022f2e9a3c97f10b10dda3f5f7ea4
5
5
  SHA512:
6
- metadata.gz: 28ee0b8f40be33d8cbd401e13c4d5e03a628798056e069b7a539bff484f48483d6a052a088eff9ea1b55635fd0cd0427ff729540cc7eb85d9cf7150abefabcf3
7
- data.tar.gz: f21b50fc0f883cf0d8eba883651e0ffb5a8680b905e5ce57bf0f546764cdfc39a885f6038634760b555003d43d4bf0b79af85af11959aff2155d29848eb6f09e
6
+ metadata.gz: 70a6b9c437594f652c37e49199819f89cabf712e9ace976e10b2ecb7f1c1ab4fa3988907b7070a5e4ef10431a95f0088b0ef927c270a53e6ba1ca6ffdc2a5203
7
+ data.tar.gz: e3b99b0404da2bc243229f7a16864d98bf8d8efa082ad904fc81121d7c6022148a01ab4bb9c63671563d7a4bbe3c1022829a6057a9bccc5633008b8ee6d64b85
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- news2kindle (0.1.1)
4
+ news2kindle (0.1.2)
5
5
  dropbox_api
6
6
  kindlegen
7
7
  mail
@@ -22,8 +22,9 @@ module News2Kindle
22
22
 
23
23
  @dst_dir = @current_dir + '/dst'
24
24
  Dir::mkdir( @dst_dir )
25
- FileUtils.cp( "./resource/internet-watch.jpg", @dst_dir )
26
- FileUtils.cp( "./resource/internet-watch.css", @dst_dir )
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
- FileUtils.cp( "./resource/nikkei.jpg", @dst_dir )
28
- FileUtils.cp( "./resource/nikkei.css", @dst_dir )
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
- FileUtils.cp( "./resource/tdiary.css", @current_dir )
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
- FileUtils.cp( "./resource/wsj.jpg", @dst_dir )
41
- FileUtils.cp( "./resource/wsj.css", @dst_dir )
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
- FileUtils.cp( "./resource/wsj-us.jpg", @dst_dir + "/wsj.jpg")
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']
@@ -1,3 +1,3 @@
1
1
  module News2Kindle
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: news2kindle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - TADA Tadashi