jasmine-jquery-rails 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -2
- data/lib/jasmine-jquery-rails/version.rb +1 -1
- data/vendor/assets/javascripts/jasmine-jquery.js +7 -8
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d94ed8fc6cfd819c2c9d82a9dd97033448516249
|
4
|
+
data.tar.gz: a98eff989d0a073e3176cad17e9a430869ed7648
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
15
|
+
Assuming you're using the jasmine gem, in your jasmine.yml have:
|
16
16
|
|
17
|
-
|
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
|
/*!
|
2
2
|
Jasmine-jQuery: a set of jQuery helpers for Jasmine tests.
|
3
3
|
|
4
|
-
Version 2.0
|
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: ' +
|
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 (
|
147
|
-
throw new Error('Script could not be loaded: ' + scriptSrc + ' (status: ' + status + ', 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 (
|
259
|
-
throw new Error('JSONFixture could not be loaded: ' + url + ' (status: ' + status + ', 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.
|
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-
|
11
|
+
date: 2014-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|