borrower 0.9.1 → 0.9.2

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: d90c3e9d6950afa0c8942ef3a71bb393953fd3f5
4
- data.tar.gz: 52ae2f956617ebe0be6ddb61f96e35e953bba2b7
3
+ metadata.gz: 8b90c6cd9a0c272a7867387760ed717981b44f04
4
+ data.tar.gz: f20f9264b84464aad0a01e50cd4b12cec05db1c7
5
5
  SHA512:
6
- metadata.gz: a0ced1e4bec90b41e4e1af22898a7b4043a776c2d5dc6ee08ef2bcc55f03a0bd3dd8d67cb3ca770503e4baf7c8b8b1006deb0a586872a31f04edad7fcc68d9a2
7
- data.tar.gz: ad05e03f3aafdf6d2ceb72f55ad18e02c5316fac1c0718d6adc4755e1bf9e912b108b62d41fd260b31274451d5b1dad65c5467b4d0ed79c8fb596e2411b6f27d
6
+ metadata.gz: 5184f66157351806e2fe5a71998aec44fe0233aff0d061515db20eae4b518de9b8f5d9fc8508d727b20df6a8c9a57a2e874d76a513d3235ecc98e03071089971
7
+ data.tar.gz: 8373a8d7fe27fe158e8095e8c57219b40076e6b6d04dac9a98846b5e7890380384751ba73c9c1e700af48b9ccfca8f35864971058b6977a3536a67c076d6fbac
@@ -59,7 +59,7 @@ module Borrower
59
59
  def check_for_file_in_manifest_directories file
60
60
  matches = []
61
61
  directories.each do |dir|
62
- Dir[File.join( dir, '*' )].each do |possibility|
62
+ Dir[File.join( dir, '**/*' )].each do |possibility|
63
63
  matches << possibility if possibility.match( file )
64
64
  end
65
65
  end
@@ -1,3 +1,3 @@
1
1
  module Borrower
2
- VERSION = "0.9.1"
2
+ VERSION = "0.9.2"
3
3
  end
@@ -3,7 +3,11 @@ require 'spec_helper'
3
3
  describe Borrower::Manifest do
4
4
 
5
5
  before :each do
6
- given_files [ "baz.txt", "files/baz.txt", "files/woo.txt", "files/foo.txt" ]
6
+ given_files [ "baz.txt",
7
+ "files/baz.txt",
8
+ "files/bar/baz.txt",
9
+ "files/woo.txt",
10
+ "files/foo.txt" ]
7
11
  end
8
12
 
9
13
  after :each do
@@ -42,10 +46,11 @@ describe Borrower::Manifest do
42
46
  end
43
47
 
44
48
  it "creates list of files from directories" do
45
- Borrower.find("baz.txt").should == File.join( TMP, "baz.txt" )
46
- Borrower.find("files/baz.txt").should == File.join( TMP, "files/baz.txt" )
47
- Borrower.find("woo.txt").should == File.join( TMP, "files/woo.txt" )
48
- Borrower.find("foo.txt").should == File.join( TMP, "files/foo.txt" )
49
+ Borrower.find("baz.txt").should == File.join( TMP, "baz.txt" )
50
+ Borrower.find("files/baz.txt").should == File.join( TMP, "files/baz.txt" )
51
+ Borrower.find("files/bar/baz.txt").should == File.join( TMP, "files/bar/baz.txt")
52
+ Borrower.find("woo.txt").should == File.join( TMP, "files/woo.txt" )
53
+ Borrower.find("foo.txt").should == File.join( TMP, "files/foo.txt" )
49
54
  end
50
55
 
51
56
  it "expands path to find files" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: borrower
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Sloan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-03 00:00:00.000000000 Z
11
+ date: 2015-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-ssh
@@ -67,7 +67,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
67
67
  version: '0'
68
68
  requirements: []
69
69
  rubyforge_project:
70
- rubygems_version: 2.2.2
70
+ rubygems_version: 2.4.5
71
71
  signing_key:
72
72
  specification_version: 4
73
73
  summary: For borrowing little snippets of the web, or files, or really any snippet
@@ -80,4 +80,3 @@ test_files:
80
80
  - spec/spec_helper.rb
81
81
  - spec/support/fake_stdin.rb
82
82
  - spec/support/given.rb
83
- has_rdoc: