teaspoon 1.2.0 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +25 -4
- data/app/views/teaspoon/suite/_boot.html.erb +1 -1
- data/lib/generators/teaspoon/install/templates/_boot.html.erb +1 -1
- data/lib/teaspoon/console.rb +1 -0
- data/lib/teaspoon/coverage.rb +1 -1
- data/lib/teaspoon/engine.rb +9 -18
- data/lib/teaspoon/version.rb +1 -1
- metadata +18 -4
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,12 +1,33 @@
|
|
1
1
|
### Unreleased
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
*
|
6
|
-
*
|
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
|
+
|
9
|
+
### 1.2.1
|
10
|
+
|
11
|
+
* require utility in console to get Teaspoon.root (#562)
|
12
|
+
* Update ruby version requirement to allow ruby 3.0 (#583)
|
13
|
+
* Fix coverage output path (#579)
|
14
|
+
* Delay using Rails until loaded (#582)
|
15
|
+
* Run tests via Github Actions (#588)
|
16
|
+
|
17
|
+
### 1.2.0
|
18
|
+
|
19
|
+
#### Enhancements
|
20
|
+
|
21
|
+
* Add Rails 6 (beta1) support (#556)
|
22
|
+
* Allow passing selenium options (#537)
|
7
23
|
|
8
24
|
#### Bug Fixes
|
9
25
|
|
26
|
+
* Removes Rails 3 & 4 support (#560)
|
27
|
+
* Removes support for capybara webkit (#560)
|
28
|
+
* Fixes gem coffeescript assets being discovered by sprockets (#405)
|
29
|
+
* Many other small changes/fixes
|
30
|
+
|
10
31
|
### 1.1.5
|
11
32
|
|
12
33
|
#### Enhancements
|
@@ -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/console.rb
CHANGED
data/lib/teaspoon/coverage.rb
CHANGED
@@ -60,7 +60,7 @@ module Teaspoon
|
|
60
60
|
output_path = File.join(@config.output_path, @suite_name)
|
61
61
|
result, st =
|
62
62
|
Open3.capture2e(
|
63
|
-
@executable, "report", "--include
|
63
|
+
@executable, "report", "--include", input.shellescape, "--dir", output_path, format
|
64
64
|
)
|
65
65
|
return result.gsub("Done", "").gsub("Using reporter [#{format}]", "").strip if st.exitstatus.zero?
|
66
66
|
raise Teaspoon::DependencyError.new("Unable to generate #{format} coverage report:\n#{result}")
|
data/lib/teaspoon/engine.rb
CHANGED
@@ -61,7 +61,9 @@ module Teaspoon
|
|
61
61
|
mount_at = Teaspoon.configuration.mount_at
|
62
62
|
|
63
63
|
return if app.routes.recognize_path(mount_at)[:action] != "routing_error" rescue nil
|
64
|
-
|
64
|
+
ActiveSupport.on_load(:action_controller) do
|
65
|
+
require Teaspoon::Engine.root.join("app/controllers/teaspoon/suite_controller")
|
66
|
+
end
|
65
67
|
|
66
68
|
app.routes.prepend { mount Teaspoon::Engine => mount_at, as: "teaspoon" }
|
67
69
|
end
|
@@ -99,25 +101,14 @@ module Teaspoon
|
|
99
101
|
end
|
100
102
|
end
|
101
103
|
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
options = sources.extract_options!.stringify_keys
|
109
|
-
path_options = options.extract!("protocol", "extname", "host").symbolize_keys
|
110
|
-
path_options[:debug] = options["allow_non_precompiled"]
|
111
|
-
sources.uniq.map { |source|
|
112
|
-
tag_options = {
|
113
|
-
"src" => path_to_javascript(source, path_options)
|
114
|
-
}.merge!(options)
|
115
|
-
content_tag(:script, "", tag_options)
|
116
|
-
}.join("\n").html_safe
|
117
|
-
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
|
118
110
|
end
|
119
111
|
end
|
120
|
-
rescue
|
121
112
|
end
|
122
113
|
|
123
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
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2021-03-16 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: railties
|
@@ -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:
|
@@ -133,7 +147,7 @@ require_paths:
|
|
133
147
|
- lib
|
134
148
|
required_ruby_version: !ruby/object:Gem::Requirement
|
135
149
|
requirements:
|
136
|
-
- - "
|
150
|
+
- - ">="
|
137
151
|
- !ruby/object:Gem::Version
|
138
152
|
version: '2.4'
|
139
153
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
@@ -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'
|