teaspoon 1.2.1 → 1.2.2
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 +4 -4
- data/CHANGELOG.md +6 -0
- data/app/views/teaspoon/suite/_boot.html.erb +1 -1
- data/lib/generators/teaspoon/install/templates/_boot.html.erb +1 -1
- data/lib/teaspoon/engine.rb +6 -17
- data/lib/teaspoon/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8f1d6fd45df7a0ad1eff691a01c1ccc82a601186b70dc5d9bd9a90e008d9549b
|
|
4
|
+
data.tar.gz: 2ba946ee6bcdeb488db97cc668c1c6a16d94a7ba58db4056ca23def8fdc4402f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b45c374bb048ad82393b679db5f6ceebb8916a38b8af80f8e7b6177dd856e9e34def5bd454a6b74661745a8047a0fa8b92877132c7bdc2d5dc459395d488ec14
|
|
7
|
+
data.tar.gz: 89c7315b3ed8e7c386321f981bf0261289d4585a0aadc8f713425fe5638455f5aaa95284fec9a28bed7479748d7a94c843fad75da5ad6cafeee8af6fb7135463
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
### Unreleased
|
|
2
2
|
|
|
3
|
+
### 1.2.2
|
|
4
|
+
|
|
5
|
+
* make sure all tests pass with rails 4.2 - 6.1 (few pending excluded PR welcome)
|
|
6
|
+
* ruby supported 2.5 to 2.7 works, unknown about 3.0
|
|
7
|
+
* remove monkey-patch on `javascript_include_tag`
|
|
8
|
+
|
|
3
9
|
### 1.2.1
|
|
4
10
|
|
|
5
11
|
* require utility in console to get Teaspoon.root (#562)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<%= javascript_include_tag *@suite.spec_assets, debug: @suite.config.expand_assets
|
|
1
|
+
<%= javascript_include_tag *@suite.spec_assets, debug: @suite.config.expand_assets %>
|
|
2
2
|
<script type="text/javascript">
|
|
3
3
|
Teaspoon.onWindowLoad(Teaspoon.execute);
|
|
4
4
|
</script>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<%= javascript_include_tag *@suite.spec_assets, debug: @suite.config.expand_assets
|
|
1
|
+
<%= javascript_include_tag *@suite.spec_assets, debug: @suite.config.expand_assets %>
|
|
2
2
|
<script type="text/javascript">
|
|
3
3
|
Teaspoon.onWindowLoad(Teaspoon.execute);
|
|
4
4
|
</script>
|
data/lib/teaspoon/engine.rb
CHANGED
|
@@ -101,25 +101,14 @@ module Teaspoon
|
|
|
101
101
|
end
|
|
102
102
|
end
|
|
103
103
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
options = sources.extract_options!.stringify_keys
|
|
111
|
-
path_options = options.extract!("protocol", "extname", "host").symbolize_keys
|
|
112
|
-
path_options[:debug] = options["allow_non_precompiled"]
|
|
113
|
-
sources.uniq.map { |source|
|
|
114
|
-
tag_options = {
|
|
115
|
-
"src" => path_to_javascript(source, path_options)
|
|
116
|
-
}.merge!(options)
|
|
117
|
-
content_tag(:script, "", tag_options)
|
|
118
|
-
}.join("\n").html_safe
|
|
119
|
-
end
|
|
104
|
+
class Sprockets::Rails::HelperAssetResolvers::Environment
|
|
105
|
+
def raise_unless_precompiled_asset(path)
|
|
106
|
+
if Rails.env.test? or Rails.env.development?
|
|
107
|
+
# nothing, thank you
|
|
108
|
+
else
|
|
109
|
+
super
|
|
120
110
|
end
|
|
121
111
|
end
|
|
122
|
-
rescue
|
|
123
112
|
end
|
|
124
113
|
|
|
125
114
|
# Some Sprockets patches to work with Sprockets 2.x
|
data/lib/teaspoon/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: teaspoon
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- jejacks0n
|
|
@@ -27,6 +27,20 @@ dependencies:
|
|
|
27
27
|
- - ">="
|
|
28
28
|
- !ruby/object:Gem::Version
|
|
29
29
|
version: 3.2.5
|
|
30
|
+
- !ruby/object:Gem::Dependency
|
|
31
|
+
name: simplecov
|
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
|
33
|
+
requirements:
|
|
34
|
+
- - "<"
|
|
35
|
+
- !ruby/object:Gem::Version
|
|
36
|
+
version: '0.18'
|
|
37
|
+
type: :development
|
|
38
|
+
prerelease: false
|
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
40
|
+
requirements:
|
|
41
|
+
- - "<"
|
|
42
|
+
- !ruby/object:Gem::Version
|
|
43
|
+
version: '0.18'
|
|
30
44
|
description: Run your Javascript tests using Jasmine, Mocha or QUnit using a variety
|
|
31
45
|
of platforms.
|
|
32
46
|
email:
|
|
@@ -142,7 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
142
156
|
- !ruby/object:Gem::Version
|
|
143
157
|
version: '0'
|
|
144
158
|
requirements: []
|
|
145
|
-
rubygems_version: 3.0.
|
|
159
|
+
rubygems_version: 3.0.9
|
|
146
160
|
signing_key:
|
|
147
161
|
specification_version: 4
|
|
148
162
|
summary: 'Teaspoon: A Javascript test runner built on top of Rails'
|