buff-ignore 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  CHANGELOG
2
2
  =========
3
3
 
4
+ v1.0.2
5
+ ------
6
+ - Only accept a Pathname or String as the primary argument
7
+
4
8
  v1.0.1
5
9
  ------
6
10
  - Use `VERSION` constant
@@ -17,10 +17,10 @@ module Buff
17
17
  # @raise [IgnoreFileNotFound]
18
18
  # if the given filepath does not exist
19
19
  #
20
- # @param [#to_s] filepath
20
+ # @param [String, Pathname] filepath
21
21
  # the path to the ignore file
22
22
  def initialize(filepath)
23
- @filepath = File.expand_path(filepath.to_s)
23
+ @filepath = File.expand_path(filepath)
24
24
  raise IgnoreFileNotFound.new(filepath) unless File.exists?(filepath)
25
25
  end
26
26
 
@@ -1,6 +1,6 @@
1
1
  module Buff
2
2
  module Ignore
3
3
  # The version of Buff::Ignore
4
- VERSION = '1.0.1'
4
+ VERSION = '1.0.2'
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.1
4
+ version: 1.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: