Skip to content

Commit

Permalink
Merge pull request #1 from windyakin/development
Browse files Browse the repository at this point in the history
Support Ruby v3.0.0
  • Loading branch information
windyakin authored Jan 25, 2021
2 parents 472fa3d + 05b29e5 commit 2ceef61
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 26 deletions.
29 changes: 8 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,35 +8,22 @@ jobs:
rspec:
runs-on: ubuntu-latest
strategy:
fail-fast: true
fail-fast: false
matrix:
ruby-version:
- 2.5
- 2.6
- 2.7
- "2.5"
- "2.6"
- "2.7"
- "3.0"

steps:
- uses: actions/checkout@v2

- uses: actions/cache@v1
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('api/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Setup Ruby v${{ matrix.ruby-version }}
uses: actions/setup-ruby@v1
uses: ruby/setup-ruby@v1
with:
ruby_version: ${{ matrix.ruby-version }}

- name: Install bundler
run: gem install bundler -v "~> 1.17"

- name: Execute bundle install
run: |
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true

- name: Run rspec
run: bundle exec rspec --format documentation
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Set up Ruby 2.6
- name: Set up Ruby 2.7
uses: actions/setup-ruby@v1
with:
- 2.6
ruby-version: 2.7

- name: Publish to RubyGems
env:
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
awesome_fluent_logger (0.1.0)
awesome_fluent_logger (1.0.0)
fluent-logger (~> 0.9)

GEM
Expand Down
4 changes: 2 additions & 2 deletions lib/awesome_fluent_logger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
require 'awesome_fluent_logger/formatter'

module AwesomeFluentLogger
def self.new(*args)
AwesomeFluentLogger::Logger.new(*args)
def self.new(**args)
AwesomeFluentLogger::Logger.new(**args)
end
class FluentConnectionError < StandardError; end
end

0 comments on commit 2ceef61

Please sign in to comment.