iron_worker_ng 0.3.7 → 0.3.8
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/api_client.rb +13 -0
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.8
|
@@ -17,6 +17,8 @@ module IronWorkerNG
|
|
17
17
|
attr_accessor :api_version
|
18
18
|
attr_accessor :user_agent
|
19
19
|
|
20
|
+
attr_reader :options
|
21
|
+
|
20
22
|
def initialize(options = {})
|
21
23
|
load_from_hash(options)
|
22
24
|
load_from_config(options[:config_file] || options['config_file'])
|
@@ -31,6 +33,17 @@ module IronWorkerNG
|
|
31
33
|
raise 'Both iron.io token and project_id must be specified'
|
32
34
|
end
|
33
35
|
|
36
|
+
@options = {
|
37
|
+
:token => @token,
|
38
|
+
:project_id => @project_id,
|
39
|
+
|
40
|
+
:scheme => @scheme,
|
41
|
+
:host => @host,
|
42
|
+
:port => @port,
|
43
|
+
:api_version => @api_version,
|
44
|
+
:user_agent => @user_agent
|
45
|
+
}
|
46
|
+
|
34
47
|
@rest = Rest::Client.new
|
35
48
|
end
|
36
49
|
|
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.3.
|
4
|
+
version: 0.3.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -156,7 +156,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
156
156
|
version: '0'
|
157
157
|
segments:
|
158
158
|
- 0
|
159
|
-
hash: -
|
159
|
+
hash: -81500049
|
160
160
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
161
161
|
none: false
|
162
162
|
requirements:
|