transmuter 0.0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +4 -0
- data/Gemfile +4 -0
- data/README.md +37 -0
- data/Rakefile +1 -0
- data/lib/transmuter.rb +5 -0
- data/lib/transmuter/version.rb +8 -0
- data/transmuter.gemspec +18 -0
- metadata +52 -0
data/.gitignore
ADDED
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
# Transmuter
|
2
|
+
|
3
|
+
Transmuter is a command line tool to convert Markdown files into HTML or PDF
|
4
|
+
files, it can also be used to convert HTML files to PDF, it uses in the
|
5
|
+
backgound [Redcarper](https://github.com/tanoku/redcarpet),
|
6
|
+
[Albino](https://github.com/github/albino) and
|
7
|
+
[PDFkit](https://github.com/jdpace/PDFKit).
|
8
|
+
|
9
|
+
# Installation
|
10
|
+
|
11
|
+
To install Transmuter use the command
|
12
|
+
|
13
|
+
```bash
|
14
|
+
$ gem install transmuter
|
15
|
+
```
|
16
|
+
|
17
|
+
You also need to install (as a requirements),
|
18
|
+
[*pygments*](http://pygments.org/) (needed by Albino) and
|
19
|
+
[*WKHTMLTOPDF*](http://wkhtmltopdf.googlecode.com/) (needed by PDFkit)
|
20
|
+
|
21
|
+
## Pygments
|
22
|
+
|
23
|
+
You can install pygments using *easy_install* provided by Python
|
24
|
+
|
25
|
+
```bash
|
26
|
+
$ sudo easy_install pygments
|
27
|
+
```
|
28
|
+
|
29
|
+
## WKHTMLTOPDF
|
30
|
+
|
31
|
+
1. Install by hand (recommended):
|
32
|
+
|
33
|
+
<https://github.com/jdpace/PDFKit/wiki/Installing-WKHTMLTOPDF>
|
34
|
+
|
35
|
+
2. Try using the wkhtmltopdf-binary gem (mac + linux i386)
|
36
|
+
|
37
|
+
gem install wkhtmltopdf-binary
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
data/lib/transmuter.rb
ADDED
data/transmuter.gemspec
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "transmuter/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = "transmuter"
|
7
|
+
s.version = Transmuter::VERSION
|
8
|
+
s.authors = ["Wael Nasreddine"]
|
9
|
+
s.email = ["wael.nasreddine@gmail.com"]
|
10
|
+
s.homepage = ""
|
11
|
+
s.summary = %q{convert markdown to HTML or PDF.}
|
12
|
+
s.description = %q{convert markdown to HTML or PDF.}
|
13
|
+
|
14
|
+
s.files = `git ls-files`.split("\n")
|
15
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
16
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
17
|
+
s.require_paths = ["lib"]
|
18
|
+
end
|
metadata
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: transmuter
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Wael Nasreddine
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2011-10-02 00:00:00.000000000 Z
|
13
|
+
dependencies: []
|
14
|
+
description: convert markdown to HTML or PDF.
|
15
|
+
email:
|
16
|
+
- wael.nasreddine@gmail.com
|
17
|
+
executables: []
|
18
|
+
extensions: []
|
19
|
+
extra_rdoc_files: []
|
20
|
+
files:
|
21
|
+
- .gitignore
|
22
|
+
- Gemfile
|
23
|
+
- README.md
|
24
|
+
- Rakefile
|
25
|
+
- lib/transmuter.rb
|
26
|
+
- lib/transmuter/version.rb
|
27
|
+
- transmuter.gemspec
|
28
|
+
homepage: ''
|
29
|
+
licenses: []
|
30
|
+
post_install_message:
|
31
|
+
rdoc_options: []
|
32
|
+
require_paths:
|
33
|
+
- lib
|
34
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
35
|
+
none: false
|
36
|
+
requirements:
|
37
|
+
- - ! '>='
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '0'
|
40
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
requirements: []
|
47
|
+
rubyforge_project:
|
48
|
+
rubygems_version: 1.8.10
|
49
|
+
signing_key:
|
50
|
+
specification_version: 3
|
51
|
+
summary: convert markdown to HTML or PDF.
|
52
|
+
test_files: []
|