rbfind 1.3.1 → 1.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +8 -8
  2. data/lib/rbfind.rb +4 -9
  3. metadata +3 -4
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OWM0NTUwYWZjYTk3NGNmNDQ4ZmZmZDA5Zjk4MDI1ZWVlMWYxOTliNA==
4
+ YzgxMDEyZjc3MGY1YTdkZmRmOTMyMmMzMTQwMDIzOWE1MGUwZDEyYg==
5
5
  data.tar.gz: !binary |-
6
- OGFjM2UxYjQwNjFmMmI2ZGI2ZDkyNDE0MDJlOTBmNzA2ZTJlMTdhYw==
6
+ ZjMyODgzN2U0NGVjNDZiYWRkOTkwZTRlODZjYTcwMjhjYWI5MjNjYw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ODdhNDUxNjRiYjlhYTE1ZDFlYzA2ODRiNDJmNGIwZDhkNTE5MDU2ZDEzZGVm
10
- ZWNhZTJmODI0ZDczZGE3MDEyOTUyZDY5YWJmNGYxZGY5NTQ4YzA4MmY4ZGY2
11
- MTczYWYyODYwMzBjMTE3N2JhNTRjYWZhZWExYzY1OWM0Yzc0NmU=
9
+ MDUxNjE4Y2Y5NThhZmE0ODUwOTYxMDMyYjEwYTM2NGY1NDJjZDdjYzQ4MjY5
10
+ MDdmNmNkMGY0MDU4MDAwODUyZTAyODlmNGZjMWFhNGQ3ZTQzYTRiYTQ5NmZi
11
+ Y2I3NzU4MGYyZTYwOWJjMTcyZGFlM2Y1NTdkYzIwMzc2NTc3ODI=
12
12
  data.tar.gz: !binary |-
13
- NGQ0OTg5N2UyYmQ5ODlmMmNiYTJiMjc5ZmNkMjRjNjFmYjVmNjYxZjU4MWY1
14
- MTJkMTk2OTQxYmRmMmNjOTAyZWEyYTkyYzBjMTRjNWE4Mzg0NmE3ZWQ2N2Zm
15
- MmRhODE1OTQ3ODAzYzQ2ODRhZjZlMmJiZmU5NzM2Y2UxNzQwODk=
13
+ Yzk4YWQyMGVjMTg3YTdhOWI0ODhmZmU2YWYyYjAxNDA2YjEyOGQ2MTZlODg5
14
+ MGU4Nzk1OGQ0ZmIyM2JjMDI4NGUwZTA1M2E0YWFiNzg0ODAwZjE5ZTc2N2Yx
15
+ NGUwYThlNzg0MTgwYWIzYWFmNTM1ZDRlNmViY2UzODRiYzliZGQ=
data/lib/rbfind.rb CHANGED
@@ -249,7 +249,7 @@ Sort without case sensitivity and preceding dot:
249
249
 
250
250
  class RbFind
251
251
 
252
- VERSION = "1.3.1"
252
+ VERSION = "1.3.2"
253
253
 
254
254
  class <<self
255
255
  private :new
@@ -518,6 +518,7 @@ class RbFind
518
518
  end
519
519
  end
520
520
 
521
+ autoload :Etc, "etc"
521
522
 
522
523
  # :call-seq:
523
524
  # user() -> str
@@ -526,7 +527,7 @@ class RbFind
526
527
  #
527
528
  def user
528
529
  u = stat.uid
529
- (etc.getpwuid u).name rescue u.to_s
530
+ (Etc.getpwuid u).name rescue u.to_s
530
531
  end
531
532
  alias owner user
532
533
 
@@ -537,7 +538,7 @@ class RbFind
537
538
  #
538
539
  def group
539
540
  g = stat.gid
540
- (etc.getgrgid g).name rescue g.to_s
541
+ (Etc.getgrgid g).name rescue g.to_s
541
542
  end
542
543
 
543
544
 
@@ -879,12 +880,6 @@ class RbFind
879
880
  # end
880
881
  end
881
882
 
882
- def etc
883
- Etc
884
- rescue NameError
885
- require "etc" and retry
886
- end
887
-
888
883
  class <<self
889
884
  def find *args
890
885
  raise NotImplementedError, "This is not the standard Find."
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbfind
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bertram Scharpf
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-30 00:00:00.000000000 Z
11
+ date: 2013-10-05 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: ! 'A replacement for the standard UNIX command find.
14
14
 
@@ -32,7 +32,7 @@ files:
32
32
  - LICENSE
33
33
  - bin/rbfind
34
34
  - Rakefile
35
- homepage: http://www.bertram-scharpf.de
35
+ homepage: http://www.bertram-scharpf.de/software/rbfind
36
36
  licenses:
37
37
  - BSD
38
38
  metadata: {}
@@ -42,7 +42,6 @@ rdoc_options:
42
42
  - utf-8
43
43
  - --main
44
44
  - README
45
- - README
46
45
  require_paths:
47
46
  - lib
48
47
  required_ruby_version: !ruby/object:Gem::Requirement