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: d857637d882d5322746e18a7a59d061ced453dbf
4
- data.tar.gz: b52d15db6ec6cfc6e8f08bca241279912e74839a
3
+ metadata.gz: c4adb72625aa71340bebd18aea8d8dca1d4e8e06
4
+ data.tar.gz: 5a6b6825dddfbf18889e24ee2884008d909332c3
5
5
  SHA512:
6
- metadata.gz: 07c809c74fd85b83de132d96c8912cd0931c267a267767aa4619bfb330f84d68c50d3f32e85ee12a32f78ace7485f6ae8f979e58f13719f62c0bf694cdfea756
7
- data.tar.gz: 603c95508f385fb65dbee455fd1f9f8babe842b399f73bec1b596d10bb60158d0f6427a60e3c36573f9ddd5da15cf0c8c2cebd10959812241282adfc8c13919f
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
- Dir.glob(@root + "**/*") do |path|
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
@@ -20,6 +20,6 @@
20
20
 
21
21
  module Build
22
22
  module Files
23
- VERSION = "1.2.0"
23
+ VERSION = "1.3.0"
24
24
  end
25
25
  end
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.2.0
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: 2016-06-30 00:00:00.000000000 Z
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.5.1
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