build-files 1.2.0 → 1.3.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4adb72625aa71340bebd18aea8d8dca1d4e8e06
|
4
|
+
data.tar.gz: 5a6b6825dddfbf18889e24ee2884008d909332c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a265973dd1029a474df7ac5b843b1e79ac6e4e2458e39a8abd28be36491781c3c2f915de01bc1bcd55360ed7d95254d58727904925ec10a49ad31a5ce912085e
|
7
|
+
data.tar.gz: 41de69d7681dcfe20bef304177d0a3a765bd32a242761ab579f984a9d13ddfc2a1c35d29342ced5a4e43446b5f4ee7c882d21e94a7ad4fe2dd86eb303c8b3aa7
|
@@ -42,7 +42,8 @@ module Build
|
|
42
42
|
def each
|
43
43
|
return to_enum(:each) unless block_given?
|
44
44
|
|
45
|
-
|
45
|
+
# We match both normal files with * and dotfiles with .?*
|
46
|
+
Dir.glob(@root + "**/{*,.?*}") do |path|
|
46
47
|
yield Path.new(path, @root)
|
47
48
|
end
|
48
49
|
end
|
data/lib/build/files/version.rb
CHANGED
File without changes
|
File without changes
|
@@ -66,5 +66,15 @@ module Build::Files::DirectorySpec
|
|
66
66
|
|
67
67
|
expect(rebased_directory.root).to be == '/fu/bar/baz'
|
68
68
|
end
|
69
|
+
|
70
|
+
context Directory.join(__dir__, "directory_spec") do
|
71
|
+
it "can list dot files" do
|
72
|
+
expect(subject).to include(subject.root + '.dot_file.yaml')
|
73
|
+
end
|
74
|
+
|
75
|
+
it "can list normal files" do
|
76
|
+
expect(subject).to include(subject.root + 'normal_file.txt')
|
77
|
+
end
|
78
|
+
end
|
69
79
|
end
|
70
80
|
end
|
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: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -77,6 +77,8 @@ files:
|
|
77
77
|
- lib/build/files/system.rb
|
78
78
|
- lib/build/files/version.rb
|
79
79
|
- spec/build/files/directory_spec.rb
|
80
|
+
- spec/build/files/directory_spec/.dot_file.yaml
|
81
|
+
- spec/build/files/directory_spec/normal_file.txt
|
80
82
|
- spec/build/files/glob_spec.rb
|
81
83
|
- spec/build/files/list_spec.rb
|
82
84
|
- spec/build/files/monitor_spec.rb
|
@@ -103,13 +105,15 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
103
105
|
version: '0'
|
104
106
|
requirements: []
|
105
107
|
rubyforge_project:
|
106
|
-
rubygems_version: 2.
|
108
|
+
rubygems_version: 2.6.12
|
107
109
|
signing_key:
|
108
110
|
specification_version: 4
|
109
111
|
summary: Build::Files is a set of idiomatic classes for dealing with paths and monitoring
|
110
112
|
directories.
|
111
113
|
test_files:
|
112
114
|
- spec/build/files/directory_spec.rb
|
115
|
+
- spec/build/files/directory_spec/.dot_file.yaml
|
116
|
+
- spec/build/files/directory_spec/normal_file.txt
|
113
117
|
- spec/build/files/glob_spec.rb
|
114
118
|
- spec/build/files/list_spec.rb
|
115
119
|
- spec/build/files/monitor_spec.rb
|