mkmatter 3.1.9 → 3.1.12

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: 0e04a2dba62d872a90c9626200f345c78a6cce58f457a8c850b7049c992eb44d
4
- data.tar.gz: dceb7a9c7e078b50895db3841ab0527bd4c35acff281cd0db90f4a15252e7eee
3
+ metadata.gz: 9e51dd62ad3fe54420a842a181a3214e3cd8e24ea3f06ad61f93d43d7cb83667
4
+ data.tar.gz: 46d59dca27686feb195470b558d7e7b30b25ed5ec7ea809a2b135659363a1539
5
5
  SHA512:
6
- metadata.gz: e132cca4c1f8a2242e6e206f4bc9d9033d50a3fabcbfe2bce84594d14a0118938fbae86ab81d8cef75817b9732cc6d3a12ef1a3c51485b956f81b61e37bdac02
7
- data.tar.gz: '00386f42c5cfb8fdc637bbbce8dd27e1487cf41c411ae8e4e0e94398f26653684a1bfbd1e0c6264dc6963706ab7226f5441ea9d22ebad3de146744c51fdce096'
6
+ metadata.gz: 447dc522fd22a5251b91de493d784280b3538e9b5efba59edb23caa8d7ea6d9eab1b4ed6660f5326f76c0e0a9cc6efbdc127b32d9d36969bde37b938b6e6a452
7
+ data.tar.gz: 2298565c0ec52f408054374882a6be678fc5ec365951726f56c31c835a8d68c30504a75b0bd6c3c7d48c79bb36c653ef5929263bdbf1286a16909284baf2ae5d
@@ -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 = Mkmatter::Questions::Post.new(HILINE).ask
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(HILINE).ask
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)
@@ -14,7 +14,7 @@ module Mkmatter
14
14
 
15
15
  class Post
16
16
  attr :answers
17
-
17
+ attr :extra_fields
18
18
  @hl = HighLine.new
19
19
 
20
20
  def ask
@@ -120,7 +120,7 @@ module Mkmatter
120
120
  field = field.split(/=>/)
121
121
  fields.store(field[0].to_s, field[1])
122
122
  end
123
- self.to_h = fields
123
+ self.extra_fields = fields
124
124
  elsif custom_fields.nil?
125
125
  hl.say('No extra fields were added.')
126
126
  return
@@ -229,7 +229,7 @@ module Mkmatter
229
229
  field = field.split(/=>/)
230
230
  fields.store(field[0].to_s, field[1])
231
231
  end
232
- self.to_h = fields
232
+ self.extra_fields = fields
233
233
  elsif custom_fields.nil?
234
234
  hl.say('No extra fields were added.')
235
235
  return
@@ -1,5 +1,5 @@
1
1
  module Mkmatter
2
- VERSION = '3.1.9'
2
+ VERSION = '3.1.12'
3
3
 
4
4
  # Return gem information for certain commands and options
5
5
  class GemInfo
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.9
4
+ version: 3.1.12
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-26 00:00:00.000000000 Z
11
+ date: 2025-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: highline