res 1.2.10 → 1.2.11

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: b986b0f17b7b9aad06b6e35f9418670af1bbdb11
4
- data.tar.gz: 8a5332a148de9511660da0b0a9455bbb14e5727d
3
+ metadata.gz: 30733552e025a5f8a126750194414b8250b95fc7
4
+ data.tar.gz: eb3d3795f5743b983a61809974c5816149f5706c
5
5
  SHA512:
6
- metadata.gz: 69894b149c73ac34a736452fe3ef8c2e16b8d9f1f9858fd4b05c793a4ce7303ad98525f89c8095011255a947c71c6e84b05fc53955c55fb494f5db93c3298ca1
7
- data.tar.gz: 1121aa1fc81a2795f19e600426b389447647853aa9af49efa4e4c1aabe8277429da32b76477ad2b58904452f69bd5c9a53b58ab6f648b08b3ee2f380c4ce4adb
6
+ metadata.gz: 839468cb3ad1fdc72a8aa5f373adfc80c6c97d361c3361a97a147799282b852872712cc646369f0dae557f8a5b34c3cb17ac2e009cb65fcd1f6561dfbc511186
7
+ data.tar.gz: b9a7b700c6cca3eee353847e95438677e0f4db3d778628435c05d180fd7786b8f20914bf5927bd4d1882ae47a34320e87168e66ba8a93e7a38c7f33593e8ec98
@@ -8,8 +8,11 @@ module Res
8
8
 
9
9
  def initialize(args)
10
10
  @url = args[:url]
11
+ # :device_type is optional for backward compatibility
12
+ # At the next major version update this should be moved into the
13
+ # required list.
11
14
  @config = Res::Config.new([:url, :tag, :description, :app_name, :target],
12
- :optional => [:hive_job_id, :queue, :cert, :cacert, :ssl_verify_mode],
15
+ :optional => [:hive_job_id, :queue, :cert, :cacert, :ssl_verify_mode, :device_type],
13
16
  :pre_env => 'LION_')
14
17
  config.process(args)
15
18
  end
@@ -22,6 +25,7 @@ module Res
22
25
  lion_data = {
23
26
  :app_name => config.app_name,
24
27
  :tag => config.tag,
28
+ :device_type => config.device_type || 'Unknown',
25
29
  :description => config.description,
26
30
  :queue_name => config.target,
27
31
  :type => ir.type,
data/lib/res/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Res
2
- VERSION = '1.2.10'
2
+ VERSION = '1.2.11'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: res
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.10
4
+ version: 1.2.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - BBC
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-05-16 00:00:00.000000000 Z
13
+ date: 2016-06-07 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: json