g5-jobbing 0.0.3 → 0.0.4
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 06231aa354b5e054e70e76dce1e0d59ce010e1ff
|
|
4
|
+
data.tar.gz: c90f2d535edbd1ecd1532785b27748d7c5bc2231
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1162b1cbe204c0799e93d06aa34f522ee4d79a7d533a0a2885f6d893fca4d38392d58b679444ced94c302139f3bdd319578599429c9267c9c289a7c67d831949
|
|
7
|
+
data.tar.gz: 67ba8ad6fb6aff7ea1e0640c54bd738d2834cf72fed3aada9eebc47151c31cf76ec5bbfa5e20e9abb3586d61457cf3329117cba6ab081d11bbd7ca563568f3f1
|
|
@@ -23,7 +23,7 @@ class G5::Jobbing::JobStatRetriever
|
|
|
23
23
|
end
|
|
24
24
|
|
|
25
25
|
def find_matching_job_stat(job)
|
|
26
|
-
parent = self.rollup_by.detect { |key_values| key_values.last.include?(job.
|
|
26
|
+
parent = self.rollup_by.detect { |key_values| key_values.last.include?(job.integration_setting_urn) }.try(:first)
|
|
27
27
|
return unless parent
|
|
28
28
|
|
|
29
29
|
job_stat_key = @job_stats.keys.detect { |js_key| parent == js_key }
|
data/lib/g5/jobbing/version.rb
CHANGED
|
@@ -16,7 +16,7 @@ describe G5::Jobbing::JobStatRetriever do
|
|
|
16
16
|
headers: {'Content-Type' => 'application/json', 'Accept' => 'application/json'}}).
|
|
17
17
|
and_return(double(:response, body: body))
|
|
18
18
|
end
|
|
19
|
-
let(:roll_up_by) { {foo:
|
|
19
|
+
let(:roll_up_by) { {foo: %w(g5-lis-1t0thzui g5-lis-1t0thj3p), no_matches: ['madeup'], bar: %w(g5-lis-1 g5-lis-1t0n85r2 g5-lis-1t0tf3u0)} }
|
|
20
20
|
|
|
21
21
|
subject { job_stat_retriever.perform }
|
|
22
22
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: g5-jobbing
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Perry Hertler
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-11-
|
|
11
|
+
date: 2014-11-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|