kindlegen 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +5 -0
- data/Gemfile +4 -0
- data/Rakefile +1 -0
- data/ext/kindlegen/extconf.rb +31 -0
- data/kindlegen.gemspec +25 -0
- data/lib/kindlegen.rb +5 -0
- data/lib/kindlegen/version.rb +3 -0
- metadata +54 -0
data/Gemfile
ADDED
data/Rakefile
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require "bundler/gem_tasks"
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
#
|
|
2
|
+
# making Makefile getting kindlegen from Amazon.com
|
|
3
|
+
#
|
|
4
|
+
|
|
5
|
+
File::open( 'Makefile', 'w' ) do |w|
|
|
6
|
+
w.puts RbConfig.expand( DATA.read )
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
__END__
|
|
10
|
+
AMAZON = http://s3.amazonaws.com/kindlegen
|
|
11
|
+
TARGET = kindlegen
|
|
12
|
+
BINDIR = $(bindir)
|
|
13
|
+
PLATFORM = linux_2.6_i386
|
|
14
|
+
VERSION = 1.2
|
|
15
|
+
TARBALL = $(TARGET)_$(PLATFORM)_v$(VERSION).tar.gz
|
|
16
|
+
CURL = curl
|
|
17
|
+
TARX = tar zxf
|
|
18
|
+
CP = cp
|
|
19
|
+
|
|
20
|
+
all: $(TARGET)
|
|
21
|
+
|
|
22
|
+
$(TARGET): $(TARBALL)
|
|
23
|
+
$(TARX) $(TARBALL)
|
|
24
|
+
touch $(TARGET)
|
|
25
|
+
|
|
26
|
+
$(TARBALL):
|
|
27
|
+
$(CURL) $(AMAZON)/$(TARBALL) -o $(TARBALL)
|
|
28
|
+
|
|
29
|
+
install: $(TARGET)
|
|
30
|
+
$(CP) $(TARGET) $(BINDIR)
|
|
31
|
+
|
data/kindlegen.gemspec
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
|
3
|
+
require "kindlegen/version"
|
|
4
|
+
|
|
5
|
+
Gem::Specification.new do |s|
|
|
6
|
+
s.name = "kindlegen"
|
|
7
|
+
s.version = Kindlegen::VERSION
|
|
8
|
+
s.authors = ["TADA Tadashi"]
|
|
9
|
+
s.email = ["t@tdtds.jp"]
|
|
10
|
+
s.homepage = ""
|
|
11
|
+
s.summary = %q{Installing kindlegen command.}
|
|
12
|
+
s.description = %q{Installing kindlegen command, downloading tar.gz file from amazon.com, and extracting it and copy kindlegen command to bin.}
|
|
13
|
+
|
|
14
|
+
s.rubyforge_project = "kindlegen"
|
|
15
|
+
|
|
16
|
+
s.files = `git ls-files`.split("\n")
|
|
17
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
|
18
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
|
19
|
+
s.require_paths = ["lib"]
|
|
20
|
+
s.extensions << 'ext/kindlegen/extconf.rb'
|
|
21
|
+
|
|
22
|
+
# specify any dependencies here; for example:
|
|
23
|
+
# s.add_development_dependency "rspec"
|
|
24
|
+
# s.add_runtime_dependency "rest-client"
|
|
25
|
+
end
|
data/lib/kindlegen.rb
ADDED
metadata
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: kindlegen
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 1.2.0
|
|
5
|
+
prerelease:
|
|
6
|
+
platform: ruby
|
|
7
|
+
authors:
|
|
8
|
+
- TADA Tadashi
|
|
9
|
+
autorequire:
|
|
10
|
+
bindir: bin
|
|
11
|
+
cert_chain: []
|
|
12
|
+
date: 2011-12-01 00:00:00.000000000 Z
|
|
13
|
+
dependencies: []
|
|
14
|
+
description: Installing kindlegen command, downloading tar.gz file from amazon.com,
|
|
15
|
+
and extracting it and copy kindlegen command to bin.
|
|
16
|
+
email:
|
|
17
|
+
- t@tdtds.jp
|
|
18
|
+
executables: []
|
|
19
|
+
extensions:
|
|
20
|
+
- ext/kindlegen/extconf.rb
|
|
21
|
+
extra_rdoc_files: []
|
|
22
|
+
files:
|
|
23
|
+
- .gitignore
|
|
24
|
+
- Gemfile
|
|
25
|
+
- Rakefile
|
|
26
|
+
- ext/kindlegen/extconf.rb
|
|
27
|
+
- kindlegen.gemspec
|
|
28
|
+
- lib/kindlegen.rb
|
|
29
|
+
- lib/kindlegen/version.rb
|
|
30
|
+
homepage: ''
|
|
31
|
+
licenses: []
|
|
32
|
+
post_install_message:
|
|
33
|
+
rdoc_options: []
|
|
34
|
+
require_paths:
|
|
35
|
+
- lib
|
|
36
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
37
|
+
none: false
|
|
38
|
+
requirements:
|
|
39
|
+
- - ! '>='
|
|
40
|
+
- !ruby/object:Gem::Version
|
|
41
|
+
version: '0'
|
|
42
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
43
|
+
none: false
|
|
44
|
+
requirements:
|
|
45
|
+
- - ! '>='
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: '0'
|
|
48
|
+
requirements: []
|
|
49
|
+
rubyforge_project: kindlegen
|
|
50
|
+
rubygems_version: 1.8.11
|
|
51
|
+
signing_key:
|
|
52
|
+
specification_version: 3
|
|
53
|
+
summary: Installing kindlegen command.
|
|
54
|
+
test_files: []
|