Skip to content

Commit

Permalink
Fix last argument as keyword parameter error
Browse files Browse the repository at this point in the history
- This deprecation was added in [ruby 2.7](https://www.ruby-lang.org/en/news/2019/12/12/separation-of-positional-and-keyword-arguments-in-ruby-3-0/)
- Add ruby 2.7.1 to travis ci
  • Loading branch information
andyklimczak committed Aug 18, 2020
1 parent 5992a3e commit 667cbcb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ rvm:
- "2.4.6"
- "2.5.5"
- "2.6.3"
- "2.7.1"
gemfile:
- gemfiles/rails4.2.gemfile
- gemfiles/rails5.2.gemfile
Expand Down
2 changes: 1 addition & 1 deletion lib/tiddle.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

module Tiddle
def self.create_and_return_token(resource, request, options = {})
TokenIssuer.build.create_and_return_token(resource, request, options)
TokenIssuer.build.create_and_return_token(resource, request, **options)
end

def self.expire_token(resource, request)
Expand Down
1 change: 0 additions & 1 deletion tiddle.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ Gem::Specification.new do |spec|

spec.add_dependency "devise", ">= 4.0.0.rc1", "< 5"
spec.add_dependency "activerecord", ">= 4.2.0"
spec.add_development_dependency "bundler", "~> 1.7"
spec.add_development_dependency "rake", "~> 12.0"
spec.add_development_dependency "rspec-rails"
spec.add_development_dependency "appraisal"
Expand Down

0 comments on commit 667cbcb

Please sign in to comment.