synful 1.1.4 → 1.1.5
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 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d32ed10de9fb20a5e2c70c0a8103f7766ddc36b71f41f5275182e88fcda76cc
|
4
|
+
data.tar.gz: dadcfd366fe9604342cd7a28446664dcd91836897759e06b88e024f4c2fe064e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bbee857ada730302fdca86a0c8a9611204bd54789c5c354aa4a2b65ad2769d7fd127f9bb2b95941a589381d2c9717ccacfa1f24cca0dc4ee3dcb45cc49db89d5
|
7
|
+
data.tar.gz: 00a211ecc51c695c7d35c283e6c14389a02ddd32bce0ec512e537c2b158aedfa571517f4c12be08ab6db10bd1a897c5e73279565fd8dbdadcfe464b3c3f2aa70
|
data/bin/synful
CHANGED
@@ -19,7 +19,7 @@
|
|
19
19
|
require "optparse"
|
20
20
|
|
21
21
|
OptionParser.new.instance_eval do
|
22
|
-
@version = "1.1.
|
22
|
+
@version = "1.1.5"
|
23
23
|
@banner = "usage: #{program_name} [options] <paths ...> [--] <-paths_to_skip ...>"
|
24
24
|
|
25
25
|
on '-b' , '--bypass' , 'Bypass (skip over) top comments (begin with "#") in files'
|
@@ -275,7 +275,7 @@ __END__
|
|
275
275
|
@@ file
|
276
276
|
<%
|
277
277
|
begin
|
278
|
-
data = File.
|
278
|
+
data = File.open(@file, "r:bom", &:read)
|
279
279
|
data.gsub!(/\t/, " ") # replace tab with 2 spaces (make configurable?)
|
280
280
|
data.gsub!(/\r\n?/, "\n") # replace CRLF with LF (fixes double vertical lines)
|
281
281
|
data.sub!(/\A.*?(?=^[^#\s])/m, "") if $nuke # nuke top comments (license, etc.)
|