file-find 0.4.3 → 0.4.4

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: 97856aefde25218603e2094d0034a491441291c277fc88b11ae39e811ac31ab6
4
- data.tar.gz: f3b1061dcdc66c673983caa648e8c580d84957522ac27476a09f2494c035ca9c
3
+ metadata.gz: d99bb72ba56fc51995a186e6f06869318c1f29b1965d49d8aa42853aa341bf57
4
+ data.tar.gz: c04db8e76c5a4ab4f953a373a6d089379cf4f99064ec18883a70ed7db1d82963
5
5
  SHA512:
6
- metadata.gz: 4e22e2d823397614eb4341875b3098e049c8cea6107aaf7f5b000eb2df18856f5a2aef95ee7c649f1342e1233569f76cc9ab83dc80721a31fb0b08f58f6706ff
7
- data.tar.gz: a8d03101ccd31356d8e735fad4a82e0abbde94d1d82c42ea17cdcc39fe935be4063818addb9f6275cf04b992bdb69d6676f177da395de095c577683543a20df1
6
+ metadata.gz: bac0f7a26c507ae51dd15a19611bb0af91f43a93a717cf32a0c6787b244abb4680b8b12372525b51635696a4aa2c11f312107c1374c16f5f891c7d53cba111d8
7
+ data.tar.gz: d27462d46d37ad567c9d7eaa29cadd7962e08066850d75a4b35983feb0a81a03ad63e224b10348099da0ffe74992b4604a576099dd1fde4f81f401d678d9baf5
@@ -1,5 +1,6 @@
1
- 7S��"��M6Y���\\��^��&��m�zKĢˆ�~���5�^�Lb���h����(�����
2
- �z��YV �r�#�{�������sE���<rpP{��ݟ>��re�W���
3
- e��f`"(��\�o|�mk)
4
- ���F��w��45��ZI�Ά�Ż��2
5
- �.�T����Z�ZV��[���>��h���;
1
+ h��߼�ɢ ϵ�g�Ï���o �($��� �>�u��J����D'���� ���nO�am� ����>�)��z+������?ސ����^O��"Ѫ >v�d�O&��^�_9��/����:;µu
2
+ xߎ\���Iv2U��
3
+ ~��ẖq���B9AH�麋EPui��w3��楚2�M��Ӆ�>k�(� ?��2�� �$y�j�Gu]�0J�z���#�,�'>�
4
+ ��9���'�~�� RJE}8{'�λ[�*ߗ
5
+ b����۳w��X{�ţ;xE�%
6
+ �9po�'���� k e~�Oi��Nۡ��@,����HsV�nJj�w��uD
data.tar.gz.sig CHANGED
Binary file
File without changes
File without changes
@@ -0,0 +1,108 @@
1
+ = Description
2
+
3
+ This is a drop-in replacement for the find module currently in the standard
4
+ library. It is modeled on a typical 'find' command found on most Unix systems.
5
+
6
+ = Installation
7
+
8
+ gem install file-find
9
+
10
+ = Synopsis
11
+
12
+ require 'file/find'
13
+
14
+ rule = File::Find.new(
15
+ :pattern => "*.rb",
16
+ :follow => false,
17
+ :path => ['/usr/local/lib', '/opt/local/lib']
18
+ )
19
+
20
+ rule.find{ |f|
21
+ puts f
22
+ }
23
+
24
+ = Rationale
25
+
26
+ The current find module in the standard library is inadequate. It is, quite
27
+ frankly, not much more than a plain Dir.glob call. This library provides an
28
+ interface based on options typically available on your command line 'find'
29
+ command, thus allowing you much greater control over how you find your files.
30
+
31
+ = Options
32
+
33
+ * atime
34
+ * ctime
35
+ * follow
36
+ * ftype
37
+ * inum
38
+ * group (name or id)
39
+ * maxdepth
40
+ * mindepth
41
+ * mount
42
+ * mtime
43
+ * name (or 'pattern')
44
+ * path
45
+ * perm
46
+ * prune
47
+ * size
48
+ * user (name or id)
49
+
50
+ In addition to the above options, FileTest methods such as 'readable?' and
51
+ 'writable?' may be used as keys, with true or false for their values.
52
+
53
+ See the RDoc documentation for more details about these options.
54
+
55
+ = Future Plans
56
+
57
+ None at this time. Please log any feature requests on the project page at:
58
+
59
+ http://github.com/djberg96/file-find
60
+
61
+ = Options I won't support
62
+
63
+ Generally speaking, anything that would require mucking around with C code
64
+ or is just too difficult to implement in a cross platform manner will not be
65
+ supported. These include the following options:
66
+
67
+ * acl/xattr - Way too difficult to implement in a cross platform manner, and
68
+ a rarely used option in practice.
69
+
70
+ * cpio/ncpio - I will not shell out to this or any other 3rd party
71
+ application.
72
+
73
+ * ls/print - Use Ruby's builtin printing methods to print as you see fit.
74
+
75
+ * ok - This is not interactive software.
76
+
77
+ = Known Issues
78
+
79
+ The :perm option is limited to 0644 and 0444 on MS Windows.
80
+
81
+ The :user, :group, and :inum options require the win32-file gem to work
82
+ properly on MS Windows. However, it is not officially a dependency.
83
+
84
+ = Bugs
85
+
86
+ None that I'm aware of beyond the ones mentioned in the Known Issues. Please
87
+ log any bug reports on the project page at:
88
+
89
+ http://github.com/djberg96/file-find
90
+
91
+ = Acknowledgements
92
+
93
+ * Richard Clamp's File::Find::Rule Perl module for additional ideas and
94
+ inspiration.
95
+ * Bill Kleb for ideas regarding name, group and perm enhancements.
96
+ * Hal Fulton for his implementation of symbolic permissions.
97
+
98
+ = License
99
+
100
+ Apache-2.0
101
+
102
+ = Copyright
103
+
104
+ (C) 2007-2020, Daniel J. Berger, All Rights Reserved
105
+
106
+ = Author
107
+
108
+ Daniel J. Berger
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'file-find'
5
- spec.version = '0.4.3'
5
+ spec.version = '0.4.4'
6
6
  spec.author = 'Daniel Berger'
7
7
  spec.license = 'Apache-2.0'
8
8
  spec.summary = 'A better way to find files'
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
12
12
  spec.files = Dir['**/*'].reject{ |f| f.include?('git') }
13
13
  spec.cert_chain = Dir['certs/*']
14
14
 
15
- spec.extra_rdoc_files = ['README', 'CHANGES', 'MANIFEST']
15
+ spec.extra_rdoc_files = ['README.rdoc', 'CHANGES.rdoc', 'MANIFEST.rdoc']
16
16
 
17
17
  spec.metadata = {
18
18
  'homepage_uri' => 'https://github.com/djberg96/file-find',
@@ -9,7 +9,7 @@ end
9
9
 
10
10
  class File::Find
11
11
  # The version of the file-find library
12
- VERSION = '0.4.3'.freeze
12
+ VERSION = '0.4.4'.freeze
13
13
 
14
14
  # :stopdoc:
15
15
  VALID_OPTIONS = %w[
@@ -69,7 +69,7 @@ class TC_File_Find < Test::Unit::TestCase
69
69
  end
70
70
 
71
71
  test "version constant is set to expected value" do
72
- assert_equal('0.4.3', File::Find::VERSION)
72
+ assert_equal('0.4.4', File::Find::VERSION)
73
73
  assert_true(File::Find::VERSION.frozen?)
74
74
  end
75
75
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: file-find
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Berger
@@ -88,17 +88,14 @@ email: djberg96@gmail.com
88
88
  executables: []
89
89
  extensions: []
90
90
  extra_rdoc_files:
91
- - README
92
- - CHANGES
93
- - MANIFEST
91
+ - README.rdoc
92
+ - CHANGES.rdoc
93
+ - MANIFEST.rdoc
94
94
  files:
95
95
  - LICENSE
96
96
  - test
97
97
  - test/test_file_find.rb
98
- - CHANGES
99
98
  - file-find.gemspec
100
- - MANIFEST
101
- - README
102
99
  - Rakefile
103
100
  - certs
104
101
  - certs/djberg96_pub.pem
@@ -106,6 +103,9 @@ files:
106
103
  - lib/file-find.rb
107
104
  - lib/file
108
105
  - lib/file/find.rb
106
+ - CHANGES.rdoc
107
+ - MANIFEST.rdoc
108
+ - README.rdoc
109
109
  homepage: http://github.com/djberg96/file-find
110
110
  licenses:
111
111
  - Apache-2.0
@@ -131,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
131
131
  - !ruby/object:Gem::Version
132
132
  version: '0'
133
133
  requirements: []
134
- rubygems_version: 3.0.8
134
+ rubygems_version: 3.1.4
135
135
  signing_key:
136
136
  specification_version: 4
137
137
  summary: A better way to find files
metadata.gz.sig CHANGED
Binary file
data/README DELETED
@@ -1,96 +0,0 @@
1
- = Description
2
- This is a drop-in replacement for the find module currently in the standard
3
- library. It is modeled on a typical 'find' command found on most Unix systems.
4
-
5
- = Installation
6
-
7
- gem install file-find
8
-
9
- = Synopsis
10
- require 'file/find'
11
-
12
- rule = File::Find.new(
13
- :pattern => "*.rb",
14
- :follow => false,
15
- :path => ['/usr/local/lib', '/opt/local/lib']
16
- )
17
-
18
- rule.find{ |f|
19
- puts f
20
- }
21
-
22
- = Rationale
23
- The current find module in the standard library is inadequate. It is, quite
24
- frankly, not much more than a plain Dir.glob call. This library provides an
25
- interface based on options typically available on your command line 'find'
26
- command, thus allowing you much greater control over how you find your files.
27
-
28
- = Options
29
- * atime
30
- * ctime
31
- * follow
32
- * ftype
33
- * inum
34
- * group (name or id)
35
- * maxdepth
36
- * mindepth
37
- * mount
38
- * mtime
39
- * name (or 'pattern')
40
- * path
41
- * perm
42
- * prune
43
- * size
44
- * user (name or id)
45
-
46
- In addition to the above options, FileTest methods such as 'readable?' and
47
- 'writable?' may be used as keys, with true or false for their values.
48
-
49
- See the RDoc documentation for more details about these options.
50
-
51
- = Future Plans
52
- None at this time. Please log any feature requests on the project page at:
53
-
54
- http://github.com/djberg96/file-find
55
-
56
- = Options I won't support
57
- Generally speaking, anything that would require mucking around with C code
58
- or is just too difficult to implement in a cross platform manner will not be
59
- supported. These include the following options:
60
-
61
- * acl/xattr - Way too difficult to implement in a cross platform manner, and
62
- a rarely used option in practice.
63
-
64
- * cpio/ncpio - I will not shell out to this or any other 3rd party
65
- application.
66
-
67
- * ls/print - Use Ruby's builtin printing methods to print as you see fit.
68
-
69
- * ok - This is not interactive software.
70
-
71
- = Known Issues
72
- The :perm option is limited to 0644 and 0444 on MS Windows.
73
-
74
- The :user, :group, and :inum options require the win32-file gem to work
75
- properly on MS Windows. However, it is not officially a dependency.
76
-
77
- = Bugs
78
- None that I'm aware of beyond the ones mentioned in the Known Issues. Please
79
- log any bug reports on the project page at:
80
-
81
- http://github.com/djberg96/file-find
82
-
83
- = Acknowledgements
84
- * Richard Clamp's File::Find::Rule Perl module for additional ideas and
85
- inspiration.
86
- * Bill Kleb for ideas regarding name, group and perm enhancements.
87
- * Hal Fulton for his implementation of symbolic permissions.
88
-
89
- = License
90
- Apache-2.0
91
-
92
- = Copyright
93
- (C) 2007-2019, Daniel J. Berger, All Rights Reserved
94
-
95
- = Author
96
- Daniel J. Berger