mkmatter 3.1.9 → 3.1.11
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 +4 -4
- data/lib/mkmatter/cli/subs/new.rb +6 -3
- data/lib/mkmatter/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b84d65e500d5df8a260081f4ba261dace3a22c7ae332535af7e3af84affc517b
|
4
|
+
data.tar.gz: 56fa6aff08276f401e58f4b3734405560a0f3dee1f396c372687ae55cd8d4b75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0dfff0ef77722ab3c2735e03408d4d868a3525ef2c2f559cc74f908e2e0d7bdb4ec4657c54dd907b5d7a37b3426fdcc88e19a71232fd9ffacbf20f6b11cc10f
|
7
|
+
data.tar.gz: 431c7c6017b582f9cb7da4feeb191aa12f66a98dad80ed2f34cccfa084e92c4c330058a239bd11ae9082f77e04eb592e59a325c391080e42a65c4ed2bcf65c8f
|
@@ -77,7 +77,8 @@ module Mkmatter
|
|
77
77
|
def post
|
78
78
|
if options[:draft] and options[:file]
|
79
79
|
if Mkmatter::Methods.check_if_jekyll
|
80
|
-
@questions
|
80
|
+
# @questions = Mkmatter::Questions::Post.new(HILINE).ask
|
81
|
+
@questions = Mkmatter::Questions::Post.new.ask
|
81
82
|
answers = Mkmatter::Answers.new(@questions, options[:publish])
|
82
83
|
file_folder = '_drafts'
|
83
84
|
filename = [].concat([answers.slug_date, '-', answers.title.to_slug, '.', answers.file_format.downcase]).join
|
@@ -114,7 +115,8 @@ module Mkmatter
|
|
114
115
|
elsif options[:file] and options[:draft].nil? or options[:draft] == false
|
115
116
|
|
116
117
|
if Mkmatter::Methods.check_if_jekyll
|
117
|
-
@questions = Mkmatter::Questions::Post.new(HILINE).ask
|
118
|
+
# @questions = Mkmatter::Questions::Post.new(HILINE).ask
|
119
|
+
@questions = Mkmatter::Questions::Post.new.ask
|
118
120
|
answers = Mkmatter::Answers.new(@questions, options[:publish])
|
119
121
|
file_folder = '_posts'
|
120
122
|
filename = [].concat([answers.slug_date, '-', answers.title.to_slug, '.', answers.file_format.downcase]).join('')
|
@@ -151,7 +153,8 @@ module Mkmatter
|
|
151
153
|
exit 1
|
152
154
|
end
|
153
155
|
elsif options[:draft].nil? and options[:file].nil?
|
154
|
-
@questions = Mkmatter::Questions::Post.new
|
156
|
+
@questions = Mkmatter::Questions::Post.new.ask
|
157
|
+
# @questions = Mkmatter::Questions::Post.new(HILINE).ask
|
155
158
|
answers = Mkmatter::Answers.new(@questions, options[:publish])
|
156
159
|
puts ''
|
157
160
|
puts answers.to_h.stringify_keys.to_yaml(indentation: 2)
|
data/lib/mkmatter/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mkmatter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ken Spencer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-04-
|
11
|
+
date: 2025-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: highline
|