res 1.2.10 → 1.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/res/reporters/lion.rb +5 -1
- data/lib/res/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 30733552e025a5f8a126750194414b8250b95fc7
|
|
4
|
+
data.tar.gz: eb3d3795f5743b983a61809974c5816149f5706c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 839468cb3ad1fdc72a8aa5f373adfc80c6c97d361c3361a97a147799282b852872712cc646369f0dae557f8a5b34c3cb17ac2e009cb65fcd1f6561dfbc511186
|
|
7
|
+
data.tar.gz: b9a7b700c6cca3eee353847e95438677e0f4db3d778628435c05d180fd7786b8f20914bf5927bd4d1882ae47a34320e87168e66ba8a93e7a38c7f33593e8ec98
|
data/lib/res/reporters/lion.rb
CHANGED
|
@@ -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
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.
|
|
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-
|
|
13
|
+
date: 2016-06-07 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: json
|