Skip to content

Commit

Permalink
validate: got test backwards
Browse files Browse the repository at this point in the history
gemspec: need to list dependencies even if they are in patched tarball
  • Loading branch information
rocky committed Mar 3, 2015
1 parent 0fe3c82 commit 6a602ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion processor/validate.rb
Expand Up @@ -39,7 +39,7 @@ def text_file?(file)
bytes = 4096 if bytes > 4096
s = (File.read(file, bytes) || "")
s = s.encode('US-ASCII', :undef => :replace).split(//)
return ((s.size - s.grep(" ".."~").size) / s.size.to_f) > 0.90
return (s.grep(" ".."~").size.to_f / s.size.to_f) > 0.85
end

# Check that arg is an Integer between opts[:min_value] and
Expand Down
3 changes: 3 additions & 0 deletions trepanning.gemspec
Expand Up @@ -17,6 +17,9 @@ Some of the core debugger concepts have been rethought.
This version works only with a patched version of Ruby 2.1.
EOF
spec.add_dependency('redcarpet', '~> 3.2')
spec.add_dependency('columnize', '~> 0.9')
spec.add_dependency('rb-threadframe', '~> 0.50')
spec.add_dependency('linecache-tf', '~> 1.2')
spec.add_development_dependency('diff-lcs', '~> 0') # For testing only
spec.author = 'R. Bernstein'
spec.bindir = 'bin'
Expand Down

0 comments on commit 6a602ac

Please sign in to comment.