borrower 0.9.2 → 0.9.3

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: 8b90c6cd9a0c272a7867387760ed717981b44f04
4
- data.tar.gz: f20f9264b84464aad0a01e50cd4b12cec05db1c7
3
+ metadata.gz: 07b9ba5e76513f8aa625e8d26b1cd54494091926
4
+ data.tar.gz: eb61b4d7720433d08145d461f1577e47cc42a50a
5
5
  SHA512:
6
- metadata.gz: 5184f66157351806e2fe5a71998aec44fe0233aff0d061515db20eae4b518de9b8f5d9fc8508d727b20df6a8c9a57a2e874d76a513d3235ecc98e03071089971
7
- data.tar.gz: 8373a8d7fe27fe158e8095e8c57219b40076e6b6d04dac9a98846b5e7890380384751ba73c9c1e700af48b9ccfca8f35864971058b6977a3536a67c076d6fbac
6
+ metadata.gz: d758f0502f1d8f14fa11d2850272c1fab5d939dc60dc2ed380dfedf1d2d0d494111371136b09353e339f22e3f03409d447817ae7be05fd9b3660f549616e5eb0
7
+ data.tar.gz: 14029f4058b6a313cdd60fe3e2348cbe1184d71e138b5b440fe82cc3f0a2d3fe638363524d8198f3c9fb8ac539ed3815fef6b6bd3f29377988eb78a1e73e5661
@@ -60,7 +60,7 @@ module Borrower
60
60
  matches = []
61
61
  directories.each do |dir|
62
62
  Dir[File.join( dir, '**/*' )].each do |possibility|
63
- matches << possibility if possibility.match( file )
63
+ matches << possibility if possibility.match( Regexp.escape(file) )
64
64
  end
65
65
  end
66
66
  path = matches.sort { |a,b| a.length <=> b.length }.first
@@ -1,3 +1,3 @@
1
1
  module Borrower
2
- VERSION = "0.9.2"
2
+ VERSION = "0.9.3"
3
3
  end
@@ -6,6 +6,7 @@ describe Borrower::Manifest do
6
6
  given_files [ "baz.txt",
7
7
  "files/baz.txt",
8
8
  "files/bar/baz.txt",
9
+ "files/_$bar.txt",
9
10
  "files/woo.txt",
10
11
  "files/foo.txt" ]
11
12
  end
@@ -49,6 +50,7 @@ describe Borrower::Manifest do
49
50
  Borrower.find("baz.txt").should == File.join( TMP, "baz.txt" )
50
51
  Borrower.find("files/baz.txt").should == File.join( TMP, "files/baz.txt" )
51
52
  Borrower.find("files/bar/baz.txt").should == File.join( TMP, "files/bar/baz.txt")
53
+ Borrower.find("files/_$bar.txt").should == File.join( TMP, "files/_$bar.txt")
52
54
  Borrower.find("woo.txt").should == File.join( TMP, "files/woo.txt" )
53
55
  Borrower.find("foo.txt").should == File.join( TMP, "files/foo.txt" )
54
56
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: borrower
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Sloan