mint 0.7.3 → 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.
- checksums.yaml +7 -0
- data/Gemfile +23 -14
- data/LICENSE +22 -0
- data/README.md +82 -56
- data/bin/mint +47 -10
- data/bin/mint-epub +1 -4
- data/config/templates/base/style.css +187 -0
- data/config/templates/default/css/style.css +126 -79
- data/config/templates/default/layout.erb +10 -0
- data/config/templates/default/style.css +237 -0
- data/config/templates/garden/layout.erb +38 -0
- data/config/templates/garden/style.css +303 -0
- data/config/templates/newspaper/layout.erb +16 -0
- data/config/templates/nord/layout.erb +11 -0
- data/config/templates/nord/style.css +339 -0
- data/config/templates/nord-dark/layout.erb +11 -0
- data/config/templates/nord-dark/style.css +339 -0
- data/config/templates/protocol/layout.erb +9 -0
- data/config/templates/protocol/style.css +25 -0
- data/config/templates/zen/layout.erb +11 -0
- data/config/templates/zen/style.css +114 -0
- data/lib/mint/command_line.rb +253 -111
- data/lib/mint/css.rb +11 -4
- data/lib/mint/css_template.rb +37 -0
- data/lib/mint/document.rb +193 -43
- data/lib/mint/helpers.rb +50 -10
- data/lib/mint/layout.rb +2 -3
- data/lib/mint/markdown_template.rb +47 -0
- data/lib/mint/mint.rb +181 -114
- data/lib/mint/plugin.rb +3 -3
- data/lib/mint/plugins/epub.rb +1 -2
- data/lib/mint/resource.rb +19 -9
- data/lib/mint/style.rb +10 -14
- data/lib/mint/version.rb +1 -1
- data/lib/mint.rb +1 -0
- data/man/mint.1 +135 -0
- data/spec/cli/README.md +99 -0
- data/spec/cli/argument_parsing_spec.rb +207 -0
- data/spec/cli/bin_integration_spec.rb +348 -0
- data/spec/cli/configuration_management_spec.rb +363 -0
- data/spec/cli/full_workflow_integration_spec.rb +527 -0
- data/spec/cli/publish_workflow_spec.rb +368 -0
- data/spec/cli/template_management_spec.rb +300 -0
- data/spec/css_spec.rb +1 -1
- data/spec/document_spec.rb +105 -68
- data/spec/helpers_spec.rb +42 -42
- data/spec/mint_spec.rb +104 -80
- data/spec/plugin_spec.rb +86 -88
- data/spec/run_cli_tests.rb +95 -0
- data/spec/spec_helper.rb +8 -1
- data/spec/style_spec.rb +18 -16
- data/spec/support/cli_helpers.rb +169 -0
- data/spec/support/fixtures/content-2.md +16 -0
- data/spec/support/matchers.rb +1 -1
- metadata +145 -167
- data/config/syntax.yaml +0 -71
- data/config/templates/base/style.sass +0 -144
- data/config/templates/default/layout.haml +0 -8
- data/config/templates/default/style.sass +0 -36
- data/config/templates/protocol/layout.haml +0 -7
- data/config/templates/protocol/style.sass +0 -20
- data/config/templates/zen/css/style.css +0 -145
- data/config/templates/zen/layout.haml +0 -7
- data/config/templates/zen/style.sass +0 -24
- data/features/config.feature +0 -21
- data/features/plugins/epub.feature +0 -23
- data/features/publish.feature +0 -73
- data/features/support/env.rb +0 -15
- data/features/templates.feature +0 -79
- data/spec/command_line_spec.rb +0 -87
- data/spec/plugins/epub_spec.rb +0 -242
@@ -0,0 +1,169 @@
|
|
1
|
+
require 'open3'
|
2
|
+
require 'tmpdir'
|
3
|
+
require 'stringio'
|
4
|
+
require 'fileutils'
|
5
|
+
require 'ostruct'
|
6
|
+
|
7
|
+
module CLIHelpers
|
8
|
+
# Capture stdout/stderr from a block
|
9
|
+
def capture_output
|
10
|
+
old_stdout = $stdout
|
11
|
+
old_stderr = $stderr
|
12
|
+
$stdout = stdout = StringIO.new
|
13
|
+
$stderr = stderr = StringIO.new
|
14
|
+
yield
|
15
|
+
[stdout.string, stderr.string]
|
16
|
+
ensure
|
17
|
+
$stdout = old_stdout
|
18
|
+
$stderr = old_stderr
|
19
|
+
end
|
20
|
+
|
21
|
+
# Run a command and capture its output
|
22
|
+
def run_command(env_or_command, *args)
|
23
|
+
if env_or_command.is_a?(Hash)
|
24
|
+
# First argument is environment variables
|
25
|
+
env = env_or_command
|
26
|
+
command = args.shift
|
27
|
+
stdout, stderr, status = Open3.capture3(env, command, *args)
|
28
|
+
else
|
29
|
+
# First argument is the command
|
30
|
+
command = env_or_command
|
31
|
+
stdout, stderr, status = Open3.capture3(command, *args)
|
32
|
+
end
|
33
|
+
|
34
|
+
OpenStruct.new(
|
35
|
+
stdout: stdout,
|
36
|
+
stderr: stderr,
|
37
|
+
status: status,
|
38
|
+
success?: status.success?,
|
39
|
+
exit_code: status.exitstatus
|
40
|
+
)
|
41
|
+
end
|
42
|
+
|
43
|
+
# Create a temporary directory and run the block inside it
|
44
|
+
def in_temp_dir
|
45
|
+
Dir.mktmpdir("mint-test-") do |dir|
|
46
|
+
old_dir = Dir.pwd
|
47
|
+
Dir.chdir(dir)
|
48
|
+
yield(dir)
|
49
|
+
ensure
|
50
|
+
Dir.chdir(old_dir) if old_dir
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
# Create a sample markdown file with content
|
55
|
+
def create_markdown_file(name = "test.md", content = "# Test\n\nHello world!")
|
56
|
+
File.write(name, content)
|
57
|
+
name
|
58
|
+
end
|
59
|
+
|
60
|
+
# Create a sample template file
|
61
|
+
def create_template_file(name, type = :layout, content = nil)
|
62
|
+
content ||= case type
|
63
|
+
when :layout
|
64
|
+
"<!DOCTYPE html>\n<html><body><%= yield %></body></html>"
|
65
|
+
when :style
|
66
|
+
"body { font-family: sans-serif; }"
|
67
|
+
end
|
68
|
+
|
69
|
+
File.write(name, content)
|
70
|
+
name
|
71
|
+
end
|
72
|
+
|
73
|
+
# Create a complete template directory structure
|
74
|
+
def create_template_directory(name, with_layout: true, with_style: true)
|
75
|
+
template_dir = ".mint/templates/#{name}"
|
76
|
+
FileUtils.mkdir_p(template_dir)
|
77
|
+
|
78
|
+
if with_layout
|
79
|
+
File.write("#{template_dir}/layout.erb",
|
80
|
+
"<!DOCTYPE html>\n<html><head><title>Test Document</title></head>" +
|
81
|
+
"<body><%= content %></body></html>")
|
82
|
+
end
|
83
|
+
|
84
|
+
if with_style
|
85
|
+
File.write("#{template_dir}/style.css",
|
86
|
+
"body { margin: 2em; font-family: sans-serif; }")
|
87
|
+
end
|
88
|
+
|
89
|
+
template_dir
|
90
|
+
end
|
91
|
+
|
92
|
+
# Verify file exists and has expected content
|
93
|
+
def verify_file_content(file, expected_content = nil, &block)
|
94
|
+
expect(File.exist?(file)).to be true
|
95
|
+
content = File.read(file)
|
96
|
+
if expected_content
|
97
|
+
expect(content).to include(expected_content)
|
98
|
+
end
|
99
|
+
block.call(content) if block_given?
|
100
|
+
content
|
101
|
+
end
|
102
|
+
|
103
|
+
# Clean up common files created during tests
|
104
|
+
def cleanup_test_files(*patterns)
|
105
|
+
patterns.each do |pattern|
|
106
|
+
Dir.glob(pattern).each do |file|
|
107
|
+
FileUtils.rm_rf(file)
|
108
|
+
end
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
# Set up a minimal mint configuration
|
113
|
+
def setup_basic_config(scope = :local)
|
114
|
+
config_dir = case scope
|
115
|
+
when :local then ".mint"
|
116
|
+
when :user then File.expand_path("~/.config/mint")
|
117
|
+
when :global then "#{Mint::ROOT}/config"
|
118
|
+
end
|
119
|
+
|
120
|
+
FileUtils.mkdir_p(config_dir)
|
121
|
+
config_file = "#{config_dir}/config.yaml"
|
122
|
+
|
123
|
+
basic_config = {
|
124
|
+
'layout' => 'default',
|
125
|
+
'style' => 'default',
|
126
|
+
'destination' => nil
|
127
|
+
}
|
128
|
+
|
129
|
+
File.write(config_file, basic_config.to_yaml)
|
130
|
+
config_file
|
131
|
+
end
|
132
|
+
|
133
|
+
# Mock editor for testing edit functionality
|
134
|
+
def mock_editor(command = "true") # Use 'true' instead of 'echo' to be silent
|
135
|
+
original_editor = ENV['EDITOR']
|
136
|
+
ENV['EDITOR'] = command
|
137
|
+
yield
|
138
|
+
ensure
|
139
|
+
if original_editor
|
140
|
+
ENV['EDITOR'] = original_editor
|
141
|
+
else
|
142
|
+
ENV.delete('EDITOR')
|
143
|
+
end
|
144
|
+
end
|
145
|
+
|
146
|
+
# Suppress all output during test execution
|
147
|
+
def silence_output
|
148
|
+
original_stdout = $stdout
|
149
|
+
original_stderr = $stderr
|
150
|
+
$stdout = StringIO.new
|
151
|
+
$stderr = StringIO.new
|
152
|
+
yield
|
153
|
+
ensure
|
154
|
+
$stdout = original_stdout
|
155
|
+
$stderr = original_stderr
|
156
|
+
end
|
157
|
+
|
158
|
+
# Assert that a command would abort with specific message
|
159
|
+
def expect_abort_with_message(message)
|
160
|
+
expect { yield }.to raise_error(SystemExit) do |error|
|
161
|
+
# Capture the abort message (this is a bit tricky with Ruby's abort)
|
162
|
+
expect(error.message).to include(message) if error.message
|
163
|
+
end
|
164
|
+
end
|
165
|
+
end
|
166
|
+
|
167
|
+
RSpec.configure do |config|
|
168
|
+
config.include CLIHelpers
|
169
|
+
end
|
data/spec/support/matchers.rb
CHANGED
metadata
CHANGED
@@ -1,203 +1,170 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mint
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
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:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
13
11
|
dependencies:
|
14
12
|
- !ruby/object:Gem::Dependency
|
15
13
|
name: tilt
|
16
|
-
requirement:
|
17
|
-
none: false
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
18
15
|
requirements:
|
19
|
-
- -
|
16
|
+
- - "~>"
|
20
17
|
- !ruby/object:Gem::Version
|
21
|
-
version: '
|
18
|
+
version: '2.6'
|
19
|
+
- - ">="
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 2.6.1
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
25
|
-
- !ruby/object:Gem::Dependency
|
26
|
-
name: rdiscount
|
27
|
-
requirement: &70260254722600 !ruby/object:Gem::Requirement
|
28
|
-
none: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
29
25
|
requirements:
|
30
|
-
- -
|
26
|
+
- - "~>"
|
31
27
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
33
|
-
|
34
|
-
|
35
|
-
|
28
|
+
version: '2.6'
|
29
|
+
- - ">="
|
30
|
+
- !ruby/object:Gem::Version
|
31
|
+
version: 2.6.1
|
36
32
|
- !ruby/object:Gem::Dependency
|
37
|
-
name:
|
38
|
-
requirement:
|
39
|
-
none: false
|
33
|
+
name: redcarpet
|
34
|
+
requirement: !ruby/object:Gem::Requirement
|
40
35
|
requirements:
|
41
|
-
- -
|
36
|
+
- - "~>"
|
42
37
|
- !ruby/object:Gem::Version
|
43
|
-
version: '
|
38
|
+
version: '3.6'
|
39
|
+
- - ">="
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: 3.6.1
|
44
42
|
type: :runtime
|
45
43
|
prerelease: false
|
46
|
-
version_requirements:
|
44
|
+
version_requirements: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - "~>"
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '3.6'
|
49
|
+
- - ">="
|
50
|
+
- !ruby/object:Gem::Version
|
51
|
+
version: 3.6.1
|
47
52
|
- !ruby/object:Gem::Dependency
|
48
53
|
name: haml
|
49
|
-
requirement:
|
50
|
-
none: false
|
54
|
+
requirement: !ruby/object:Gem::Requirement
|
51
55
|
requirements:
|
52
|
-
- -
|
56
|
+
- - "~>"
|
53
57
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
58
|
+
version: '6.3'
|
55
59
|
type: :runtime
|
56
60
|
prerelease: false
|
57
|
-
version_requirements:
|
58
|
-
- !ruby/object:Gem::Dependency
|
59
|
-
name: sass
|
60
|
-
requirement: &70260254712840 !ruby/object:Gem::Requirement
|
61
|
-
none: false
|
61
|
+
version_requirements: !ruby/object:Gem::Requirement
|
62
62
|
requirements:
|
63
|
-
- -
|
63
|
+
- - "~>"
|
64
64
|
- !ruby/object:Gem::Version
|
65
|
-
version: '
|
66
|
-
type: :runtime
|
67
|
-
prerelease: false
|
68
|
-
version_requirements: *70260254712840
|
65
|
+
version: '6.3'
|
69
66
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
71
|
-
requirement:
|
72
|
-
none: false
|
67
|
+
name: sass-embedded
|
68
|
+
requirement: !ruby/object:Gem::Requirement
|
73
69
|
requirements:
|
74
|
-
- -
|
70
|
+
- - "~>"
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: '1.89'
|
73
|
+
- - ">="
|
75
74
|
- !ruby/object:Gem::Version
|
76
|
-
version:
|
75
|
+
version: 1.89.2
|
77
76
|
type: :runtime
|
78
77
|
prerelease: false
|
79
|
-
version_requirements:
|
80
|
-
- !ruby/object:Gem::Dependency
|
81
|
-
name: liquid
|
82
|
-
requirement: &70260254700400 !ruby/object:Gem::Requirement
|
83
|
-
none: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
84
79
|
requirements:
|
85
|
-
- -
|
80
|
+
- - "~>"
|
86
81
|
- !ruby/object:Gem::Version
|
87
|
-
version: '
|
88
|
-
|
89
|
-
|
90
|
-
|
82
|
+
version: '1.89'
|
83
|
+
- - ">="
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: 1.89.2
|
91
86
|
- !ruby/object:Gem::Dependency
|
92
|
-
name:
|
93
|
-
requirement:
|
94
|
-
none: false
|
87
|
+
name: erubis
|
88
|
+
requirement: !ruby/object:Gem::Requirement
|
95
89
|
requirements:
|
96
|
-
- -
|
90
|
+
- - "~>"
|
97
91
|
- !ruby/object:Gem::Version
|
98
|
-
version: '
|
92
|
+
version: '2.7'
|
99
93
|
type: :runtime
|
100
94
|
prerelease: false
|
101
|
-
version_requirements:
|
102
|
-
- !ruby/object:Gem::Dependency
|
103
|
-
name: radius
|
104
|
-
requirement: &70260254682520 !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
95
|
+
version_requirements: !ruby/object:Gem::Requirement
|
106
96
|
requirements:
|
107
|
-
- -
|
97
|
+
- - "~>"
|
108
98
|
- !ruby/object:Gem::Version
|
109
|
-
version: '
|
110
|
-
type: :runtime
|
111
|
-
prerelease: false
|
112
|
-
version_requirements: *70260254682520
|
99
|
+
version: '2.7'
|
113
100
|
- !ruby/object:Gem::Dependency
|
114
|
-
name:
|
115
|
-
requirement:
|
116
|
-
none: false
|
101
|
+
name: activesupport
|
102
|
+
requirement: !ruby/object:Gem::Requirement
|
117
103
|
requirements:
|
118
|
-
- -
|
104
|
+
- - "~>"
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
version: '8.0'
|
107
|
+
- - ">="
|
119
108
|
- !ruby/object:Gem::Version
|
120
|
-
version:
|
109
|
+
version: 8.0.2.1
|
121
110
|
type: :runtime
|
122
111
|
prerelease: false
|
123
|
-
version_requirements:
|
124
|
-
- !ruby/object:Gem::Dependency
|
125
|
-
name: active_support
|
126
|
-
requirement: &70260254672700 !ruby/object:Gem::Requirement
|
127
|
-
none: false
|
112
|
+
version_requirements: !ruby/object:Gem::Requirement
|
128
113
|
requirements:
|
129
|
-
- -
|
114
|
+
- - "~>"
|
130
115
|
- !ruby/object:Gem::Version
|
131
|
-
version: '0'
|
132
|
-
|
133
|
-
|
134
|
-
|
116
|
+
version: '8.0'
|
117
|
+
- - ">="
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
version: 8.0.2.1
|
135
120
|
- !ruby/object:Gem::Dependency
|
136
121
|
name: nokogiri
|
137
|
-
requirement:
|
138
|
-
none: false
|
122
|
+
requirement: !ruby/object:Gem::Requirement
|
139
123
|
requirements:
|
140
|
-
- -
|
124
|
+
- - "~>"
|
141
125
|
- !ruby/object:Gem::Version
|
142
|
-
version:
|
126
|
+
version: 1.15.0
|
143
127
|
type: :runtime
|
144
128
|
prerelease: false
|
145
|
-
version_requirements:
|
146
|
-
- !ruby/object:Gem::Dependency
|
147
|
-
name: hashie
|
148
|
-
requirement: &70260254667640 !ruby/object:Gem::Requirement
|
149
|
-
none: false
|
129
|
+
version_requirements: !ruby/object:Gem::Requirement
|
150
130
|
requirements:
|
151
|
-
- -
|
131
|
+
- - "~>"
|
152
132
|
- !ruby/object:Gem::Version
|
153
|
-
version:
|
154
|
-
type: :runtime
|
155
|
-
prerelease: false
|
156
|
-
version_requirements: *70260254667640
|
133
|
+
version: 1.15.0
|
157
134
|
- !ruby/object:Gem::Dependency
|
158
|
-
name:
|
159
|
-
requirement:
|
160
|
-
none: false
|
135
|
+
name: hashie
|
136
|
+
requirement: !ruby/object:Gem::Requirement
|
161
137
|
requirements:
|
162
|
-
- -
|
138
|
+
- - "~>"
|
163
139
|
- !ruby/object:Gem::Version
|
164
|
-
version: '0'
|
140
|
+
version: '5.0'
|
165
141
|
type: :runtime
|
166
142
|
prerelease: false
|
167
|
-
version_requirements:
|
168
|
-
- !ruby/object:Gem::Dependency
|
169
|
-
name: rspec
|
170
|
-
requirement: &70260254637220 !ruby/object:Gem::Requirement
|
171
|
-
none: false
|
143
|
+
version_requirements: !ruby/object:Gem::Requirement
|
172
144
|
requirements:
|
173
|
-
- -
|
145
|
+
- - "~>"
|
174
146
|
- !ruby/object:Gem::Version
|
175
|
-
version: '0'
|
176
|
-
type: :development
|
177
|
-
prerelease: false
|
178
|
-
version_requirements: *70260254637220
|
147
|
+
version: '5.0'
|
179
148
|
- !ruby/object:Gem::Dependency
|
180
|
-
name:
|
181
|
-
requirement:
|
182
|
-
none: false
|
149
|
+
name: rubyzip
|
150
|
+
requirement: !ruby/object:Gem::Requirement
|
183
151
|
requirements:
|
184
|
-
- -
|
152
|
+
- - "~>"
|
185
153
|
- !ruby/object:Gem::Version
|
186
|
-
version: '0'
|
187
|
-
|
154
|
+
version: '3.0'
|
155
|
+
- - ">="
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: 3.0.1
|
158
|
+
type: :runtime
|
188
159
|
prerelease: false
|
189
|
-
version_requirements:
|
190
|
-
- !ruby/object:Gem::Dependency
|
191
|
-
name: aruba
|
192
|
-
requirement: &70260254615060 !ruby/object:Gem::Requirement
|
193
|
-
none: false
|
160
|
+
version_requirements: !ruby/object:Gem::Requirement
|
194
161
|
requirements:
|
195
|
-
- -
|
162
|
+
- - "~>"
|
196
163
|
- !ruby/object:Gem::Version
|
197
|
-
version: '0'
|
198
|
-
|
199
|
-
|
200
|
-
|
164
|
+
version: '3.0'
|
165
|
+
- - ">="
|
166
|
+
- !ruby/object:Gem::Version
|
167
|
+
version: 3.0.1
|
201
168
|
description: Clean, simple library for maintaining and styling documents without a
|
202
169
|
word processor. Mint aims to bring the best of the Web to desktop publishing, to
|
203
170
|
be completely flexible, and to let the user decide what his workflow is like. A
|
@@ -209,102 +176,113 @@ executables:
|
|
209
176
|
extensions: []
|
210
177
|
extra_rdoc_files: []
|
211
178
|
files:
|
179
|
+
- Gemfile
|
180
|
+
- LICENSE
|
181
|
+
- README.md
|
212
182
|
- bin/mint
|
213
183
|
- bin/mint-epub
|
214
|
-
- config/
|
215
|
-
- config/templates/base/style.sass
|
184
|
+
- config/templates/base/style.css
|
216
185
|
- config/templates/default/css/style.css
|
217
|
-
- config/templates/default/layout.
|
218
|
-
- config/templates/default/style.
|
219
|
-
- config/templates/
|
220
|
-
- config/templates/
|
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
|
221
197
|
- config/templates/reset.css
|
222
|
-
- config/templates/zen/
|
223
|
-
- config/templates/zen/
|
224
|
-
-
|
198
|
+
- config/templates/zen/layout.erb
|
199
|
+
- config/templates/zen/style.css
|
200
|
+
- lib/mint.rb
|
225
201
|
- lib/mint/command_line.rb
|
226
202
|
- lib/mint/css.rb
|
203
|
+
- lib/mint/css_template.rb
|
227
204
|
- lib/mint/document.rb
|
228
205
|
- lib/mint/exceptions.rb
|
229
206
|
- lib/mint/helpers.rb
|
230
207
|
- lib/mint/layout.rb
|
208
|
+
- lib/mint/markdown_template.rb
|
231
209
|
- lib/mint/mint.rb
|
232
210
|
- lib/mint/plugin.rb
|
233
211
|
- lib/mint/plugins/epub.rb
|
234
212
|
- lib/mint/resource.rb
|
235
213
|
- lib/mint/style.rb
|
236
214
|
- lib/mint/version.rb
|
237
|
-
-
|
215
|
+
- man/mint.1
|
238
216
|
- plugins/templates/epub/layouts/container.haml
|
239
217
|
- plugins/templates/epub/layouts/content.haml
|
240
218
|
- plugins/templates/epub/layouts/layout.haml
|
241
219
|
- plugins/templates/epub/layouts/title.haml
|
242
220
|
- plugins/templates/epub/layouts/toc.haml
|
243
|
-
- README.md
|
244
|
-
-
|
245
|
-
-
|
246
|
-
-
|
247
|
-
-
|
248
|
-
-
|
249
|
-
-
|
250
|
-
- 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
|
251
228
|
- spec/css_spec.rb
|
252
229
|
- spec/document_spec.rb
|
253
230
|
- spec/helpers_spec.rb
|
254
231
|
- spec/layout_spec.rb
|
255
232
|
- spec/mint_spec.rb
|
256
233
|
- spec/plugin_spec.rb
|
257
|
-
- spec/plugins/epub_spec.rb
|
258
234
|
- spec/resource_spec.rb
|
235
|
+
- spec/run_cli_tests.rb
|
259
236
|
- spec/spec_helper.rb
|
260
237
|
- spec/style_spec.rb
|
238
|
+
- spec/support/cli_helpers.rb
|
239
|
+
- spec/support/fixtures/content-2.md
|
261
240
|
- spec/support/fixtures/content.md
|
262
241
|
- spec/support/fixtures/dynamic.sass
|
263
242
|
- spec/support/fixtures/layout.haml
|
264
243
|
- spec/support/fixtures/static.css
|
265
244
|
- spec/support/matchers.rb
|
266
|
-
homepage:
|
267
|
-
licenses:
|
268
|
-
|
245
|
+
homepage: https://github.com/davejacobs/mint
|
246
|
+
licenses:
|
247
|
+
- MIT
|
248
|
+
metadata: {}
|
269
249
|
rdoc_options: []
|
270
250
|
require_paths:
|
271
251
|
- lib
|
272
252
|
required_ruby_version: !ruby/object:Gem::Requirement
|
273
|
-
none: false
|
274
253
|
requirements:
|
275
|
-
- -
|
254
|
+
- - ">="
|
276
255
|
- !ruby/object:Gem::Version
|
277
|
-
version: '0'
|
256
|
+
version: '3.0'
|
278
257
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
279
|
-
none: false
|
280
258
|
requirements:
|
281
|
-
- -
|
259
|
+
- - ">="
|
282
260
|
- !ruby/object:Gem::Version
|
283
261
|
version: 1.3.6
|
284
262
|
requirements: []
|
285
|
-
|
286
|
-
rubygems_version: 1.8.15
|
287
|
-
signing_key:
|
263
|
+
rubygems_version: 3.7.1
|
288
264
|
specification_version: 3
|
289
|
-
summary:
|
290
|
-
processor
|
265
|
+
summary: Publish Markdown documents and notebooks without a word processor
|
291
266
|
test_files:
|
292
|
-
-
|
293
|
-
-
|
294
|
-
-
|
295
|
-
-
|
296
|
-
-
|
297
|
-
- spec/
|
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
|
298
274
|
- spec/css_spec.rb
|
299
275
|
- spec/document_spec.rb
|
300
276
|
- spec/helpers_spec.rb
|
301
277
|
- spec/layout_spec.rb
|
302
278
|
- spec/mint_spec.rb
|
303
279
|
- spec/plugin_spec.rb
|
304
|
-
- spec/plugins/epub_spec.rb
|
305
280
|
- spec/resource_spec.rb
|
281
|
+
- spec/run_cli_tests.rb
|
306
282
|
- spec/spec_helper.rb
|
307
283
|
- spec/style_spec.rb
|
284
|
+
- spec/support/cli_helpers.rb
|
285
|
+
- spec/support/fixtures/content-2.md
|
308
286
|
- spec/support/fixtures/content.md
|
309
287
|
- spec/support/fixtures/dynamic.sass
|
310
288
|
- spec/support/fixtures/layout.haml
|