synful 1.1.0 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/synful +7 -0
  3. data/synful.gemspec +2 -2
  4. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 84c50226c4109cb0c83bb82eb44abfef804e038383c1b3890eb883874fe5d5eb
4
- data.tar.gz: 4be946ca64b36695ef6c65804496d8e07f9c9a9a608e8edde35d0f09ff162cf0
3
+ metadata.gz: d972681e2643dc3405332f262139f988dde9fa3f356a5fa36ceae433a816dfc3
4
+ data.tar.gz: cc6ccba71159f317b99934ffeecaae0ab77fd0201120006b913b704d8e36ac46
5
5
  SHA512:
6
- metadata.gz: 1490ac5a2ad64e233bf268cd8c9e75dad62118b51f4c7d210c5ad0a6f10c435c06255f91c0b15e622d733dd86e5045682664f7a482ca44ff661c31ee221be7de
7
- data.tar.gz: 1c210ee033b81c6807fef6202a9a64aeb1115823d2933448c585992bd46c7bf15d953bfabe49b956d5fb218581bd8f09fda9db7ed5a16fba9d4b7923f73b331a
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] %>">&darr;</a>
260
+ <a href="#<%= @list[-1] %>">&UpArrow;</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 = "1.1.0"
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.0
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-02-22 00:00:00.000000000 Z
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.4.7
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: []