mint 0.7.4 → 0.8.1

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 (70) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +23 -14
  3. data/LICENSE +22 -0
  4. data/README.md +68 -79
  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/layout.erb +10 -0
  9. data/config/templates/default/style.css +237 -0
  10. data/config/templates/garden/layout.erb +38 -0
  11. data/config/templates/garden/style.css +303 -0
  12. data/config/templates/nord/layout.erb +11 -0
  13. data/config/templates/nord/style.css +339 -0
  14. data/config/templates/nord-dark/layout.erb +11 -0
  15. data/config/templates/nord-dark/style.css +339 -0
  16. data/config/templates/zen/layout.erb +11 -0
  17. data/config/templates/zen/style.css +114 -0
  18. data/lib/mint/command_line.rb +253 -111
  19. data/lib/mint/css.rb +11 -4
  20. data/lib/mint/css_parser.rb +76 -0
  21. data/lib/mint/css_template.rb +37 -0
  22. data/lib/mint/document.rb +203 -43
  23. data/lib/mint/helpers.rb +50 -10
  24. data/lib/mint/layout.rb +2 -3
  25. data/lib/mint/markdown_template.rb +47 -0
  26. data/lib/mint/mint.rb +181 -114
  27. data/lib/mint/plugin.rb +3 -3
  28. data/lib/mint/plugins/epub.rb +1 -2
  29. data/lib/mint/resource.rb +19 -9
  30. data/lib/mint/style.rb +10 -14
  31. data/lib/mint/version.rb +1 -1
  32. data/lib/mint.rb +1 -0
  33. data/man/mint.1 +135 -0
  34. data/spec/cli/README.md +99 -0
  35. data/spec/cli/argument_parsing_spec.rb +237 -0
  36. data/spec/cli/bin_integration_spec.rb +348 -0
  37. data/spec/cli/configuration_management_spec.rb +363 -0
  38. data/spec/cli/full_workflow_integration_spec.rb +527 -0
  39. data/spec/cli/publish_workflow_spec.rb +368 -0
  40. data/spec/cli/template_management_spec.rb +300 -0
  41. data/spec/css_parser_spec.rb +149 -0
  42. data/spec/css_spec.rb +1 -1
  43. data/spec/document_spec.rb +102 -69
  44. data/spec/helpers_spec.rb +42 -42
  45. data/spec/mint_spec.rb +104 -80
  46. data/spec/plugin_spec.rb +141 -143
  47. data/spec/run_cli_tests.rb +95 -0
  48. data/spec/spec_helper.rb +8 -1
  49. data/spec/style_spec.rb +18 -16
  50. data/spec/support/cli_helpers.rb +169 -0
  51. data/spec/support/fixtures/content-2.md +16 -0
  52. data/spec/support/matchers.rb +1 -1
  53. metadata +116 -224
  54. data/config/syntax.yaml +0 -71
  55. data/config/templates/base/style.sass +0 -144
  56. data/config/templates/default/css/style.css +0 -158
  57. data/config/templates/default/layout.haml +0 -8
  58. data/config/templates/default/style.sass +0 -36
  59. data/config/templates/protocol/layout.haml +0 -7
  60. data/config/templates/protocol/style.sass +0 -20
  61. data/config/templates/zen/css/style.css +0 -145
  62. data/config/templates/zen/layout.haml +0 -7
  63. data/config/templates/zen/style.sass +0 -24
  64. data/features/config.feature +0 -21
  65. data/features/plugins/epub.feature +0 -23
  66. data/features/publish.feature +0 -73
  67. data/features/support/env.rb +0 -15
  68. data/features/templates.feature +0 -79
  69. data/spec/command_line_spec.rb +0 -87
  70. 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.1
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,112 @@ 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
301
- - 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
184
+ - config/templates/base/style.css
185
+ - config/templates/default/layout.erb
186
+ - config/templates/default/style.css
187
+ - config/templates/garden/layout.erb
188
+ - config/templates/garden/style.css
189
+ - config/templates/nord-dark/layout.erb
190
+ - config/templates/nord-dark/style.css
191
+ - config/templates/nord/layout.erb
192
+ - config/templates/nord/style.css
306
193
  - config/templates/reset.css
307
- - config/templates/zen/css/style.css
308
- - config/templates/zen/layout.haml
309
- - config/templates/zen/style.sass
194
+ - config/templates/zen/layout.erb
195
+ - config/templates/zen/style.css
196
+ - lib/mint.rb
310
197
  - lib/mint/command_line.rb
311
198
  - lib/mint/css.rb
