opal-rails 1.0.0.rc1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -1
- data/README.md +2 -2
- data/app/helpers/opal_helper.rb +1 -1
- data/lib/opal/rails/engine.rb +0 -13
- data/lib/opal/rails/version.rb +1 -1
- data/opal-rails.gemspec +1 -1
- data/spec/helpers/opal_helper_spec.rb +1 -1
- 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: 9327fdd3f720f1807ebcde09f2901c1e017615c9fa8f4f910ec6483ade3216c6
|
4
|
+
data.tar.gz: 0c014f66ab2633363b0ab40afa1b72b4e2c0f09d2e524a202ace14b61d979080
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e667155ae6975139b8f1e1359733a61cf9b511e591a1663a7ed8a2b2068e9ae7be506798842f48091fd311394c7fcbed6d222c2f1f44f995d06957007adc7e9
|
7
|
+
data.tar.gz: 190642ae14e588b7875d9698f19f1c7b532858cf217d184df759b64d67bfb694d4865cd1d6c1f94915bd7ba1347d6644e081cabd43b7769af4dd4d821647bb50
|
data/CHANGELOG.md
CHANGED
@@ -21,16 +21,26 @@ Whitespace conventions:
|
|
21
21
|
|
22
22
|
|
23
23
|
|
24
|
-
## [1.0.0](https://github.com/opal/opal-rails/compare/v0.9.5...v1.0.0) - 2019-07-
|
24
|
+
## [1.0.0](https://github.com/opal/opal-rails/compare/v0.9.5...v1.0.0) - 2019-07-31
|
25
|
+
|
25
26
|
|
26
27
|
### Added
|
27
28
|
|
28
29
|
- Added support for Opal v1.0.0
|
29
30
|
|
31
|
+
|
30
32
|
### Removed
|
31
33
|
|
32
34
|
- Removed support for Opal v0.11
|
33
35
|
- Removed support for Rails v4.2 and v5.0
|
36
|
+
- Remove now unused code supporting the source-maps server which has been removed since Opal::Sprockets v0.4.2
|
37
|
+
|
38
|
+
|
39
|
+
### Fixed
|
40
|
+
|
41
|
+
- Allow Opal loading to run before the runtime, where previously would have ended up in an error
|
42
|
+
- A typo was preventing source-maps from being served on older versions of Opal
|
43
|
+
|
34
44
|
|
35
45
|
|
36
46
|
## [0.9.5](https://github.com/opal/opal-rails/compare/v0.9.4...v0.9.5) - 2018-09-07
|
data/README.md
CHANGED
data/app/helpers/opal_helper.rb
CHANGED
@@ -19,7 +19,7 @@ module OpalHelper
|
|
19
19
|
script_tags = "".html_safe
|
20
20
|
sources.each do |source|
|
21
21
|
load_asset_code = Opal::Sprockets.load_asset(source)
|
22
|
-
loading_code = "if(Opal.modules[#{source.to_json}]){#{load_asset_code}}"
|
22
|
+
loading_code = "if(window.Opal && Opal.modules[#{source.to_json}]){#{load_asset_code}}"
|
23
23
|
|
24
24
|
if skip_onload
|
25
25
|
script_tags << super(source, options)
|
data/lib/opal/rails/engine.rb
CHANGED
@@ -33,19 +33,6 @@ module Opal
|
|
33
33
|
key = "#{key}="
|
34
34
|
Opal::Config.send(key, value) if Opal::Config.respond_to? key
|
35
35
|
end
|
36
|
-
|
37
|
-
if defined?(Opa::SourceMapServer)
|
38
|
-
app.routes.prepend do
|
39
|
-
if Opal::Config.source_map_enabled && config.assets.compile && config.assets.debug
|
40
|
-
maps_prefix = '/__OPAL_SOURCE_MAPS__'
|
41
|
-
maps_app = Opal::SourceMapServer.new(app.assets, maps_prefix)
|
42
|
-
|
43
|
-
::Opal::Sprockets::SourceMapHeaderPatch.inject!(maps_prefix)
|
44
|
-
|
45
|
-
mount maps_app => maps_prefix
|
46
|
-
end
|
47
|
-
end
|
48
|
-
end
|
49
36
|
end
|
50
37
|
|
51
38
|
end
|
data/lib/opal/rails/version.rb
CHANGED
data/opal-rails.gemspec
CHANGED
@@ -27,7 +27,7 @@ Gem::Specification.new do |s|
|
|
27
27
|
|
28
28
|
s.add_dependency 'opal', '~> 1.0.0'
|
29
29
|
s.add_dependency 'opal-jquery', '~> 0.4.4'
|
30
|
-
s.add_dependency 'opal-sprockets', '~> 0.4.
|
30
|
+
s.add_dependency 'opal-sprockets', '~> 0.4.6'
|
31
31
|
s.add_dependency 'opal-activesupport', '>= 0.0.5'
|
32
32
|
|
33
33
|
s.add_development_dependency 'execjs'
|
@@ -20,7 +20,7 @@ describe OpalHelper, type: :helper do
|
|
20
20
|
# sprockets-rails v3 sets Rails.application.assets to nil in production mode
|
21
21
|
allow(Rails.application).to receive(:assets).and_return(nil)
|
22
22
|
|
23
|
-
loading_code = %Q{Opal.
|
23
|
+
loading_code = %Q{Opal.require("application");}
|
24
24
|
escaped_loading_code = ERB::Util.h loading_code
|
25
25
|
|
26
26
|
expect(helper.javascript_include_tag('application', debug: true)).to include(escaped_loading_code)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opal-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elia Schito
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-07-
|
11
|
+
date: 2019-07-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -98,14 +98,14 @@ dependencies:
|
|
98
98
|
requirements:
|
99
99
|
- - "~>"
|
100
100
|
- !ruby/object:Gem::Version
|
101
|
-
version: 0.4.
|
101
|
+
version: 0.4.6
|
102
102
|
type: :runtime
|
103
103
|
prerelease: false
|
104
104
|
version_requirements: !ruby/object:Gem::Requirement
|
105
105
|
requirements:
|
106
106
|
- - "~>"
|
107
107
|
- !ruby/object:Gem::Version
|
108
|
-
version: 0.4.
|
108
|
+
version: 0.4.6
|
109
109
|
- !ruby/object:Gem::Dependency
|
110
110
|
name: opal-activesupport
|
111
111
|
requirement: !ruby/object:Gem::Requirement
|
@@ -298,9 +298,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
298
298
|
version: '0'
|
299
299
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
300
300
|
requirements:
|
301
|
-
- - "
|
301
|
+
- - ">="
|
302
302
|
- !ruby/object:Gem::Version
|
303
|
-
version:
|
303
|
+
version: '0'
|
304
304
|
requirements: []
|
305
305
|
rubygems_version: 3.0.3
|
306
306
|
signing_key:
|