mint 0.7.4 → 0.8.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.
Files changed (71) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +23 -14
  3. data/LICENSE +22 -0
  4. data/README.md +82 -56
  5. data/bin/mint +47 -10
  6. data/bin/mint-epub +1 -4
  7. data/config/templates/base/style.css +187 -0
  8. data/config/templates/default/css/style.css +126 -79
  9. data/config/templates/default/layout.erb +10 -0
  10. data/config/templates/default/style.css +237 -0
  11. data/config/templates/garden/layout.erb +38 -0
  12. data/config/templates/garden/style.css +303 -0
  13. data/config/templates/newspaper/layout.erb +16 -0
  14. data/config/templates/nord/layout.erb +11 -0
  15. data/config/templates/nord/style.css +339 -0
  16. data/config/templates/nord-dark/layout.erb +11 -0
  17. data/config/templates/nord-dark/style.css +339 -0
  18. data/config/templates/protocol/layout.erb +9 -0
  19. data/config/templates/protocol/style.css +25 -0
  20. data/config/templates/zen/layout.erb +11 -0
  21. data/config/templates/zen/style.css +114 -0
  22. data/lib/mint/command_line.rb +253 -111
  23. data/lib/mint/css.rb +11 -4
  24. data/lib/mint/css_template.rb +37 -0
  25. data/lib/mint/document.rb +185 -43
  26. data/lib/mint/helpers.rb +50 -10
  27. data/lib/mint/layout.rb +2 -3
  28. data/lib/mint/markdown_template.rb +47 -0
  29. data/lib/mint/mint.rb +181 -114
  30. data/lib/mint/plugin.rb +3 -3
  31. data/lib/mint/plugins/epub.rb +1 -2
  32. data/lib/mint/resource.rb +19 -9
  33. data/lib/mint/style.rb +10 -14
  34. data/lib/mint/version.rb +1 -1
  35. data/lib/mint.rb +1 -0
  36. data/man/mint.1 +135 -0
  37. data/spec/cli/README.md +99 -0
  38. data/spec/cli/argument_parsing_spec.rb +207 -0
  39. data/spec/cli/bin_integration_spec.rb +348 -0
  40. data/spec/cli/configuration_management_spec.rb +363 -0
  41. data/spec/cli/full_workflow_integration_spec.rb +527 -0
  42. data/spec/cli/publish_workflow_spec.rb +368 -0
  43. data/spec/cli/template_management_spec.rb +300 -0
  44. data/spec/css_spec.rb +1 -1
  45. data/spec/document_spec.rb +102 -69
  46. data/spec/helpers_spec.rb +42 -42
  47. data/spec/mint_spec.rb +104 -80
  48. data/spec/plugin_spec.rb +86 -88
  49. data/spec/run_cli_tests.rb +95 -0
  50. data/spec/spec_helper.rb +8 -1
  51. data/spec/style_spec.rb +18 -16
  52. data/spec/support/cli_helpers.rb +169 -0
  53. data/spec/support/fixtures/content-2.md +16 -0
  54. data/spec/support/matchers.rb +1 -1
  55. metadata +116 -223
  56. data/config/syntax.yaml +0 -71
  57. data/config/templates/base/style.sass +0 -144
  58. data/config/templates/default/layout.haml +0 -8
  59. data/config/templates/default/style.sass +0 -36
  60. data/config/templates/protocol/layout.haml +0 -7
  61. data/config/templates/protocol/style.sass +0 -20
  62. data/config/templates/zen/css/style.css +0 -145
  63. data/config/templates/zen/layout.haml +0 -7
  64. data/config/templates/zen/style.sass +0 -24
  65. data/features/config.feature +0 -21
  66. data/features/plugins/epub.feature +0 -23
  67. data/features/publish.feature +0 -73
  68. data/features/support/env.rb +0 -15
  69. data/features/templates.feature +0 -79
  70. data/spec/command_line_spec.rb +0 -87
  71. data/spec/plugins/epub_spec.rb +0 -242
metadata CHANGED
@@ -1,288 +1,170 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mint
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.4
5
- prerelease:
4
+ version: 0.8.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - David Jacobs
9
- autorequire:
10
8
  bindir: bin
11
9
  cert_chain: []
12
- date: 2013-02-12 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
13
11
  dependencies:
14
12
  - !ruby/object:Gem::Dependency
15
13
  name: tilt
16
14
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
15
  requirements:
19
- - - ! '>='
16
+ - - "~>"
20
17
  - !ruby/object:Gem::Version
