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 +4 -4
- data/.gitignore +6 -3
- data/.travis.yml +5 -0
- data/Gemfile +5 -1
- data/Rakefile +11 -1
- data/ext/kindlegen/extconf.rb +1 -0
- data/lib/kindlegen/version.rb +1 -1
- data/test/test_kindlegen.rb +25 -0
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f131b21f00af3380bcac9bde12449b396207d80
|
4
|
+
data.tar.gz: 6be91ec3887a0fabe9f5b9b5d985291680da504e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8f5dded04a7f5b270bdf5293089f3729d8d1e1c4324857324f047819c8c3b911e6e6aeee13790dbde3d58fc6e029c2741d2993bedf12ba98abc09aceadf6b84
|
7
|
+
data.tar.gz: f66ffabfdf5ceac593f54507cc121fbfb97a3734f174083fb55f52cfbe06cc82c92f228e7ea4b549c5a63f0ef12ceeb119bab09e6254826361bd44d668879ce1
|
data/.gitignore
CHANGED
data/.travis.yml
ADDED
data/Gemfile
CHANGED
data/Rakefile
CHANGED
@@ -1 +1,11 @@
|
|
1
|
-
require
|
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
|
data/ext/kindlegen/extconf.rb
CHANGED
data/lib/kindlegen/version.rb
CHANGED
@@ -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.
|
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-
|
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.
|
79
|
+
rubygems_version: 2.2.2
|
78
80
|
signing_key:
|
79
81
|
specification_version: 4
|
80
82
|
summary: Installing kindlegen command.
|