kindlegen 3.0.1 → 3.0.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: db82ec9b6513f04b3265919d8dea63278deabacd
4
- data.tar.gz: a4f65d8568002721d6a5dd54cbbd9db85bb52641
3
+ metadata.gz: 954381b740829273dcc51f45cba3843514d5d7e2
4
+ data.tar.gz: 87b5468e96c2e5b182e4b7dd682cc3ba69c9a43e
5
5
  SHA512:
6
- metadata.gz: 9f2d57d17bd1c916174e35444aecb13df59cc3abef1aaa8d66378914c983e2c9b5c5d5217ce98156f65ea2794c1f472cdb426ae591746fdbfc37b8f792bf46b6
7
- data.tar.gz: 2c04d1de10bcf8c741b2c2b3f9155ae44359176577074ef1925b6192f2b13d44e8413ead3b337ce36b52833fc29eecd745952cca99dbe74b2f2a9ab703b968a5
6
+ metadata.gz: 3e5944a39a3d9de49e378b29b6afac8f4c9267a6df5f8deb544ff5196b474d1f3e1e6cdf34f1143077f6bba22776a17464e0e3f320215cd1f30763b0f3e0d58d
7
+ data.tar.gz: f23ec67c5f42262b7260567e024274c7bd10eb35bbb75ff3073462519c272506dacfe19d42dc61ba47bd11db4f9aacb363bee636b5de39e4e54d207c7eda9d1a
data/README.md CHANGED
@@ -12,12 +12,15 @@ Require `kindlegen`, then run kindlegen commands.
12
12
 
13
13
  Returns the path of the kindlegen command.
14
14
 
15
- ### Kindlegen.run( *args )
15
+ ### Kindlegen.run(*args)
16
16
 
17
17
  Runs the kindlegen command with specified parameters.
18
18
 
19
19
  ### Example
20
20
  require 'kindlegen'
21
- Kindlegen.run("sample.opf", "-o", "sample.mobi")
22
-
23
-
21
+ stdout, stderr, status = Kindlegen.run("sample.opf", "-o", "sample.mobi")
22
+ if status == 0
23
+ puts stdout
24
+ else
25
+ $stderr.puts stderr
26
+ end
@@ -31,7 +31,7 @@ def create_task_for_unix(config)
31
31
  end
32
32
 
33
33
  file tarball do
34
- sh "curl #{url} -o #{tarball}"
34
+ sh "curl #{url} -L -o #{tarball}"
35
35
  end
36
36
  end
37
37
 
@@ -1,3 +1,3 @@
1
1
  module Kindlegen
2
- VERSION = '3.0.1' unless const_defined?(:VERSION)
2
+ VERSION = '3.0.2' unless const_defined?(:VERSION)
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kindlegen
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1
4
+ version: 3.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - TADA Tadashi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-12-20 00:00:00.000000000 Z
11
+ date: 2016-12-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip