wikisys 0.5.0 → 0.5.1
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
- checksums.yaml.gz.sig +0 -0
- data/lib/wikisys.rb +16 -10
- data.tar.gz.sig +0 -0
- metadata +13 -13
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 49fa19fa6b420d8b8e0d89cfa8d254cf492ba3415a872bc860aa63e7a98ae48d
|
|
4
|
+
data.tar.gz: 3c18863700240d5b23bb945de9dde6cd9f8b4c49d571c7577b43d493c6f39416
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b90e03720ea801af4294079cd46c016c799d2d7d49a75623d38a0f857b9cb76d4dc9b631b5e7825a205422c611abf987a5ac952e4649cad532465160c7fd63f3
|
|
7
|
+
data.tar.gz: cdf44af5bb79a9fc39c470ff03864e8071a5c76ea2c9ade9d948a5169c5799d8583f2ce6a94c1221062764f026cff3c03c2948fffa9c4434f7f4bb53e6e54c24
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/lib/wikisys.rb
CHANGED
|
@@ -31,21 +31,21 @@ module FileFetch
|
|
|
31
31
|
end
|
|
32
32
|
|
|
33
33
|
module StringCase
|
|
34
|
-
|
|
34
|
+
|
|
35
35
|
refine String do
|
|
36
|
-
|
|
36
|
+
|
|
37
37
|
def capitalize2()
|
|
38
38
|
self.sub(/^[a-z]/) {|x| x.upcase }
|
|
39
39
|
end
|
|
40
|
-
|
|
40
|
+
|
|
41
41
|
end
|
|
42
|
-
|
|
42
|
+
|
|
43
43
|
end
|
|
44
44
|
|
|
45
45
|
module Wikisys
|
|
46
46
|
|
|
47
47
|
class Wiki
|
|
48
|
-
include
|
|
48
|
+
include RXFReadWriteModule
|
|
49
49
|
include FileFetch
|
|
50
50
|
using ColouredText
|
|
51
51
|
using StringCase
|
|
@@ -133,17 +133,17 @@ module Wikisys
|
|
|
133
133
|
r = @entries.find_by_title @title
|
|
134
134
|
puts 'r: ' + r.inspect if @debug
|
|
135
135
|
|
|
136
|
-
if r.nil? then
|
|
136
|
+
if r.nil? and @tags then
|
|
137
137
|
r = @entries.create title: @title, tags: @tags.join(' ')
|
|
138
138
|
end
|
|
139
139
|
|
|
140
140
|
|
|
141
|
-
filename = File.basename(filepath.sub(/\.md$/,'.xml'))
|
|
141
|
+
filename = File.basename(@filepath.sub(/\.md$/,'.xml'))
|
|
142
142
|
xmlfile = File.join(@filepath, 'xml', filename)
|
|
143
143
|
|
|
144
144
|
write_xml(xmlfile, make_xml(@title, @content, @tags))
|
|
145
145
|
|
|
146
|
-
r.tags = @tags.join(' ') if r.tags != @tags
|
|
146
|
+
r.tags = @tags.join(' ') if r and r.tags != @tags
|
|
147
147
|
|
|
148
148
|
end
|
|
149
149
|
|
|
@@ -226,6 +226,8 @@ module Wikisys
|
|
|
226
226
|
|
|
227
227
|
def make_xml(title, content, rawtags)
|
|
228
228
|
|
|
229
|
+
return unless content
|
|
230
|
+
|
|
229
231
|
puts 'content: ' + content.inspect if @debug
|
|
230
232
|
s = content.gsub(/\[\[[^\]]+\]\]/) do |raw_link|
|
|
231
233
|
|
|
@@ -308,7 +310,7 @@ module Wikisys
|
|
|
308
310
|
write_md title, s
|
|
309
311
|
write_xml title, build_xml(s)
|
|
310
312
|
|
|
311
|
-
@entries.create
|
|
313
|
+
@entries.create({title: title, tags: tags})
|
|
312
314
|
@title, @content, @tags = title, '', tags
|
|
313
315
|
|
|
314
316
|
return s
|
|
@@ -322,8 +324,12 @@ module Wikisys
|
|
|
322
324
|
|
|
323
325
|
end
|
|
324
326
|
|
|
325
|
-
|
|
327
|
+
# apparently this method was to be deleted, but it's still being
|
|
328
|
+
# used so will therefore remain for now
|
|
329
|
+
#
|
|
330
|
+
def write_md(title, content)
|
|
326
331
|
|
|
332
|
+
s = title
|
|
327
333
|
puts 'inside write_md' if @debug
|
|
328
334
|
filename = s =~ /\.md$/ ? s : s.gsub(/ +/,'_') + '.md'
|
|
329
335
|
filepath = File.join(File.absolute_path(@filepath), 'md', filename)
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: wikisys
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Robertson
|
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
|
35
35
|
tlrSOGB1I3nWz/uvurJuTFG0W9bre5ZoWbnTuk1D1hNCzr3H5M+rB1bKG+kmeFJi
|
|
36
36
|
hVN4NL4V8O7Nw12AplEAzA+r
|
|
37
37
|
-----END CERTIFICATE-----
|
|
38
|
-
date: 2022-
|
|
38
|
+
date: 2022-05-09 00:00:00.000000000 Z
|
|
39
39
|
dependencies:
|
|
40
40
|
- !ruby/object:Gem::Dependency
|
|
41
41
|
name: dir-to-xml
|
|
@@ -46,7 +46,7 @@ dependencies:
|
|
|
46
46
|
version: '1.2'
|
|
47
47
|
- - ">="
|
|
48
48
|
- !ruby/object:Gem::Version
|
|
49
|
-
version: 1.2.
|
|
49
|
+
version: 1.2.2
|
|
50
50
|
type: :runtime
|
|
51
51
|
prerelease: false
|
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -56,47 +56,47 @@ dependencies:
|
|
|
56
56
|
version: '1.2'
|
|
57
57
|
- - ">="
|
|
58
58
|
- !ruby/object:Gem::Version
|
|
59
|
-
version: 1.2.
|
|
59
|
+
version: 1.2.2
|
|
60
60
|
- !ruby/object:Gem::Dependency
|
|
61
61
|
name: mindwords
|
|
62
62
|
requirement: !ruby/object:Gem::Requirement
|
|
63
63
|
requirements:
|
|
64
64
|
- - "~>"
|
|
65
65
|
- !ruby/object:Gem::Version
|
|
66
|
-
version: '0.
|
|
66
|
+
version: '0.8'
|
|
67
67
|
- - ">="
|
|
68
68
|
- !ruby/object:Gem::Version
|
|
69
|
-
version: 0.
|
|
69
|
+
version: 0.8.1
|
|
70
70
|
type: :runtime
|
|
71
71
|
prerelease: false
|
|
72
72
|
version_requirements: !ruby/object:Gem::Requirement
|
|
73
73
|
requirements:
|
|
74
74
|
- - "~>"
|
|
75
75
|
- !ruby/object:Gem::Version
|
|
76
|
-
version: '0.
|
|
76
|
+
version: '0.8'
|
|
77
77
|
- - ">="
|
|
78
78
|
- !ruby/object:Gem::Version
|
|
79
|
-
version: 0.
|
|
79
|
+
version: 0.8.1
|
|
80
80
|
- !ruby/object:Gem::Dependency
|
|
81
81
|
name: martile
|
|
82
82
|
requirement: !ruby/object:Gem::Requirement
|
|
83
83
|
requirements:
|
|
84
84
|
- - "~>"
|
|
85
85
|
- !ruby/object:Gem::Version
|
|
86
|
-
version: '1.
|
|
86
|
+
version: '1.6'
|
|
87
87
|
- - ">="
|
|
88
88
|
- !ruby/object:Gem::Version
|
|
89
|
-
version: 1.
|
|
89
|
+
version: 1.6.2
|
|
90
90
|
type: :runtime
|
|
91
91
|
prerelease: false
|
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
|
93
93
|
requirements:
|
|
94
94
|
- - "~>"
|
|
95
95
|
- !ruby/object:Gem::Version
|
|
96
|
-
version: '1.
|
|
96
|
+
version: '1.6'
|
|
97
97
|
- - ">="
|
|
98
98
|
- !ruby/object:Gem::Version
|
|
99
|
-
version: 1.
|
|
99
|
+
version: 1.6.2
|
|
100
100
|
- !ruby/object:Gem::Dependency
|
|
101
101
|
name: hashcache
|
|
102
102
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -148,5 +148,5 @@ requirements: []
|
|
|
148
148
|
rubygems_version: 3.2.22
|
|
149
149
|
signing_key:
|
|
150
150
|
specification_version: 4
|
|
151
|
-
summary: A poor man's wiki.
|
|
151
|
+
summary: A poor man's wiki (currently unmaintained).
|
|
152
152
|
test_files: []
|
metadata.gz.sig
CHANGED
|
Binary file
|