kindlegen 1.2.3 → 1.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +7 -0
- data/ext/kindlegen/extconf.rb +1 -1
- data/lib/kindlegen.rb +22 -1
- data/lib/kindlegen/version.rb +1 -1
- metadata +2 -2
data/.gitignore
CHANGED
data/ext/kindlegen/extconf.rb
CHANGED
data/lib/kindlegen.rb
CHANGED
@@ -1,5 +1,26 @@
|
|
1
1
|
require "kindlegen/version"
|
2
|
+
require 'pathname'
|
2
3
|
|
3
4
|
module Kindlegen
|
4
|
-
|
5
|
+
#
|
6
|
+
# Getting command path of kindlegen.
|
7
|
+
# If it required under gem, returning path in the extension.
|
8
|
+
# Not if, it return simply 'kindlegen' so you have to copy the command into $PATH.
|
9
|
+
#
|
10
|
+
def self.command
|
11
|
+
if __FILE__.include? 'gems'
|
12
|
+
(Pathname( __FILE__ ).parent + '../ext/kindlegen/kindlegen').to_s
|
13
|
+
else
|
14
|
+
'kindlegen'
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
#
|
19
|
+
# Run kindlegen command with spacified parameters
|
20
|
+
#
|
21
|
+
# _params_:: array of command parameters.
|
22
|
+
#
|
23
|
+
def self.run( *params )
|
24
|
+
system command, *params
|
25
|
+
end
|
5
26
|
end
|
data/lib/kindlegen/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kindlegen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-12-
|
12
|
+
date: 2011-12-02 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Installing kindlegen command, downloading tar.gz file from amazon.com,
|
15
15
|
and extracting it and copy kindlegen command to bin.
|