21
- version: '0'
22
- type: :runtime
23
- prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
29
- version: '0'
30
- - !ruby/object:Gem::Dependency
31
- name: rdiscount
32
- requirement: !ruby/object:Gem::Requirement
33
- none: false
34
- requirements:
35
- - - ! '>='
18
+ version: '2.6'
19
+ - - ">="
36
20
  - !ruby/object:Gem::Version
37
- version: '0'
21
+ version: 2.6.1
38
22
  type: :runtime
39
23
  prerelease: false
40
24
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
25
  requirements:
43
- - - ! '>='
26
+ - - "~>"
44
27
  - !ruby/object:Gem::Version
45
- version: '0'
28
+ version: '2.6'
29
+ - - ">="
30
+ - !ruby/object:Gem::Version
31
+ version: 2.6.1
46
32
  - !ruby/object:Gem::Dependency
47
- name: erubis
33
+ name: redcarpet
48
34
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
35
  requirements:
51
- - - ! '>='
36
+ - - "~>"
52
37
  - !ruby/object:Gem::Version
53
- version: '0'
38
+ version: '3.6'
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: 3.6.1
54
42
  type: :runtime
55
43
  prerelease: false
56
44
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
45
  requirements:
59
- - - ! '>='
46
+ - - "~>"
47
+ - !ruby/object:Gem::Version
48
+ version: '3.6'
49
+ - - ">="
60
50
  - !ruby/object:Gem::Version
61
- version: '0'
51
+ version: 3.6.1
62
52
  - !ruby/object:Gem::Dependency
63
53
  name: haml
64
54
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
55
  requirements:
67
- - - ! '>='
56
+ - - "~>"
68
57
  - !ruby/object:Gem::Version
69
- version: '0'
58
+ version: '6.3'
70
59
  type: :runtime
71
60
  prerelease: false
72
61
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
62
  requirements:
75
- - - ! '>='
63
+ - - "~>"
76
64
  - !ruby/object:Gem::Version
77
- version: '0'
65
+ version: '6.3'
78
66
  - !ruby/object:Gem::Dependency
79
- name: sass
67
+ name: sass-embedded
80
68
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
69
  requirements:
83
- - - ! '>='
70
+ - - "~>"
84
71
  - !ruby/object:Gem::Version
85
- version: '0'
86
- type: :runtime
87
- prerelease: false
88
- version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
- requirements:
91
- - - ! '>='
92
- - !ruby/object:Gem::Version
93
- version: '0'
94
- - !ruby/object:Gem::Dependency
95
- name: rdiscount
96
- requirement: !ruby/object:Gem::Requirement
97
- none: false
98
- requirements:
99
- - - ! '>='
72
+ version: '1.89'
73
+ - - ">="
100
74
  - !ruby/object:Gem::Version
101
- version: '0'
75
+ version: 1.89.2
102
76
  type: :runtime
103
77
  prerelease: false
104
78
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
- requirements:
107
- - - ! '>='
108
- - !ruby/object:Gem::Version
109
- version: '0'
110
- - !ruby/object:Gem::Dependency
111
- name: liquid
112
- requirement: !ruby/object:Gem::Requirement
113
- none: false
114
79
  requirements:
115
- - - ! '>='
80
+ - - "~>"
116
81
  - !ruby/object:Gem::Version
117
- version: '0'
118
- type: :runtime
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
- requirements:
123
- - - ! '>='
82
+ version: '1.89'
83
+ - - ">="
124
84
  - !ruby/object:Gem::Version
125
- version: '0'
85
+ version: 1.89.2
126
86
  - !ruby/object:Gem::Dependency
127
- name: less
87
+ name: erubis
128
88
  requirement: !ruby/object:Gem::Requirement
129
- none: false
130
89
  requirements:
131
- - - ! '>='
90
+ - - "~>"
132
91
  - !ruby/object:Gem::Version
133
- version: '0'
92
+ version: '2.7'
134
93
  type: :runtime
135
94
  prerelease: false
136
95
  version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
96
  requirements:
139
- - - ! '>='
97
+ - - "~>"
140
98
  - !ruby/object:Gem::Version
141
- version: '0'
99
+ version: '2.7'
142
100
  - !ruby/object:Gem::Dependency
143
- name: radius
101
+ name: activesupport
144
102
  requirement: !ruby/object:Gem::Requirement
145
- none: false
146
103
  requirements:
147
- - - ! '>='
104
+ - - "~>"
148
105
  - !ruby/object:Gem::Version
