job_notifier 1.2.3 → 1.2.4

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: c0abde32187ab26c1f8807a419a8f6383f838156
4
- data.tar.gz: 05aaaf299bd3a544df015ff6b5c9a2a02b649256
3
+ metadata.gz: a4a42600c4c16fa382df5bfe5c6cf10bde4dfc75
4
+ data.tar.gz: edabfe1c6b5adafc952228d277ef9edbdfd7068e
5
5
  SHA512:
6
- metadata.gz: b89d57bb16852183576c7671ead25c52d78739e839f7c2f4e317d3cc8a5d0277419fc8e9e7501132c13c48721535551c55a087618db7695c29a97b78bc606278
7
- data.tar.gz: 5766e7c1d52f1bc0f3a678322dc2f0b59efd7cec7c85bdd60465910145247b5c5e78f745cccd7b2bb4fb1ca4020b15a63f98b67efbef61071b7f177e2aaa440e
6
+ metadata.gz: 80191498e36199a9525b997a9e5f863d9c9557c3e93a52e089324e3beba3b91e5fc4f2236d20f72a24b5dc18dbadb8364e9b65d9d55a41c53038cab498579445
7
+ data.tar.gz: 4a0b2960c96969726b856f9c422d859d9168b277dd9dd2aaa102efc4c16cb4c0681b0ba046a8bcfaf51635578db2863417c41e5644fbf3d0a5d0d2f2908cf563
@@ -2,6 +2,12 @@
2
2
  All notable changes to this project will be documented in this file.
3
3
  This project adheres to [Semantic Versioning](http://semver.org/).
4
4
 
5
+ ### v1.2.4
6
+
7
+ ##### Fixed
8
+
9
+ - Check if /jobs endpoint returns response root.
10
+
5
11
  ### v1.2.3
6
12
 
7
13
  ##### Changed
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- job_notifier (1.2.3)
4
+ job_notifier (1.2.4)
5
5
  colorize (>= 0.7.7)
6
6
  enumerize (>= 1.0)
7
7
  rails (>= 4.2.0)
@@ -40,6 +40,10 @@
40
40
  JobNotifier.onPendingJobsLoad = function() {
41
41
  var data = JSON.parse(this.responseText);
42
42
 
43
+ if (data.jobs) {
44
+ data = data.jobs;
45
+ }
46
+
43
47
  if(data.length === 0) {
44
48
  JobNotifier.findJobs();
45
49
  return;
@@ -18,6 +18,7 @@ module JobNotifier
18
18
  response.each do |resp|
19
19
  next if resp.blank?
20
20
  result = JSON.parse(resp)
21
+ result = result["jobs"] if result.is_a?(Hash)
21
22
  next if result.blank?
22
23
  puts build_log_msg(result)
23
24
  end
@@ -1,3 +1,3 @@
1
1
  module JobNotifier
2
- VERSION = "1.2.3"
2
+ VERSION = "1.2.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: job_notifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 1.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Platanus