kdwatch 0.5.6 → 0.5.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/kds +1 -0
- data/bin/kdwatch +1 -1
- data/data/0.ico +0 -0
- data/data/1.ico +0 -0
- data/data/2.ico +0 -0
- data/data/3.ico +0 -0
- data/data/4.ico +0 -0
- data/data/5.ico +0 -0
- data/data/6.ico +0 -0
- data/data/7.ico +0 -0
- data/data/8.ico +0 -0
- data/data/9.ico +0 -0
- data/lib/kdwatch/version.rb +1 -1
- data/lib/kdwatch-app.rb +19 -0
- metadata +13 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0931239a827e5f86ec580dde306715f4c903261ca6339d7a836115517ff3a297'
|
4
|
+
data.tar.gz: 763e0013134c3fcfd79eac8d87490a320370da2a7f9a08fd04e130224dc6a30b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a88fbc3a82f326ffec5c180001dae1f7b5ba6d1f697cffafbf90766bea957b6806dc9faeac563af89d1f9f1a165116be764b5a79a933c5d1e4a792c3eef2a03
|
7
|
+
data.tar.gz: eead72bde0da003e58734d6645d18d0f34f079f75962af9c2bb7654efcd069863a9a92590dab5581405b17e8eba82dd24b0a04a2c40fd7401fb371db7ffe766d
|
data/bin/kds
CHANGED
data/bin/kdwatch
CHANGED
@@ -34,7 +34,7 @@ Usage: kdwatch [options] draft-foo.md|.mkd|.xml
|
|
34
34
|
Version: #{Kdwatch::VERSION}
|
35
35
|
BANNER
|
36
36
|
opts.on("-V", "--version", "Show version and exit") do |v|
|
37
|
-
puts "kdwatch #{Kdwatch::
|
37
|
+
puts "kdwatch #{Kdwatch::VERSION}"
|
38
38
|
exit
|
39
39
|
end
|
40
40
|
opts.on("-H", "--help", "Show option summary and exit") do |v|
|
data/data/0.ico
ADDED
Binary file
|
data/data/1.ico
ADDED
Binary file
|
data/data/2.ico
ADDED
Binary file
|
data/data/3.ico
ADDED
Binary file
|
data/data/4.ico
ADDED
Binary file
|
data/data/5.ico
ADDED
Binary file
|
data/data/6.ico
ADDED
Binary file
|
data/data/7.ico
ADDED
Binary file
|
data/data/8.ico
ADDED
Binary file
|
data/data/9.ico
ADDED
Binary file
|
data/lib/kdwatch/version.rb
CHANGED
data/lib/kdwatch-app.rb
CHANGED
@@ -43,6 +43,18 @@ get "/" do
|
|
43
43
|
end
|
44
44
|
dfc = File.stat(dfn).ctime rescue Time.at(0)
|
45
45
|
ret = File.read(dfn)
|
46
|
+
ret.sub!(<<TOC, <<ANNOTOC)
|
47
|
+
<a href="#name-table-of-contents" class="section-name selfRef">Table of Contents</a>
|
48
|
+
TOC
|
49
|
+
<a href="#name-table-of-contents" class="section-name selfRef" style="white-space: nowrap; min-width: 290px;"><span style="color: red; font-weight: bold; font-size: 120%;">#{
|
50
|
+
dfc.strftime('%T')
|
51
|
+
}</span> Table of Contents</a>
|
52
|
+
ANNOTOC
|
53
|
+
ret.sub!(<<TOC, <<ANNOTOC)
|
54
|
+
left: -164px;
|
55
|
+
TOC
|
56
|
+
left: -264px;
|
57
|
+
ANNOTOC
|
46
58
|
if sfc > dfc # somehow the above went wrong
|
47
59
|
ret.gsub!(<<CSS, <<RED)
|
48
60
|
/* general and mobile first */
|
@@ -55,6 +67,13 @@ RED
|
|
55
67
|
ret
|
56
68
|
end
|
57
69
|
|
70
|
+
get "/favicon.ico" do
|
71
|
+
port_num = port.to_i % 10
|
72
|
+
fn = File.expand_path "../../data/#{port_num}.ico", __FILE__
|
73
|
+
warn "** fn #{fn}"
|
74
|
+
send_file fn
|
75
|
+
end
|
76
|
+
|
58
77
|
get "/metadata.min.js" do
|
59
78
|
# insert reload script here!
|
60
79
|
end
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kdwatch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Carsten Bormann
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-01-23 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: bundler
|
@@ -137,6 +136,16 @@ files:
|
|
137
136
|
- README.md
|
138
137
|
- bin/kds
|
139
138
|
- bin/kdwatch
|
139
|
+
- data/0.ico
|
140
|
+
- data/1.ico
|
141
|
+
- data/2.ico
|
142
|
+
- data/3.ico
|
143
|
+
- data/4.ico
|
144
|
+
- data/5.ico
|
145
|
+
- data/6.ico
|
146
|
+
- data/7.ico
|
147
|
+
- data/8.ico
|
148
|
+
- data/9.ico
|
140
149
|
- kdwatch.gemspec
|
141
150
|
- lib/kdwatch-app.rb
|
142
151
|
- lib/kdwatch/version.rb
|
@@ -144,7 +153,6 @@ homepage: https://github.com/cabo/kdwatch
|
|
144
153
|
licenses:
|
145
154
|
- MIT
|
146
155
|
metadata: {}
|
147
|
-
post_install_message:
|
148
156
|
rdoc_options: []
|
149
157
|
require_paths:
|
150
158
|
- lib
|
@@ -159,8 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
159
167
|
- !ruby/object:Gem::Version
|
160
168
|
version: '0'
|
161
169
|
requirements: []
|
162
|
-
rubygems_version: 3.
|
163
|
-
signing_key:
|
170
|
+
rubygems_version: 3.6.2
|
164
171
|
specification_version: 4
|
165
172
|
summary: 'kdwatch: open auto-reloaded HTML for kramdown-rfc in a browser.'
|
166
173
|
test_files: []
|