synful 1.1.1 → 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 +2 -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'
|
@@ -270,6 +271,7 @@ __END__
|
|
270
271
|
begin
|
271
272
|
data = File.read(@file)
|
272
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)
|
273
275
|
data.sub!(/\A.*?(?=^[^#\s])/m, "") if $nuke # nuke top comments (license, etc.)
|
274
276
|
type = Rouge::Lexer.guess(filename:@file, source:data)
|
275
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: []
|