mymedia-wiki 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/mymedia-wiki.rb +6 -45
- data.tar.gz.sig +0 -0
- metadata +6 -6
- 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: '07986dcd8c58551653205083dfa5d6c22af923416b5b3da7cb6b8711558383e7'
|
|
4
|
+
data.tar.gz: d80258b5633a5499a6562f7f4e7516c81f14989e0945b59ab2b9c8a1950548d1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '09ab79adfee3fb369fb8006c4909fc2580dbab70f4714b12840550ff7f6008bf48e84d45c6754d4bf019de75f57b429ff8c1eca7837d994d6d2957ccb829b671'
|
|
7
|
+
data.tar.gz: 2011096e22b44885ea35f79b48b87444bd532944fbbc583a27b2533cbc7513eaf7cec00e97bfe38490f10051183348bd5bc844142e073bbb6138908b9e14e6a1
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/lib/mymedia-wiki.rb
CHANGED
|
@@ -173,58 +173,19 @@ end
|
|
|
173
173
|
|
|
174
174
|
class WikiTester23 < MyMediaWiki
|
|
175
175
|
|
|
176
|
+
include PagesTestSetup
|
|
176
177
|
# it is assumed this class will be executed from a test directory
|
|
177
178
|
# containing the following auxillary files:
|
|
178
179
|
# - wiki.xsl
|
|
179
180
|
# - index-template.html
|
|
180
181
|
|
|
181
|
-
def initialize(config: '', cur_dir: '',
|
|
182
|
+
def initialize(config: '', cur_dir: '', www_dir: '/tmp/www',
|
|
183
|
+
media_dir: '/tmp/media', debug: false)
|
|
184
|
+
|
|
185
|
+
super(config: config, debug: debug)
|
|
186
|
+
set_paths(cur_dir, www_dir, media_dir)
|
|
182
187
|
|
|
183
|
-
@cur_dir = cur_dir
|
|
184
|
-
super(config: config, debug: debug)
|
|
185
|
-
@parent_dir = '/tmp/media'
|
|
186
|
-
@dir = 'wiki'
|
|
187
|
-
|
|
188
|
-
end
|
|
189
|
-
|
|
190
|
-
def cleanup()
|
|
191
|
-
|
|
192
|
-
# remove the previous test files
|
|
193
|
-
#
|
|
194
|
-
FileX.rm_r '/tmp/www/*', force: true
|
|
195
|
-
puts 'Previous /tmp/www files now removed!'
|
|
196
|
-
end
|
|
197
|
-
|
|
198
|
-
def prep()
|
|
199
|
-
|
|
200
|
-
#return
|
|
201
|
-
# create the template files and directories
|
|
202
|
-
#
|
|
203
|
-
xsl_src = File.join(@cur_dir, 'wiki.xsl')
|
|
204
|
-
www_dest = '/tmp/www/xsl/wiki.xsl'
|
|
205
|
-
r_dest = '/tmp/www/r/xsl/wiki.xsl'
|
|
206
|
-
index_dest = '/tmp/www/wiki/index-template.html'
|
|
207
|
-
|
|
208
|
-
FileX.mkdir_p File.dirname(www_dest)
|
|
209
|
-
FileX.cp xsl_src, www_dest
|
|
210
|
-
|
|
211
|
-
FileX.mkdir_p File.dirname(r_dest)
|
|
212
|
-
FileX.cp xsl_src, r_dest
|
|
213
|
-
|
|
214
|
-
FileX.mkdir_p File.dirname(index_dest)
|
|
215
|
-
FileX.cp File.join(@cur_dir, 'index-template.html'), '/tmp/www/wiki/index-template.html'
|
|
216
|
-
|
|
217
|
-
filepath = File.join(@parent_dir, @dir)
|
|
218
|
-
FileUtils.mkdir_p filepath
|
|
219
188
|
end
|
|
220
189
|
|
|
221
|
-
# create the input file
|
|
222
|
-
#
|
|
223
|
-
def write(filename: '', content: '')
|
|
224
|
-
|
|
225
|
-
File.write File.join(@parent_dir, @dir, filename), content
|
|
226
|
-
puts 'debug: filename: ' + filename.inspect
|
|
227
|
-
|
|
228
|
-
end
|
|
229
190
|
end
|
|
230
191
|
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mymedia-wiki
|
|
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
|
|
@@ -36,7 +36,7 @@ cert_chain:
|
|
|
36
36
|
oieYuM8pF85DLjFpVCyuRfmjN9NT+eGZU72IfIAEOwJ2gRfCQBorLdrKWTBk9jpd
|
|
37
37
|
034gd1EDuJQgprCLmdjGpAhud/laq9IhN4o=
|
|
38
38
|
-----END CERTIFICATE-----
|
|
39
|
-
date: 2023-02-
|
|
39
|
+
date: 2023-02-25 00:00:00.000000000 Z
|
|
40
40
|
dependencies:
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: mymedia-pages
|
|
@@ -44,20 +44,20 @@ dependencies:
|
|
|
44
44
|
requirements:
|
|
45
45
|
- - "~>"
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: '0.
|
|
47
|
+
version: '0.6'
|
|
48
48
|
- - ">="
|
|
49
49
|
- !ruby/object:Gem::Version
|
|
50
|
-
version: 0.
|
|
50
|
+
version: 0.6.0
|
|
51
51
|
type: :runtime
|
|
52
52
|
prerelease: false
|
|
53
53
|
version_requirements: !ruby/object:Gem::Requirement
|
|
54
54
|
requirements:
|
|
55
55
|
- - "~>"
|
|
56
56
|
- !ruby/object:Gem::Version
|
|
57
|
-
version: '0.
|
|
57
|
+
version: '0.6'
|
|
58
58
|
- - ">="
|
|
59
59
|
- !ruby/object:Gem::Version
|
|
60
|
-
version: 0.
|
|
60
|
+
version: 0.6.0
|
|
61
61
|
description:
|
|
62
62
|
email: digital.robertson@gmail.com
|
|
63
63
|
executables: []
|
metadata.gz.sig
CHANGED
|
Binary file
|