bashcov 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6613eed0d116984da22b7fb51ddd45617e148928
4
- data.tar.gz: 289ef645df22d964dbe8275837458fe5e044d110
3
+ metadata.gz: 51ed84a8ca9009034c2d030ea2dadc24aaf984ac
4
+ data.tar.gz: 072dfdf379e8285ee7688b9ae99cc4756403a8c3
5
5
  SHA512:
6
- metadata.gz: 6e461f96cde82d60a97f7458cdf40cfcaac55621c4cf0c0c028ac859880f1d3c3b569b5270331ef7754da2d9cfe77bea3ec892c5e80df27ebeb72a432ab6be3d
7
- data.tar.gz: 5c4af2c0ad3e0c51e6d7cb5b4ca5288326781b6ef068d22b63ec32abe4cf1898ab518c7bd16dc2ee1709d9f16e1e1dcef3e0b699259dca31478d33771d459893
6
+ metadata.gz: f1f2f8ae6bf0b409f5ed5a9a2aadf5cee249e4d0d5a78757d2026932b295dc4669899fc91ca13e102b765ddb0145b7901361be9a6082e212047bbddd4d325841
7
+ data.tar.gz: 0fa553b44b51f04c5dc93ced7f9cddf442141dee5f1ac0a06db1d986938c63bac12fd07197c8322d1cf5b76832099821c92b8633c975f74f90d8b90caec43fc2
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Bashcov [![Build Status](https://secure.travis-ci.org/infertux/bashcov.png?branch=master)](https://travis-ci.org/infertux/bashcov) [![Code Climate](https://codeclimate.com/github/infertux/bashcov.png)](https://codeclimate.com/github/infertux/bashcov)
1
+ # Bashcov [![Build Status](https://secure.travis-ci.org/infertux/bashcov.png?branch=master)](https://travis-ci.org/infertux/bashcov) [![Dependency Status](https://gemnasium.com/infertux/bashcov.png)](https://gemnasium.com/infertux/bashcov) [![Code Climate](https://codeclimate.com/github/infertux/bashcov.png)](https://codeclimate.com/github/infertux/bashcov)
2
2
 
3
3
  [bashcov] is [simplecov] for Bash.
4
4
 
data/lib/bashcov.rb CHANGED
@@ -68,10 +68,10 @@ module Bashcov
68
68
  opts.banner = <<-HELP.gsub!(/^ +/, '').gsub!("\t", ' ' * 4)
69
69
  Usage: #{opts.program_name} [options] -- <command> [options]
70
70
  Examples:
71
- \t#{opts.program_name} script.sh
72
- \t#{opts.program_name} --skip-uncovered script.sh
73
- \t#{opts.program_name} -- script.sh --some --flags
74
- \t#{opts.program_name} --skip-uncovered -- script.sh --some --flags
71
+ \t#{opts.program_name} ./script.sh
72
+ \t#{opts.program_name} --skip-uncovered ./script.sh
73
+ \t#{opts.program_name} -- ./script.sh --some --flags
74
+ \t#{opts.program_name} --skip-uncovered -- ./script.sh --some --flags
75
75
  HELP
76
76
 
77
77
  opts.separator "\nSpecific options:"
@@ -1,4 +1,4 @@
1
1
  module Bashcov
2
2
  # Bashcov version
3
- VERSION = "0.0.7"
3
+ VERSION = "0.0.8"
4
4
  end
@@ -29,7 +29,9 @@ module Bashcov
29
29
 
30
30
  filename = File.expand_path(match[:filename], Bashcov.root_directory)
31
31
  next if File.directory? filename
32
- raise "#{filename} is not a file" unless File.file? filename
32
+ unless File.file? filename
33
+ warn "Warning: #{filename} was executed but has been deleted since then."
34
+ end
33
35
 
34
36
  lineno = match[:lineno].to_i - 1
35
37
  files[filename] ||= Bashcov.coverage_array(filename)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bashcov
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cédric Félizard