wikisys 0.1.0 → 0.4.0

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: ee7f4f1bcbac3abd180eb9cebb93a52b500b6f6aba9b2e84029730bb9f43f8c4
4
- data.tar.gz: 6da3ab3b41d4695303956c1f938b59882d15d165ef5893d0e3b7dc90b0fe5452
3
+ metadata.gz: 58d2c1e764d883278d6cc59cc30701bec9e60e54f40f5d74a2c2ca9de24aaaa3
4
+ data.tar.gz: 3ce2675464a445aaaa1ae9e5061b34fab9d36556c8d7a37ae06d8cd5a03c9d4d
5
5
  SHA512:
6
- metadata.gz: c34441c10148b5553ec24c6f01e03bf888148df9baa6174df361558824a438a8de0dd92528fb1bbe6ce4859ff96fd5293a5ed63b3cdd805f970af6b2d37555bd
7
- data.tar.gz: 3310274ddffe757f4f1dc9f2cec01447cef49e6d61f95d7bbe135fae84b6c114870172fe79858212e11c9db761c5612b2b933df8ef02f877fc7e280011758cfc
6
+ metadata.gz: e67d2e605bfb300d986730021834943b5467b3de637cbcc0257602bb9c1939227add73b3d57de71d13cb6b1e2153bc59e2046c6623fc4f3b421583b71e0292ed
7
+ data.tar.gz: c0d03e1ae012d972ae452a0b8252b444df51c7f3d1d7c55375db126673c4821a96f244090ec4e2c0990c64f063fd9a68546b4c5dedacaba8c7f490ca08c45680
Binary file
data.tar.gz.sig CHANGED
@@ -1,2 +1 @@
1
- WA������X��t�#� ]Z��֐63"C��c�}��/��T��Ef��xN��]���UXgM�%-/����� ��x e���
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ژ��''�����´��Hf q
1
+ F�y��@�HK�b�T�}���u�Р)dekZV��2@{ ����,։� $� E2�#Gua^��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�=
@@ -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.1.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: 2020-06-22 00:00:00.000000000 Z
38
+ date: 2021-01-30 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
- name: dxlite
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.1
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.1
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
- - lib/wikisys.rb
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
- rubygems_version: 3.0.3
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
@@ -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
-