diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 456d865..5ec8526 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,7 +6,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest] - ruby: ['3.0', '3.1', '3.2'] + ruby: ['3.0', '3.1', '3.2', '3.3'] name: test (Ruby ${{ matrix.ruby }} on ${{ matrix.os }}) runs-on: ${{ matrix.os }} steps: diff --git a/.ruby-version b/.ruby-version index a3ec5a4..eb39e53 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -3.2 +3.3 diff --git a/CHANGELOG.md b/CHANGELOG.md index 47510cc..af49432 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ## Main -Nothing so far +#### Changes +* Add support for Ruby 3.3 ## 1.1.4 diff --git a/lib/notam/schedule.rb b/lib/notam/schedule.rb index 84143f6..a4d95fb 100644 --- a/lib/notam/schedule.rb +++ b/lib/notam/schedule.rb @@ -100,7 +100,7 @@ def parse_datetimes actives = send("#{active_unit}_from", raw_active_unit.strip) times = times_from(raw_times.strip) inactives = send("#{inactive_unit}_from", @exceptions) - if times.any? &method(:across_midnight?) + if times.any?(&method(:across_midnight?)) times.each_with_object([]) do |time, array| if across_midnight? time array << new(actives, [(time.first..AIXM::END_OF_DAY)], inactives, base_date: @base_date) diff --git a/notam.gemspec b/notam.gemspec index 02e6ad0..a2eef7d 100644 --- a/notam.gemspec +++ b/notam.gemspec @@ -40,6 +40,7 @@ Gem::Specification.new do |spec| spec.required_ruby_version = '>= 3.0.0' spec.add_runtime_dependency 'aixm', '~> 1', '>= 1.3.2' + spec.add_runtime_dependency 'bigdecimal', '~> 3' spec.add_runtime_dependency 'i18n', '~> 1' spec.add_development_dependency 'rake'