find 0.1.0 → 0.1.1

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
  SHA256:
3
- metadata.gz: d0857dc7c07577e14e5f768901d903c139620bfbc72bb8ccad29f1166333694f
4
- data.tar.gz: 245fe328e0724879fa5019851a1e0bfe99163692681466105f155a10b6909d65
3
+ metadata.gz: 809f5345ca201beb0504b36429f0033ead8c5e72db4f04df0472392e75bf07fd
4
+ data.tar.gz: 338f367cef9259df89f6a1474713efa03308c93878103339de958530095974e2
5
5
  SHA512:
6
- metadata.gz: 3d3bbc65a7576629d123e074ef564deb1395263766cf2db901e28cd63e571ca2a5c61bb16de536a85d86f924a81106efca28c69e74f432d0830f7855de2f69bc
7
- data.tar.gz: cfec8fd431bfaac5ebab2fe7b81fc41467de7f569a9b2cf9f6f01876ee11efc8466c008b6627a5006e5a230b8c8dd98f6e770cee4816fe7c37ad936f399c0d99
6
+ metadata.gz: 77cfb830881c3798b7bf14f3deadae713fb0f6ed658809217deb6c951971cf6a2721b735bbb3b6adc4be96efc3c00d395a1be317597d929d150269c9e5505242
7
+ data.tar.gz: 5c1305985a9c26246109da8d0aba07363c5246389b65f70984a57a363903fb5246c6fd2aa544c0d31c2c0a2a8d9439152c5e54ed4d1c277623fd54132ad99c60
@@ -7,11 +7,11 @@ jobs:
7
7
  name: build (${{ matrix.ruby }} / ${{ matrix.os }})
8
8
  strategy:
9
9
  matrix:
10
- ruby: [ 2.7, 2.6, 2.5, head ]
10
+ ruby: [ '3.0', 2.7, 2.6, 2.5, head ]
11
11
  os: [ ubuntu-latest, macos-latest ]
12
12
  runs-on: ${{ matrix.os }}
13
13
  steps:
14
- - uses: actions/checkout@master
14
+ - uses: actions/checkout@v2
15
15
  - name: Set up Ruby
16
16
  uses: ruby/setup-ruby@v1
17
17
  with:
data/Rakefile CHANGED
@@ -7,4 +7,11 @@ Rake::TestTask.new(:test) do |t|
7
7
  t.test_files = FileList["test/**/test_*.rb"]
8
8
  end
9
9
 
10
+ task :sync_tool do
11
+ require 'fileutils'
12
+ FileUtils.cp "../ruby/tool/lib/core_assertions.rb", "./test/lib"
13
+ FileUtils.cp "../ruby/tool/lib/envutil.rb", "./test/lib"
14
+ FileUtils.cp "../ruby/tool/lib/find_executable.rb", "./test/lib"
15
+ end
16
+
10
17
  task :default => :test
data/find.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "find"
3
- spec.version = "0.1.0"
3
+ spec.version = "0.1.1"
4
4
  spec.authors = ['Kazuki Tsujimoto']
5
5
  spec.email = ['kazuki@callcc.net']
6
6
 
data/lib/find.rb CHANGED
@@ -49,14 +49,14 @@ module Find
49
49
  yield file.dup
50
50
  begin
51
51
  s = File.lstat(file)
52
- rescue Errno::ENOENT, Errno::EACCES, Errno::ENOTDIR, Errno::ELOOP, Errno::ENAMETOOLONG
52
+ rescue Errno::ENOENT, Errno::EACCES, Errno::ENOTDIR, Errno::ELOOP, Errno::ENAMETOOLONG, Errno::EINVAL
53
53
  raise unless ignore_error
54
54
  next
55
55
  end
56
56
  if s.directory? then
57
57
  begin
58
58
  fs = Dir.children(file, encoding: enc)
59
- rescue Errno::ENOENT, Errno::EACCES, Errno::ENOTDIR, Errno::ELOOP, Errno::ENAMETOOLONG
59
+ rescue Errno::ENOENT, Errno::EACCES, Errno::ENOTDIR, Errno::ELOOP, Errno::ENAMETOOLONG, Errno::EINVAL
60
60
  raise unless ignore_error
61
61
  next
62
62
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: find
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kazuki Tsujimoto
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-09-18 00:00:00.000000000 Z
11
+ date: 2021-10-14 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: This module supports top-down traversal of a set of file paths.
14
14
  email:
@@ -49,7 +49,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
49
49
  - !ruby/object:Gem::Version
50
50
  version: '0'
51
51
  requirements: []
52
- rubygems_version: 3.1.2
52
+ rubygems_version: 3.2.22
53
53
  signing_key:
54
54
  specification_version: 4
55
55
  summary: This module supports top-down traversal of a set of file paths.