opal-rspec 1.1.0.alpha1 → 1.1.0.alpha2

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: 95ab0afeb6b8db964c718d2716cd7b4f91cf022dc38eb33b7271219a7f277e8d
4
- data.tar.gz: c256b94c07aae78d0fab3407aad4cadc5f23f2d60662551056e1c65ad70d4a20
3
+ metadata.gz: daf042a48c3443b869f363a722554e1b71a3e4153f1ea6edd73562e1d0c5f6b1
4
+ data.tar.gz: 9e1db2043bedaa0c70c673a9485ecce6a99014db2b7f0eb51ec13d97c2b59d76
5
5
  SHA512:
6
- metadata.gz: 0567fb3f9293fbcafa0c6990dcdfb36bf2e40936ff75b6f8879a798628c3a9384842e95da555851a9ff9abb876409d148434e066e8071bd62a525670760ed914
7
- data.tar.gz: 0ee3ad1ace7524f5daf1025a7671309d23905bd9f6f87c280a297b8817c4292943a6a773cbe7c4dd208cf70836b5f197e2cec95924912880b13119136bc64419
6
+ metadata.gz: c92f9b1bd05afa875b886deb5d48b81b568f5042a0d51bf82f1bbcd98c5403cc0dc69c26dc671c9fc92646adbb889771c4d1fce7e6c69fffe717f581f09be6f4
7
+ data.tar.gz: e5ec66ded2c2ed976a3234946efc8bb4b6a003d1dbc764831730bbd3de8cd348e1da1e3818b9777e5405b1cca743827b29ef96650cedd1fd4bd7d4875a8d336e
@@ -13,10 +13,11 @@ on:
13
13
  jobs:
14
14
  build:
15
15
  strategy:
16
+ fail-fast: false
16
17
  matrix:
17
18
  os: [ 'ubuntu-latest' ]
18
- ruby: [ ruby-head, 3.1, "3.0", 2.7 ]
19
- opal: [ master, 1.6, 1.7 ]
19
+ ruby: [ ruby-head, 3.2, 3.1, "3.0", 2.7 ]
20
+ opal: [ master, 1.7, 1.8 ]
20
21
 
21
22
  runs-on: ${{ matrix.os }}
22
23
 
@@ -24,7 +25,9 @@ jobs:
24
25
  OPAL_VERSION: ${{ matrix.opal }}
25
26
 
26
27
  steps:
27
- - uses: actions/checkout@v2
28
+ - uses: actions/checkout@v4
29
+ with:
30
+ submodules: true
28
31
  - uses: ruby/setup-ruby@v1
29
32
  with:
30
33
  ruby-version: ${{ matrix.ruby }}
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Opal-RSpec Changelog
2
2
 
3
+ ## 1.1.0.alpha2 - 2023-09-20
4
+
5
+ - Drop advertised support for Opal v1.6
6
+
7
+ - Fix support for Ruby 2.7+
8
+
9
+ - Drop requirement of Opal-Sprockets
10
+
11
+
3
12
  ## 1.1.0.alpha1 - 2023-09-16
4
13
 
5
14
  - Support Opal headless browser runners
data/Gemfile CHANGED
@@ -18,7 +18,7 @@ case ENV['OPAL_VERSION']
18
18
  when 'local'
19
19
  gem 'opal', path: '../opal'
20
20
  when /^[0-9]/
21
- gem 'opal', ENV['OPAL_VERSION']
21
+ gem 'opal', "~> #{ENV['OPAL_VERSION']}.0a"
22
22
  when String
23
23
  gem 'opal', git: 'https://github.com/opal/opal.git', branch: ENV['OPAL_VERSION']
24
24
  end
@@ -1,10 +1,11 @@
1
+ require 'opal/rspec/util'
1
2
  require 'optparse'
2
3
 
3
4
  module Opal; module RSpec; module Core; end; end; end
4
5
  # Load necessary files under Opal's namespace, so as not to conflict with RSpec if it's being loaded too.
5
6
  # Later, we will monkey-patch those methods.
