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 +4 -4
- data/.github/workflows/build.yml +6 -3
- data/CHANGELOG.md +9 -0
- data/Gemfile +1 -1
- data/lib/opal/rspec/configuration_parser.rb +3 -2
- data/lib/opal/rspec/locator.rb +2 -1
- data/lib/opal/rspec/util.rb +15 -0
- data/lib/opal/rspec/version.rb +7 -5
- data/lib/opal/rspec.rb +0 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: daf042a48c3443b869f363a722554e1b71a3e4153f1ea6edd73562e1d0c5f6b1
|
4
|
+
data.tar.gz: 9e1db2043bedaa0c70c673a9485ecce6a99014db2b7f0eb51ec13d97c2b59d76
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c92f9b1bd05afa875b886deb5d48b81b568f5042a0d51bf82f1bbcd98c5403cc0dc69c26dc671c9fc92646adbb889771c4d1fce7e6c69fffe717f581f09be6f4
|
7
|
+
data.tar.gz: e5ec66ded2c2ed976a3234946efc8bb4b6a003d1dbc764831730bbd3de8cd348e1da1e3818b9777e5405b1cca743827b29ef96650cedd1fd4bd7d4875a8d336e
|
data/.github/workflows/build.yml
CHANGED
@@ -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.
|
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@
|
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
|
-
|
7
|
-
|
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
|
data/lib/opal/rspec/locator.rb
CHANGED
@@ -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
|
-
|
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
|
data/lib/opal/rspec/version.rb
CHANGED
@@ -1,10 +1,12 @@
|
|
1
|
+
require 'opal/rspec/util'
|
2
|
+
|
1
3
|
module Opal
|
2
4
|
module RSpec
|
3
|
-
VERSION = '1.1.0.
|
5
|
+
VERSION = '1.1.0.alpha2'
|
4
6
|
end
|
5
7
|
end
|
6
8
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
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
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.
|
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-
|
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
|