Skip to content

Commit

Permalink
Merge pull request #5 from nafg/master
Browse files Browse the repository at this point in the history
open->URI.open and add all recent ruby versions to build matrix
  • Loading branch information
ilya-lesikov authored Sep 12, 2022
2 parents bf028c0 + 5fa90ef commit 6d7e3f7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
name: Ruby

on: [push,pull_request]
on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [2.6.10, 2.7.6, 3.0.4, 3.1.2, 3.2.0-preview1]
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6.5
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run the default task
run: bundle exec rake
2 changes: 1 addition & 1 deletion lib/jekyll_include_plugin/jekyll_include_plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def get_local_file_contents(context)
def get_remote_file_contents()
begin
debug("Getting contents of specified remote file: #{@params["abs_file_url"]}")
return open(@params["abs_file_url"]).read
return URI.open(@params["abs_file_url"]).read
rescue OpenURI::HTTPError => e
abort("Can't get the contents of specified remote file '#{@params["abs_file_url"]}': #{e.message}")
end
Expand Down

0 comments on commit 6d7e3f7

Please sign in to comment.