mint 0.7.1 → 0.7.2

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.
Files changed (2) hide show
  1. data/lib/mint/version.rb +1 -1
  2. metadata +106 -102
data/lib/mint/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Mint
2
- VERSION = "0.7.1"
2
+ VERSION = "0.7.2"
3
3
  end
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.1
4
+ version: 0.7.2
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: &70142730661940 !ruby/object:Gem::Requirement
16
+ requirement: &70255443563440 !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: *70142730661940
24
+ version_requirements: *70255443563440
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rdiscount
27
- requirement: &70142730706280 !ruby/object:Gem::Requirement
27
+ requirement: &70255443562200 !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: *70142730706280
35
+ version_requirements: *70255443562200
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: erubis
38
- requirement: &70142730705860 !ruby/object:Gem::Requirement
38
+ requirement: &70255443561380 !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: *70142730705860
46
+ version_requirements: *70255443561380
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: haml
49
- requirement: &70142730705440 !ruby/object:Gem::Requirement
49
+ requirement: &70255443560820 !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: *70142730705440
57
+ version_requirements: *70255443560820
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: sass
60
- requirement: &70142730705020 !ruby/object:Gem::Requirement
60
+ requirement: &70255443560200 !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: *70142730705020
68
+ version_requirements: *70255443560200
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rdiscount
71
- requirement: &70142730704600 !ruby/object:Gem::Requirement
71
+ requirement: &70255443559560 !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: *70142730704600
79
+ version_requirements: *70255443559560
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: liquid
82
- requirement: &70142730704180 !ruby/object:Gem::Requirement
82
+ requirement: &70255443558840 !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: *70142730704180
90
+ version_requirements: *70255443558840
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: less
93
- requirement: &70142730703760 !ruby/object:Gem::Requirement
93
+ requirement: &70255443557900 !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: *70142730703760
101
+ version_requirements: *70255443557900
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: radius
104
- requirement: &70142730703340 !ruby/object:Gem::Requirement
104
+ requirement: &70255443556760 !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: *70142730703340
112
+ version_requirements: *70255443556760
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: markaby
115
- requirement: &70142730702920 !ruby/object:Gem::Requirement
115
+ requirement: &70255443555980 !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: *70142730702920
123
+ version_requirements: *70255443555980
124
124
  - !ruby/object:Gem::Dependency
125
125
  name: active_support
126
- requirement: &70142730702500 !ruby/object:Gem::Requirement
126
+ requirement: &70255443555100 !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: *70142730702500
134
+ version_requirements: *70255443555100
135
135
  - !ruby/object:Gem::Dependency
136
136
  name: nokogiri
137
- requirement: &70142730702080 !ruby/object:Gem::Requirement
137
+ requirement: &70255443554460 !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: *70142730702080
145
+ version_requirements: *70255443554460
146
146
  - !ruby/object:Gem::Dependency
147
147
  name: hashie
148
- requirement: &70142730701660 !ruby/object:Gem::Requirement
148
+ requirement: &70255443553840 !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: *70142730701660
156
+ version_requirements: *70255443553840
157
157
  - !ruby/object:Gem::Dependency
158
158
  name: rubyzip
159
- requirement: &70142730701240 !ruby/object:Gem::Requirement
159
+ requirement: &70255443552860 !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: *70142730701240
167
+ version_requirements: *70255443552860
168
168
  - !ruby/object:Gem::Dependency
169
169
  name: rspec
170
- requirement: &70142730700820 !ruby/object:Gem::Requirement
170
+ requirement: &70255443551680 !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: *70142730700820
178
+ version_requirements: *70255443551680
179
179
  - !ruby/object:Gem::Dependency
180
180
  name: cucumber
181
- requirement: &70142730700400 !ruby/object:Gem::Requirement
181
+ requirement: &70255443544520 !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: *70142730700400
189
+ version_requirements: *70255443544520
190
190
  - !ruby/object:Gem::Dependency
191
191
  name: aruba
192
- requirement: &70142730699980 !ruby/object:Gem::Requirement
192
+ requirement: &70255443543520 !ruby/object:Gem::Requirement
193
193
  none: false
