jasmine-jquery-rails 2.0.2 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c3586de1a3e0f7d2e160bffc4fe8bc38fd0b49b7
4
- data.tar.gz: d5d38ca8d7c32c6e87720c49fda85a9af0f9f51a
3
+ metadata.gz: d94ed8fc6cfd819c2c9d82a9dd97033448516249
4
+ data.tar.gz: a98eff989d0a073e3176cad17e9a430869ed7648
5
5
  SHA512:
6
- metadata.gz: b0230afceba722243a2951698c9fdc404fbc377d7d300d80076665be7152c362e8a741dc31acbc326ae7f56300da9f69d3d39ef2abd270999116bb53f37229df
7
- data.tar.gz: e8008fe6f78d14dcb07e558293cc8d01ea15a1be0df95663c3a3c80b495edb108c3aa0e718c6718fe7bfbde64384f9b4a0b146441c92cba2e8fbb8e4c82316d8
6
+ metadata.gz: cd7ae0972ca1951f3b0c0ba83f836e14fb57effdfe7ef8d8fb9657b99eb6009eb3176e9b93aa107d0a501ebf46b7d58bc465b70f5811cbc2034c0a7076ee23df
7
+ data.tar.gz: 165e420c823924b5e285f61cc0b7499cf7a316269593a4f279fbd1d8220b7bc070227fbc0226ed16f69ba10e577e5754c4fb7ffdc1c7aa07c541744914d8f3fe
data/README.md CHANGED
@@ -12,9 +12,11 @@ And then execute:
12
12
 
13
13
  $ bundle
14
14
 
15
- Add this line to your test manifest file:
15
+ Assuming you're using the jasmine gem, in your jasmine.yml have:
16
16
 
17
- //=require jasmine-jquery
17
+ src_files:
18
+ - ...
19
+ - assets/jasmine-jquery.js
18
20
 
19
21
  Or directly include at `/assets/jasmine-jquery.js`
20
22
 
@@ -1,7 +1,7 @@
1
1
  module Jasmine
2
2
  module Jquery
3
3
  module Rails
4
- VERSION = "2.0.2"
4
+ VERSION = "2.0.3"
5
5
  end
6
6
  end
7
7
  end
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  Jasmine-jQuery: a set of jQuery helpers for Jasmine tests.
3
3
 
4
- Version 2.0.2
4
+ Version 2.1.0
5
5
 
6
6
  https://github.com/velesin/jasmine-jquery
7
7
 
@@ -128,8 +128,8 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
128
128
  success: function (data, status, $xhr) {
129
129
  htmlText = $xhr.responseText
130
130
  }
131
- }).fail(function () {
132
- throw new Error('Fixture could not be loaded: ' + url + ' (status: ' + status + ', message: ' + errorThrown.message + ')')
131
+ }).fail(function ($xhr, status, err) {
132
+ throw new Error('Fixture could not be loaded: ' + url + ' (status: ' + status + ', message: ' + err.message + ')')
133
133
  })
134
134
 
135
135
  var scripts = $($.parseHTML(htmlText, true)).find('script[src]') || [];
@@ -143,8 +143,8 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
143
143
  success: function (data, status, $xhr) {
144
144
  htmlText += '<script>' + $xhr.responseText + '</script>'
145
145
  },
146
- error: function (jqXHR, status, errorThrown) {
147
- throw new Error('Script could not be loaded: ' + scriptSrc + ' (status: ' + status + ', message: ' + errorThrown.message + ')')
146
+ error: function ($xhr, status, err) {
147
+ throw new Error('Script could not be loaded: ' + scriptSrc + ' (status: ' + status + ', message: ' + err.message + ')')
148
148
  }
149
149
  });
150
150
  })
@@ -255,8 +255,8 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
255
255
  success: function (data) {
256
256
  self.fixturesCache_[relativeUrl] = data
257
257
  },
258
- error: function (jqXHR, status, errorThrown) {
259
- throw new Error('JSONFixture could not be loaded: ' + url + ' (status: ' + status + ', message: ' + errorThrown.message + ')')
258
+ error: function ($xhr, status, err) {
259
+ throw new Error('JSONFixture could not be loaded: ' + url + ' (status: ' + status + ', message: ' + err.message + ')')
260
260
  }
261
261
  })
262
262
  }
@@ -810,4 +810,3 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
810
810
  return jasmine.getJSONFixtures().proxyCallTo_('read', arguments)[url]
811
811
  }
812
812
  }(window, window.jasmine, window.jQuery);
813
-
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jasmine-jquery-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Travis Jeffery
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-05 00:00:00.000000000 Z
11
+ date: 2014-04-29 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: