wiki_md 0.8.7 → 0.8.8

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: 967008e5eaad8c31a0698c521d0e8a1701a7c8617747311cf8b01a28a59d83bb
4
- data.tar.gz: 1df66d87fc33844bbc80b50a24d02d9a635e38df53da79e05548553b8fbd1051
3
+ metadata.gz: bb07bc6df7d5c864a4aaabd6c3363b51647199ad6b2dcd8476926781ea49ff99
4
+ data.tar.gz: 9c0fe45b98a505fb8f3aa82f779b26290e698d586d05b33b2236059d34ff2400
5
5
  SHA512:
6
- metadata.gz: 332c672e414c785bb0ec4746178b765f7a3c5423d53a187db53265d3e925ff1bedb17560bbbbc1cf047f52b22bb37c597335921a5adaaaa0d8e3046f38dce235
7
- data.tar.gz: 4135c6af8881286a8a94e197dbdd5713e03e9952de44820624bea6ae0eb275ba779be15f7cb608e839fe7d2a9c41494db35a61e6e2bdbadf905127431406487a
6
+ metadata.gz: 06d7d791a29317e5bb060d368ba3710edd94acfe0e622b031dc9ab9d96489713a56c3560e7133a3416a692b88537b7a52d50cd43624162dd431708ba360dd130
7
+ data.tar.gz: af688d05d346867bb1071042349807997c0819448e0f194249eb54473d6c7564be751d83bda2c909441d057f99faf6243da87a5a31b62b74689071cec7ad44e3
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/wiki_md.rb CHANGED
@@ -79,6 +79,10 @@ class WikiMd
79
79
 
80
80
  if wiki then
81
81
 
82
+ if wiki.lines.length > 1 and wiki.lstrip[0] != '<' then
83
+ wiki = "<?wikimd version='1.0'?>\ntitle: Untitled\n\n" + wiki
84
+ end
85
+
82
86
  puts 'before rxfhelper wiki: ' + wiki.inspect if @debug
83
87
  raw_s, type = RXFHelper.read(wiki, auto: false)
84
88
  s = raw_s.strip
@@ -137,6 +141,7 @@ class WikiMd
137
141
  @filepath = File.dirname @filename
138
142
 
139
143
  indexfile = File.join(@filepath, 'index.xml')
144
+ puts 'indexfile: ' + indexfile.inspect if @debug
140
145
 
141
146
  if s != FileX.read(wiki) then
142
147
 
@@ -145,6 +150,7 @@ class WikiMd
145
150
 
146
151
  dxtagsfile = File.join(@filepath, 'dxtags.xml')
147
152
  FileX.rm dxtagsfile if FileX.exists? dxtagsfile
153
+ save()
148
154
 
149
155
  end
150
156
 
@@ -733,8 +739,9 @@ title: #{title}
733
739
 
734
740
  rows = dx.all.map do |record|
735
741
 
736
- a = record.x.lines
737
-
742
+ a = record.x.strip.lines
743
+ puts 'a: ' + a.inspect if @debug
744
+
738
745
  raw_heading = a.shift.chomp
739
746
  footer = a.pop
740
747
  body = a.join.strip
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wiki_md
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.7
4
+ version: 0.8.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file