opal-sprockets 0.4.8.1.0.3.7 → 0.4.9.1.0.3.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -2
- data/lib/opal/sprockets.rb +1 -1
- data/lib/opal/sprockets/version.rb +1 -1
- data/spec/sprockets_spec.rb +2 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4219e230743e17009790fafebb6ab1ff5dc149bb1c1ef84c92818d455bd8d25f
|
4
|
+
data.tar.gz: a864f139a015e995b14013252a95734f6fb87358ce9bbf9822e53c15aa350ed9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a9bfe6e8905b81daca542ce0013e3ba00337846fd34cf9bda3e6efd31b819bf4ee70320d66e9c55518ae5c581a54a4ad8f11e6fa2c49ed93ed3124a7d201ccc
|
7
|
+
data.tar.gz: 3b16bfcda0c2742af3f9e7155be2d07084e13af2e7045477a7f0616e25987c9e7198eb15332dea624841b539411b2aa013da713ea94d523dafca4752cb2dfc1f
|
data/CHANGELOG.md
CHANGED
@@ -1,17 +1,24 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [v0.4.9](https://github.com/opal/opal-sprockets/compare/v0.4.8.1.0.3.7...v0.4.9.1.0.3.7)
|
4
|
+
|
5
|
+
*11 September 2020*
|
6
|
+
|
7
|
+
- Avoid OpalLoaded undefined when applications have no dependencies.
|
8
|
+
|
9
|
+
|
3
10
|
## [v0.4.8](https://github.com/opal/opal-sprockets/compare/v0.4.7.1.0.3.7...v0.4.8.1.0.3.7)
|
4
11
|
|
5
12
|
*14 September 2019*
|
6
13
|
|
7
|
-
- Revert the changes
|
14
|
+
- Revert the changes in 0.4.7
|
8
15
|
|
9
16
|
|
10
17
|
## [v0.4.7](https://github.com/opal/opal-sprockets/compare/v0.4.6.1.0.3.7...v0.4.7.1.0.3.7)
|
11
18
|
|
12
19
|
*14 September 2019*
|
13
20
|
|
14
|
-
- Require `opal/sprockets`
|
21
|
+
- Require `opal/sprockets` before calling `Opal::Sprockets.loaded_asset`
|
15
22
|
|
16
23
|
|
17
24
|
## [v0.4.6](https://github.com/opal/opal-sprockets/compare/v0.4.5.1.0.3.7...v0.4.6.1.0.3.7)
|
data/lib/opal/sprockets.rb
CHANGED
@@ -32,7 +32,7 @@ module Opal
|
|
32
32
|
names = names.map { |name| name.sub(/(\.(js|rb|opal))*\z/, '') }
|
33
33
|
stubbed = ::Opal::Config.stubbed_files.to_a
|
34
34
|
|
35
|
-
loaded = 'OpalLoaded
|
35
|
+
loaded = 'typeof(OpalLoaded) === "undefined" ? [] : OpalLoaded'
|
36
36
|
loaded = "#{stubbed.to_json}.concat(#{loaded})" if stubbed.any?
|
37
37
|
|
38
38
|
[
|
data/spec/sprockets_spec.rb
CHANGED
@@ -15,7 +15,7 @@ describe Opal::Sprockets do
|
|
15
15
|
allow(Opal::Config).to receive(:stubbed_files) { %w[foo bar] }
|
16
16
|
|
17
17
|
code = described_class.load_asset('baz')
|
18
|
-
expect(code).to include(
|
18
|
+
expect(code).to include(%{Opal.loaded(["foo","bar"].concat(typeof(OpalLoaded) === "undefined" ? [] : OpalLoaded));})
|
19
19
|
expect(code).to include('Opal.require("baz");')
|
20
20
|
end
|
21
21
|
|
@@ -42,7 +42,7 @@ describe Opal::Sprockets do
|
|
42
42
|
it 'detects deprecated env with multiple names' do
|
43
43
|
code = described_class.load_asset('foo', 'bar', env)
|
44
44
|
expect(code).to eq([
|
45
|
-
'Opal.loaded(OpalLoaded
|
45
|
+
'Opal.loaded(typeof(OpalLoaded) === "undefined" ? [] : OpalLoaded);',
|
46
46
|
'Opal.require("foo");',
|
47
47
|
'Opal.require("bar");',
|
48
48
|
].join("\n"))
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opal-sprockets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.9.1.0.3.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elia Schito
|
8
8
|
- Adam Beynon
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2020-09-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sprockets
|
@@ -162,7 +162,7 @@ files:
|
|
162
162
|
homepage: https://github.com/opal/opal-sprockets#readme
|
163
163
|
licenses: []
|
164
164
|
metadata: {}
|
165
|
-
post_install_message:
|
165
|
+
post_install_message:
|
166
166
|
rdoc_options: []
|
167
167
|
require_paths:
|
168
168
|
- lib
|
@@ -177,8 +177,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
177
177
|
- !ruby/object:Gem::Version
|
178
178
|
version: '0'
|
179
179
|
requirements: []
|
180
|
-
rubygems_version: 3.
|
181
|
-
signing_key:
|
180
|
+
rubygems_version: 3.1.2
|
181
|
+
signing_key:
|
182
182
|
specification_version: 4
|
183
183
|
summary: Sprockets support for Opal.
|
184
184
|
test_files:
|