iron_worker_ng 0.7.3 → 0.7.4

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.3
1
+ 0.7.4
@@ -12,15 +12,17 @@ module IronWorkerNG
12
12
  end
13
13
 
14
14
  def zip_add(zip, dest, src)
15
- src, clean = IronWorkerNG::Fetcher.fetch(src, true)
15
+ new_src, clean = IronWorkerNG::Fetcher.fetch(src, true)
16
16
 
17
- src = File.expand_path(src)
17
+ new_src = File.expand_path(new_src) unless new_src.nil?
18
18
 
19
- unless File.exists?(src)
19
+ if new_src.nil? || (not File.exists?(new_src))
20
20
  IronCore::Logger.error 'IronWorkerNG', "Can't find src with path='#{src}'"
21
21
  raise IronCore::IronError.new("Can't find src with path='#{src}'")
22
22
  end
23
23
 
24
+ src = new_src
25
+
24
26
  if File.directory?(src)
25
27
  Dir.glob(src + '/**/**') do |path|
26
28
  zip.add(@code.dest_dir + dest + path[src.length .. -1], path)
@@ -25,7 +25,7 @@ module IronWorkerNG
25
25
  tmp_dir_name = Dir.tmpdir + '/' + Dir::Tmpname.make_tmpname("iron-worker-ng-", "http")
26
26
 
27
27
  Dir.mkdir(tmp_dir_name)
28
-
28
+
29
29
  File.open(tmp_dir_name + '/' + File.basename(url), 'wb') do |f|
30
30
  f.write(response.body)
31
31
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iron_worker_ng
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.3
4
+ version: 0.7.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -146,7 +146,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
146
146
  version: '0'
147
147
  segments:
148
148
  - 0
149
- hash: -170003235
149
+ hash: -96405151
150
150
  required_rubygems_version: !ruby/object:Gem::Requirement
151
151
  none: false
152
152
  requirements: