kindlegen 2.9.2 → 2.9.3

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: 5caf21ba8ba88d6157e62fde239ff86c54543946
4
- data.tar.gz: 607916787bfab480976b0232caa52e7b15400880
3
+ metadata.gz: c6ea6160e529efa054387e4b69212b767058ff39
4
+ data.tar.gz: 722ff7476c42f13d51fe931e0b0a217b47b7b89b
5
5
  SHA512:
6
- metadata.gz: ef9f6a4c81581f111338f34f3da101439bede31d40201bf830fbb8d7b5203af73cfdf47abed7c8c4b99e8585a472c0a395db86b6c7b67d4313d20c8b79a3c398
7
- data.tar.gz: 1555c0dbb87819a5f6a6c40f1a4a87105f2ae0daeac1aa3b80ab7ca556b21b6a2eebfa3bb8a8b506ecb9a7ad71459d4a5ce41f7f87ba7fa3faab90ffb3f8c092
6
+ metadata.gz: df6b7766fc65755a8f4ad55e1468db952d950c0f3f27e218402647cf39bcd88a8f011072f124c8e9a89c862e370e8dda86670dbe7014c2200e2e9cfd1f129ed0
7
+ data.tar.gz: ae1d12da38d9c7e7f9829ef161cc1d328e9cddf749b09bede0bb94378cfc2dfdcad50b7392fd513aa81d003da2b1dbe1b98d118908018f258a807795813b9530
data/.tachikoma.yml ADDED
@@ -0,0 +1 @@
1
+ strategy: 'bundler'
@@ -11,6 +11,9 @@ File::open('Makefile', 'w') do |w|
11
11
  when /linux|cygwin/i
12
12
  unzip = 'tar zxf'
13
13
  "kindlegen_linux_2.6_i386_v2_9.tar.gz"
14
+ when /mingw32/i
15
+ unzip = 'unzip'
16
+ "kindlegen_win32_v2_9.zip"
14
17
  else
15
18
  STDERR.puts "Host OS unsupported!"
16
19
  exit(1)
data/kindlegen.gemspec CHANGED
@@ -19,5 +19,4 @@ Gem::Specification.new do |s|
19
19
 
20
20
  # specify any dependencies here; for example:
21
21
  s.add_development_dependency "pry"
22
- s.add_runtime_dependency "systemu"
23
22
  end
data/lib/kindlegen.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  require "kindlegen/version"
2
2
  require 'pathname'
3
- require 'systemu'
3
+ require 'open3'
4
4
 
5
5
  module Kindlegen
6
6
  Root = Pathname.new(File.expand_path('../..', __FILE__))
@@ -24,16 +24,16 @@ module Kindlegen
24
24
  #
25
25
  def self.run( *params )
26
26
  clean_env do
27
- systemu(command + ' ' + params.join(' '))
27
+ Open3.capture3(command + ' ' + params.join(' '))
28
28
  end
29
29
  end
30
30
 
31
31
  private
32
32
  def self.clean_env
33
- env_backup = {}.tap{|e|ENV.each{|k,v| e[k] = v}}
34
- ENV.keys.each{|key| ENV.delete(key)}
33
+ env_backup = ENV.to_h
34
+ ENV.clear
35
35
  ret = yield
36
- env_backup.each{|k,v| ENV[k] = v}
36
+ ENV.replace(env_backup)
37
37
  return ret
38
38
  end
39
39
  end
@@ -1,3 +1,3 @@
1
1
  module Kindlegen
2
- VERSION = '2.9.2'
2
+ VERSION = '2.9.3'
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: 2.9.2
4
+ version: 2.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - TADA Tadashi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-26 00:00:00.000000000 Z
11
+ date: 2014-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
@@ -24,20 +24,6 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
- - !ruby/object:Gem::Dependency
28
- name: systemu
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
27
  description: Installing kindlegen command, downloading tar.gz file from amazon.com,
42
28
  and extracting it and copy kindlegen command to bin.
43
29
  email:
@@ -48,6 +34,7 @@ extensions:
48
34
  extra_rdoc_files: []
49
35
  files:
50
36
  - ".gitignore"
37
+ - ".tachikoma.yml"
51
38
  - ".travis.yml"
52
39
  - Gemfile
53
40
  - README.md