wikisys 0.1.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +1 -3
- data/stylesheet/pg.css +75 -0
- metadata +68 -7
- metadata.gz.sig +0 -0
- data/lib/wikisys.rb +0 -65
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 58d2c1e764d883278d6cc59cc30701bec9e60e54f40f5d74a2c2ca9de24aaaa3
|
4
|
+
data.tar.gz: 3ce2675464a445aaaa1ae9e5061b34fab9d36556c8d7a37ae06d8cd5a03c9d4d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e67d2e605bfb300d986730021834943b5467b3de637cbcc0257602bb9c1939227add73b3d57de71d13cb6b1e2153bc59e2046c6623fc4f3b421583b71e0292ed
|
7
|
+
data.tar.gz: c0d03e1ae012d972ae452a0b8252b444df51c7f3d1d7c55375db126673c4821a96f244090ec4e2c0990c64f063fd9a68546b4c5dedacaba8c7f490ca08c45680
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
����oI�O��I%)����QN�}��˃'<�?AMB2 �/��H�KQ//��D�Y&����/^�l��L�(�|u�mR����V���)_m�c�q����[��;�6|=+�lPZy�"�\-�V���-�c�%aв(4��^퐐�_7������2͉�Ĥ�o�����㥌=:"��w%��/^Y2�]��f�Ǔ����ݰ�&
|
3
|
-
�h�,�7T�d�Fc�5��s��:J���Ι�g�,r�#�X��:��c����YGX�)`�5ژ��''�����´��Hfq
|
1
|
+
F�y��@�HK�b�T�}���u�Р)dekZV��2@{����,։�$�E2�#G�ua^��K��Nj�A,�b?k�F��<���w@D��o��<�y�g�ݿS23��e�U7#O�Io)�w"���E�|�#���4�?*�N��Y<g|�iH�5� �AE�����$^N'�5vq�=
|
data/stylesheet/pg.css
ADDED
@@ -0,0 +1,75 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
/* begin breadcrumb.css */
|
4
|
+
|
5
|
+
body {font-family: Arial;}
|
6
|
+
|
7
|
+
/* Style the list */
|
8
|
+
ul.breadcrumb {
|
9
|
+
padding: 10px 16px;
|
10
|
+
list-style: none;
|
11
|
+
background-color: #eee;
|
12
|
+
}
|
13
|
+
|
14
|
+
/* Display list items side by side */
|
15
|
+
ul.breadcrumb li {
|
16
|
+
display: inline;
|
17
|
+
font-size: 18px;
|
18
|
+
}
|
19
|
+
|
20
|
+
/* Add a slash symbol (/) before/behind each list item */
|
21
|
+
ul.breadcrumb li+li:before {
|
22
|
+
padding: 8px;
|
23
|
+
color: black;
|
24
|
+
content: "/\00a0";
|
25
|
+
}
|
26
|
+
|
27
|
+
/* Add a color to all links inside the list */
|
28
|
+
ul.breadcrumb li a {
|
29
|
+
color: #0275d8;
|
30
|
+
text-decoration: none;
|
31
|
+
}
|
32
|
+
|
33
|
+
/* Add a color on mouse-over */
|
34
|
+
ul.breadcrumb li a:hover {
|
35
|
+
color: #01447e;
|
36
|
+
text-decoration: underline;
|
37
|
+
}
|
38
|
+
|
39
|
+
/* end breadcrumb */
|
40
|
+
|
41
|
+
article {
|
42
|
+
background-color: rgba(255,255,255,0.5);
|
43
|
+
padding: 1.1em;
|
44
|
+
margin: 0.4em;
|
45
|
+
}
|
46
|
+
|
47
|
+
header div {text-align: right}
|
48
|
+
#tags {
|
49
|
+
background-color: transparent;
|
50
|
+
padding: 2.5em 1.0em;
|
51
|
+
margin: 1.0em 0em;
|
52
|
+
list-style-type: none
|
53
|
+
}
|
54
|
+
#tags li {
|
55
|
+
background-color: transparent;
|
56
|
+
display: inline;
|
57
|
+
padding: 0.1em;
|
58
|
+
margin: 1.3em 0.1em;
|
59
|
+
color: #fff;
|
60
|
+
}
|
61
|
+
|
62
|
+
#tags li a {
|
63
|
+
background-color: #eee;
|
64
|
+
color: #a95;
|
65
|
+
text-decoration: none;
|
66
|
+
font-family: "Courier";
|
67
|
+
font-weight: 600;
|
68
|
+
font-size: 0.9em;
|
69
|
+
padding: 0.4em 0.6em;
|
70
|
+
margin: 0.3em;
|
71
|
+
|
72
|
+
}
|
73
|
+
|
74
|
+
#tags li:hover {background-color: transparent; }
|
75
|
+
#tags li a:hover { background-color: #ededed; color: #66e; }
|
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.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -35,10 +35,70 @@ cert_chain:
|
|
35
35
|
O3SRDzvvWXrwDFGyRDmGqdEw51FKHPw/6pk4ci0QPIvQEgOyPKfdSesPWmNmtxpf
|
36
36
|
KX/89ohIpftt89vtcCI21R5u
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date:
|
38
|
+
date: 2021-01-30 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
|
-
name:
|
41
|
+
name: dir-to-xml
|
42
|
+
requirement: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - "~>"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '1.0'
|
47
|
+
- - ">="
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: 1.0.4
|
50
|
+
type: :runtime
|
51
|
+
prerelease: false
|
52
|
+
version_requirements: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - "~>"
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '1.0'
|
57
|
+
- - ">="
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: 1.0.4
|
60
|
+
- !ruby/object:Gem::Dependency
|
61
|
+
name: mindwords
|
62
|
+
requirement: !ruby/object:Gem::Requirement
|
63
|
+
requirements:
|
64
|
+
- - "~>"
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '0.5'
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: 0.5.4
|
70
|
+
type: :runtime
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - "~>"
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0.5'
|
77
|
+
- - ">="
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: 0.5.4
|
80
|
+
- !ruby/object:Gem::Dependency
|
81
|
+
name: martile
|
82
|
+
requirement: !ruby/object:Gem::Requirement
|
83
|
+
requirements:
|
84
|
+
- - "~>"
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: '1.4'
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 1.4.6
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '1.4'
|
97
|
+
- - ">="
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: 1.4.6
|
100
|
+
- !ruby/object:Gem::Dependency
|
101
|
+
name: hashcache
|
42
102
|
requirement: !ruby/object:Gem::Requirement
|
43
103
|
requirements:
|
44
104
|
- - "~>"
|
@@ -46,7 +106,7 @@ dependencies:
|
|
46
106
|
version: '0.2'
|
47
107
|
- - ">="
|
48
108
|
- !ruby/object:Gem::Version
|
49
|
-
version: 0.2.
|
109
|
+
version: 0.2.10
|
50
110
|
type: :runtime
|
51
111
|
prerelease: false
|
52
112
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -56,14 +116,14 @@ dependencies:
|
|
56
116
|
version: '0.2'
|
57
117
|
- - ">="
|
58
118
|
- !ruby/object:Gem::Version
|
59
|
-
version: 0.2.
|
119
|
+
version: 0.2.10
|
60
120
|
description:
|
61
121
|
email: james@jamesrobertson.eu
|
62
122
|
executables: []
|
63
123
|
extensions: []
|
64
124
|
extra_rdoc_files: []
|
65
125
|
files:
|
66
|
-
-
|
126
|
+
- stylesheet/pg.css
|
67
127
|
homepage: https://github.com/jrobertson/wikisys
|
68
128
|
licenses:
|
69
129
|
- MIT
|
@@ -83,7 +143,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
83
143
|
- !ruby/object:Gem::Version
|
84
144
|
version: '0'
|
85
145
|
requirements: []
|
86
|
-
|
146
|
+
rubyforge_project:
|
147
|
+
rubygems_version: 2.7.10
|
87
148
|
signing_key:
|
88
149
|
specification_version: 4
|
89
150
|
summary: A poor man's wiki.
|
metadata.gz.sig
CHANGED
Binary file
|
data/lib/wikisys.rb
DELETED
@@ -1,65 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
# file: wikisys.rb
|
4
|
-
|
5
|
-
require 'dxlite'
|
6
|
-
|
7
|
-
module Wikisys
|
8
|
-
|
9
|
-
class Wiki
|
10
|
-
|
11
|
-
def initialize(filepath='.', entries: 'entries.json', debug: false)
|
12
|
-
|
13
|
-
@filepath = filepath
|
14
|
-
@page = ''
|
15
|
-
@debug = debug
|
16
|
-
|
17
|
-
@entries = if File.exists?(entries) then
|
18
|
-
|
19
|
-
DxLite.new(entries)
|
20
|
-
|
21
|
-
else
|
22
|
-
|
23
|
-
DxLite.new('entries/entry(title, tags)', filepath: entries)
|
24
|
-
|
25
|
-
end
|
26
|
-
|
27
|
-
end
|
28
|
-
|
29
|
-
def page(title)
|
30
|
-
|
31
|
-
r = @entries.find_by_title title
|
32
|
-
@page = r ? r : make_page(title)
|
33
|
-
|
34
|
-
end
|
35
|
-
|
36
|
-
def page=(content)
|
37
|
-
|
38
|
-
title = content.lines.first.chomp
|
39
|
-
r = @entries.find_by_title title
|
40
|
-
make_page(title) unless r
|
41
|
-
|
42
|
-
File.write title + '.md', content
|
43
|
-
@page = content
|
44
|
-
|
45
|
-
end
|
46
|
-
|
47
|
-
private
|
48
|
-
|
49
|
-
def make_page(title)
|
50
|
-
|
51
|
-
tags = title.downcase.gsub(/['\.\(\)]/,'').split.join(' ')
|
52
|
-
s = "#{title}\n\n\n+ " + tags
|
53
|
-
File.write title + '.md', s
|
54
|
-
|
55
|
-
@entries.create title: title, tags: tags
|
56
|
-
@entries.save
|
57
|
-
return s
|
58
|
-
|
59
|
-
end
|
60
|
-
|
61
|
-
end
|
62
|
-
|
63
|
-
end
|
64
|
-
|
65
|
-
|