teaspoon-jasmine 2.3.4 → 2.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/teaspoon/jasmine/assets/jasmine/2.4.1.js +3454 -0
- data/lib/teaspoon/jasmine/assets/teaspoon-jasmine1.js +3 -3
- data/lib/teaspoon/jasmine/assets/teaspoon-jasmine2.js +3 -3
- data/lib/teaspoon/jasmine/framework.rb +1 -1
- data/lib/teaspoon/jasmine/version.rb +1 -1
- metadata +4 -4
@@ -350,7 +350,7 @@
|
|
350
350
|
create();
|
351
351
|
}
|
352
352
|
if (jQueryAvailable()) {
|
353
|
-
parsed =
|
353
|
+
parsed = jQuery(jQuery.parseHTML(content, document, true));
|
354
354
|
results = [];
|
355
355
|
for (i = j = 0, ref = parsed.length; 0 <= ref ? j < ref : j > ref; i = 0 <= ref ? ++j : --j) {
|
356
356
|
results.push(window.fixture.el.appendChild(parsed[i]));
|
@@ -365,7 +365,7 @@
|
|
365
365
|
var ref;
|
366
366
|
window.fixture.el = document.createElement("div");
|
367
367
|
if (jQueryAvailable()) {
|
368
|
-
window.fixture.$el =
|
368
|
+
window.fixture.$el = jQuery(window.fixture.el);
|
369
369
|
}
|
370
370
|
window.fixture.el.id = "teaspoon-fixtures";
|
371
371
|
return (ref = document.body) != null ? ref.appendChild(window.fixture.el) : void 0;
|
@@ -407,7 +407,7 @@
|
|
407
407
|
};
|
408
408
|
|
409
409
|
jQueryAvailable = function() {
|
410
|
-
return typeof window
|
410
|
+
return typeof window.jQuery === 'function';
|
411
411
|
};
|
412
412
|
|
413
413
|
return Fixture;
|
@@ -350,7 +350,7 @@
|
|
350
350
|
create();
|
351
351
|
}
|
352
352
|
if (jQueryAvailable()) {
|
353
|
-
parsed =
|
353
|
+
parsed = jQuery(jQuery.parseHTML(content, document, true));
|
354
354
|
results = [];
|
355
355
|
for (i = j = 0, ref = parsed.length; 0 <= ref ? j < ref : j > ref; i = 0 <= ref ? ++j : --j) {
|
356
356
|
results.push(window.fixture.el.appendChild(parsed[i]));
|
@@ -365,7 +365,7 @@
|
|
365
365
|
var ref;
|
366
366
|
window.fixture.el = document.createElement("div");
|
367
367
|
if (jQueryAvailable()) {
|
368
|
-
window.fixture.$el =
|
368
|
+
window.fixture.$el = jQuery(window.fixture.el);
|
369
369
|
}
|
370
370
|
window.fixture.el.id = "teaspoon-fixtures";
|
371
371
|
return (ref = document.body) != null ? ref.appendChild(window.fixture.el) : void 0;
|
@@ -407,7 +407,7 @@
|
|
407
407
|
};
|
408
408
|
|
409
409
|
jQueryAvailable = function() {
|
410
|
-
return typeof window
|
410
|
+
return typeof window.jQuery === 'function';
|
411
411
|
};
|
412
412
|
|
413
413
|
return Fixture;
|
@@ -11,7 +11,7 @@ module Teaspoon
|
|
11
11
|
dependencies: ["teaspoon-jasmine1.js"],
|
12
12
|
dev_deps: ["teaspoon/jasmine1.js"]
|
13
13
|
|
14
|
-
versions = ["2.0.3", "2.1.3", "2.2.0", "2.2.1", "2.3.4"]
|
14
|
+
versions = ["2.0.3", "2.1.3", "2.2.0", "2.2.1", "2.3.4", "2.4.1"]
|
15
15
|
|
16
16
|
versions.each do |version|
|
17
17
|
register_version version, "jasmine/#{version}.js",
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: teaspoon-jasmine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jejacks0n
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-03-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: teaspoon
|
@@ -40,6 +40,7 @@ files:
|
|
40
40
|
- lib/teaspoon/jasmine/assets/jasmine/2.2.0.js
|
41
41
|
- lib/teaspoon/jasmine/assets/jasmine/2.2.1.js
|
42
42
|
- lib/teaspoon/jasmine/assets/jasmine/2.3.4.js
|
43
|
+
- lib/teaspoon/jasmine/assets/jasmine/2.4.1.js
|
43
44
|
- lib/teaspoon/jasmine/assets/jasmine/MIT.LICENSE
|
44
45
|
- lib/teaspoon/jasmine/assets/support/jasmine-jquery-1.7.0.js
|
45
46
|
- lib/teaspoon/jasmine/assets/support/jasmine-jquery-2.0.0.js
|
@@ -85,8 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
85
86
|
- !ruby/object:Gem::Version
|
86
87
|
version: '0'
|
87
88
|
requirements: []
|
88
|
-
|
89
|
-
rubygems_version: 2.4.6
|
89
|
+
rubygems_version: 3.0.8
|
90
90
|
signing_key:
|
91
91
|
specification_version: 4
|
92
92
|
summary: 'Teaspoon Jasmine: A Javascript test runner built on top of Rails for Jasmine'
|