build-files 0.2.5 → 0.2.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9f8d979ca269abf303a7196c8bd872b44d7dbfff
4
- data.tar.gz: 166555ad73dbc6dea7f112c84fd2d409ea116727
3
+ metadata.gz: f4fa10c049d006e2e1a8c50747328ffd0303a243
4
+ data.tar.gz: ab3b2c0fc7e9208b09864bf58e4f5393dadfb369
5
5
  SHA512:
6
- metadata.gz: 6df78d64005b0393a7046fca325c19cc128ec2747635687b81278e5f55dfdcd30d8e0c183b884edd3032b693f1655d6930ad8277edf17ba11a0dab4f9967677f
7
- data.tar.gz: 14dcbdd89245d6c3cebb51a35bd8e6dad7be5f81ae12bcecb9099edd3c5cf28d9cec8255dab86a1a0b846c6d378cb4a7864e83ad4c3afd701ef2aa0ae15362d7
6
+ metadata.gz: e5371d9c16faa762a70f5bb8af58f28a5415ee151dcad6d93fbffd22ce22819acd7b4673dc99d7b11d93eed1e1c9bd5a6ee376d71fb365fac1ea7d0be230a6a0
7
+ data.tar.gz: 6d47b462a2ba17d2f70895b0ee34a6aeebe71e5fc5fa623b7a61bb6c72a7c1250231fcde7c523538bc26964a3e2053541f565588c7e71d757c9a032432052950
@@ -40,8 +40,8 @@ module Build
40
40
  other.any?{|path| include?(path)}
41
41
  end
42
42
 
43
- def with(*args)
44
- return to_enum(:with, *args) unless block_given?
43
+ def with(**args)
44
+ return to_enum(:with, **args) unless block_given?
45
45
 
46
46
  paths = []
47
47
 
@@ -20,6 +20,6 @@
20
20
 
21
21
  module Build
22
22
  module Files
23
- VERSION = "0.2.5"
23
+ VERSION = "0.2.6"
24
24
  end
25
25
  end
@@ -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 + ".txt"}
99
+ paths = glob.map {|path| path.append ".txt"}
100
100
 
101
- expect(paths.first).to be == (glob.first + ".txt")
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.5
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-17 00:00:00.000000000 Z
11
+ date: 2014-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler