async-rails 0.3.0 → 0.4.0

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: 70969f55042fe2f0ebd73b62429c669b1aba2cba
4
- data.tar.gz: d49d49c31d1945008a754c59a96edcc4d68d1ee0
3
+ metadata.gz: 7da4f4ef6f4fe64367fbbb814186b4bdcd5112de
4
+ data.tar.gz: 20ac90a64ea22281e9a9e0b1e765569eea093a7e
5
5
  SHA512:
6
- metadata.gz: 7bc3d32c07997aca0e9748329f38fba1fddc25e4d6755bd9e8a3d38b7c77a6d24bd4710ecaeec62c22737e5c2b781a6940b5157d6ec24d90d366fde64f951975
7
- data.tar.gz: f1d7b4560cad1e30f5d9ec3511d4dd5cd9adbe2b320f446beab11f08ae71ca862624fc4972020cb8bb15508cdbf3a5a749fe185376a822f4c01cba66f506ebf3
6
+ metadata.gz: d8acaaa055a6af2f98dc86192e36a29f62018613483bd74d8f96849890665db712d40a759598a401dc3633b8c33fb1bca586a7042f33aee3679501f9885e2b34
7
+ data.tar.gz: 9057ef4ce7d05fad47c46826724d360eb22e67c13beef3edb0dcbbdac22f2b009c9b18a7488cfb76161425de6b04682b8797aed3d502efa5e903faccdafcce40
@@ -1,5 +1,5 @@
1
1
  module Async
2
2
  module Rails
3
- VERSION = "0.3.0"
3
+ VERSION = "0.4.0"
4
4
  end
5
5
  end
@@ -755,6 +755,9 @@
755
755
  },
756
756
  running: function () {
757
757
  return workers;
758
+ },
759
+ idle: function() {
760
+ return q.tasks.length + workers === 0;
758
761
  }
759
762
  };
760
763
  return q;
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: async-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Chen