From ada80d65b72913510dd3ff18e1f3068f8ef18882 Mon Sep 17 00:00:00 2001 From: hkjasf687261gh Date: Sat, 17 Jun 2023 13:09:59 +1000 Subject: [PATCH] Add Ruby 3.2 Support --- .github/workflows/ci.yml | 2 +- lib/gtfs/source.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5c8cfaf..f69d6a0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,7 @@ jobs: strategy: matrix: - ruby-version: ['2.7', '3.0', '3.1'] + ruby-version: ['2.7', '3.0', '3.1', '3.2'] steps: - uses: actions/checkout@v2 diff --git a/lib/gtfs/source.rb b/lib/gtfs/source.rb index 9ea3d5f..88996d0 100644 --- a/lib/gtfs/source.rb +++ b/lib/gtfs/source.rb @@ -46,7 +46,7 @@ def load_archive(source) end def self.build(data_root, opts={}) - if File.exists?(data_root) + if File.exist?(data_root) src = LocalSource.new(data_root, opts) else src = URLSource.new(data_root, opts)