iron_worker_ng 0.6.2 → 0.6.3

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.2
1
+ 0.6.3
@@ -26,6 +26,7 @@ module IronWorkerNG
26
26
  end
27
27
 
28
28
  def codes_get(id)
29
+ raise "Expecting id string, not #{id.class}" unless id.is_a? String
29
30
  parse_response(get("projects/#{@project_id}/codes/#{id}"))
30
31
  end
31
32
 
@@ -34,14 +35,17 @@ module IronWorkerNG
34
35
  end
35
36
 
36
37
  def codes_delete(id)
38
+ raise "Expecting id string, not #{id.class}" unless id.is_a? String
37
39
  parse_response(delete("projects/#{@project_id}/codes/#{id}"))
38
40
  end
39
41
 
40
42
  def codes_revisions(id, options = {})
43
+ raise "Expecting id string, not #{id.class}" unless id.is_a? String
41
44
  parse_response(get("projects/#{@project_id}/codes/#{id}/revisions", options))
42
45
  end
43
46
 
44
47
  def codes_download(id, options = {})
48
+ raise "Expecting id string, not #{id.class}" unless id.is_a? String
45
49
  parse_response(get("projects/#{@project_id}/codes/#{id}/download", options), false)
46
50
  end
47
51
 
@@ -50,6 +54,7 @@ module IronWorkerNG
50
54
  end
51
55
 
52
56
  def tasks_get(id)
57
+ raise "Expecting id string, not #{id.class}" unless id.is_a? String
53
58
  parse_response(get("projects/#{@project_id}/tasks/#{id}"))
54
59
  end
55
60
 
@@ -58,18 +63,22 @@ module IronWorkerNG
58
63
  end
59
64
 
60
65
  def tasks_cancel(id)
66
+ raise "Expecting id string, not #{id.class}" unless id.is_a? String
61
67
  parse_response(post("projects/#{@project_id}/tasks/#{id}/cancel"))
62
68
  end
63
69
 
64
70
  def tasks_cancel_all(code_id)
71
+ raise "Expecting id string, not #{id.class}" unless id.is_a? String
65
72
  parse_response(post("projects/#{@project_id}/codes/#{code_id}/cancel_all"))
66
73
  end
67
74
 
68
75
  def tasks_log(id)
76
+ raise "Expecting id string, not #{id.class}" unless id.is_a? String
69
77
  parse_response(get("projects/#{@project_id}/tasks/#{id}/log"), false)
70
78
  end
71
79
 
72
80
  def tasks_set_progress(id, options = {})
81
+ raise "Expecting id string, not #{id.class}" unless id.is_a? String
73
82
  parse_response(post("projects/#{@project_id}/tasks/#{id}/progress", options))
74
83
  end
75
84
 
@@ -78,6 +87,7 @@ module IronWorkerNG
78
87
  end
79
88
 
80
89
  def schedules_get(id)
90
+ raise "Expecting id string, not #{id.class}" unless id.is_a? String
81
91
  parse_response(get("projects/#{@project_id}/schedules/#{id}"))
82
92
  end
83
93
 
@@ -6,11 +6,7 @@ module IronWorkerNG
6
6
  end
7
7
 
8
8
  def rebase(path)
9
- if not path.start_with?('/')
10
- path = @code.base_dir + path
11
- end
12
-
13
- path
9
+ File.expand_path(path, @code.base_dir)
14
10
  end
15
11
 
16
12
  def zip_add(zip, dest, src)
@@ -24,13 +24,10 @@ module IronWorkerNG
24
24
  def gem_path
25
25
  path = @spec.full_gem_path
26
26
 
27
- # when running under bundle exec it sometimes duplicates gem path suffix
28
-
29
- suffix_index = path.rindex('/gems/')
30
- suffix = path[suffix_index .. -1]
27
+ # bundler fix
31
28
 
32
- if path.end_with?(suffix + suffix)
33
- path = path[0 .. suffix_index - 1]
29
+ ['/gems//gems', '/gems/gems'].each do |bad_part|
30
+ path.gsub!(bad_part, '/gems')
34
31
  end
35
32
 
36
33
  path
data/remote_test.rb CHANGED
@@ -23,8 +23,8 @@ code = IronWorkerNG::Code::Ruby.new do
23
23
  gemfile 'test/Gemfile'
24
24
 
25
25
  Dir.glob('*').each do |p|
26
- dir p, 'iwng' if Dir.exist? p
27
- file p, 'iwng' if File.exist? p
26
+ dir p, 'iwng' if File.directory? p
27
+ file p, 'iwng' if File.file? p
28
28
  end
29
29
 
30
30
  iron_io_config 'iwng'
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.2
4
+ version: 0.6.3
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-11 00:00:00.000000000 Z
13
+ date: 2012-06-14 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: 983849999
147
+ hash: -817402675
148
148
  required_rubygems_version: !ruby/object:Gem::Requirement
149
149
  none: false
150
150
  requirements: