iron_worker_ng 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.2
|
data/bin/iron_worker
CHANGED
@@ -23,8 +23,12 @@ command = 'tasks.create' if command == 'queue'
|
|
23
23
|
command = 'schedules.create' if command == 'schedule'
|
24
24
|
command = 'tasks.log' if command == 'log'
|
25
25
|
|
26
|
-
|
27
|
-
|
26
|
+
IronCore::Logger.logger.datetime_format = ''
|
27
|
+
|
28
|
+
if $*.include?('--debug')
|
29
|
+
IronCore::Logger.logger.level = ::Logger::DEBUG
|
30
|
+
|
31
|
+
$*.reject! { |p| p == '--debug' }
|
28
32
|
end
|
29
33
|
|
30
34
|
client = IronWorkerNG::Client.new
|
@@ -21,7 +21,13 @@ module IronWorkerNG
|
|
21
21
|
raise IronCore::IronError.new("Can't find src with path='#{src}'")
|
22
22
|
end
|
23
23
|
|
24
|
-
|
24
|
+
if File.directory?(src)
|
25
|
+
Dir.glob(src + '/**/**') do |path|
|
26
|
+
zip.add(dest + path[src.length .. -1], path)
|
27
|
+
end
|
28
|
+
else
|
29
|
+
zip.add(dest, src)
|
30
|
+
end
|
25
31
|
end
|
26
32
|
|
27
33
|
def hash_string
|
@@ -29,9 +29,7 @@ module IronWorkerNG
|
|
29
29
|
def bundle(zip)
|
30
30
|
IronCore::Logger.debug 'IronWorkerNG', "Bundling dir with path='#{@path}' and dest='#{@dest}'"
|
31
31
|
|
32
|
-
|
33
|
-
zip_add(zip, @dest + File.basename(@path) + path[rebase(@path).length .. -1], path)
|
34
|
-
end
|
32
|
+
zip_add(zip, @dest + File.basename(@path), rebase(@path))
|
35
33
|
end
|
36
34
|
end
|
37
35
|
|
@@ -46,10 +46,6 @@ module IronWorkerNG
|
|
46
46
|
|
47
47
|
zip_add(zip, '__gems__/gems/' + @spec.full_name, gem_path)
|
48
48
|
zip_add(zip, "__gems__/specifications/#{@spec.full_name}.gemspec", File.expand_path(gem_path + '/../../specifications/' + @spec.full_name + '.gemspec'))
|
49
|
-
|
50
|
-
Dir.glob(gem_path + '/**/**') do |path|
|
51
|
-
zip_add(zip, '__gems__/gems/' + @spec.full_name + path[gem_path.length .. -1], path)
|
52
|
-
end
|
53
49
|
else
|
54
50
|
IronCore::Logger.warn 'IronWorkerNG', "Skipping ruby gem with name='#{@spec.name}' and version='#{@spec.version}' as it contains native extensions"
|
55
51
|
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.6.
|
4
|
+
version: 0.6.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-06-
|
13
|
+
date: 2012-06-11 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: iron_core
|
@@ -144,7 +144,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
144
144
|
version: '0'
|
145
145
|
segments:
|
146
146
|
- 0
|
147
|
-
hash:
|
147
|
+
hash: 983849999
|
148
148
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
149
149
|
none: false
|
150
150
|
requirements:
|