mkmatter 3.1.17 → 3.1.18

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 47fee00496b10e79638131fcd6057d8081317402bdc0fa5d397e9cadd32b2300
4
- data.tar.gz: 0b3f1765bb4e51ec71cad1a0652def7f6c417374ad6e1f7b37ffa7b4ac52d65e
3
+ metadata.gz: 75e0ffb5885b2cca3a5c86937ee366d3fb11b2fa79c08133cc9e2960bd467c2c
4
+ data.tar.gz: a68c730e64ad48364c17957015fce3c230d12d1c2d5d36c3ccf507d089b8d8a8
5
5
  SHA512:
6
- metadata.gz: cf35d19b5d39860f65a83604429269d0c369703893a3da1f3ba2b229c822eebe08fb4929224b3216d35f4fc95c8f7613f0f77ea47957317d74da0c8263fe81e3
7
- data.tar.gz: 5f3e8c56988553660144aa9bd91209c63d9645169c4ba6da73e444e635a5c5a596989c2618e9acf224b29e90d16527d8d287c9e9030ed13bc4975b165fbbfa03
6
+ metadata.gz: 663b61bbb39bf5373bb9d39f81a3372ef993d067d8d253d1378221c2901935241a7bfd1d9d5e3f49cd0c605ed86a9d2ac607eb7292b6b3a53fd64fc11437e583
7
+ data.tar.gz: 2e2f32223509ec19972663d4b0e2d04ac326d7636e5bd0ae2d4d3d9339317aa60fa1180b81201c580653b6b3c022b7a4819fa8bac623c60a26eed4e672fbc556
@@ -14,7 +14,7 @@ module Mkmatter
14
14
  module App
15
15
  class CLI < Thor
16
16
  # \(see {http://www.rubydoc.info/gems/highline/HighLine#initialize-instance_method HighLine#new}\)
17
- HILINE = HighLine.new($stdin, $stderr, 80)
17
+
18
18
  map %w[--version -v] => :__print_version
19
19
  desc "--version, -v", "Print the version"
20
20
  package_name "mkmatter"
@@ -86,7 +86,7 @@ module Mkmatter
86
86
 
87
87
  option :publish, :type => :boolean
88
88
  option :index, :type => :boolean, :default => nil
89
- option :type, :type => :string, :default => "page"
89
+ option :type, :type => :string, :default => "post"
90
90
  option :draft, :type => :boolean, :default => nil
91
91
  option :'include-post-qs', :type => :boolean, :default => false,
92
92
  desc: "Include post questions in the prompt"
@@ -7,30 +7,34 @@ module Mkmatter
7
7
  module Descriptions
8
8
  module New
9
9
  NEW = ERB.new(<<-NEW
10
- --`mkmatter new --type=page` will run you through making a jekyll page.
11
- --Given the above options/flags you can either output the 'front matter'
12
- --to STDOUT, or to a file.
13
- --outputs your front matter, or whether to mark it as published.
14
-
15
- --`mkmatter new post` will run you through making a jekyll post.
16
- --Given the above options/flags you can modify how the script
17
- --outputs your front matter, and whether to mark it as published,
18
- --or as a draft and move it into `_drafts`.
19
- --<%= Paint['NOTES', 'green', :bold] %>:
20
- ----By default Jekyll will publish a post if `published` is omitted in
21
- ----the front matter. So if you omit `--publish` you will publish,
22
- ----so you have to explicitly use --no-publish to set
23
- ----`<%= HighLine.color('published', :yellow) %>: <%= HighLine.color('false', :yellow, :bold) %>`
24
-
25
- --`mkmatter new --type=LAYOUT_TYPE` will run you through making a page using a custom
26
- --layout type. This is useful for making a page that is not a post or a page.
10
+ ----By default `mkmatter new` will run you through making a jekyll post.
11
+ ----You can specify the type of content you want to make with the `--type` flag.
12
+ ----See that below.
13
+ --
14
+ `mkmatter new --type=page` will run you through making a jekyll page.
15
+ Given the above options/flags you can either output the 'front matter'
16
+ to STDOUT, or to a file.
17
+ outputs your front matter, or whether to mark it as published.
18
+ --
19
+ `mkmatter new` will run you through making a jekyll post.
20
+ Given the above options/flags you can modify how the script
21
+ outputs your front matter, and whether to mark it as published,
22
+ or as a draft and move it into `_drafts`.
23
+ --
24
+ <%= Paint['NOTES', 'green', :bold] %>:
25
+ --By default Jekyll will publish a post if `published` is omitted in
26
+ --the front matter. So if you omit `--publish` you will publish,
27
+ --so you have to explicitly use --no-publish to set
28
+ --`<%= HighLine.color('published', :yellow) %>: <%= HighLine.color('false', :yellow, :bold) %>`
29
+ --in the front matter.
30
+ --
31
+ `mkmatter new --type=LAYOUT_TYPE` will run you through making a page using a custom
32
+ layout type. This is useful for making a page that is not a post or a page.
27
33
  --
28
34
  --Examples of this include:
29
35
  ----A bulma-clean-theme showcase page (--type=showcase)
30
36
  ----A bulma-clean-theme recipe page (--type=recipe)
31
37
  ----A bulma-clean-theme products page (--type=products)
32
- --<%= Paint['OPTIONS', 'green', :bold] %>:
33
-
34
38
  NEW
35
39
  ).result
36
40
  end
@@ -1,5 +1,5 @@
1
1
  module Mkmatter
2
- VERSION = '3.1.17'
2
+ VERSION = '3.1.18'
3
3
 
4
4
  # Return gem information for certain commands and options
5
5
  class GemInfo
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mkmatter
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.17
4
+ version: 3.1.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ken Spencer
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-06-04 00:00:00.000000000 Z
10
+ date: 2025-06-12 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: highline