149
- version: '0'
150
- type: :runtime
151
- prerelease: false
152
- version_requirements: !ruby/object:Gem::Requirement
153
- none: false
154
- requirements:
155
- - - ! '>='
106
+ version: '8.0'
107
+ - - ">="
156
108
  - !ruby/object:Gem::Version
157
- version: '0'
158
- - !ruby/object:Gem::Dependency
159
- name: markaby
160
- requirement: !ruby/object:Gem::Requirement
161
- none: false
162
- requirements:
163
- - - ! '>='
164
- - !ruby/object:Gem::Version
165
- version: '0'
109
+ version: 8.0.2.1
166
110
  type: :runtime
167
111
  prerelease: false
168
112
  version_requirements: !ruby/object:Gem::Requirement
169
- none: false
170
113
  requirements:
171
- - - ! '>='
114
+ - - "~>"
172
115
  - !ruby/object:Gem::Version
173
- version: '0'
174
- - !ruby/object:Gem::Dependency
175
- name: active_support
176
- requirement: !ruby/object:Gem::Requirement
177
- none: false
178
- requirements:
179
- - - ! '>='
180
- - !ruby/object:Gem::Version
181
- version: '0'
182
- type: :runtime
183
- prerelease: false
184
- version_requirements: !ruby/object:Gem::Requirement
185
- none: false
186
- requirements:
187
- - - ! '>='
116
+ version: '8.0'
117
+ - - ">="
188
118
  - !ruby/object:Gem::Version
189
- version: '0'
119
+ version: 8.0.2.1
190
120
  - !ruby/object:Gem::Dependency
191
121
  name: nokogiri
192
122
  requirement: !ruby/object:Gem::Requirement
193
- none: false
194
123
  requirements:
195
- - - ! '>='
124
+ - - "~>"
196
125
  - !ruby/object:Gem::Version
197
- version: '0'
126
+ version: 1.15.0
198
127
  type: :runtime
199
128
  prerelease: false
200
129
  version_requirements: !ruby/object:Gem::Requirement
201
- none: false
202
130
  requirements:
203
- - - ! '>='
131
+ - - "~>"
204
132
  - !ruby/object:Gem::Version
205
- version: '0'
133
+ version: 1.15.0
206
134
  - !ruby/object:Gem::Dependency
207
135
  name: hashie
208
136
  requirement: !ruby/object:Gem::Requirement
209
- none: false
210
137
  requirements:
211
- - - ! '>='
138
+ - - "~>"
212
139
  - !ruby/object:Gem::Version
213
- version: '0'
140
+ version: '5.0'
214
141
  type: :runtime
215
142
  prerelease: false
216
143
  version_requirements: !ruby/object:Gem::Requirement
217
- none: false
218
144
  requirements:
219
- - - ! '>='
145
+ - - "~>"
220
146
  - !ruby/object:Gem::Version
221
- version: '0'
147
+ version: '5.0'
222
148
  - !ruby/object:Gem::Dependency
223
149
  name: rubyzip
224
150
  requirement: !ruby/object:Gem::Requirement
225
- none: false
226
151
  requirements:
227
- - - ! '>='
152
+ - - "~>"
228
153
  - !ruby/object:Gem::Version
229
- version: '0'
230
- type: :runtime
231
- prerelease: false
232
- version_requirements: !ruby/object:Gem::Requirement
233
- none: false
234
- requirements:
235
- - - ! '>='
236
- - !ruby/object:Gem::Version
237
- version: '0'
238
- - !ruby/object:Gem::Dependency
239
- name: rspec
240
- requirement: !ruby/object:Gem::Requirement
241
- none: false
242
- requirements:
243
- - - ! '>='
244
- - !ruby/object:Gem::Version
245
- version: '0'
246
- type: :development
247
- prerelease: false
248
- version_requirements: !ruby/object:Gem::Requirement
249
- none: false
250
- requirements:
251
- - - ! '>='
154
+ version: '3.0'
155
+ - - ">="
252
156
  - !ruby/object:Gem::Version
253
- version: '0'
254
- - !ruby/object:Gem::Dependency
255
- name: cucumber
256
- requirement: !ruby/object:Gem::Requirement
257
- none: false
258
- requirements:
259
- - - ! '>='
260
- - !ruby/object:Gem::Version
261
- version: '0'
262
- type: :development
157
+ version: 3.0.1
158
+ type: :runtime
263
159
  prerelease: false
264
160
  version_requirements: !ruby/object:Gem::Requirement
265
- none: false
266
- requirements:
267
- - - ! '>='
268
- - !ruby/object:Gem::Version
269
- version: '0'
270
- - !ruby/object:Gem::Dependency
271
- name: aruba
272
- requirement: !ruby/object:Gem::Requirement
273
- none: false
274
161
  requirements:
