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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/zoom/profile/find.rb +14 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f93e5d6206d760a14045f950abcf65407626bfe9
4
- data.tar.gz: 83289a0761577aaf1f7a728e0c16102ec2a952e5
3
+ metadata.gz: 66afd0edea882ba8379b4008f2121891daf86332
4
+ data.tar.gz: efa1cdcc073f73037d31739e12f001c23b5af798
5
5
  SHA512:
6
- metadata.gz: 9b731cdcb579412a067d3aa0c2b94725021f033a5751829a13d2eb0f0ee1b961c1f675532b045510ae1711833cb9b0f98222942d46673b14d7d1d549acb892b6
7
- data.tar.gz: 49bf89950d84fc19877a49b38c25f66d5eefeb33acb716f80d9ca42bec3be7c3ea5f36f3a13ee69026abb3879878d1b05bd10d2f49cbd68621e32ea4bdc94920
6
+ metadata.gz: 4967263ac2a42198344b8dc0032bd082020018befc0b82b57471faaf4604d5e96c66d12b34e9252c699c1eb504cdf20e3795e1bcbf16b45c677dbc34abc551b1
7
+ data.tar.gz: 2675cf048e5010fb5cfcad940bd8e3670fb4be9ebc2f670bdc8188ebce3c6aa7a42a76924b739c1163bce7c3ab6b4118b092ae558d3befe4ccd6c905a38be6d7
@@ -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.1
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-03-25 00:00:00.000000000 Z
11
+ date: 2017-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest