transmuter 0.0.0.1 → 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -0
- data/.travis.yml +8 -0
- data/Gemfile +17 -0
- data/Guardfile +13 -0
- data/README.md +35 -1
- data/Rakefile +7 -0
- data/bin/transmute +7 -0
- data/lib/transmuter/cli/thor.rb +99 -0
- data/lib/transmuter/cli/transmute.rb +67 -0
- data/lib/transmuter/cli.rb +13 -0
- data/lib/transmuter/core_ext.rb +4 -0
- data/lib/transmuter/format/html.rb +81 -0
- data/lib/transmuter/format/markdown.rb +45 -0
- data/lib/transmuter/format/pdf.rb +25 -0
- data/lib/transmuter/format.rb +9 -0
- data/lib/transmuter/version.rb +3 -4
- data/lib/transmuter.rb +5 -4
- data/spec/spec_helper.rb +25 -0
- data/spec/transmuter/cli/thor_spec.rb +175 -0
- data/spec/transmuter/cli/transmute_spec.rb +138 -0
- data/spec/transmuter/cli_spec.rb +4 -0
- data/spec/transmuter/format/html_spec.rb +159 -0
- data/spec/transmuter/format/markdown_spec.rb +150 -0
- data/spec/transmuter/format/pdf_spec.rb +49 -0
- data/spec/transmuter/format_spec.rb +4 -0
- data/stylesheets/default.css +67 -0
- data/transmuter.gemspec +26 -3
- metadata +180 -8
@@ -0,0 +1,67 @@
|
|
1
|
+
pre {
|
2
|
+
background-color: #F3F3F3;
|
3
|
+
border: solid 1px #CCC;
|
4
|
+
padding: 5px 10px;
|
5
|
+
font-family: 'Menlo', 'Courier New', 'Terminal', monospace;
|
6
|
+
}
|
7
|
+
.hll { background-color: #ffffcc }
|
8
|
+
.c { color: #408080; font-style: italic } /* Comment */
|
9
|
+
.err { border: 1px solid #FF0000 } /* Error */
|
10
|
+
.k { color: #008000; font-weight: bold } /* Keyword */
|
11
|
+
.o { color: #666666 } /* Operator */
|
12
|
+
.cm { color: #408080; font-style: italic } /* Comment.Multiline */
|
13
|
+
.cp { color: #BC7A00 } /* Comment.Preproc */
|
14
|
+
.c1 { color: #408080; font-style: italic } /* Comment.Single */
|
15
|
+
.cs { color: #408080; font-style: italic } /* Comment.Special */
|
16
|
+
.gd { color: #A00000 } /* Generic.Deleted */
|
17
|
+
.ge { font-style: italic } /* Generic.Emph */
|
18
|
+
.gr { color: #FF0000 } /* Generic.Error */
|
19
|
+
.gh { color: #000080; font-weight: bold } /* Generic.Heading */
|
20
|
+
.gi { color: #00A000 } /* Generic.Inserted */
|
21
|
+
.go { color: #808080 } /* Generic.Output */
|
22
|
+
.gp { color: #000080; font-weight: bold } /* Generic.Prompt */
|
23
|
+
.gs { font-weight: bold } /* Generic.Strong */
|
24
|
+
.gu { color: #800080; font-weight: bold } /* Generic.Subheading */
|
25
|
+
.gt { color: #0040D0 } /* Generic.Traceback */
|
26
|
+
.kc { color: #008000; font-weight: bold } /* Keyword.Constant */
|
27
|
+
.kd { color: #008000; font-weight: bold } /* Keyword.Declaration */
|
28
|
+
.kn { color: #008000; font-weight: bold } /* Keyword.Namespace */
|
29
|
+
.kp { color: #008000 } /* Keyword.Pseudo */
|
30
|
+
.kr { color: #008000; font-weight: bold } /* Keyword.Reserved */
|
31
|
+
.kt { color: #B00040 } /* Keyword.Type */
|
32
|
+
.m { color: #666666 } /* Literal.Number */
|
33
|
+
.s { color: #BA2121 } /* Literal.String */
|
34
|
+
.na { color: #7D9029 } /* Name.Attribute */
|
35
|
+
.nb { color: #008000 } /* Name.Builtin */
|
36
|
+
.nc { color: #0000FF; font-weight: bold } /* Name.Class */
|
37
|
+
.no { color: #880000 } /* Name.Constant */
|
38
|
+
.nd { color: #AA22FF } /* Name.Decorator */
|
39
|
+
.ni { color: #999999; font-weight: bold } /* Name.Entity */
|
40
|
+
.ne { color: #D2413A; font-weight: bold } /* Name.Exception */
|
41
|
+
.nf { color: #0000FF } /* Name.Function */
|
42
|
+
.nl { color: #A0A000 } /* Name.Label */
|
43
|
+
.nn { color: #0000FF; font-weight: bold } /* Name.Namespace */
|
44
|
+
.nt { color: #008000; font-weight: bold } /* Name.Tag */
|
45
|
+
.nv { color: #19177C } /* Name.Variable */
|
46
|
+
.ow { color: #AA22FF; font-weight: bold } /* Operator.Word */
|
47
|
+
.w { color: #bbbbbb } /* Text.Whitespace */
|
48
|
+
.mf { color: #666666 } /* Literal.Number.Float */
|
49
|
+
.mh { color: #666666 } /* Literal.Number.Hex */
|
50
|
+
.mi { color: #666666 } /* Literal.Number.Integer */
|
51
|
+
.mo { color: #666666 } /* Literal.Number.Oct */
|
52
|
+
.sb { color: #BA2121 } /* Literal.String.Backtick */
|
53
|
+
.sc { color: #BA2121 } /* Literal.String.Char */
|
54
|
+
.sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */
|
55
|
+
.s2 { color: #BA2121 } /* Literal.String.Double */
|
56
|
+
.se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */
|
57
|
+
.sh { color: #BA2121 } /* Literal.String.Heredoc */
|
58
|
+
.si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */
|
59
|
+
.sx { color: #008000 } /* Literal.String.Other */
|
60
|
+
.sr { color: #BB6688 } /* Literal.String.Regex */
|
61
|
+
.s1 { color: #BA2121 } /* Literal.String.Single */
|
62
|
+
.ss { color: #19177C } /* Literal.String.Symbol */
|
63
|
+
.bp { color: #008000 } /* Name.Builtin.Pseudo */
|
64
|
+
.vc { color: #19177C } /* Name.Variable.Class */
|
65
|
+
.vg { color: #19177C } /* Name.Variable.Global */
|
66
|
+
.vi { color: #19177C } /* Name.Variable.Instance */
|
67
|
+
.il { color: #666666 } /* Literal.Number.Integer.Long */
|
data/transmuter.gemspec
CHANGED
@@ -8,11 +8,34 @@ Gem::Specification.new do |s|
|
|
8
8
|
s.authors = ["Wael Nasreddine"]
|
9
9
|
s.email = ["wael.nasreddine@gmail.com"]
|
10
10
|
s.homepage = ""
|
11
|
-
s.summary = %q{convert
|
12
|
-
s.description =
|
11
|
+
s.summary = %q{The Alien device to convert Markdown to PDF with colorized code.}
|
12
|
+
s.description = s.summary
|
13
13
|
|
14
14
|
s.files = `git ls-files`.split("\n")
|
15
15
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
16
16
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
17
17
|
s.require_paths = ["lib"]
|
18
|
-
|
18
|
+
|
19
|
+
s.required_ruby_version = Gem::Requirement.new(">= 1.9.2")
|
20
|
+
|
21
|
+
# Run-time dependencies
|
22
|
+
s.add_dependency 'i18n', '~>0.6.0'
|
23
|
+
s.add_dependency 'activesupport', '~>3.1.0'
|
24
|
+
s.add_dependency 'thor', '~>0.14.6'
|
25
|
+
s.add_dependency 'pdfkit', '~>0.5.2'
|
26
|
+
s.add_dependency 'redcarpet', '~>1.17.2'
|
27
|
+
s.add_dependency 'albino', '~>1.3.3'
|
28
|
+
s.add_dependency 'nokogiri', '~>1.5.0'
|
29
|
+
|
30
|
+
# Development dependencies
|
31
|
+
s.add_development_dependency 'guard', '~>0.6.2'
|
32
|
+
s.add_development_dependency 'guard-bundler', '~>0.1.3'
|
33
|
+
s.add_development_dependency 'guard-rspec', '~>0.4.3'
|
34
|
+
|
35
|
+
# Development / Test dependencies
|
36
|
+
s.add_development_dependency 'rspec', '~>2.6.0'
|
37
|
+
s.add_development_dependency 'mocha', '~>0.10.0'
|
38
|
+
|
39
|
+
# Debugging
|
40
|
+
s.add_development_dependency 'pry', '~>0.9.6.2'
|
41
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: transmuter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,21 +9,185 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-10-
|
13
|
-
dependencies:
|
14
|
-
|
12
|
+
date: 2011-10-03 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: i18n
|
16
|
+
requirement: &2152151940 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 0.6.0
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *2152151940
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: activesupport
|
27
|
+
requirement: &2152150240 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ~>
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 3.1.0
|
33
|
+
type: :runtime
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *2152150240
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: thor
|
38
|
+
requirement: &2152147660 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ~>
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 0.14.6
|
44
|
+
type: :runtime
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *2152147660
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: pdfkit
|
49
|
+
requirement: &2152141120 !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.5.2
|
55
|
+
type: :runtime
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: *2152141120
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: redcarpet
|
60
|
+
requirement: &2152132040 !ruby/object:Gem::Requirement
|
61
|
+
none: false
|
62
|
+
requirements:
|
63
|
+
- - ~>
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: 1.17.2
|
66
|
+
type: :runtime
|
67
|
+
prerelease: false
|
68
|
+
version_requirements: *2152132040
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: albino
|
71
|
+
requirement: &2152129140 !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
73
|
+
requirements:
|
74
|
+
- - ~>
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: 1.3.3
|
77
|
+
type: :runtime
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: *2152129140
|
80
|
+
- !ruby/object:Gem::Dependency
|
81
|
+
name: nokogiri
|
82
|
+
requirement: &2152122960 !ruby/object:Gem::Requirement
|
83
|
+
none: false
|
84
|
+
requirements:
|
85
|
+
- - ~>
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: 1.5.0
|
88
|
+
type: :runtime
|
89
|
+
prerelease: false
|
90
|
+
version_requirements: *2152122960
|
91
|
+
- !ruby/object:Gem::Dependency
|
92
|
+
name: guard
|
93
|
+
requirement: &2152118620 !ruby/object:Gem::Requirement
|
94
|
+
none: false
|
95
|
+
requirements:
|
96
|
+
- - ~>
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: 0.6.2
|
99
|
+
type: :development
|
100
|
+
prerelease: false
|
101
|
+
version_requirements: *2152118620
|
102
|
+
- !ruby/object:Gem::Dependency
|
103
|
+
name: guard-bundler
|
104
|
+
requirement: &2152113660 !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ~>
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: 0.1.3
|
110
|
+
type: :development
|
111
|
+
prerelease: false
|
112
|
+
version_requirements: *2152113660
|
113
|
+
- !ruby/object:Gem::Dependency
|
114
|
+
name: guard-rspec
|
115
|
+
requirement: &2151940660 !ruby/object:Gem::Requirement
|
116
|
+
none: false
|
117
|
+
requirements:
|
118
|
+
- - ~>
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
version: 0.4.3
|
121
|
+
type: :development
|
122
|
+
prerelease: false
|
123
|
+
version_requirements: *2151940660
|
124
|
+
- !ruby/object:Gem::Dependency
|
125
|
+
name: rspec
|
126
|
+
requirement: &2151936960 !ruby/object:Gem::Requirement
|
127
|
+
none: false
|
128
|
+
requirements:
|
129
|
+
- - ~>
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 2.6.0
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: *2151936960
|
135
|
+
- !ruby/object:Gem::Dependency
|
136
|
+
name: mocha
|
137
|
+
requirement: &2151934460 !ruby/object:Gem::Requirement
|
138
|
+
none: false
|
139
|
+
requirements:
|
140
|
+
- - ~>
|
141
|
+
- !ruby/object:Gem::Version
|
142
|
+
version: 0.10.0
|
143
|
+
type: :development
|
144
|
+
prerelease: false
|
145
|
+
version_requirements: *2151934460
|
146
|
+
- !ruby/object:Gem::Dependency
|
147
|
+
name: pry
|
148
|
+
requirement: &2151932660 !ruby/object:Gem::Requirement
|
149
|
+
none: false
|
150
|
+
requirements:
|
151
|
+
- - ~>
|
152
|
+
- !ruby/object:Gem::Version
|
153
|
+
version: 0.9.6.2
|
154
|
+
type: :development
|
155
|
+
prerelease: false
|
156
|
+
version_requirements: *2151932660
|
157
|
+
description: The Alien device to convert Markdown to PDF with colorized code.
|
15
158
|
email:
|
16
159
|
- wael.nasreddine@gmail.com
|
17
|
-
executables:
|
160
|
+
executables:
|
161
|
+
- transmute
|
18
162
|
extensions: []
|
19
163
|
extra_rdoc_files: []
|
20
164
|
files:
|
21
165
|
- .gitignore
|
166
|
+
- .travis.yml
|
22
167
|
- Gemfile
|
168
|
+
- Guardfile
|
23
169
|
- README.md
|
24
170
|
- Rakefile
|
171
|
+
- bin/transmute
|
25
172
|
- lib/transmuter.rb
|
173
|
+
- lib/transmuter/cli.rb
|
174
|
+
- lib/transmuter/cli/thor.rb
|
175
|
+
- lib/transmuter/cli/transmute.rb
|
176
|
+
- lib/transmuter/core_ext.rb
|
177
|
+
- lib/transmuter/format.rb
|
178
|
+
- lib/transmuter/format/html.rb
|
179
|
+
- lib/transmuter/format/markdown.rb
|
180
|
+
- lib/transmuter/format/pdf.rb
|
26
181
|
- lib/transmuter/version.rb
|
182
|
+
- spec/spec_helper.rb
|
183
|
+
- spec/transmuter/cli/thor_spec.rb
|
184
|
+
- spec/transmuter/cli/transmute_spec.rb
|
185
|
+
- spec/transmuter/cli_spec.rb
|
186
|
+
- spec/transmuter/format/html_spec.rb
|
187
|
+
- spec/transmuter/format/markdown_spec.rb
|
188
|
+
- spec/transmuter/format/pdf_spec.rb
|
189
|
+
- spec/transmuter/format_spec.rb
|
190
|
+
- stylesheets/default.css
|
27
191
|
- transmuter.gemspec
|
28
192
|
homepage: ''
|
29
193
|
licenses: []
|
@@ -36,7 +200,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
36
200
|
requirements:
|
37
201
|
- - ! '>='
|
38
202
|
- !ruby/object:Gem::Version
|
39
|
-
version:
|
203
|
+
version: 1.9.2
|
40
204
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
41
205
|
none: false
|
42
206
|
requirements:
|
@@ -48,5 +212,13 @@ rubyforge_project:
|
|
48
212
|
rubygems_version: 1.8.10
|
49
213
|
signing_key:
|
50
214
|
specification_version: 3
|
51
|
-
summary: convert
|
52
|
-
test_files:
|
215
|
+
summary: The Alien device to convert Markdown to PDF with colorized code.
|
216
|
+
test_files:
|
217
|
+
- spec/spec_helper.rb
|
218
|
+
- spec/transmuter/cli/thor_spec.rb
|
219
|
+
- spec/transmuter/cli/transmute_spec.rb
|
220
|
+
- spec/transmuter/cli_spec.rb
|
221
|
+
- spec/transmuter/format/html_spec.rb
|
222
|
+
- spec/transmuter/format/markdown_spec.rb
|
223
|
+
- spec/transmuter/format/pdf_spec.rb
|
224
|
+
- spec/transmuter/format_spec.rb
|