mint 0.7.2 → 0.7.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mint/version.rb +1 -1
- metadata +39 -108
data/lib/mint/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mint
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-09-21 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: tilt
|
16
|
-
requirement: &
|
16
|
+
requirement: &70260254725180 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70260254725180
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rdiscount
|
27
|
-
requirement: &
|
27
|
+
requirement: &70260254722600 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70260254722600
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: erubis
|
38
|
-
requirement: &
|
38
|
+
requirement: &70260254720360 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70260254720360
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: haml
|
49
|
-
requirement: &
|
49
|
+
requirement: &70260254715520 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70260254715520
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: sass
|
60
|
-
requirement: &
|
60
|
+
requirement: &70260254712840 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70260254712840
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rdiscount
|
71
|
-
requirement: &
|
71
|
+
requirement: &70260254707300 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: '0'
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *70260254707300
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: liquid
|
82
|
-
requirement: &
|
82
|
+
requirement: &70260254700400 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ! '>='
|
@@ -87,10 +87,10 @@ dependencies:
|
|
87
87
|
version: '0'
|
88
88
|
type: :runtime
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *70260254700400
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: less
|
93
|
-
requirement: &
|
93
|
+
requirement: &70260254686520 !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|
96
96
|
- - ! '>='
|
@@ -98,10 +98,10 @@ dependencies:
|
|
98
98
|
version: '0'
|
99
99
|
type: :runtime
|
100
100
|
prerelease: false
|
101
|
-
version_requirements: *
|
101
|
+
version_requirements: *70260254686520
|
102
102
|
- !ruby/object:Gem::Dependency
|
103
103
|
name: radius
|
104
|
-
requirement: &
|
104
|
+
requirement: &70260254682520 !ruby/object:Gem::Requirement
|
105
105
|
none: false
|
106
106
|
requirements:
|
107
107
|
- - ! '>='
|
@@ -109,10 +109,10 @@ dependencies:
|
|
109
109
|
version: '0'
|
110
110
|
type: :runtime
|
111
111
|
prerelease: false
|
112
|
-
version_requirements: *
|
112
|
+
version_requirements: *70260254682520
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
114
|
name: markaby
|
115
|
-
requirement: &
|
115
|
+
requirement: &70260254678660 !ruby/object:Gem::Requirement
|
116
116
|
none: false
|
117
117
|
requirements:
|
118
118
|
- - ! '>='
|
@@ -120,10 +120,10 @@ dependencies:
|
|
120
120
|
version: '0'
|
121
121
|
type: :runtime
|
122
122
|
prerelease: false
|
123
|
-
version_requirements: *
|
123
|
+
version_requirements: *70260254678660
|
124
124
|
- !ruby/object:Gem::Dependency
|
125
125
|
name: active_support
|
126
|
-
requirement: &
|
126
|
+
requirement: &70260254672700 !ruby/object:Gem::Requirement
|
127
127
|
none: false
|
128
128
|
requirements:
|
129
129
|
- - ! '>='
|
@@ -131,10 +131,10 @@ dependencies:
|
|
131
131
|
version: '0'
|
132
132
|
type: :runtime
|
133
133
|
prerelease: false
|
134
|
-
version_requirements: *
|
134
|
+
version_requirements: *70260254672700
|
135
135
|
- !ruby/object:Gem::Dependency
|
136
136
|
name: nokogiri
|
137
|
-
requirement: &
|
137
|
+
requirement: &70260254670760 !ruby/object:Gem::Requirement
|
138
138
|
none: false
|
139
139
|
requirements:
|
140
140
|
- - ! '>='
|
@@ -142,10 +142,10 @@ dependencies:
|
|
142
142
|
version: '0'
|
143
143
|
type: :runtime
|
144
144
|
prerelease: false
|
145
|
-
version_requirements: *
|
145
|
+
version_requirements: *70260254670760
|
146
146
|
- !ruby/object:Gem::Dependency
|
147
147
|
name: hashie
|
148
|
-
requirement: &
|
148
|
+
requirement: &70260254667640 !ruby/object:Gem::Requirement
|
149
149
|
none: false
|
150
150
|
requirements:
|
151
151
|
- - ! '>='
|
@@ -153,10 +153,10 @@ dependencies:
|
|
153
153
|
version: '0'
|
154
154
|
type: :runtime
|
155
155
|
prerelease: false
|
156
|
-
version_requirements: *
|
156
|
+
version_requirements: *70260254667640
|
157
157
|
- !ruby/object:Gem::Dependency
|
158
158
|
name: rubyzip
|
159
|
-
requirement: &
|
159
|
+
requirement: &70260254649400 !ruby/object:Gem::Requirement
|
160
160
|
none: false
|
161
161
|
requirements:
|
162
162
|
- - ! '>='
|
@@ -164,10 +164,10 @@ dependencies:
|
|
164
164
|
version: '0'
|
165
165
|
type: :runtime
|
166
166
|
prerelease: false
|
167
|
-
version_requirements: *
|
167
|
+
version_requirements: *70260254649400
|
168
168
|
- !ruby/object:Gem::Dependency
|
169
169
|
name: rspec
|
170
|
-
requirement: &
|
170
|
+
requirement: &70260254637220 !ruby/object:Gem::Requirement
|
171
171
|
none: false
|
172
172
|
requirements:
|
173
173
|
- - ! '>='
|
@@ -175,10 +175,10 @@ dependencies:
|
|
175
175
|
version: '0'
|
176
176
|
type: :development
|
177
177
|
prerelease: false
|
178
|
-
version_requirements: *
|
178
|
+
version_requirements: *70260254637220
|
179
179
|
- !ruby/object:Gem::Dependency
|
180
180
|
name: cucumber
|
181
|
-
requirement: &
|
181
|
+
requirement: &70260254634780 !ruby/object:Gem::Requirement
|
182
182
|
none: false
|
183
183
|
requirements:
|
184
184
|
- - ! '>='
|
@@ -186,10 +186,10 @@ dependencies:
|
|
186
186
|
version: '0'
|
187
187
|
type: :development
|
188
188
|
prerelease: false
|
189
|
-
version_requirements: *
|
189
|
+
version_requirements: *70260254634780
|
190
190
|
- !ruby/object:Gem::Dependency
|
191
191
|
name: aruba
|
192
|
-
requirement: &
|
192
|
+
requirement: &70260254615060 !ruby/object:Gem::Requirement
|
193
193
|
none: false
|
194
194
|
requirements:
|
195
195
|
- - ! '>='
|
@@ -197,80 +197,11 @@ dependencies:
|
|
197
197
|
version: '0'
|
198
198
|
type: :development
|
199
199
|
prerelease: false
|
200
|
-
version_requirements: *
|
201
|
-
description:
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
to an entire set of documents with one command</li>\n<li>To keep your documents
|
206
|
-
under version control</li>\n<li>To make your documents available for scripting--for
|
207
|
-
example, text analysis</li>\n</ul>\n\n<p>What does Mint create from these source
|
208
|
-
files? Beautiful, styled HTML ready to print, e-mail, and present.</p>\n\n<p>In
|
209
|
-
a few words: <em>Mint processes words so you don't have to.</em></p>\n\n<h2>The
|
210
|
-
mint command</h2>\n\n<p>If you have a plain text document formatted in Markdown
|
211
|
-
or Textile or almost any other templating language, you're ready to go.</p>\n\n<p>The
|
212
|
-
easiest Mint command doesn't require configuration. It transforms a document
|
213
|
-
into HTML and links it to the default stylesheet, which I've designed for you.</p>\n\n<p>Simply
|
214
|
-
type:</p>\n\n<pre><code>mint publish Minimalism.md\n</code></pre>\n\n<p>And voilà,
|
215
|
-
Minimalism.html will show up next to Minimalism.md.</p>\n\n<p>Opening Minimalism.html
|
216
|
-
with your favorite web browser--<a href=\"http://opentype.info/blog/2008/06/14/kerning-and-opentype-features-in-firefox-3/\"
|
217
|
-
title=\"Firefox 3 supports kerning and automatic ligatures\">Firefox is best for
|
218
|
-
typography</a>, but Webkit-based browsers (Chrome, Safari) work, too--will show
|
219
|
-
what looks like a word-processed document, complete with big bold headers, italic
|
220
|
-
emphasis, automatically indented and numbered lists, and bullets. If you're
|
221
|
-
in a modern browser, you'll even see ligatures and proper kerning. The page
|
222
|
-
will be on a white canvas that looks like a page, even though you are in a browser.</p>\n\n<p>Sending
|
223
|
-
that page to a printer is as easy as clicking "Print" from your browser.
|
224
|
-
What comes out of your printer will have a 12 pt base font, normal margins, and
|
225
|
-
a not-too-cramped baseline. (Ah the wonder of print stylesheets.)</p>\n\n<p>You
|
226
|
-
can throw as many files as you'd like in. Any commandline argument <em>not</em>
|
227
|
-
preceded by an option (e.g., <code>--template</code>) or in the <code>mint</code>
|
228
|
-
command vocabulary (more on that in a minute) will be interpreted as a file name:</p>\n\n<pre><code>mint
|
229
|
-
publish Minimalism.md Proposal.md Protocol.md\n</code></pre>\n\n<p>This command
|
230
|
-
can be tweaked with options and arguments to be more flexible:</p>\n\n<pre><code>mint
|
231
|
-
publish Minimalism.md --template resume # specifies a style template\nmint publish
|
232
|
-
Minimalism.md --destination final --style-destination=styles\n</code></pre>\n\n<p>For
|
233
|
-
a listing of mint options, take <a href=\"http://github.com/davejacobs/mint/tree/master/doc/API.md\">a
|
234
|
-
look at the API</a>.</p>\n\n<h2>A basic Mint document</h2>\n\n<p>Mint is loaded
|
235
|
-
with smart defaults, so if you don't want to configure something--say, the basic
|
236
|
-
HTML skeleton of your document or the output directory--you don't have to. You'll
|
237
|
-
probably be surprised at how easy it is to use out of the box, and how configurable
|
238
|
-
it is.</p>\n\n<pre><code>document = Document.new "Minimalism.md"\ndocument.publish!\n</code></pre>\n\n<p>If
|
239
|
-
you want to customize your document, though--and that's why I built this library--Mint
|
240
|
-
makes that easy.</p>\n\n<p>To understand Mint's flexibility, you'll want
|
241
|
-
to <a href=\"http://github.com/davejacobs/mint/tree/master/doc/API.md\">take a look
|
242
|
-
at the API</a>.</p>\n\n<h2>Templates</h2>\n\n<p>Templates can be written in any
|
243
|
-
format accepted by the Tilt template interface library. (See <a href=\"http://github.com/rtomayko/tilt/blob/master/TEMPLATES.md\"
|
244
|
-
title=\"A listing of all templates supported by Tilt.\">the Tilt TEMPLATES file</a>
|
245
|
-
for more information.)</p>\n\n<p>In a template layouts, Ruby calls are sparse but
|
246
|
-
necessary.</p>\n\n<p>If you're designing a layout, you need to indicate where
|
247
|
-
Mint should place your content. For that simple reason, raw HTML files cannot be
|
248
|
-
layouts. Instead, if you want to use HTML templates, you should use the ERB format.
|
249
|
-
These files are essentially HTML with the possibility for Ruby calls. You can even
|
250
|
-
use the .html extension for your files. Just code the dynamic portion using ERB
|
251
|
-
syntax.</p>\n\n<p>Inside your template, use the <code>content</code> method to place
|
252
|
-
your source's content.</p>\n\n<p>You will want to point to your document's
|
253
|
-
stylesheet (via a relative URL) from within your layout, usually in the <code><head/></code>
|
254
|
-
element. Use the <code>stylesheet</code> method.</p>\n\n<p>So if you're writing
|
255
|
-
your layout using Haml, the template might look like this:</p>\n\n<pre><code>!!!\n%html\n
|
256
|
-
\ %head\n %link(rel="stylesheet" href=stylesheet)\n\n %body\n #container=
|
257
|
-
content\n</code></pre>\n\n<p>You can build stylesheets using <a href=\"http://en.wikipedia.org/wiki/Cascading_Style_Sheets\">CSS</a>,
|
258
|
-
<a href=\"http://sass-lang.com/\">SASS/SCSS</a> or <a href=\"http://lesscss.org/\">Less</a>.
|
259
|
-
They will always be compiled for you.</p>\n\n<p>Mint comes preloaded with several
|
260
|
-
styles and layouts.</p>\n\n<ol>\n<li>Default</li>\n<li>Zen</li>\n<li>Resume*</li>\n<li>Protocol</li>\n<li>Protocol
|
261
|
-
Flow* - requires Javascript and jQuery</li>\n</ol>\n\n<blockquote>\n<p>Note: Starred
|
262
|
-
entries are not yet implemented. If you have a killer\ntemplate you think should
|
263
|
-
be included, send it my way. I'll check\nit out and see if it should be part
|
264
|
-
of the standard template library.\n(Of course, you'll get all the credit.)</p>\n</blockquote>\n\n<p>I've
|
265
|
-
included a base stylesheet that is useful for setting sensible typographic defaults.</p>\n\n<h2>Plugins:
|
266
|
-
A work in progress</h2>\n\n<p>I've designed the beginnings of a plugin system.
|
267
|
-
With this system, you can implement a callback or two and have full control over
|
268
|
-
document creation and sharing. I'll get documentation going soon. For now, look
|
269
|
-
to lib/mint/plugins/epub.rb and bin/mint-epub for an example of how to build one.
|
270
|
-
It's not complete and I'm open to API suggestions. </p>\n\n<p>This is going
|
271
|
-
to be useful for things like creating actual office documents or e-books or even
|
272
|
-
bound novels. I'm actually thinking that half the power of this library is its
|
273
|
-
plugin system.</p>\n"
|
200
|
+
version_requirements: *70260254615060
|
201
|
+
description: Clean, simple library for maintaining and styling documents without a
|
202
|
+
word processor. Mint aims to bring the best of the Web to desktop publishing, to
|
203
|
+
be completely flexible, and to let the user decide what his workflow is like. A
|
204
|
+
powerful plugin system means almost any conceivable publishing target is an option.
|
274
205
|
email: david@wit.io
|
275
206
|
executables:
|
276
207
|
- mint
|