borrower 0.9.1 → 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/borrower/manifest.rb +1 -1
- data/lib/borrower/version.rb +1 -1
- data/spec/borrower/manifest_spec.rb +10 -5
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b90c6cd9a0c272a7867387760ed717981b44f04
|
4
|
+
data.tar.gz: f20f9264b84464aad0a01e50cd4b12cec05db1c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5184f66157351806e2fe5a71998aec44fe0233aff0d061515db20eae4b518de9b8f5d9fc8508d727b20df6a8c9a57a2e874d76a513d3235ecc98e03071089971
|
7
|
+
data.tar.gz: 8373a8d7fe27fe158e8095e8c57219b40076e6b6d04dac9a98846b5e7890380384751ba73c9c1e700af48b9ccfca8f35864971058b6977a3536a67c076d6fbac
|
data/lib/borrower/manifest.rb
CHANGED
@@ -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, '
|
62
|
+
Dir[File.join( dir, '**/*' )].each do |possibility|
|
63
63
|
matches << possibility if possibility.match( file )
|
64
64
|
end
|
65
65
|
end
|
data/lib/borrower/version.rb
CHANGED
@@ -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",
|
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
|
46
|
-
Borrower.find("files/baz.txt").should
|
47
|
-
Borrower.find("
|
48
|
-
Borrower.find("
|
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.
|
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:
|
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.
|
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:
|