kindlegen 2.4.0 → 2.4.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,14 +5,21 @@
5
5
  require 'rbconfig'
6
6
  File::open('Makefile', 'w') do |w|
7
7
  tarball = case RbConfig::CONFIG['host_os']
8
- when /mac|darwin/i then "KindleGen_Mac_i386_v2_4.zip"
9
- when /linux|cygwin/i then "kindlegen_linux_2.6_i386_v2_4.tar.gz"
8
+ when /mac|darwin/i
9
+ unzip = 'unzip'
10
+ "KindleGen_Mac_i386_v2_4.zip"
11
+ when /linux|cygwin/i
12
+ unzip = 'tar zxf'
13
+ "kindlegen_linux_2.6_i386_v2_4.tar.gz"
10
14
  else
11
15
  STDERR.puts "Host OS unsupported!"
12
16
  exit(1)
13
17
  end
14
18
 
15
- config = {"tarball" => tarball}
19
+ config = {
20
+ "unzip" => unzip,
21
+ "tarball" => tarball
22
+ }
16
23
 
17
24
  if Dir::pwd.include? 'gems'
18
25
  w.puts RbConfig.expand(DATA.read, config.merge('bindir' => '../../../../bin') )
@@ -28,13 +35,13 @@ TARGET = kindlegen
28
35
  BINDIR = $(bindir)
29
36
  TARBALL = $(tarball)
30
37
  CURL = curl
31
- TARX = tar zxf
38
+ UNZIP = $(unzip)
32
39
  CP = cp
33
40
 
34
41
  all:
35
42
 
36
43
  $(TARGET): $(TARBALL)
37
- $(TARX) $(TARBALL)
44
+ $(UNZIP) $(TARBALL)
38
45
  touch $(TARGET)
39
46
 
40
47
  $(TARBALL):
@@ -1,3 +1,3 @@
1
1
  module Kindlegen
2
- VERSION = "2.4.0"
2
+ VERSION = "2.4.1"
3
3
  end
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: 2.4.0
4
+ version: 2.4.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-04-03 00:00:00.000000000 Z
12
+ date: 2012-07-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: systemu
16
- requirement: &72346150 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,12 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *72346150
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
25
30
  description: Installing kindlegen command, downloading tar.gz file from amazon.com,
26
31
  and extracting it and copy kindlegen command to bin.
27
32
  email:
@@ -59,7 +64,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
59
64
  version: '0'
60
65
  requirements: []
61
66
  rubyforge_project:
62
- rubygems_version: 1.8.11
67
+ rubygems_version: 1.8.23
63
68
  signing_key:
64
69
  specification_version: 3
65
70
  summary: Installing kindlegen command.