dronejob 1.2.1 → 1.2.2

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
  SHA1:
3
- metadata.gz: 115300af980623254e4b5e0553fa85f7807c6aab
4
- data.tar.gz: ef4d0128303f0caf691338413f4e76500c403854
3
+ metadata.gz: 7924802c83a03188bafe1a8aa8bbef56c2e6a769
4
+ data.tar.gz: 6466de4aa44dadb841b87db4868450153523a941
5
5
  SHA512:
6
- metadata.gz: a6365572a94ef06f08b93c619eba7219b28eb0e484b105fa10e1a026a397ffe1b6b5b23124934c5cca8986754f543e3211d762d5e4e8468b1c4fc1b27110487a
7
- data.tar.gz: b2dc16c5dbf0cd2fc0ed6dfa613e60eaff234a92303190e75b3ea3d255854a2b28b02dfab95843fc460d727816e28a96f0da83f9591389be15c2da8de1c13e55
6
+ metadata.gz: 954aa63abf98f866f5ee232da0001464c957e86c7cbcaa10a6569b109c7ffcd1f79331e3df60e074e3f57bc515ea5299fd311d44b29d9b3ffe5000770df99787
7
+ data.tar.gz: f161beb2214b1623a43abea423335e58f45bc0ae481b964838d81823c951e3979067970b8c036146206c93b1218058ede170cf801b1ff6b1ada426e1bce66164
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dronejob (1.2.1)
4
+ dronejob (1.2.2)
5
5
  activejob (~> 4.2)
6
6
  bundler (>= 1.3.0, < 2.0)
7
7
  git (~> 1.2)
@@ -1,3 +1,3 @@
1
1
  module Dronejob
2
- VERSION = "1.2.1"
2
+ VERSION = "1.2.2"
3
3
  end
@@ -8,7 +8,8 @@ module Dronejob
8
8
  require "zip"
9
9
  Zip::File.open(target_file.to_s, 'w') do |zipfile|
10
10
  Dir["#{to_s}/**/**"].each do |file|
11
- zipfile.add(file.sub("#{to_s}/",''), file)
11
+ path = file.sub("#{to_s}/",'')
12
+ zipfile.add(path, file) unless block_given? and !yield(path)
12
13
  end
13
14
  end
14
15
  self
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dronejob
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Strebitzer