cowl 0.4 → 0.5

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/lib/cowl.rb +20 -15
  3. data/lib/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a27602e97cc4ee22bd45d9deab4437f11efc49f0
4
- data.tar.gz: 8ccda49b10095c162c841565f530f1e504f12f85
3
+ metadata.gz: d415ce09daf37251429ae3953e415cde9bfdbbd3
4
+ data.tar.gz: 95847e09b6e320df61230f6ef38010ac3d616bac
5
5
  SHA512:
6
- metadata.gz: 48b97f6cbf2974a3530e761e99bbc6dc25b1e856d8a87e8f0da196069f114aaf8d391f5acc1af28806ce9e0a9d8a9db2601f7ae170b3a198a7c368fab71246b6
7
- data.tar.gz: 51e7bf6f8c88ac4c9dce04c8833249cc03607057f72d53298e59fee21d39ec9972cbeea2ab8d5fc68350642286f2ff201c037e68f49425a2ed10302c64b861f5
6
+ metadata.gz: a4720ae08bf1a4d6b6a5230114edd4f667348b6edde8c58f68febdb9fe82a29c485212d725e9d1b3dd455fb1aec22480b1b166a1b66c402a3ae79b0774249bff
7
+ data.tar.gz: 3bfade1de48b7de81dfbc0a1c0d0f57754f67985d8b0d5f49210badc2b2aec9d601c55704cfe0c4d2fbad5c44689ca53a2eb4ad1f7c9385699643b320aac6d17
@@ -7,21 +7,26 @@ $stdout.sync = true
7
7
  require 'version'
8
8
 
9
9
  DEFAULT_IGNORES = %w(
10
- .hg/
11
- .svn/
12
- .git/
13
- .git
14
- .gitignore
10
+ tmp/
11
+ \.hg/
12
+ \.svn/
13
+ \.git/
14
+ \.git
15
+ \.gitignore
15
16
  node_modules/
16
- .vagrant/
17
+ bower_components/
18
+ \.vagrant/
17
19
  Gemfile.lock
18
- .exe
19
- .bin
20
- .png
21
- .jpg
22
- .jpeg
23
- .svg
24
- .min.js
20
+ \.exe
21
+ \.bin
22
+ \.app
23
+ \.xcodeproj/
24
+ \.dSYM/
25
+ \.png
26
+ \.jpg
27
+ \.jpeg
28
+ \.svg
29
+ \.min.js
25
30
  -min.js
26
31
  )
27
32
 
@@ -86,7 +91,7 @@ def self.check_stdin(configuration = DEFAULT_CONFIGURATION)
86
91
  if max_width != UNLIMITED
87
92
  output = `grep -n \'^.\\{#{max_width.to_i + 1},\\}$\' \"#{filename}\"`
88
93
 
89
- lines = output.split("\n")
94
+ lines = output.split("\n").reject { |line| line =~ /^Binary file/ }
90
95
 
91
96
  widenings = lines.map { |line| Widening.parse('stdin', line) }
92
97
 
@@ -100,7 +105,7 @@ def self.check(filename, configuration = DEFAULT_CONFIGURATION)
100
105
  if max_width != UNLIMITED
101
106
  output = `grep -n \'^.\\{#{max_width.to_i + 1},\\}$\' \"#{filename}\"`
102
107
 
103
- lines = output.split("\n")
108
+ lines = output.split("\n").reject { |line| line =~ /^Binary file/ }
104
109
 
105
110
  widenings = lines.map { |line| Widening.parse(filename, line) }
106
111
 
@@ -2,5 +2,5 @@
2
2
  # Cowl
3
3
  #
4
4
  module Cowl
5
- VERSION = '0.4'
5
+ VERSION = '0.5'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cowl
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.4'
4
+ version: '0.5'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Pennebaker