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 +1 -1
- data/lib/iron_worker_ng/feature/base.rb +5 -3
- data/lib/iron_worker_ng/fetcher.rb +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.7.
|
1
|
+
0.7.4
|
@@ -12,15 +12,17 @@ module IronWorkerNG
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def zip_add(zip, dest, src)
|
15
|
-
|
15
|
+
new_src, clean = IronWorkerNG::Fetcher.fetch(src, true)
|
16
16
|
|
17
|
-
|
17
|
+
new_src = File.expand_path(new_src) unless new_src.nil?
|
18
18
|
|
19
|
-
|
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)
|
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.
|
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: -
|
149
|
+
hash: -96405151
|
150
150
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
151
151
|
none: false
|
152
152
|
requirements:
|