6
- load __dir__ + "/../../../rspec-core/upstream/lib/rspec/core/invocations.rb", ::Opal
7
- load __dir__ + "/../../../rspec-core/upstream/lib/rspec/core/option_parser.rb", ::Opal
7
+ ::Opal::RSpec.load_namespaced __dir__ + "/../../../rspec-core/upstream/lib/rspec/core/invocations.rb", ::Opal
8
+ ::Opal::RSpec.load_namespaced __dir__ + "/../../../rspec-core/upstream/lib/rspec/core/option_parser.rb", ::Opal
8
9
 
9
10
  class Opal::RSpec::Core::Parser
10
11
  alias parser_before_opal parser
@@ -1,8 +1,9 @@
1
+ require 'opal/rspec/util'
1
2
  require 'pathname'
2
3
  require 'rake'
3
4
  # require the bundled RSpec's file and don't rely on the load path in case opal-rspec is included in a project's
4
5
  # Gemfile without rspec also being in the Gemfile
5
- load __dir__+'/../../../rspec-core/upstream/lib/rspec/core/ruby_project.rb', ::Opal
6
+ ::Opal::RSpec.load_namespaced __dir__+'/../../../rspec-core/upstream/lib/rspec/core/ruby_project.rb', ::Opal
6
7
 
7
8
  module Opal
8
9
  module RSpec
@@ -0,0 +1,15 @@
1
+ module ::Opal
2
+ module RSpec
3
+ def self.load_namespaced(file, mod)
4
+ if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("3.1")
5
+ load file, mod
6
+ else
7
+ str = ""
8
+ str += "module ::#{mod.name};"
9
+ str += File.read(file)
10
+ str += ";end"
11
+ eval(str)
12
+ end
13
+ end
14
+ end
15
+ end
@@ -1,10 +1,12 @@
1
+ require 'opal/rspec/util'
2
+
1
3
  module Opal
2
4
  module RSpec
3
- VERSION = '1.1.0.alpha1'
5
+ VERSION = '1.1.0.alpha2'
4
6
  end
5
7
  end
6
8
 
7
- load __dir__ + "/../../../rspec-core/upstream/lib/rspec/core/version.rb", ::Opal
8
- load __dir__ + "/../../../rspec-expectations/upstream/lib/rspec/expectations/version.rb", ::Opal
9
- load __dir__ + "/../../../rspec-mocks/upstream/lib/rspec/mocks/version.rb", ::Opal
10
- load __dir__ + "/../../../rspec-support/upstream/lib/rspec/support/version.rb", ::Opal
9
+ ::Opal::RSpec.load_namespaced __dir__ + "/../../../rspec-core/upstream/lib/rspec/core/version.rb", ::Opal
10
+ ::Opal::RSpec.load_namespaced __dir__ + "/../../../rspec-expectations/upstream/lib/rspec/expectations/version.rb", ::Opal
11
+ ::Opal::RSpec.load_namespaced __dir__ + "/../../../rspec-mocks/upstream/lib/rspec/mocks/version.rb", ::Opal
12
+ ::Opal::RSpec.load_namespaced __dir__ + "/../../../rspec-support/upstream/lib/rspec/support/version.rb", ::Opal
data/lib/opal/rspec.rb CHANGED
@@ -1,5 +1,4 @@
1
1
  require 'opal'
2
- require 'opal-sprockets'
3
2
  require 'opal/rspec/version'
4
3
  require 'opal/rspec/runner'
5
4
  require 'opal/rspec/configuration_parser'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opal-rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0.alpha1
4
+ version: 1.1.0.alpha2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Beynon
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2023-09-15 00:00:00.000000000 Z
13
+ date: 2023-09-20 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: opal
@@ -303,6 +303,7 @@ files:
303
303
  - lib/opal/rspec/runner.rb
304
304
  - lib/opal/rspec/sprockets.rb
305
305
  - lib/opal/rspec/sprockets_environment.rb
306
+ - lib/opal/rspec/util.rb
306
307
  - lib/opal/rspec/version.rb
307
308
  - opal-rspec.gemspec
308
309
  - rspec-core/upstream/.document