275
- - - ! '>='
162
+ - - "~>"
276
163
  - !ruby/object:Gem::Version
277
- version: '0'
278
- type: :development
279
- prerelease: false
280
- version_requirements: !ruby/object:Gem::Requirement
281
- none: false
282
- requirements:
283
- - - ! '>='
164
+ version: '3.0'
165
+ - - ">="
284
166
  - !ruby/object:Gem::Version
285
- version: '0'
167
+ version: 3.0.1
286
168
  description: Clean, simple library for maintaining and styling documents without a
287
169
  word processor. Mint aims to bring the best of the Web to desktop publishing, to
288
170
  be completely flexible, and to let the user decide what his workflow is like. A
@@ -294,102 +176,113 @@ executables:
294
176
  extensions: []
295
177
  extra_rdoc_files: []
296
178
  files:
179
+ - Gemfile
180
+ - LICENSE
181
+ - README.md
297
182
  - bin/mint
298
183
  - bin/mint-epub
299
- - config/syntax.yaml
300
- - config/templates/base/style.sass
184
+ - config/templates/base/style.css
301
185
  - config/templates/default/css/style.css
302
- - config/templates/default/layout.haml
303
- - config/templates/default/style.sass
304
- - config/templates/protocol/layout.haml
305
- - config/templates/protocol/style.sass
186
+ - config/templates/default/layout.erb
187
+ - config/templates/default/style.css
188
+ - config/templates/garden/layout.erb
189
+ - config/templates/garden/style.css
190
+ - config/templates/newspaper/layout.erb
191
+ - config/templates/nord-dark/layout.erb
192
+ - config/templates/nord-dark/style.css
193
+ - config/templates/nord/layout.erb
194
+ - config/templates/nord/style.css
195
+ - config/templates/protocol/layout.erb
196
+ - config/templates/protocol/style.css
306
197
  - config/templates/reset.css
307
- - config/templates/zen/css/style.css
308
- - config/templates/zen/layout.haml
309
- - config/templates/zen/style.sass
198
+ - config/templates/zen/layout.erb
199
+ - config/templates/zen/style.css
200
+ - lib/mint.rb
310
201
  - lib/mint/command_line.rb
311
202
  - lib/mint/css.rb
203
+ - lib/mint/css_template.rb
312
204
  - lib/mint/document.rb
313
205
  - lib/mint/exceptions.rb
314
206
  - lib/mint/helpers.rb
315
207
  - lib/mint/layout.rb
208
+ - lib/mint/markdown_template.rb
316
209
  - lib/mint/mint.rb
317
210
  - lib/mint/plugin.rb
318
211
  - lib/mint/plugins/epub.rb
319
212
  - lib/mint/resource.rb
320
213
  - lib/mint/style.rb
321
214
  - lib/mint/version.rb
322
- - lib/mint.rb
215
+ - man/mint.1
323
216
  - plugins/templates/epub/layouts/container.haml
324
217
  - plugins/templates/epub/layouts/content.haml
325
218
  - plugins/templates/epub/layouts/layout.haml
326
219
  - plugins/templates/epub/layouts/title.haml
327
220
  - plugins/templates/epub/layouts/toc.haml
328
- - README.md
329
- - Gemfile
330
- - features/config.feature
331
- - features/plugins/epub.feature
332
- - features/publish.feature
333
- - features/support/env.rb
334
- - features/templates.feature
335
- - spec/command_line_spec.rb
221
+ - spec/cli/README.md
222
+ - spec/cli/argument_parsing_spec.rb
223
+ - spec/cli/bin_integration_spec.rb
224
+ - spec/cli/configuration_management_spec.rb
225
+ - spec/cli/full_workflow_integration_spec.rb
226
+ - spec/cli/publish_workflow_spec.rb
227
+ - spec/cli/template_management_spec.rb
336
228
  - spec/css_spec.rb
337
229
  - spec/document_spec.rb
338
230
  - spec/helpers_spec.rb
339
231
  - spec/layout_spec.rb
340
232
  - spec/mint_spec.rb
341
233
  - spec/plugin_spec.rb
342
- - spec/plugins/epub_spec.rb
343
234
  - spec/resource_spec.rb
235
+ - spec/run_cli_tests.rb
344
236
  - spec/spec_helper.rb
345
237
  - spec/style_spec.rb
238
+ - spec/support/cli_helpers.rb
239
+ - spec/support/fixtures/content-2.md
346
240
  - spec/support/fixtures/content.md
