Skip to content

Commit 737883f

Browse files
Merge pull request #15 from mixigroup/rb32
Support Ruby 3.2
2 parents fcd2fe7 + 81ac7cd commit 737883f

File tree

3 files changed

+28
-1
lines changed

3 files changed

+28
-1
lines changed

.github/workflows/test.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Exec Rspec
2+
on: [push]
3+
4+
jobs:
5+
test:
6+
strategy:
7+
fail-fast: false
8+
matrix:
9+
ruby_version:
10+
- 3.0
11+
- 3.1
12+
- 3.2
13+
runs-on: ubuntu-22.04
14+
steps:
15+
- name: Check out repository code
16+
uses: actions/checkout@v4
17+
- name: Set up Ruby
18+
uses: ruby/setup-ruby@v1
19+
with:
20+
ruby-version: '${{ matrix.ruby_version }}'
21+
bundler: latest
22+
bundler-cache: true
23+
- name: Run sample
24+
run: bundle exec ruby example/sample.rb
25+
- name: Run RSpec
26+
run: RUBYOPT='-W:deprecated' bundle exec rspec spec

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@
1212
*.o
1313
*.a
1414
mkmf.log
15+
.ruby-version

lib/server_settings.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def load_config_dir(pattern)
5656
end
5757

5858
def load_from_yaml(yaml)
59-
config = YAML.load(yaml)
59+
config = YAML.safe_load(yaml, permitted_classes: [Symbol], aliases: true)
6060
config.each do |role, config|
6161
instance << role_klass(config).new(role, config)
6262
end

0 commit comments

Comments
 (0)