194
194
  requirements:
195
195
  - - ! '>='
@@ -197,76 +197,80 @@ dependencies:
197
197
  version: '0'
198
198
  type: :development
199
199
  prerelease: false
200
- version_requirements: *70142730699980
201
- description: ! "What is Mint?\n-------------\n\nMint transforms your plain text documents
200
+ version_requirements: *70255443543520
201
+ description: ! "<h2>What is Mint?</h2>\n\n<p>Mint transforms your plain text documents
202
202
  into beautiful documents. It makes that process as simple (but customizable) as
203
- possible.\n\nWhy would you want to keep all of your documents as plain text?\n\n-
204
- To focus on words and structure when you write\n- To be able to apply one style
205
- to an entire set of documents with one command\n- To keep your documents under version
206
- control\n- To make your documents available for scripting--for example, text analysis\n\nWhat
207
- does Mint create from these source files? Beautiful, styled HTML ready to print,
208
- e-mail, and present.\n\nIn a few words: *Mint processes words so you don't have
209
- to.*\n\nThe mint command\n----------------\n\nIf you have a plain text document
210
- formatted in Markdown or Textile or almost any other templating language, you're
211
- ready to go.\n\nThe easiest Mint command doesn't require configuration. It transforms
212
- a document into HTML and links it to the default stylesheet, which I've designed
213
- for you.\n\nSimply type:\n\n mint publish Minimalism.md\n\nAnd voil&agrave;,
214
- Minimalism.html will show up next to Minimalism.md.\n\nOpening Minimalism.html with
215
- your favorite web browser--[Firefox is best for typography][Firefox typography],
216
- but Webkit-based browsers (Chrome, Safari) work, too--will show what looks like
217
- a word-processed document, complete with big bold headers, italic emphasis, automatically
218
- indented and numbered lists, and bullets. If you're in a modern browser, you'll
219
- even see ligatures and proper kerning. The page will be on a white canvas that looks
220
- like a page, even though you are in a browser.\n\nSending that page to a printer
221
- is as easy as clicking \"Print\" from your browser. What comes out of your printer
222
- will have a 12 pt base font, normal margins, and a not-too-cramped baseline. (Ah
223
- the wonder of print stylesheets.)\n\nYou can throw as many files as you'd like in.
224
- Any commandline argument *not* preceded by an option (e.g., `--template`) or in
225
- the `mint` command vocabulary (more on that in a minute) will be interpreted as
226
- a file name:\n\n mint publish Minimalism.md Proposal.md Protocol.md\n\nThis command
227
- can be tweaked with options and arguments to be more flexible:\n\n mint publish
228
- Minimalism.md --template resume # specifies a style template\n mint publish
229
- Minimalism.md --destination final --style-destination=styles\n\nFor a listing of
230
- mint options, take [a look at the API][API].\n\nA basic Mint document\n---------------------\n\nMint
231
- is loaded with smart defaults, so if you don't want to configure something--say,
232
- the basic HTML skeleton of your document or the output directory--you don't have
233
- to. You'll probably be surprised at how easy it is to use out of the box, and how
234
- configurable it is.\n\n document = Document.new \"Minimalism.md\"\n document.publish!\n\nIf
235
- you want to customize your document, though--and that's why I built this library--Mint
236
- makes that easy.\n\nTo understand Mint's flexibility, you'll want to [take a look
237
- at the API][API].\n\n[Firefox typography]: http://opentype.info/blog/2008/06/14/kerning-and-opentype-features-in-firefox-3/
238
- \"Firefox 3 supports kerning and automatic ligatures\"\n\nTemplates\n---------\n\nTemplates
239
- can be written in any format accepted by the Tilt template interface library. (See
240
- [the Tilt TEMPLATES file][Tilt templates] for more information.)\n\nIn a template
241
- layouts, Ruby calls are sparse but necessary.\n\nIf you're designing a layout, you
242
- need to indicate where Mint should place your content. For that simple reason, raw
243
- HTML files cannot be layouts. Instead, if you want to use HTML templates, you should
244
- use the ERB format. These files are essentially HTML with the possibility for Ruby
245
- calls. You can even use the .html extension for your files. Just code the dynamic
246
- portion using ERB syntax.\n\nInside your template, use the `content` method to place
247
- your source's content.\n\nYou will want to point to your document's stylesheet (via
248
- a relative URL) from within your layout, usually in the `<head/>` element. Use the
249
- `stylesheet` method.\n\nSo if you're writing your layout using Haml, the template
250
- might look like this:\n\n !!!\n %html\n %head\n %link(rel=\"stylesheet\"
251
- href=stylesheet)\n\n %body\n #container= content\n\nYou can build stylesheets
252
- using [CSS][], [SASS/SCSS][] or [Less][]. They will always be compiled for you.\n\nMint
253
- comes preloaded with several styles and layouts.\n\n1. Default\n2. Zen\n3. Resume\\*\n4.
254
- Protocol\n5. Protocol Flow\\* - requires Javascript and jQuery\n\n> Note: Starred
255
- entries are not yet implemented. If you have a killer\n> template you think should
256
- be included, send it my way. I'll check\n> it out and see if it should be part of
257
- the standard template library.\n> (Of course, you'll get all the credit.)\n\nI've
258
- included a base stylesheet that is useful for setting sensible typographic defaults.\n\nPlugins:
259
- A work in progress\n---------------------------\n\nI've designed the beginnings
260
- of a plugin system. With this system, you can implement a callback or two and have
261
- full control over document creation and sharing. I'll get documentation going soon.
262
- For now, look to lib/mint/plugins/epub.rb and bin/mint-epub for an example of how
263
- to build one. It's not complete and I'm open to API suggestions. \n\nThis is going
203
+ possible.</p>\n\n<p>Why would you want to keep all of your documents as plain text?</p>\n\n<ul>\n<li>To
204
+ focus on words and structure when you write</li>\n<li>To be able to apply one style
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&#39;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&#39;re ready to go.</p>\n\n<p>The
212
+ easiest Mint command doesn&#39;t require configuration. It transforms a document
213
+ into HTML and links it to the default stylesheet, which I&#39;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&agrave;,
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&#39;re
221
+ in a modern browser, you&#39;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 &quot;Print&quot; 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&#39;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&#39;t want to configure something--say, the basic
236
+ HTML skeleton of your document or the output directory--you don&#39;t have to. You&#39;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 &quot;Minimalism.md&quot;\ndocument.publish!\n</code></pre>\n\n<p>If
239
+ you want to customize your document, though--and that&#39;s why I built this library--Mint
240
+ makes that easy.</p>\n\n<p>To understand Mint&#39;s flexibility, you&#39;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&#39;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&#39;s content.</p>\n\n<p>You will want to point to your document&#39;s
253
+ stylesheet (via a relative URL) from within your layout, usually in the <code>&lt;head/&gt;</code>
254
+ element. Use the <code>stylesheet</code> method.</p>\n\n<p>So if you&#39;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=&quot;stylesheet&quot; 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&#39;ll check\nit out and see if it should be part
264
+ of the standard template library.\n(Of course, you&#39;ll get all the credit.)</p>\n</blockquote>\n\n<p>I&#39;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&#39;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&#39;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&#39;s not complete and I&#39;m open to API suggestions. </p>\n\n<p>This is going
264
271
  to be useful for things like creating actual office documents or e-books or even
265
- bound novels. I'm actually thinking that half the power of this library is its plugin
266
- system.\n\n[API]: http://github.com/davejacobs/mint/tree/master/doc/API.md\n[Tilt
267
- templates]: http://github.com/rtomayko/tilt/blob/master/TEMPLATES.md \"A listing
268
- of all templates supported by Tilt.\"\n[CSS]: http://en.wikipedia.org/wiki/Cascading_Style_Sheets\n[SASS/SCSS]:
269
- http://sass-lang.com/\n[Less]: http://lesscss.org/\n\n"
272
+ bound novels. I&#39;m actually thinking that half the power of this library is its
273
+ plugin system.</p>\n"
270
274
  email: david@wit.io
271
275
  executables:
272
276
  - mint