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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 87a2167152fd03a542d32f164a5dfb521f6db314a553d8d8b6f108efab669635
4
- data.tar.gz: 2e8fad35367a9d663adc6d220f2a65c768b00c8742fea7b5acd0b3e522539b17
3
+ metadata.gz: 8f1d6fd45df7a0ad1eff691a01c1ccc82a601186b70dc5d9bd9a90e008d9549b
4
+ data.tar.gz: 2ba946ee6bcdeb488db97cc668c1c6a16d94a7ba58db4056ca23def8fdc4402f
5
5
  SHA512:
6
- metadata.gz: cdb23553e3231e9afc7848dc4bd2f7237e50888ea77118f3fb5f27c4c216c1743bab2a1b14fd5c16f0fb267442da61d4a9dc96b60bb8337236e15a63b2084d16
7
- data.tar.gz: 07f1907cfc1592fed2c314a06efa79c7e41cd744c5b7a1600c39ffc4a00e13bc303dda559bc53d73b65c8b6021004d85fbd5854c137cdf1eb77d4105e55c0f65
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, allow_non_precompiled: true %>
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, allow_non_precompiled: true %>
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>
@@ -101,25 +101,14 @@ module Teaspoon
101
101
  end
102
102
  end
103
103
 
104
- begin
105
- require "action_view"
106
- if ActionView.gem_version >= Gem::Version.new("4.2.5")
107
- require "action_view/helpers/asset_tag_helper"
108
- module ActionView::Helpers::AssetTagHelper
109
- def javascript_include_tag(*sources)
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
@@ -1,3 +1,3 @@
1
1
  module Teaspoon
2
- VERSION = "1.2.1"
2
+ VERSION = "1.2.2"
3
3
  end
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.1
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.8
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'