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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 32cc3541ac1bf417b866dbc4e04e9b4b7350a56d221ec84fee5169e9b71c4055
4
- data.tar.gz: dc897b85cf64bf64260f1dca10957e9ed497f42874b68ed07afde8062d8cc570
3
+ metadata.gz: 4219e230743e17009790fafebb6ab1ff5dc149bb1c1ef84c92818d455bd8d25f
4
+ data.tar.gz: a864f139a015e995b14013252a95734f6fb87358ce9bbf9822e53c15aa350ed9
5
5
  SHA512:
6
- metadata.gz: 00e6eb0a3d654ee06e402b709cf42e07ca564b5ce022a1a48d890f2857ed8f3e21d7c52e4da267875c01cff39c61dc390273befa61808c2297b881dedb0a7023
7
- data.tar.gz: d9b6e27b3638d71debdfe7cdcec7e4200f104adad4c1452cf49871444be5f3c952ce9b5103f6a1386673e310b1a5275b56fc71c1d6ad4b3a47a37331e02a9def
6
+ metadata.gz: 7a9bfe6e8905b81daca542ce0013e3ba00337846fd34cf9bda3e6efd31b819bf4ee70320d66e9c55518ae5c581a54a4ad8f11e6fa2c49ed93ed3124a7d201ccc
7
+ data.tar.gz: 3b16bfcda0c2742af3f9e7155be2d07084e13af2e7045477a7f0616e25987c9e7198eb15332dea624841b539411b2aa013da713ea94d523dafca4752cb2dfc1f
@@ -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 ih
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` befor calling `Opal::Sprockets.loaded_asset`
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)
@@ -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
  [
@@ -1,6 +1,6 @@
1
1
  module Opal
2
2
  module Sprockets
3
- BASE_VERSION = '0.4.8'
3
+ BASE_VERSION = '0.4.9'
4
4
  OPAL_VERSION = '1.0.0'
5
5
  SPROCKETS_VERSION = '3.7'
6
6
 
@@ -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('Opal.loaded(["foo","bar"].concat(OpalLoaded || []));')
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.8.1.0.3.7
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: 2019-09-14 00:00:00.000000000 Z
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.0.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: