synful 1.1.0 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/synful +7 -0
- data/synful.gemspec +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d972681e2643dc3405332f262139f988dde9fa3f356a5fa36ceae433a816dfc3
|
4
|
+
data.tar.gz: cc6ccba71159f317b99934ffeecaae0ab77fd0201120006b913b704d8e36ac46
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '029ea3ad6aabea7d5191fcf72389dcb6b0928c354cb62416a2d0d448f9001e3be027f7cbb05af9485df3d67f9e04dd18b74eac20a9a791b26e94b27dec7bccad'
|
7
|
+
data.tar.gz: 675b82e3026859e9731120b9823999d7b7d3a16cf6f50880ad7205c5ed45671c6c83fd78048fbd00967c3eeae611c2bfc834ae8f9bb22db4dc9e0a6acc5fafaa
|
data/bin/synful
CHANGED
@@ -19,6 +19,7 @@
|
|
19
19
|
require "optparse"
|
20
20
|
|
21
21
|
OptionParser.new.instance_eval do
|
22
|
+
@version = "1.1.2"
|
22
23
|
@banner = "usage: #{program_name} [options] <paths ...> [--] <-paths_to_skip ...>"
|
23
24
|
|
24
25
|
on '-b' , '--bypass' , 'Bypass (skip over) top comments (begin with "#") in files'
|
@@ -254,6 +255,11 @@ __END__
|
|
254
255
|
@@ toc
|
255
256
|
<div class="cap">
|
256
257
|
<div><a name="top">Index</a></div>
|
258
|
+
<div>
|
259
|
+
<a href="#<%= @list[ 1] %>">↓</a>
|
260
|
+
<a href="#<%= @list[-1] %>">↑</a>
|
261
|
+
<a href="#top">⥣</a>
|
262
|
+
</div>
|
257
263
|
</div>
|
258
264
|
|
259
265
|
<ul><% @list.each do |file| %>
|
@@ -265,6 +271,7 @@ __END__
|
|
265
271
|
begin
|
266
272
|
data = File.read(@file)
|
267
273
|
data.gsub!(/\t/, " ") # replace tab with 2 spaces (make configurable?)
|
274
|
+
data.gsub!(/\r\n?/, "\n") # replace CRLF with LF (fixes double vertical lines)
|
268
275
|
data.sub!(/\A.*?(?=^[^#\s])/m, "") if $nuke # nuke top comments (license, etc.)
|
269
276
|
type = Rouge::Lexer.guess(filename:@file, source:data)
|
270
277
|
rescue ArgumentError => e
|
data/synful.gemspec
CHANGED
@@ -2,10 +2,10 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "synful"
|
5
|
-
s.version =
|
5
|
+
s.version = `grep -m 1 '^\s*@version' bin/synful | cut -f 2 -d '"'`
|
6
6
|
s.author = "Steve Shreeve"
|
7
7
|
s.email = "steve.shreeve@gmail.com"
|
8
|
-
s.summary =
|
8
|
+
s.summary = "A " +
|
9
9
|
s.description = "Ruby utility that shows syntax highlighted code in your browser"
|
10
10
|
s.homepage = "https://github.com/shreeve/synful"
|
11
11
|
s.license = "MIT"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: synful
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steve Shreeve
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-12-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rouge
|
@@ -83,8 +83,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
83
83
|
- !ruby/object:Gem::Version
|
84
84
|
version: '0'
|
85
85
|
requirements: []
|
86
|
-
rubygems_version: 3.
|
86
|
+
rubygems_version: 3.5.1
|
87
87
|
signing_key:
|
88
88
|
specification_version: 4
|
89
|
-
summary: Ruby utility that shows syntax highlighted code in your browser
|
89
|
+
summary: A Ruby utility that shows syntax highlighted code in your browser
|
90
90
|
test_files: []
|