job_notifier 0.2.0 → 0.2.1

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: 4c87cabaf963f84552aa1ac6b4b32bc4cb2766f6
4
- data.tar.gz: f3276282c09349ed2e999706f266c25cd2858946
3
+ metadata.gz: 813294d11402f27d16f0bbe8b06d89a8a87f87b6
4
+ data.tar.gz: f75746f4cbcf03310f3f2ae55aa3cd5aeb625cdc
5
5
  SHA512:
6
- metadata.gz: 156cf8dbadab21dd0f917f51fbc3a345a5a56cf08c09610992d6b2407a0b1cb3e99fecd1c65c0c0ea18486c2c45244c762126c8bea1915efca0afffb80865a71
7
- data.tar.gz: edf8dc77b58a6593e2cf81016c3dc914212c4cf224f5a861e404c6f82c94083b2fb083b01b4b1ff06a43741a7af4c0a6d661b5d88c7b4f600b786fdbe78dcbaf
6
+ metadata.gz: 31bf07ea0ba043d2de9771d715954a572f4c3620eabea7da9ccabf0889acc9cbdd373cddb5b2e9469d91c6b87e1458b21e421c6b44cdeccba6a72f314e46ac5f
7
+ data.tar.gz: 2aa14ea7ef333066cbc5b7decbbccb1fc07a039f4d606282d3941143a3984730937c5f36220230bf0876b96cb33990b6a31c436be3c1a398009b0eda41696204
@@ -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
+ ### v0.2.1
6
+
7
+ #### Fixed
8
+
9
+ - Avoid polling with nil jobIdentifier
10
+
5
11
  ### v0.2.0
6
12
 
7
13
  #### Added
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- job_notifier (0.2.0)
4
+ job_notifier (0.2.1)
5
5
  enumerize (~> 1.0.0, ~> 1.0)
6
6
  rails (~> 4.2, >= 4.2.0)
7
7
 
@@ -6,6 +6,11 @@
6
6
  JobNotifier.init = function() {
7
7
  var body = document.querySelector('body');
8
8
  JobNotifier.jobIdentifier = body.dataset.identifier;
9
+
10
+ if(!JobNotifier.jobIdentifier) {
11
+ return;
12
+ }
13
+
9
14
  JobNotifier.rootUrl = body.dataset.rootUrl;
10
15
  setInterval(JobNotifier.poll, 5000);
11
16
  };
@@ -1,3 +1,3 @@
1
1
  module JobNotifier
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
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: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Platanus
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-06-10 00:00:00.000000000 Z
13
+ date: 2016-06-11 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails