resque-poll 1.0.0 → 1.0.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: 42a70fa63c42ea38dbe133b2d9d390691ec81281
4
- data.tar.gz: 9f958909b5186766beb043b7903c5d612acff9b3
3
+ metadata.gz: 44f0ef243bf7f8742ead4adb4096a50f2a9fd90b
4
+ data.tar.gz: 219e781aa95bef4693a27255b01e58cbe34b2689
5
5
  SHA512:
6
- metadata.gz: 62d23d4d941f13cca8e7f85b51a4a86872b61cd3bf8eb48b31921e0a6b01055843b393d4c73afea63ff25c62756dde9c7d9071fe0b2fb8b07669ecdd3b78f19e
7
- data.tar.gz: fdc12f80f6d37b60a961f3c460011f925245f1e19120c5bc32095887d1b40d0c6cef88c4cad3bec8f820ab1d2479c0809740076a7acf145197602759573cab61
6
+ metadata.gz: 5944f480c6e5685fe8a5f188622505c067753465f638529e91a5bdd436ff7225e220c3723d979d0725003fd1ec4f8167ee4824be76e5fce22997a362d827a18d
7
+ data.tar.gz: 8bb9b08defb7f62d2e1a100c75bbc8f3e6728ba2963d5edb204872e2d2b6570e4219b3fe57e2448d69f68ecff9da51c5d9b16008af107875bdf8b1a357865792
@@ -11,7 +11,7 @@ class ResquePoller
11
11
  _poll: => $.getJSON @url, (resp) => @_handleResponse(resp)
12
12
 
13
13
  _handleResponse: (resp) ->
14
- return if resp.status is 'queued'
14
+ return if (resp.status is 'queued' || resp.status is 'working')
15
15
  clearInterval @intervalID if @intervalID
16
16
  switch resp.status
17
17
  when 'completed'
@@ -1,3 +1,3 @@
1
1
  module ResquePoll
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resque-poll
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anthony Zacharakis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-18 00:00:00.000000000 Z
11
+ date: 2015-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bartt-ssl_requirement