build-files 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/build/files/list.rb +2 -2
- data/lib/build/files/version.rb +1 -1
- data/spec/build/files/list_spec.rb +12 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4fa10c049d006e2e1a8c50747328ffd0303a243
|
4
|
+
data.tar.gz: ab3b2c0fc7e9208b09864bf58e4f5393dadfb369
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5371d9c16faa762a70f5bb8af58f28a5415ee151dcad6d93fbffd22ce22819acd7b4673dc99d7b11d93eed1e1c9bd5a6ee376d71fb365fac1ea7d0be230a6a0
|
7
|
+
data.tar.gz: 6d47b462a2ba17d2f70895b0ee34a6aeebe71e5fc5fa623b7a61bb6c72a7c1250231fcde7c523538bc26964a3e2053541f565588c7e71d757c9a032432052950
|
data/lib/build/files/list.rb
CHANGED
data/lib/build/files/version.rb
CHANGED
@@ -96,9 +96,19 @@ module Build::Files::ListSpec
|
|
96
96
|
it "maps paths with new extension" do
|
97
97
|
glob = Glob.new(__dir__, "*.rb")
|
98
98
|
|
99
|
-
paths = glob.map {|path| path
|
99
|
+
paths = glob.map {|path| path.append ".txt"}
|
100
100
|
|
101
|
-
expect(paths.first).to be == (glob.first
|
101
|
+
expect(paths.first).to be == (glob.first.append ".txt")
|
102
|
+
expect(paths.first.to_s).to be_end_with ".rb.txt"
|
103
|
+
end
|
104
|
+
|
105
|
+
it "should map paths using with" do
|
106
|
+
glob = Glob.new(__dir__, "*.rb")
|
107
|
+
|
108
|
+
paths = glob.with extension: ".txt"
|
109
|
+
|
110
|
+
expect(paths.first[0]).to be == (glob.first)
|
111
|
+
expect(paths.first[1]).to be == (glob.first.append ".txt")
|
102
112
|
end
|
103
113
|
|
104
114
|
it "should define an empty set of files" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: build-files
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|