dokuwiki 1.0 → 1.2
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/CHANGELOG.md +8 -0
- data/lib/dokuwiki.rb +9 -9
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ae1657c508dd975aaf7a92b0cc0e599f4768593369a7dc3f1604ca08a862088
|
4
|
+
data.tar.gz: b66cb5e15d54b44c7edb1da76eb6c8ff0b4c24f45e4674eceedfd9cb4aad5d0a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95e388de7808ee29c085303f700888c2e040b93eb46b6a74b11be36f55ad700af197f9ec2c02459c92e9ddbf9293d0364e924c6b380a712c2dce6a9a1f5f3dd6
|
7
|
+
data.tar.gz: 7c947cc49174c853201e3534036a59e5afe2cc5c8e0e31241c44f43cc82bbaa14aaba90d237b8e74bf92af6772d60ac9d9ab9622e6d73a3579c8c27a57c1c7f4
|
data/CHANGELOG.md
CHANGED
data/lib/dokuwiki.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# = dokuwiki.rb
|
4
4
|
#
|
@@ -14,7 +14,6 @@
|
|
14
14
|
require 'rubygems'
|
15
15
|
require 'http-cookie'
|
16
16
|
require 'mechanize'
|
17
|
-
require 'pp'
|
18
17
|
|
19
18
|
# Module for accessing DokuWiki
|
20
19
|
module DokuWiki
|
@@ -44,9 +43,9 @@ module DokuWiki
|
|
44
43
|
#
|
45
44
|
class DokuWikiAccess
|
46
45
|
# extension for files in dokuwiki syntax
|
47
|
-
EXTENSION = 'wiki'
|
46
|
+
EXTENSION = 'wiki'
|
48
47
|
# filename for cookie cache
|
49
|
-
COOKIES = 'cookies.txt'
|
48
|
+
COOKIES = 'cookies.txt'
|
50
49
|
|
51
50
|
# directory for media download cache
|
52
51
|
attr_accessor :media_dir
|
@@ -177,7 +176,7 @@ module DokuWiki
|
|
177
176
|
if @media_dir.nil?
|
178
177
|
filename
|
179
178
|
else
|
180
|
-
"#{
|
179
|
+
"#{@media_dir}/#{filename}"
|
181
180
|
end
|
182
181
|
save_wiki_body( path, url )
|
183
182
|
end
|
@@ -185,14 +184,15 @@ module DokuWiki
|
|
185
184
|
# save wiki path to file
|
186
185
|
def save_wiki_path( wikipath )
|
187
186
|
filename = wikipath.split( ':' ).last
|
188
|
-
|
189
|
-
|
187
|
+
extension = filename.split( '.' ).last
|
188
|
+
case extension
|
189
|
+
when 'jpg', 'jpeg', 'png', 'svg', 'pdf', 'csv', 'txt', '.text'
|
190
190
|
url = @dokuwiki_media_url + wikipath
|
191
191
|
save_wiki_media( filename, url )
|
192
|
-
when
|
192
|
+
when 'css'
|
193
193
|
url = @dokuwiki_css_url + wikipath.sub( /[.]css$/, '' )
|
194
194
|
save_wiki_media( filename, url )
|
195
|
-
when
|
195
|
+
when 'html'
|
196
196
|
url = @dokuwiki_page_url + wikipath.sub( /[.]html$/, '' )
|
197
197
|
save_wiki_body( filename, url )
|
198
198
|
else
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dokuwiki
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '1.
|
4
|
+
version: '1.2'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dirk Meyer
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-04-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http-cookie
|
@@ -52,7 +52,7 @@ dependencies:
|
|
52
52
|
version: 2.7.6
|
53
53
|
description: The DokuWiki library is used for automating interaction with a DokuWiki
|
54
54
|
server.
|
55
|
-
email:
|
55
|
+
email:
|
56
56
|
executables: []
|
57
57
|
extensions: []
|
58
58
|
extra_rdoc_files: []
|
@@ -67,7 +67,7 @@ homepage: https://rubygems.org/gems/dokuwiki
|
|
67
67
|
licenses:
|
68
68
|
- MIT
|
69
69
|
metadata: {}
|
70
|
-
post_install_message:
|
70
|
+
post_install_message:
|
71
71
|
rdoc_options: []
|
72
72
|
require_paths:
|
73
73
|
- lib
|
@@ -82,8 +82,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
82
|
- !ruby/object:Gem::Version
|
83
83
|
version: '0'
|
84
84
|
requirements: []
|
85
|
-
rubygems_version: 3.
|
86
|
-
signing_key:
|
85
|
+
rubygems_version: 3.3.26
|
86
|
+
signing_key:
|
87
87
|
specification_version: 4
|
88
88
|
summary: access DokuWiki server
|
89
89
|
test_files: []
|