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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 65093f0e647bdf9786c1cd229c2bbfc7db912cd859e1d47540256af24627a0c9
4
- data.tar.gz: 94bbd8fd884531e9425fa4259819fc34d540b87bfd0debddac497b47eba77123
3
+ metadata.gz: 9327fdd3f720f1807ebcde09f2901c1e017615c9fa8f4f910ec6483ade3216c6
4
+ data.tar.gz: 0c014f66ab2633363b0ab40afa1b72b4e2c0f09d2e524a202ace14b61d979080
5
5
  SHA512:
6
- metadata.gz: 51159c19720500be469ca5807c47f5d7629d1038675068be11e69d7be08bc6408009754bc761f7c20ca638ff8eb186bc7e9bdf2980d089bf9b29e5060e785a95
7
- data.tar.gz: cd1c86c70fc141741999a10746c5ced7c2766371b403f3290a19df2ce4c016a58ddf3b7c443f51adc0bdd93778cde7de062d8ded4e43a8725f625719ac021dd1
6
+ metadata.gz: 7e667155ae6975139b8f1e1359733a61cf9b511e591a1663a7ed8a2b2068e9ae7be506798842f48091fd311394c7fcbed6d222c2f1f44f995d06957007adc7e9
7
+ data.tar.gz: 190642ae14e588b7875d9698f19f1c7b532858cf217d184df759b64d67bfb694d4865cd1d6c1f94915bd7ba1347d6644e081cabd43b7769af4dd4d821647bb50
@@ -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-03
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
@@ -112,8 +112,8 @@ If you want to use `application.js` (instead of `application.js.rb`) and keep us
112
112
  //= require_tree .
113
113
  //= require app
114
114
 
115
- Opal.load('opal');
116
- Opal.load('app');
115
+ Opal.require('opal');
116
+ Opal.require('app');
117
117
  ```
118
118
 
119
119
 
@@ -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)
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Opal
2
2
  module Rails
3
- VERSION = '1.0.0.rc1'
3
+ VERSION = '1.0.0'
4
4
  end
5
5
  end
@@ -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.5'
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.load("application");}
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.rc1
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-04 00:00:00.000000000 Z
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.5
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.5
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: 1.3.1
303
+ version: '0'
304
304
  requirements: []
305
305
  rubygems_version: 3.0.3
306
306
  signing_key: