Skip to content

Commit

Permalink
Merge pull request #44 from payrollhero/master
Browse files Browse the repository at this point in the history
Support for ruby 3.0
  • Loading branch information
mathieujobin authored Dec 16, 2022
2 parents 34cd0c3 + 36a411e commit e0223ac
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 24 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,24 @@ jobs:
fail-fast: false
matrix:
gemfile: ["rails-7.0.x"]
ruby: [2.7]
ruby: [3.2]
include:
- gemfile: rails-7.0.x
ruby: '3.1'
- gemfile: rails-7.0.x
ruby: '3.0'
- gemfile: rails-7.0.x
ruby: '2.7'
- gemfile: rails-6.1.x
ruby: 2.7
ruby: '3.1'
- gemfile: rails-6.1.x
ruby: '3.0'
- gemfile: rails-6.1.x
ruby: 2.6
- gemfile: rails-6.0.x
ruby: 2.7
- gemfile: rails-6.0.x
ruby: 2.6
ruby: 2.7
- gemfile: rails-5.2.x
ruby: 2.6
- gemfile: rails-5.1.x
ruby: 2.5
- gemfile: rails-5.0.x
ruby: 2.5
ruby: 2.7

env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/Gemfile.${{ matrix.gemfile }}
Expand Down
3 changes: 2 additions & 1 deletion capybara-angular.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ Gem::Specification.new do |spec|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]
spec.required_ruby_version = ">= 2.7"

spec.add_dependency 'capybara', '>= 2.5.0'

spec.add_development_dependency "bundler", "> 1.17", "< 3"
spec.add_development_dependency "rails"
spec.add_development_dependency "rails", "> 5.2", "< 7.1"
spec.add_development_dependency "rake"
spec.add_development_dependency "rspec"
spec.add_development_dependency "poltergeist"
Expand Down
5 changes: 0 additions & 5 deletions gemfiles/Gemfile.rails-5.0.x

This file was deleted.

5 changes: 0 additions & 5 deletions gemfiles/Gemfile.rails-5.1.x

This file was deleted.

4 changes: 2 additions & 2 deletions lib/capybara/angular/dsl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ module DSL
include Capybara::DSL

Capybara::Session::DSL_METHODS.each do |method|
define_method(method) do |*args, &block|
page.send(method, *args, &block)
define_method(method) do |*args, **kwargs, &block|
page.send(method, *args, **kwargs, &block)
end
end

Expand Down
2 changes: 1 addition & 1 deletion lib/capybara/angular/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Capybara
module Angular
VERSION = "0.2.6"
VERSION = "0.3.0"
end
end

0 comments on commit e0223ac

Please sign in to comment.