iron_worker 3.4.0 → 3.4.1

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: 633ec6de0ffa0e6228cb5950b26c11e6f0a0fc29
4
- data.tar.gz: 3523e84b04eae2ab758481699b1397edd3281590
3
+ metadata.gz: bbe20fa956c3252e72a37d39069ebe80a6c89a59
4
+ data.tar.gz: e2616741806a928570060f65252d8a150d833ffc
5
5
  SHA512:
6
- metadata.gz: b908b51b4f2dd694a0e5a7d33eabcf91a5c971a7d999cbf9e51670e26a1f904c7872c0f407aa3c72da1850cf3bfd1efb0430651fa9fa8138810764d03163b0f5
7
- data.tar.gz: a4e145bce4e90b25443588e990dbed10caebb97beac9288f263b957d74ca4941907f97250bd4de876f4c2eaf7a75a9d3148e3d399e8493a17e3e03ac468279ad
6
+ metadata.gz: 22613fc76543f00c7ef3142de7a4b94ca4df6b6d947c3924609d04f710ca5f43747ca9e17aa14cfb44436f86e78e04e6a1fb512f093fc6e24350ef4d57d0c105
7
+ data.tar.gz: d43bd8cdb8bc4f37a0eccf5818b3c0ffc29302c068a1835e11f6512bdf9cc0b70627fdea6001a59cb2f464b4b2cfedf28514aed48d9bf5b731500fe0f8e018a5
@@ -0,0 +1,27 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ iron_worker (3.4.1)
5
+ iron_core (>= 1.0.12, < 2)
6
+ json (~> 1.8, > 1.8.1)
7
+ rest (~> 3.0, >= 3.0.8)
8
+
9
+ GEM
10
+ specs:
11
+ iron_core (1.0.12)
12
+ rest (>= 3.0.8)
13
+ json (1.8.3)
14
+ net-http-persistent (2.9.4)
15
+ netrc (0.11.0)
16
+ rest (3.0.8)
17
+ net-http-persistent (>= 2.9.1, < 3)
18
+ netrc
19
+
20
+ PLATFORMS
21
+ ruby
22
+
23
+ DEPENDENCIES
24
+ iron_worker!
25
+
26
+ BUNDLED WITH
27
+ 1.13.3
@@ -16,8 +16,8 @@ Gem::Specification.new do |gem|
16
16
 
17
17
  gem.required_rubygems_version = ">= 1.3.6"
18
18
  gem.required_ruby_version = Gem::Requirement.new(">= 1.9")
19
- gem.add_runtime_dependency "iron_core", "~> 1.0", ">= 1.0.9"
20
- gem.add_runtime_dependency 'rest', '~> 3.0', ">= 3.0.6"
19
+ gem.add_runtime_dependency "iron_core", ">= 1.0.12", '< 2'
20
+ gem.add_runtime_dependency 'rest', '~> 3.0', ">= 3.0.8"
21
21
  gem.add_runtime_dependency "json", "~> 1.8", "> 1.8.1"
22
22
 
23
23
  end
@@ -50,6 +50,10 @@ module IronWorker
50
50
  parse_response(get("projects/#{@project_id}/codes/#{id}"))
51
51
  end
52
52
 
53
+ def codes_register(name, options)
54
+ parse_response(post("projects/#{@project_id}/codes", options))
55
+ end
56
+
53
57
  def codes_create(name, file, runtime, runner, options)
54
58
  parse_response(post_file("projects/#{@project_id}/codes", :file, File.new(file, 'rb'), :data, {:name => name, :runtime => runtime, :file_name => runner}.merge(options)))
55
59
  end
@@ -96,6 +96,16 @@ module IronWorker
96
96
  OpenStruct.new(c)
97
97
  end
98
98
 
99
+ # For registering docker images: http://dev.iron.io/worker/reference/api/#upload_or_update_a_code_package
100
+ # Just need name and options[:image] = x
101
+ def codes_register(name, options={})
102
+ IronCore::Logger.debug 'IronWorker', "Calling codes.register with code='#{code.to_s}' and options='#{options.to_s}'"
103
+
104
+ res = @api.codes_register(name, options)
105
+ OpenStruct.new(res)
106
+ end
107
+
108
+ # TODO: we should remove all this, legecy stuff.
99
109
  def codes_create(code, options = {})
100
110
  IronCore::Logger.debug 'IronWorker', "Calling codes.create with code='#{code.to_s}' and options='#{options.to_s}'"
101
111
 
@@ -1,5 +1,5 @@
1
1
  module IronWorker
2
- VERSION = "3.4.0"
2
+ VERSION = "3.4.1"
3
3
 
4
4
  def self.version
5
5
  VERSION
metadata CHANGED
@@ -1,35 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iron_worker
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.0
4
+ version: 3.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Travis Reeder
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-26 00:00:00.000000000 Z
11
+ date: 2016-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: iron_core
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '1.0'
20
17
  - - ">="
21
18
  - !ruby/object:Gem::Version
22
- version: 1.0.9
19
+ version: 1.0.12
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '2'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - "~>"
28
- - !ruby/object:Gem::Version
29
- version: '1.0'
30
27
  - - ">="
31
28
  - !ruby/object:Gem::Version
32
- version: 1.0.9
29
+ version: 1.0.12
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '2'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: rest
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -39,7 +39,7 @@ dependencies:
39
39
  version: '3.0'
40
40
  - - ">="
41
41
  - !ruby/object:Gem::Version
42
- version: 3.0.6
42
+ version: 3.0.8
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
@@ -49,7 +49,7 @@ dependencies:
49
49
  version: '3.0'
50
50
  - - ">="
51
51
  - !ruby/object:Gem::Version
52
- version: 3.0.6
52
+ version: 3.0.8
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: json
55
55
  requirement: !ruby/object:Gem::Requirement
@@ -79,6 +79,7 @@ extra_rdoc_files: []
79
79
  files:
80
80
  - ".gitignore"
81
81
  - Gemfile
82
+ - Gemfile.lock
82
83
  - LICENSE
83
84
  - README.md
84
85
  - Rakefile