347
241
  - spec/support/fixtures/dynamic.sass
348
242
  - spec/support/fixtures/layout.haml
349
243
  - spec/support/fixtures/static.css
350
244
  - spec/support/matchers.rb
351
- homepage: http://github.com/davejacobs/mint
352
- licenses: []
353
- post_install_message:
245
+ homepage: https://github.com/davejacobs/mint
246
+ licenses:
247
+ - MIT
248
+ metadata: {}
354
249
  rdoc_options: []
355
250
  require_paths:
356
251
  - lib
357
252
  required_ruby_version: !ruby/object:Gem::Requirement
358
- none: false
359
253
  requirements:
360
- - - ! '>='
254
+ - - ">="
361
255
  - !ruby/object:Gem::Version
362
- version: '0'
256
+ version: '3.0'
363
257
  required_rubygems_version: !ruby/object:Gem::Requirement
364
- none: false
365
258
  requirements:
366
- - - ! '>='
259
+ - - ">="
367
260
  - !ruby/object:Gem::Version
368
261
  version: 1.3.6
369
262
  requirements: []
370
- rubyforge_project:
371
- rubygems_version: 1.8.23
372
- signing_key:
263
+ rubygems_version: 3.7.1
373
264
  specification_version: 3
374
- summary: Clean, simple library for maintaining and styling documents without a word
375
- processor
265
+ summary: Publish Markdown documents and notebooks without a word processor
376
266
  test_files:
377
- - features/config.feature
378
- - features/plugins/epub.feature
379
- - features/publish.feature
380
- - features/support/env.rb
381
- - features/templates.feature
382
- - spec/command_line_spec.rb
267
+ - spec/cli/README.md
268
+ - spec/cli/argument_parsing_spec.rb
269
+ - spec/cli/bin_integration_spec.rb
270
+ - spec/cli/configuration_management_spec.rb
271
+ - spec/cli/full_workflow_integration_spec.rb
272
+ - spec/cli/publish_workflow_spec.rb
273
+ - spec/cli/template_management_spec.rb
383
274
  - spec/css_spec.rb
384
275
  - spec/document_spec.rb
385
276
  - spec/helpers_spec.rb
386
277
  - spec/layout_spec.rb
387
278
  - spec/mint_spec.rb
388
279
  - spec/plugin_spec.rb
389
- - spec/plugins/epub_spec.rb
390
280
  - spec/resource_spec.rb
281
+ - spec/run_cli_tests.rb
391
282
  - spec/spec_helper.rb
392
283
  - spec/style_spec.rb
284
+ - spec/support/cli_helpers.rb
285
+ - spec/support/fixtures/content-2.md
393
286
  - spec/support/fixtures/content.md
394
287
  - spec/support/fixtures/dynamic.sass
395
288
  - spec/support/fixtures/layout.haml
data/config/syntax.yaml DELETED
@@ -1,71 +0,0 @@
1
- template:
2
- short: t
3
- long: template
4
- parameter: true
5
- description: "Specify the template (layout + style)"
6
-
7
- layout:
8
- short: l
9
- long: layout
10
- parameter: true
11
- description: "Specify only the style"
12
-
13
- style:
14
- short: s
15
- long: style
16
- parameter: true
17
- description: "Specify only the style"
18
-
19
- root:
20
- short: w
21
- long: r
22
- parameter: true
23
- description: "Specify a root outside the current directory"
24
-
25
- destination:
26
- short: d
27
- long: destination
28
- parameter: true
29
- description: "Specify a destination directory, relative to the root"
30
-
31
- style_destination:
32
- short: n
33
- long: style-destination
34
- parameter: true
35
- description: "Specify a destination directory for stylesheets, or nil to link in place"
36
-
37
- global:
38
- short: G
39
- long: global
40
- parameter: false
41
- description: "Specify config changes on a global level"
42
-
43
- user:
44
- short: U
45
- long: user
46
- parameter: false
47
- description: "Specify config changes on a user-wide level"
48
-
49
- local:
50
- short: L
51
- long: local
52
- parameter: false
53
- description: "Specify config changes on a project-specific level"
54
-
55
- force:
56
- short: f
57
- long: force
58
- parameter: false
59
- description: "Force file overwrite without prompt"
60
-
61
- verbose:
62
- short: v
63
- long: verbose
64
- parameter: false
65
- description: "Verbose output"
66
-
67
- simulation:
68
- short: S
69
- long: simulation
70
- parameter: false
71
- description: "Simulate transformation without actually creating files"