synful 1.1.1 → 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 +2 -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: f2b892d4f58998beda714675b75d74c743c271f7a90ff0ced88b46fc4976a808
4
- data.tar.gz: 1af1b203db5c33e44c273a2f1abd6a4eb571c46560a1390719ed84e1f6640267
3
+ metadata.gz: d972681e2643dc3405332f262139f988dde9fa3f356a5fa36ceae433a816dfc3
4
+ data.tar.gz: cc6ccba71159f317b99934ffeecaae0ab77fd0201120006b913b704d8e36ac46
5
5
  SHA512:
6
- metadata.gz: 9c40751ca614b251f3ac9bcb1cad481cefe03f3c4522f9c403d489b04ef23cb0e287c44b5646b8a78ed4fda1f8b69b35aea88bd66b7c10e0564e6f269fe69a31
7
- data.tar.gz: 176c17fa5993cf3722611a928b837585158329bbf737acbaf5a5ba1d1863b76dacb192947347d3e61d6550d77afd706bd9374f5fd17310cd420b796aa5dda461
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 = "1.1.1"
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.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-03-10 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.8
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: []