kdwatch 0.5.7 → 0.5.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d6f55d1aea6dc1fc73bc7b993228ecf1d752d95f0cb301b4a818ace03602d95e
4
- data.tar.gz: e6e729ba9dda676793ef37e9adac49bba40e75ca72e903003ad64cd850725139
3
+ metadata.gz: '0931239a827e5f86ec580dde306715f4c903261ca6339d7a836115517ff3a297'
4
+ data.tar.gz: 763e0013134c3fcfd79eac8d87490a320370da2a7f9a08fd04e130224dc6a30b
5
5
  SHA512:
6
- metadata.gz: 1841395cafc0d9826d6630e9d8a5be14f9adc83775481577055636fc73400423b7d7f7d1c76f79eb83d4a9fa8177d5007a8029a0a6c37ce47b071e9d10d31090
7
- data.tar.gz: 2b2c5949dce3507ccec14790ab894581c83a24ce18ec909f2ec37761a2d8001102ec69bae8206d3b23479d1312037cb6c37c66e2a425b0845772b38eb398f9ca
6
+ metadata.gz: 6a88fbc3a82f326ffec5c180001dae1f7b5ba6d1f697cffafbf90766bea957b6806dc9faeac563af89d1f9f1a165116be764b5a79a933c5d1e4a792c3eef2a03
7
+ data.tar.gz: eead72bde0da003e58734d6645d18d0f34f079f75962af9c2bb7654efcd069863a9a92590dab5581405b17e8eba82dd24b0a04a2c40fd7401fb371db7ffe766d
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::Version}"
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Kdwatch
4
- VERSION = "0.5.7"
4
+ VERSION = "0.5.10"
5
5
  end
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.7
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: 2024-03-02 00:00:00.000000000 Z
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.4.10
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: []