Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix testing with Ruby 3.2 #67

Merged
merged 9 commits into from
Oct 11, 2023
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.0"
ruby-version: "3.2"
- run: bundle install
- run: bundle exec standardrb
test:
Expand All @@ -26,7 +26,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu, macos]
ruby: [2.5, 2.6, 2.7, 3.0, 3.1]
ruby: [2.5, 2.6, 2.7, "3.0", 3.1, 3.2]
arielj marked this conversation as resolved.
Show resolved Hide resolved
continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' }}
steps:
- uses: actions/checkout@v2
Expand Down
6 changes: 5 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
inherit_from: .rubocop_todo.yml
require:
- standard

inherit_gem:
standard: config/base.yml

AllCops:
NewCops: disable
59 changes: 0 additions & 59 deletions .rubocop_todo.yml

This file was deleted.

20 changes: 11 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# main [(unreleased)](https://github.com/fastruby/dotenv_validator/compare/v1.3.0...main)

* [FEATURE: Support defining validations in the .env.template file](https://github.com/fastruby/dotenv_validator/pull/65)
* [DX: Use Standardrb's config for RuboCop](https://github.com/fastruby/dotenv_validator/pull/66)
* [DX: Update GitHub Workflow to test with Ruby 3.2](https://github.com/fastruby/dotenv_validator/pull/67)

# v1.3.0 /2023-01-03 [(commits)](https://github.com/fastruby/dotenv_validator/compare/v1.2.0...v1.3.0)

Expand All @@ -14,16 +16,16 @@
* [FEATURE: Add boolean format](https://github.com/fastruby/dotenv_validator/pull/38)

# v1.1.0 /2021-09-14 [(commits)](https://github.com/fastruby/dotenv_validator/compare/v1.0.0...v1.1.0)
- [Implement overcommit + styleguide](https://github.com/fastruby/dotenv_validator/pull/18)
- [Add sponsorship section and logo to the README](https://github.com/fastruby/dotenv_validator/pull/19)
- [BUGFIX: Make sure that we properly calculate the root for the sample file](https://github.com/fastruby/dotenv_validator/pull/22)
- [BUGFIX: Added CHANGELOG doc](https://github.com/fastruby/dotenv_validator/pull/26)
- [BUGFIX: Fix string format validation](https://github.com/fastruby/dotenv_validator/pull/29)
- [Namespace the version file on the file system](https://github.com/fastruby/dotenv_validator/pull/30)
- [BUGFIX: Explicitly require "pathname" from the stdlib](https://github.com/fastruby/dotenv_validator/pull/31)
- [BUGFIX: Drop dependency on dotenv](https://github.com/fastruby/dotenv_validator/pull/32)

* [Implement overcommit + styleguide](https://github.com/fastruby/dotenv_validator/pull/18)
* [Add sponsorship section and logo to the README](https://github.com/fastruby/dotenv_validator/pull/19)
* [BUGFIX: Make sure that we properly calculate the root for the sample file](https://github.com/fastruby/dotenv_validator/pull/22)
* [BUGFIX: Added CHANGELOG doc](https://github.com/fastruby/dotenv_validator/pull/26)
* [BUGFIX: Fix string format validation](https://github.com/fastruby/dotenv_validator/pull/29)
* [Namespace the version file on the file system](https://github.com/fastruby/dotenv_validator/pull/30)
* [BUGFIX: Explicitly require "pathname" from the stdlib](https://github.com/fastruby/dotenv_validator/pull/31)
* [BUGFIX: Drop dependency on dotenv](https://github.com/fastruby/dotenv_validator/pull/32)

# v1.0.0 / 2021-07-29 [(commits)](https://github.com/fastruby/dotenv_validator/tree/v1.0.0)

* Official Release

6 changes: 3 additions & 3 deletions bin/console
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env ruby

require 'bundler/setup'
require 'dotenv_validator'
require "bundler/setup"
require "dotenv_validator"

require 'irb'
require "irb"
IRB.start(__FILE__)
4 changes: 2 additions & 2 deletions bin/setup
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env ruby

system('bundle')
system('overcommit --install')
system("bundle")
system("overcommit --install")