Skip to content

Commit 6b60516

Browse files
committed
Don't install secryst group if ruby < 2.7l
1 parent 3a37bf9 commit 6b60516

File tree

4 files changed

+26
-10
lines changed

4 files changed

+26
-10
lines changed

.github/workflows/rake.yml

+16-5
Original file line numberDiff line numberDiff line change
@@ -19,28 +19,39 @@ jobs:
1919
strategy:
2020
fail-fast: false
2121
matrix:
22-
ruby: [ '2.7', '2.6', '2.5', '2.4' ]
22+
ruby: [ 2.7, 2.6, 2.5, 2.4 ]
2323
os: [ ubuntu-latest, windows-latest, macos-latest ]
2424
experimental: [ false ]
2525
include:
26-
- ruby: '3.0'
26+
- ruby: 3.0
2727
os: 'ubuntu-latest'
2828
experimental: true
29-
- ruby: '3.0'
29+
- ruby: 3.0
3030
os: 'windows-latest'
3131
experimental: true
32-
- ruby: '3.0'
32+
- ruby: 3.0
3333
os: 'macos-latest'
3434
experimental: true
35+
36+
env:
37+
BUNDLE_WITHOUT: "secryst"
38+
3539
steps:
3640
- uses: actions/checkout@v2
3741
with:
3842
submodules: true
3943

44+
- uses: actions/setup-node@v2
45+
with:
46+
node-version: '15'
47+
48+
- if: matrix.os == 'macos-latest'
49+
run: brew install automake autoconf
50+
4051
- uses: ruby/setup-ruby@v1
4152
with:
4253
ruby-version: ${{ matrix.ruby }}
4354
bundler-cache: true
4455
working-directory: ./ruby
4556

46-
- run: bundle exec rake
57+
- run: bundle exec rspec -f f

ruby/Gemfile

+7-5
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,13 @@ gem "rspec", "~> 3.0"
88

99
gem "interscript-maps", path: "../maps"
1010

11-
group :secryst do
12-
if File.exist? "../../secryst"
13-
gem "secryst", path: "../../secryst"
14-
else
15-
gem "secryst"
11+
unless Gem::Version.new(RUBY_VERSION) < Gem::Version.new("2.7")
12+
group :secryst do
13+
if File.exist? "../../secryst"
14+
gem "secryst", path: "../../secryst"
15+
else
16+
gem "secryst"
17+
end
1618
end
1719
end
1820

ruby/interscript.gemspec

+2
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,6 @@ Gem::Specification.new do |spec|
2828

2929
spec.add_dependency "thor"
3030
spec.add_dependency "interscript-maps"
31+
32+
spec.add_development_dependency "rspec", "~> 3.0"
3133
end

ruby/requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
torch

0 commit comments

Comments
 (0)