capybara-angular 0.1.0 → 0.1.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: dc37068353892ebce817208876c0cc7b8971fc32
4
- data.tar.gz: 45875511c8d26a519951e50920751cba0c67547f
3
+ metadata.gz: dc5163484b2fb235380f17e2212c65d4c2712eab
4
+ data.tar.gz: 66e006bcf4a55aa1a7eebf2e7e0d65c82ce59a89
5
5
  SHA512:
6
- metadata.gz: 2022cd1f79aebd6a58dd90f1c159881ea11182726e7d0c41477347f8de454b0501a5461a024f9966c647ef1a1b77615c847c8397c410ac09951e93b06e86a40b
7
- data.tar.gz: d29965f47a09e8e23756304454a971a138b693a24bc5ffecaa3e8dae6bfdeaa9127370ed03eeaba2a456e078c1cdf1538b15f176168544734356eb89cc999efd
6
+ metadata.gz: fd74d7bd3463c6788ef04d129e48cfea3185799896339c15f772a3665f18739635f60bf71d84eee9a0712af0c9bef3169b8a5ea2e6c35daecf0d3ac3aec14050
7
+ data.tar.gz: da36d777b618cd679d95c416406aa746a9c50c3bbee91e0bebc43da56bb1dc0524d245e40eff42fde375b4094dbcc809cbd9d585b55b4504bfe6b7521a1a3c6c
@@ -1,5 +1,5 @@
1
1
  module Capybara
2
2
  module Angular
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
@@ -51,14 +51,12 @@ module Capybara
51
51
  angular.element(document).ready(function() {
52
52
  var app = angular.element(document.querySelector('[ng-app], [data-ng-app]'));
53
53
  var injector = app.injector();
54
- injector.invoke(function($browser) {
55
- if ($browser.outstandingRequestCount > 0) {
56
- window.angularReady = false;
57
- }
54
+ injector.invoke(['$browser', function($browser) {
55
+ window.angularReady = false;
58
56
  $browser.notifyWhenNoOutstandingRequests(function() {
59
57
  window.angularReady = true;
60
58
  });
61
- });
59
+ }]);
62
60
  });
63
61
  JS
64
62
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capybara-angular
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pawel Pierzchala
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-13 00:00:00.000000000 Z
11
+ date: 2015-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capybara
@@ -122,7 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
122
122
  version: '0'
123
123
  requirements: []
124
124
  rubyforge_project:
125
- rubygems_version: 2.1.11
125
+ rubygems_version: 2.2.2
126
126
  signing_key:
127
127
  specification_version: 4
128
128
  summary: Stable Capybara API for AngularJS applications