opal-rails 2.0.1 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 165e5b957c73079681eae29566b10478bddd1bb0a959d7cc2ce772ffe5778b85
4
- data.tar.gz: 4f6dd4337a2f84796852b4ceb87e15decb2ae85afdc1c5012c1f0ab586c08e1c
3
+ metadata.gz: aee279d2054d467d1e1c9088a1342fe8d75e7ec2affce2504b61b9b885cdb38b
4
+ data.tar.gz: 4828f47994349fff41a915fd3e21ea7b83052b3eb1ca5c56d3b09fe77676f22d
5
5
  SHA512:
6
- metadata.gz: 4537a41a8f9c848acbf0a440aa1767d5f40737dca75e62e8711efd860a369a44d8c093c2d981ee759090b135b42720a35953f65a559be21fbd86c04763ed9f8d
7
- data.tar.gz: '05853c6bb0945b217118c92af19694771a3b8fe35207fe8c2ca1e4906b652808fab63beb25e0b96efdc00f1c979abfa9e1ad36864afe35ad1e58b94db0bccb58'
6
+ metadata.gz: 44de5b40a2352e01fe1f830f35a79ffa4509078002bef98689fbd4827ed5e53b34b141155dddd982515debc70b018c1eece879ca2957bcbfc9c81bca9600b764
7
+ data.tar.gz: 8b89cfd6f4778b746f8977f0bb20729766603b97840b56068bfa3ad04113aa8ac9cd2859616885b226c0252dd4114e00b2053aaee828715cbcd0bf94e49b7e5e
@@ -12,9 +12,9 @@ jobs:
12
12
  build:
13
13
  strategy:
14
14
  matrix:
15
- ruby: ['2.5.x', '2.6.x', '2.7.x', '3.0.x']
16
- rails: ['rails_6_0', 'rails_6_1']
17
- opal: ['opal_1_0', 'opal_1_1']
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: actions/setup-ruby@v1
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
- opal_1_1: -> gemfile do
11
- gemfile.gem 'opal', '~> 1.1.0'
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
@@ -12,3 +12,5 @@ when 'master'
12
12
  gem 'opal', git: github['opal/opal'], branch: :master
13
13
  gem 'opal-sprockets', git: github['opal/opal-sprockets'], branch: :master
14
14
  end
15
+
16
+ gem 'net-smtp'
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Opal Rails
2
2
 
3
- [![Build Status](https://github.com/opal/opal-rails/workflows/CI/badge.svg)](https://github.com/opal/opal-rails/actions)
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#{rails_version}"
7
+ require_relative "test_apps/rails"
9
8
 
10
9
  run RailsApp::Application
@@ -2,6 +2,7 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
+ gem "net-smtp"
5
6
  gem "rails", "~> 6.0.0"
6
7
  gem "opal", "~> 1.0.0"
7
8
  gem "opal-sprockets"
@@ -0,0 +1,10 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "net-smtp"
6
+ gem "rails", "~> 6.0.0"
7
+ gem "opal", "~> 1.3.0"
8
+ gem "opal-sprockets"
9
+
10
+ gemspec path: "../"
@@ -0,0 +1,10 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "net-smtp"
6
+ gem "rails", "~> 6.0.0"
7
+ gem "opal", "~> 1.4.0"
8
+ gem "opal-sprockets"
9
+
10
+ gemspec path: "../"
@@ -2,6 +2,7 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
+ gem "net-smtp"
5
6
  gem "rails", "~> 6.1.0"
6
7
  gem "opal", "~> 1.0.0"
7
8
  gem "opal-sprockets"
@@ -0,0 +1,10 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "net-smtp"
6
+ gem "rails", "~> 6.1.0"
7
+ gem "opal", "~> 1.3.0"
8
+ gem "opal-sprockets"
9
+
10
+ gemspec path: "../"
@@ -0,0 +1,10 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "net-smtp"
6
+ gem "rails", "~> 6.1.0"
7
+ gem "opal", "~> 1.4.0"
8
+ gem "opal-sprockets"
9
+
10
+ gemspec path: "../"
@@ -0,0 +1,10 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "net-smtp"
6
+ gem "rails", "~> 7.0.0"
7
+ gem "opal", "~> 1.0.0"
8
+ gem "opal-sprockets"
9
+
10
+ gemspec path: "../"
@@ -0,0 +1,10 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "net-smtp"
6
+ gem "rails", "~> 7.0.0"
7
+ gem "opal", "~> 1.3.0"
8
+ gem "opal-sprockets"
9
+
10
+ gemspec path: "../"
@@ -0,0 +1,10 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "net-smtp"
6
+ gem "rails", "~> 7.0.0"
7
+ gem "opal", "~> 1.4.0"
8
+ gem "opal-sprockets"
9
+
10
+ gemspec path: "../"
@@ -1,5 +1,6 @@
1
1
  require 'rails'
2
2
  require 'opal/sprockets'
3
+ require 'sprockets/railtie'
3
4
 
4
5
  module Opal
5
6
  module Rails
@@ -1,5 +1,5 @@
1
1
  module Opal
2
2
  module Rails
3
- VERSION = '2.0.1'
3
+ VERSION = '2.0.2'
4
4
  end
5
5
  end
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'
@@ -1,6 +1,5 @@
1
1
  require 'rails'
2
- rails_version = Rails::VERSION::MAJOR
3
2
  ENV["RAILS_ENV"] = "test"
4
3
  ENV['DATABASE_URL'] = 'sqlite3::memory:'
5
- require_relative "../../test_apps/rails#{rails_version}"
4
+ require_relative "../../test_apps/rails"
6
5
 
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.1
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-03-03 00:00:00.000000000 Z
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/rails6.rb
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.3
279
+ rubygems_version: 3.2.22
273
280
  signing_key:
274
281
  specification_version: 4
275
282
  summary: Rails bindings for opal JS engine