199
+ - lib/mint/css_parser.rb
200
+ - lib/mint/css_template.rb
312
201
  - lib/mint/document.rb
313
202
  - lib/mint/exceptions.rb
314
203
  - lib/mint/helpers.rb
315
204
  - lib/mint/layout.rb
205
+ - lib/mint/markdown_template.rb
316
206
  - lib/mint/mint.rb
317
207
  - lib/mint/plugin.rb
318
208
  - lib/mint/plugins/epub.rb
319
209
  - lib/mint/resource.rb
320
210
  - lib/mint/style.rb
321
211
  - lib/mint/version.rb
322
- - lib/mint.rb
212
+ - man/mint.1
323
213
  - plugins/templates/epub/layouts/container.haml
324
214
  - plugins/templates/epub/layouts/content.haml
325
215
  - plugins/templates/epub/layouts/layout.haml
326
216
  - plugins/templates/epub/layouts/title.haml
327
217
  - 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
218
+ - spec/cli/README.md
219
+ - spec/cli/argument_parsing_spec.rb
220
+ - spec/cli/bin_integration_spec.rb
221
+ - spec/cli/configuration_management_spec.rb
222
+ - spec/cli/full_workflow_integration_spec.rb
223
+ - spec/cli/publish_workflow_spec.rb
224
+ - spec/cli/template_management_spec.rb
225
+ - spec/css_parser_spec.rb
336
226
  - spec/css_spec.rb
337
227
  - spec/document_spec.rb
338
228
  - spec/helpers_spec.rb
339
229
  - spec/layout_spec.rb
340
230
  - spec/mint_spec.rb
341
231
  - spec/plugin_spec.rb
342
- - spec/plugins/epub_spec.rb
343
232
  - spec/resource_spec.rb
233
+ - spec/run_cli_tests.rb
344
234
  - spec/spec_helper.rb
345
235
  - spec/style_spec.rb
236
+ - spec/support/cli_helpers.rb
237
+ - spec/support/fixtures/content-2.md
346
238
  - spec/support/fixtures/content.md
347
239
  - spec/support/fixtures/dynamic.sass
348
240
  - spec/support/fixtures/layout.haml
349
241
  - spec/support/fixtures/static.css
350
242
  - spec/support/matchers.rb
351
- homepage: http://github.com/davejacobs/mint
352
- licenses: []
353
- post_install_message:
243
+ homepage: https://github.com/davejacobs/mint
244
+ licenses:
245
+ - MIT
246
+ metadata: {}
354
247
  rdoc_options: []
355
248
  require_paths:
356
249
  - lib
357
250
  required_ruby_version: !ruby/object:Gem::Requirement
358
- none: false
359
251
  requirements:
360
- - - ! '>='
252
+ - - ">="
361
253
  - !ruby/object:Gem::Version
362
- version: '0'
254
+ version: '3.0'
363
255
  required_rubygems_version: !ruby/object:Gem::Requirement
364
- none: false
365
256
  requirements:
366
- - - ! '>='
257
+ - - ">="
367
258
  - !ruby/object:Gem::Version
368
259
  version: 1.3.6
369
260
  requirements: []
370
- rubyforge_project:
371
- rubygems_version: 1.8.23
372
- signing_key:
261
+ rubygems_version: 3.7.1
373
262
  specification_version: 3
374
- summary: Clean, simple library for maintaining and styling documents without a word
375
- processor
263
+ summary: Publish Markdown documents and notebooks without a word processor
376
264
  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
265
+ - spec/cli/README.md
266
+ - spec/cli/argument_parsing_spec.rb
267
+ - spec/cli/bin_integration_spec.rb
268
+ - spec/cli/configuration_management_spec.rb
269
+ - spec/cli/full_workflow_integration_spec.rb
270
+ - spec/cli/publish_workflow_spec.rb
271
+ - spec/cli/template_management_spec.rb
272
+ - spec/css_parser_spec.rb
383
273
  - spec/css_spec.rb
384
274
  - spec/document_spec.rb
385
275
  - spec/helpers_spec.rb
386
276
  - spec/layout_spec.rb
387
277
  - spec/mint_spec.rb
388
278
  - spec/plugin_spec.rb
389
- - spec/plugins/epub_spec.rb
390
279
  - spec/resource_spec.rb
280
+ - spec/run_cli_tests.rb
391
281
  - spec/spec_helper.rb
392
282
  - spec/style_spec.rb
283
+ - spec/support/cli_helpers.rb
284
+ - spec/support/fixtures/content-2.md
393
285
  - spec/support/fixtures/content.md
394
286
  - spec/support/fixtures/dynamic.sass
395
287
  - 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"