buff-ignore 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,8 @@
1
1
  CHANGELOG
2
2
  =========
3
+ v1.0.3
4
+ ------
5
+ - Use `#to_s` instead of message for a nicer output to the end-user when an ignore file is not found
3
6
 
4
7
  v1.0.2
5
8
  ------
@@ -7,11 +7,13 @@ module Buff::Ignore
7
7
  # @param [String] path
8
8
  # the path where the ignore file was not found
9
9
  def initialize(path)
10
- @path = File.expand_path(path)
10
+ @path = path
11
11
  end
12
12
 
13
13
  # @return [String]
14
- def message
14
+ def to_s
15
+ "No ignore file found at '#{File.expand_path(@path)}'!"
16
+ rescue
15
17
  "No ignore file found at '#{@path}'!"
16
18
  end
17
19
  end
@@ -1,6 +1,6 @@
1
1
  module Buff
2
2
  module Ignore
3
3
  # The version of Buff::Ignore
4
- VERSION = '1.0.2'
4
+ VERSION = '1.0.3'
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: buff-ignore
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: