ruby-zoom 4.7.1 → 4.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/zoom/profile/find.rb +14 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66afd0edea882ba8379b4008f2121891daf86332
|
4
|
+
data.tar.gz: efa1cdcc073f73037d31739e12f001c23b5af798
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4967263ac2a42198344b8dc0032bd082020018befc0b82b57471faaf4604d5e96c66d12b34e9252c699c1eb504cdf20e3795e1bcbf16b45c677dbc34abc551b1
|
7
|
+
data.tar.gz: 2675cf048e5010fb5cfcad940bd8e3670fb4be9ebc2f670bdc8188ebce3c6aa7a42a76924b739c1163bce7c3ab6b4118b092ae558d3befe4ccd6c905a38be6d7
|
data/lib/zoom/profile/find.rb
CHANGED
@@ -1,8 +1,22 @@
|
|
1
1
|
class Zoom::Profile::Find < Zoom::Profile
|
2
2
|
def initialize(n = nil, o = nil, f = nil, b = nil, a = nil)
|
3
|
+
a = "-print" if (a.nil? || a.empty?)
|
3
4
|
f ||= ""
|
4
5
|
o ||= "find"
|
5
6
|
super(n, o, f, b, a)
|
6
7
|
@taggable = true
|
7
8
|
end
|
9
|
+
|
10
|
+
def translate(from)
|
11
|
+
to = Array.new
|
12
|
+
from.each do |flag, value|
|
13
|
+
case flag
|
14
|
+
when "ignore"
|
15
|
+
value.each do |v|
|
16
|
+
to.push("-name \"#{v}\" -prune -o")
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
return to.join(" ")
|
21
|
+
end
|
8
22
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-zoom
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.7.
|
4
|
+
version: 4.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miles Whittaker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|