synful 1.1.4 → 1.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/synful +2 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a4b23ce45e41d059a474c73411ce469982c47d5760284c85f9ebd69987f2b6d5
4
- data.tar.gz: '082d27cc313db8e156ee22980c60b4da73193063be7c77545544cd0881e23616'
3
+ metadata.gz: 6d32ed10de9fb20a5e2c70c0a8103f7766ddc36b71f41f5275182e88fcda76cc
4
+ data.tar.gz: dadcfd366fe9604342cd7a28446664dcd91836897759e06b88e024f4c2fe064e
5
5
  SHA512:
6
- metadata.gz: 8cd669479382dd99113ba3393117fff05cea7c8ecb1248025d291abe28b11df9a9774381269478ae3acefa29ccb880dab86800e787116fe0f71647f21809c7ec
7
- data.tar.gz: 6e87cd7786ce8c59a038db3c2820b3cbe59394f1ca2ffaa0ef56e5b609583a36063dd65ba0d3fa07747477ee05d2eed2d8990524601988c0cf4a282577c7324c
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.4"
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.read(@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.)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: synful
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Shreeve