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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6a512a725cd5620b46a4e07dbb7cf04169d33c26d449bee7b12f565bdf17a6c5
4
- data.tar.gz: e635c44eaa9f4a3413666113ca399020249feb12ae19a63f544f1716ab3c3956
3
+ metadata.gz: '0931239a827e5f86ec580dde306715f4c903261ca6339d7a836115517ff3a297'
4
+ data.tar.gz: 763e0013134c3fcfd79eac8d87490a320370da2a7f9a08fd04e130224dc6a30b
5
5
  SHA512:
6
- metadata.gz: 6695bad925d18d8be9fe52b7f0c32581310a49c3b0f580e569a997d8ffeb2630aadc06549c6b6494aa523516feec0b05b579fa29495fc66f03aaf2346c67e71f
7
- data.tar.gz: 2d5739a44678c2035798575ac4fca4dfb583594fc8aba94f14fd7cabc4e9cba3eb133ffeb8c869415548b0c0baf28b5edca78ae9854d799b640f80c2580d1aac
6
+ metadata.gz: 6a88fbc3a82f326ffec5c180001dae1f7b5ba6d1f697cffafbf90766bea957b6806dc9faeac563af89d1f9f1a165116be764b5a79a933c5d1e4a792c3eef2a03
7
+ data.tar.gz: eead72bde0da003e58734d6645d18d0f34f079f75962af9c2bb7654efcd069863a9a92590dab5581405b17e8eba82dd24b0a04a2c40fd7401fb371db7ffe766d
data/bin/kds CHANGED
@@ -50,6 +50,7 @@ end
50
50
  (loport..hiport).each do |p|
51
51
  uri.port = p
52
52
  url = uri.to_s
53
+ print "#{p}\r" if $stdout.tty?
53
54
  URI(url).open do |f|
54
55
  s = f.readpartial(40000)
55
56
  sc = s.scan(/id="title".*?<|Internal server error/)
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.6"
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.6
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: 2023-10-28 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: []