kindlegen 2.9.0 → 2.9.1

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: 9d23dee234d4c9787f1c92494f835c7909bfc898
4
- data.tar.gz: 2d25bbf22d41c351a3f47dca95836856c2f881f9
3
+ metadata.gz: 2f131b21f00af3380bcac9bde12449b396207d80
4
+ data.tar.gz: 6be91ec3887a0fabe9f5b9b5d985291680da504e
5
5
  SHA512:
6
- metadata.gz: 6e571bdea927dd6f8844c427f18d3af9f4e831bff53399ad16a915268a4b930a84900fbdd3de4dd974dab61429e6e1cbf4acfb1645755fb55798280d0c9124c5
7
- data.tar.gz: 1df28bb90902192ba19e58b0e969d6fe4579960e5a1a23d0b31e4c97cbf370716e5f655c84507ed6ea0bd40a4c82e923b25b75e3a6f70803f1fb48fa791d5ed3
6
+ metadata.gz: c8f5dded04a7f5b270bdf5293089f3729d8d1e1c4324857324f047819c8c3b911e6e6aeee13790dbde3d58fc6e029c2741d2993bedf12ba98abc09aceadf6b84
7
+ data.tar.gz: f66ffabfdf5ceac593f54507cc121fbfb97a3734f174083fb55f52cfbe06cc82c92f228e7ea4b549c5a63f0ef12ceeb119bab09e6254826361bd44d668879ce1
data/.gitignore CHANGED
@@ -1,7 +1,10 @@
1
1
  *.gem
2
- .bundle
3
- Gemfile.lock
4
- pkg/*
2
+ /pkg/*
3
+ /.bundle
4
+ /vendor/bundle
5
+ /Gemfile.lock
6
+ /.ruby-version
7
+ /.ruby-gemset
5
8
  *.tar.gz
6
9
  Makefile
7
10
  ext/kindlegen/Kindle*
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.1.0
4
+ # NOTE the build step is required to run the tests
5
+ script: bundle exec rake build test
data/Gemfile CHANGED
@@ -1,4 +1,8 @@
1
- source "http://rubygems.org"
1
+ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in kindlegen.gemspec
4
4
  gemspec
5
+
6
+ group :development do
7
+ gem 'rake'
8
+ end
data/Rakefile CHANGED
@@ -1 +1,11 @@
1
- require "bundler/gem_tasks"
1
+ require 'bundler/gem_tasks'
2
+ require 'rake/testtask'
3
+
4
+ Rake::TestTask.new do |t|
5
+ t.libs << 'test'
6
+ end
7
+
8
+ # add build task as prerequisite task; tests depend on built gem
9
+ Rake::Task[:test].enhance [:build]
10
+
11
+ task :default => :build
@@ -40,6 +40,7 @@ all:
40
40
 
41
41
  $(TARGET): $(TARBALL)
42
42
  $(UNZIP) $(TARBALL)
43
+ $(CP) */$(TARGET) $(TARGET)
43
44
  touch $(TARGET)
44
45
  chmod +x $(TARGET)
45
46
 
@@ -1,3 +1,3 @@
1
1
  module Kindlegen
2
- VERSION = "2.9.0"
2
+ VERSION = '2.9.1'
3
3
  end
@@ -0,0 +1,25 @@
1
+ require 'test/unit'
2
+ require 'rubygems/uninstaller'
3
+ KINDLEGEN_PROJECT_DIR = File.expand_path(File.dirname(File.dirname(__FILE__)))
4
+ $:.delete(File.join(KINDLEGEN_PROJECT_DIR, 'lib'))
5
+
6
+ class KindlegenTest < Test::Unit::TestCase
7
+ def test_gem_install
8
+ kindlegen_lib_dir = nil
9
+ gem_version = File.read(File.join(KINDLEGEN_PROJECT_DIR, 'lib/kindlegen/version.rb')).match(/VERSION = ["'](.*?)["']/)[1]
10
+ gem_file = File.join(KINDLEGEN_PROJECT_DIR, 'pkg', %(kindlegen-#{gem_version}.gem))
11
+ result = Gem.install gem_file
12
+ begin
13
+ require 'kindlegen'
14
+ rescue ::LoadError
15
+ kindlegen_lib_dir = ::File.join(result[0].gem_dir, 'lib')
16
+ $:.unshift kindlegen_lib_dir
17
+ require 'kindlegen'
18
+ end
19
+ output = %x(#{Kindlegen.command})
20
+ assert output.include?('Amazon')
21
+ ensure
22
+ Gem::Uninstaller.new('kindlegen', :force => true).uninstall rescue nil
23
+ $:.delete kindlegen_lib_dir if kindlegen_lib_dir
24
+ end
25
+ 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.0
4
+ version: 2.9.1
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-01-14 00:00:00.000000000 Z
11
+ date: 2014-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
@@ -48,6 +48,7 @@ extensions:
48
48
  extra_rdoc_files: []
49
49
  files:
50
50
  - ".gitignore"
51
+ - ".travis.yml"
51
52
  - Gemfile
52
53
  - README.md
53
54
  - Rakefile
@@ -55,6 +56,7 @@ files:
55
56
  - kindlegen.gemspec
56
57
  - lib/kindlegen.rb
57
58
  - lib/kindlegen/version.rb
59
+ - test/test_kindlegen.rb
58
60
  homepage: ''
59
61
  licenses: []
60
62
  metadata: {}
@@ -74,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
74
76
  version: '0'
75
77
  requirements: []
76
78
  rubyforge_project:
77
- rubygems_version: 2.2.0
79
+ rubygems_version: 2.2.2
78
80
  signing_key:
79
81
  specification_version: 4
80
82
  summary: Installing kindlegen command.