opal-rails 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/build.yml +4 -4
- data/Appraisals +13 -3
- data/CHANGELOG.md +8 -0
- data/Gemfile +2 -0
- data/README.md +1 -1
- data/config.ru +1 -2
- data/gemfiles/rails_6_0_opal_1_0.gemfile +1 -0
- data/gemfiles/rails_6_0_opal_1_3.gemfile +10 -0
- data/gemfiles/rails_6_0_opal_1_4.gemfile +10 -0
- data/gemfiles/rails_6_1_opal_1_0.gemfile +1 -0
- data/gemfiles/rails_6_1_opal_1_3.gemfile +10 -0
- data/gemfiles/rails_6_1_opal_1_4.gemfile +10 -0
- data/gemfiles/rails_7_0_opal_1_0.gemfile +10 -0
- data/gemfiles/rails_7_0_opal_1_3.gemfile +10 -0
- data/gemfiles/rails_7_0_opal_1_4.gemfile +10 -0
- data/lib/opal/rails/engine.rb +1 -0
- data/lib/opal/rails/version.rb +1 -1
- data/opal-rails.gemspec +1 -1
- data/spec/support/test_app.rb +1 -2
- data/test_apps/{rails6.rb → rails.rb} +0 -0
- metadata +13 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aee279d2054d467d1e1c9088a1342fe8d75e7ec2affce2504b61b9b885cdb38b
|
4
|
+
data.tar.gz: 4828f47994349fff41a915fd3e21ea7b83052b3eb1ca5c56d3b09fe77676f22d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44de5b40a2352e01fe1f830f35a79ffa4509078002bef98689fbd4827ed5e53b34b141155dddd982515debc70b018c1eece879ca2957bcbfc9c81bca9600b764
|
7
|
+
data.tar.gz: 8b89cfd6f4778b746f8977f0bb20729766603b97840b56068bfa3ad04113aa8ac9cd2859616885b226c0252dd4114e00b2053aaee828715cbcd0bf94e49b7e5e
|
data/.github/workflows/build.yml
CHANGED
@@ -12,9 +12,9 @@ jobs:
|
|
12
12
|
build:
|
13
13
|
strategy:
|
14
14
|
matrix:
|
15
|
-
ruby: ['2.
|
16
|
-
rails: ['rails_6_0', 'rails_6_1']
|
17
|
-
opal: ['opal_1_0', '
|
15
|
+
ruby: ['2.7', '3.0'] # ['3.1'] - enable once Rails 7.0.1 is released
|
16
|
+
rails: ['rails_6_0', 'rails_6_1', 'rails_7_0']
|
17
|
+
opal: ['opal_1_0', 'opal_1_3', 'opal_1_4']
|
18
18
|
runs-on: ubuntu-latest
|
19
19
|
|
20
20
|
steps:
|
@@ -24,7 +24,7 @@ jobs:
|
|
24
24
|
sudo apt-get install -y sqlite3 libsqlite3-dev
|
25
25
|
- uses: actions/checkout@v1
|
26
26
|
- name: Set up Ruby
|
27
|
-
uses:
|
27
|
+
uses: ruby/setup-ruby@v1
|
28
28
|
with:
|
29
29
|
ruby-version: ${{ matrix.ruby }}
|
30
30
|
- name: Install Dependencies
|
data/Appraisals
CHANGED
@@ -1,14 +1,19 @@
|
|
1
1
|
current_ruby = Gem::Version.new(RUBY_VERSION)
|
2
|
-
ruby_2_4_0 = Gem::Version.new('2.4.0')
|
3
2
|
ruby_2_5_0 = Gem::Version.new('2.5.0')
|
3
|
+
ruby_2_7_0 = Gem::Version.new('2.7.0')
|
4
4
|
|
5
5
|
ENV['OPAL_VERSION'] = nil # ensure the env is clean
|
6
6
|
|
7
7
|
github = -> repo_name { "https://github.com/#{repo_name}.git" }
|
8
8
|
|
9
9
|
{
|
10
|
-
|
11
|
-
gemfile.gem 'opal', '~> 1.
|
10
|
+
opal_1_4: -> gemfile do
|
11
|
+
gemfile.gem 'opal', '~> 1.4.0'
|
12
|
+
gemfile.gem 'opal-sprockets'
|
13
|
+
end,
|
14
|
+
|
15
|
+
opal_1_3: -> gemfile do
|
16
|
+
gemfile.gem 'opal', '~> 1.3.0'
|
12
17
|
gemfile.gem 'opal-sprockets'
|
13
18
|
end,
|
14
19
|
|
@@ -27,4 +32,9 @@ github = -> repo_name { "https://github.com/#{repo_name}.git" }
|
|
27
32
|
gem "rails", "~> 6.1.0"
|
28
33
|
gem_opal[self]
|
29
34
|
end if current_ruby >= ruby_2_5_0
|
35
|
+
|
36
|
+
appraise "rails_7_0_#{opal_version}" do
|
37
|
+
gem "rails", "~> 7.0.0"
|
38
|
+
gem_opal[self]
|
39
|
+
end if current_ruby >= ruby_2_7_0
|
30
40
|
end
|
data/CHANGELOG.md
CHANGED
@@ -20,6 +20,14 @@ Whitespace conventions:
|
|
20
20
|
|
21
21
|
|
22
22
|
|
23
|
+
## [2.0.2](https://github.com/opal/opal-rails/compare/v2.0.1...v2.0.2) - 2021-12-29
|
24
|
+
|
25
|
+
|
26
|
+
### Added
|
27
|
+
|
28
|
+
- Allow Rails 7
|
29
|
+
|
30
|
+
|
23
31
|
## [2.0.1](https://github.com/opal/opal-rails/compare/v2.0.0...v2.0.1) - 2021-03-03
|
24
32
|
|
25
33
|
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Opal Rails
|
2
2
|
|
3
|
-
[![Build Status](https://github.com/opal/opal-rails/workflows/
|
3
|
+
[![Build Status](https://github.com/opal/opal-rails/actions/workflows/build.yml/badge.svg)](https://github.com/opal/opal-rails/actions/workflows/build.yml)
|
4
4
|
[![Maintainability](https://api.codeclimate.com/v1/badges/31dda24adcecb836348f/maintainability)](https://codeclimate.com/github/opal/opal-rails/maintainability)
|
5
5
|
[![Gem Version](https://badge.fury.io/rb/opal-rails.svg)](http://badge.fury.io/rb/opal-rails)
|
6
6
|
![fun guaranteed](https://img.shields.io/badge/fun-guaranteed-brightgreen.svg)
|
data/config.ru
CHANGED
@@ -2,9 +2,8 @@
|
|
2
2
|
|
3
3
|
require 'bundler/setup'
|
4
4
|
require 'rails'
|
5
|
-
rails_version = Rails::VERSION::MAJOR
|
6
5
|
ENV["RAILS_ENV"] = "test"
|
7
6
|
ENV['DATABASE_URL'] = 'sqlite3::memory:'
|
8
|
-
require_relative "test_apps/rails
|
7
|
+
require_relative "test_apps/rails"
|
9
8
|
|
10
9
|
run RailsApp::Application
|
data/lib/opal/rails/engine.rb
CHANGED
data/lib/opal/rails/version.rb
CHANGED
data/opal-rails.gemspec
CHANGED
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
|
|
29
29
|
spec.executables = files.grep(%r{^exe/}) { |f| File.basename(f) }
|
30
30
|
spec.require_paths = ["lib"]
|
31
31
|
|
32
|
-
spec.add_dependency 'rails', '>= 6.0', '< 7'
|
32
|
+
spec.add_dependency 'rails', '>= 6.0', '< 7.1'
|
33
33
|
spec.add_dependency 'sprockets-rails', '>= 3.0'
|
34
34
|
|
35
35
|
spec.add_dependency 'opal', '~> 1.0'
|
data/spec/support/test_app.rb
CHANGED
File without changes
|
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: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elia Schito
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-12-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '6.0'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '7'
|
22
|
+
version: '7.1'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '6.0'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '7'
|
32
|
+
version: '7.1'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: sprockets-rails
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -213,8 +213,15 @@ files:
|
|
213
213
|
- config.ru
|
214
214
|
- gemfiles/rails_6_0_opal_1_0.gemfile
|
215
215
|
- gemfiles/rails_6_0_opal_1_1.gemfile
|
216
|
+
- gemfiles/rails_6_0_opal_1_3.gemfile
|
217
|
+
- gemfiles/rails_6_0_opal_1_4.gemfile
|
216
218
|
- gemfiles/rails_6_1_opal_1_0.gemfile
|
217
219
|
- gemfiles/rails_6_1_opal_1_1.gemfile
|
220
|
+
- gemfiles/rails_6_1_opal_1_3.gemfile
|
221
|
+
- gemfiles/rails_6_1_opal_1_4.gemfile
|
222
|
+
- gemfiles/rails_7_0_opal_1_0.gemfile
|
223
|
+
- gemfiles/rails_7_0_opal_1_3.gemfile
|
224
|
+
- gemfiles/rails_7_0_opal_1_4.gemfile
|
218
225
|
- lib/assets/javascripts/opal_ujs.js.rb
|
219
226
|
- lib/generators/opal/assets/assets_generator.rb
|
220
227
|
- lib/generators/opal/assets/templates/javascript.js.rb
|
@@ -246,7 +253,7 @@ files:
|
|
246
253
|
- test_apps/app/assets/javascripts/foo.js.rb
|
247
254
|
- test_apps/app/assets/javascripts/source_map_example.js.rb
|
248
255
|
- test_apps/app/assets/javascripts/with_assignments.js.rb
|
249
|
-
- test_apps/
|
256
|
+
- test_apps/rails.rb
|
250
257
|
homepage: https://github.com/opal/opal-rails#readme
|
251
258
|
licenses:
|
252
259
|
- MIT-LICENSE
|
@@ -269,7 +276,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
269
276
|
- !ruby/object:Gem::Version
|
270
277
|
version: '0'
|
271
278
|
requirements: []
|
272
|
-
rubygems_version: 3.2.
|
279
|
+
rubygems_version: 3.2.22
|
273
280
|
signing_key:
|
274
281
|
specification_version: 4
|
275
282
|
summary: Rails bindings for opal JS engine
|