-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
186 additions
and
296 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
source "https://rubygems.org" | ||
|
||
gemspec path: '../..' | ||
|
||
group :test do | ||
gem "database_cleaner", ">= 1.5" | ||
end | ||
|
||
group :test, :development do | ||
gem "pry" | ||
gem "pry-byebug", "3.7.0" | ||
gem "rails", "4.2.0" | ||
gem "rake", ">= 10" | ||
gem "rubocop", "0.81.0" | ||
gem "sqlite3", "~> 1.3.6" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
source "https://rubygems.org" | ||
|
||
gemspec path: '../..' | ||
|
||
group :test do | ||
gem "database_cleaner", ">= 1.5" | ||
end | ||
|
||
group :test, :development do | ||
gem "pry" | ||
gem "pry-byebug" | ||
gem "rails", "~> 6.0" | ||
gem "rake", ">= 10" | ||
gem "rubocop" | ||
gem "sqlite3", "~> 1.4.0" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
source "https://rubygems.org" | ||
|
||
gemspec path: '../..' | ||
|
||
group :test do | ||
gem "database_cleaner", ">= 1.5" | ||
end | ||
|
||
group :test, :development do | ||
gem "pry" | ||
gem "pry-byebug" | ||
gem "rails", "~> 7.1.0" | ||
gem "rake", ">= 10" | ||
gem "rubocop" | ||
gem "sqlite3", "~> 1.6" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: Check the code | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
defaults: | ||
run: | ||
shell: bash | ||
jobs: | ||
lint: | ||
name: lint (ruby 3.2, rails 7.1) | ||
runs-on: ubuntu-latest | ||
env: | ||
BUNDLE_GEMFILE: ${{ github.workspace }}/.github/gemfiles/rails_7.1.gemfile | ||
BUNDLE_RETRY: 1 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: '3.2' | ||
bundler-cache: true | ||
- run: bundle exec rubocop | ||
|
||
test-legacy: | ||
name: test (ruby 2.3, rails 4.2) | ||
runs-on: ubuntu-latest | ||
env: | ||
BUNDLER_VERSION: '1.17.3' | ||
BUNDLE_GEMFILE: ${{ github.workspace }}/.github/gemfiles/rails_4.2.gemfile | ||
BUNDLE_RETRY: 1 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 2.3 | ||
rubygems: 3.2.3 | ||
bundler: 1 | ||
bundler-cache: true | ||
- run: bundle exec rake | ||
|
||
test: | ||
name: test (ruby ${{ matrix.ruby }}, rails ${{ matrix.rails }}) | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ruby: ['3.2'] | ||
rails: ['6.0', '7.1'] | ||
env: | ||
BUNDLE_GEMFILE: ${{ github.workspace }}/.github/gemfiles/rails_${{ matrix.rails }}.gemfile | ||
BUNDLE_RETRY: 1 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
bundler-cache: true | ||
- run: bundle exec rake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: Release a new version | ||
on: | ||
release: | ||
types: [created] | ||
jobs: | ||
release: | ||
name: Publish new version on RubyGems | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: cadwallion/publish-rubygems-action@master | ||
env: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
RUBYGEMS_API_KEY: ${{secrets.PUSH_RSPEC_SQLIMIT}} | ||
RELEASE_COMMAND: rake release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
source "https://rubygems.org" | ||
|
||
# Specify your gem's dependencies in tram-form.gemspec | ||
gemspec | ||
|
||
gem "rails" | ||
gem "sqlite3" | ||
group :test do | ||
gem "database_cleaner", ">= 1.5" | ||
end | ||
|
||
group :test, :development do | ||
gem "pry" | ||
gem "pry-byebug" | ||
gem "rails" | ||
gem "rake", ">= 10" | ||
gem "rubocop" | ||
gem "sqlite3", ">= 1.3" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.