Skip to content

Commit

Permalink
test with ruby 3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
bodrovis committed Nov 21, 2023
1 parent d64f107 commit 6312f85
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
- '3.0'
- 3.1
- 3.2
- '3.3.0-preview3'
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
Expand All @@ -25,4 +26,6 @@ jobs:
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run: bundle exec rake rubospec
- run: bundle exec rake rubospec
- name: Coveralls
uses: coverallsapp/github-action@v2
5 changes: 4 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,7 @@ RSpec/ExampleLength:
Max: 35

RSpec/MessageSpies:
EnforcedStyle: have_received
EnforcedStyle: have_received

Gemspec/DevelopmentDependencies:
EnforcedStyle: gemspec
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
![Gem](https://img.shields.io/gem/v/fun_translations)
![CI](https://github.com/bodrovis/fun_translations/actions/workflows/ci.yml/badge.svg)
![Downloads total](https://img.shields.io/gem/dt/fun_translations)
[![Maintainability](https://api.codeclimate.com/v1/badges/6ec16854cfb5d7e4df17/maintainability)](https://codeclimate.com/github/bodrovis/fun_translations/maintainability)

This is a Ruby client that enables you to easily perform translations using [FunTranslations API](https://api.funtranslations.com/).

Expand Down
3 changes: 2 additions & 1 deletion fun_translations.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'rubocop-performance', '~> 1.5'
spec.add_development_dependency 'rubocop-rake', '~> 0.6'
spec.add_development_dependency 'rubocop-rspec', '~> 2.0'
spec.add_development_dependency 'simplecov', '~> 0.16'
spec.add_development_dependency 'simplecov', '~> 0.22'
spec.add_development_dependency 'simplecov-lcov', '~> 0.8'
spec.add_development_dependency 'webmock', '~> 3.14'

spec.metadata = {
Expand Down
11 changes: 11 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@
require 'webmock/rspec'

SimpleCov.start do
if ENV['CI']
require 'simplecov-lcov'

SimpleCov::Formatter::LcovFormatter.config do |c|
c.report_with_single_file = true
c.single_report_path = 'coverage/lcov.info'
end

formatter SimpleCov::Formatter::LcovFormatter
end

add_filter 'spec/'
add_filter '.github/'
end
Expand Down

0 comments on commit 6312f85

Please sign in to comment.