Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Build: update travis ruby version #1438

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.6.4
3.2.2
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
dist: xenial
language: ruby
rvm:
- "2.6.4"
- "3.2.2"

cache: bundler

Expand Down
3 changes: 2 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ source 'https://rubygems.org'
## If you update the version here, also update it in .travis.yml, .ruby-version,
## and README.md. Then push your branch and make sure Travis supports that
## version.
ruby '2.6.4'
ruby '3.2.2'

## If you add a new Gem below, run `bundle install` to install it.
group :development do
gem 'jekyll'
gem "minima", "~> 2.0" ## Default Jekyll theme
gem 'jekyll-redirect-from'
gem 'rexml', '~> 3.2.4'
end

group :testing do
Expand Down
10 changes: 6 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ GEM
addressable (>= 2.4)
kramdown (1.17.0)
liquid (4.0.0)
listen (3.1.1)
rb-fsevent (>= 0.9.3)
rb-inotify (>= 0.9.7)
listen (3.8.0)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
mdl (0.6.0)
kramdown (~> 1.12, >= 1.12.0)
mixlib-cli (~> 2.1, >= 2.1.1)
Expand All @@ -80,6 +80,7 @@ GEM
rb-fsevent (0.10.3)
rb-inotify (0.9.10)
ffi (>= 0.5.0, < 2)
rexml (3.2.6)
rouge (3.1.1)
safe_yaml (1.0.4)
sass (3.5.6)
Expand All @@ -104,7 +105,8 @@ DEPENDENCIES
json-schema
mdl
minima (~> 2.0)
rexml (~> 3.2.4)
toml

RUBY VERSION
ruby 2.6.4p104
ruby 3.2.2
4 changes: 2 additions & 2 deletions _contrib/schema-validator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
to_validate = ARGV[1]

file = File.open(schema_file, 'r')
schema = YAML.load(file)
schema = YAML.load(file, aliases: true)
file.close()

file = File.open(to_validate, 'r')
if to_validate.end_with?(".yaml") or to_validate.end_with?(".md")
document = YAML.load(file)
document = YAML.load(file, aliases: true)
elsif to_validate.end_with?(".toml")
document = TOML.load_file(file)
else
Expand Down