kindlegen 2.9.3.1 → 2.9.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.1.0
3
+ - 2.1.5
4
4
  # NOTE the build step is required to run the tests
5
5
  script: bundle exec rake build test
@@ -1,3 +1,3 @@
1
1
  module Kindlegen
2
- VERSION = '2.9.3.1'
2
+ VERSION = '2.9.4' unless const_defined?(:VERSION)
3
3
  end
@@ -1,4 +1,5 @@
1
1
  require 'test/unit'
2
+ require 'rubygems/installer'
2
3
  require 'rubygems/uninstaller'
3
4
  KINDLEGEN_PROJECT_DIR = File.expand_path(File.dirname(File.dirname(__FILE__)))
4
5
  $:.delete(File.join(KINDLEGEN_PROJECT_DIR, 'lib'))
@@ -8,12 +9,11 @@ class KindlegenTest < Test::Unit::TestCase
8
9
  kindlegen_lib_dir = nil
9
10
  gem_version = File.read(File.join(KINDLEGEN_PROJECT_DIR, 'lib/kindlegen/version.rb')).match(/VERSION = ["'](.*?)["']/)[1]
10
11
  gem_file = File.join(KINDLEGEN_PROJECT_DIR, 'pkg', %(kindlegen-#{gem_version}.gem))
11
- result = Gem.install gem_file
12
+ result = Gem::Installer.new(gem_file).install
12
13
  begin
13
14
  require 'kindlegen'
14
15
  rescue ::LoadError
15
- kindlegen_lib_dir = ::File.join(result[0].gem_dir, 'lib')
16
- $:.unshift kindlegen_lib_dir
16
+ $:.unshift result.lib_dirs_glob
17
17
  require 'kindlegen'
18
18
  end
19
19
  output = %x(#{Kindlegen.command})
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.9.3.1
4
+ version: 2.9.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -61,7 +61,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
61
61
  version: '0'
62
62
  segments:
63
63
  - 0
64
- hash: 2557811443932199951
64
+ hash: -2274574046729703455
65
65
  required_rubygems_version: !ruby/object:Gem::Requirement
66
66
  none: false
67
67
  requirements:
@@ -70,7 +70,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
70
70
  version: '0'
71
71
  segments:
72
72
  - 0
73
- hash: 2557811443932199951
73
+ hash: -2274574046729703455
74
74
  requirements: []
75
75
  rubyforge_project:
76
76
  rubygems_version: 1.8.29