-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Release 1.1.9
- Loading branch information
Showing
12 changed files
with
108 additions
and
134 deletions.
There are no files selected for viewing
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,63 @@ | ||
name: Test | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
test: | ||
services: | ||
postgres: | ||
image: postgres | ||
env: | ||
POSTGRES_PASSWORD: postgres | ||
POSTGRES_DB: pg_ltree_test | ||
ports: | ||
- 5432:5432 | ||
options: >- | ||
--health-cmd pg_isready | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 5 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ruby: | ||
- '3.1' | ||
- '3.0' | ||
- '2.7' | ||
- '2.5' | ||
|
||
runs-on: ubuntu-latest | ||
|
||
env: | ||
BUNDLE_GEMFILE: ${{ matrix.gemfile }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
|
||
- name: Cache gems | ||
uses: actions/cache@v2 | ||
with: | ||
path: vendor/bundle | ||
key: ${{ runner.os }}-${{ matrix.ruby }}-gem-${{ hashFiles('**/Gemfile.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-${{ matrix.ruby }}-gem- | ||
- name: Install dependencies | ||
run: | | ||
gem update --system | ||
gem install bundler | ||
bundle config path vendor/bundle | ||
bundle install --jobs 4 --retry 3 | ||
bundle exec appraisal install | ||
- name: Setup DB | ||
run: cp test/database.yml.sample test/database.yml | ||
|
||
- name: Run tests | ||
run: bundle exec appraisal rake test |
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 |
---|---|---|
@@ -1,65 +1,59 @@ | ||
unless RUBY_VERSION =~ /^3/ | ||
# Rails 5.2 | ||
appraise "activerecord_52_pg_10" do | ||
gem 'activerecord', '~> 5.2', require: 'active_record' | ||
gem 'pg', '~> 1.0' | ||
end | ||
end | ||
|
||
appraise "activerecord_60_pg_10" do | ||
gem 'activerecord', '~> 6.0', require: 'active_record' | ||
gem 'pg', '~> 1.0' | ||
end | ||
|
||
appraise "activerecord_61_pg_10" do | ||
gem 'activerecord', '~> 6.1', require: 'active_record' | ||
gem 'pg', '~> 1.0' | ||
end | ||
|
||
appraise "activerecord_70_pg_10" do | ||
gem 'activerecord', '~> 7.0', require: 'active_record' | ||
gem 'pg', '~> 1.0' | ||
end | ||
|
||
unless RUBY_VERSION =~ /^3/ | ||
appraise "activerecord_52_pg_11" do | ||
gem 'activerecord', '~> 5.2', require: 'active_record' | ||
gem 'pg', '~> 1.1' | ||
end | ||
end | ||
|
||
appraise "activerecord_60_pg_11" do | ||
gem 'activerecord', '~> 6.0', require: 'active_record' | ||
gem 'pg', '~> 1.1' | ||
end | ||
|
||
appraise "activerecord_61_pg_11" do | ||
gem 'activerecord', '~> 6.1', require: 'active_record' | ||
gem 'pg', '~> 1.1' | ||
end | ||
|
||
appraise "activerecord_70_pg_11" do | ||
gem 'activerecord', '~> 7.0', require: 'active_record' | ||
gem 'pg', '~> 1.1' | ||
end | ||
|
||
unless RUBY_VERSION =~ /^3/ | ||
appraise "activerecord_52_pg_12" do | ||
gem 'activerecord', '~> 5.2', require: 'active_record' | ||
gem 'pg', '~> 1.2' | ||
end | ||
end | ||
|
||
# Rails 6.0 | ||
appraise "activerecord_60_pg_10" do | ||
gem 'activerecord', '~> 6.0', require: 'active_record' | ||
gem 'pg', '~> 1.0' | ||
end | ||
appraise "activerecord_60_pg_11" do | ||
gem 'activerecord', '~> 6.0', require: 'active_record' | ||
gem 'pg', '~> 1.1' | ||
end | ||
appraise "activerecord_60_pg_12" do | ||
gem 'activerecord', '~> 6.0', require: 'active_record' | ||
gem 'pg', '~> 1.2' | ||
end | ||
|
||
# Rails 6.1 | ||
appraise "activerecord_61_pg_10" do | ||
gem 'activerecord', '~> 6.1', require: 'active_record' | ||
gem 'pg', '~> 1.0' | ||
end | ||
appraise "activerecord_61_pg_11" do | ||
gem 'activerecord', '~> 6.1', require: 'active_record' | ||
gem 'pg', '~> 1.1' | ||
end | ||
appraise "activerecord_61_pg_12" do | ||
gem 'activerecord', '~> 6.1', require: 'active_record' | ||
gem 'pg', '~> 1.2' | ||
end | ||
|
||
appraise "activerecord_70_pg_12" do | ||
gem 'activerecord', '~> 7.0', require: 'active_record' | ||
gem 'pg', '~> 1.2' | ||
end | ||
if RUBY_VERSION >= '2.7' | ||
# Rails 7 | ||
appraise "activerecord_70_pg_10" do | ||
gem 'activerecord', '~> 7.0', require: 'active_record' | ||
gem 'pg', '~> 1.0' | ||
end | ||
appraise "activerecord_70_pg_11" do | ||
gem 'activerecord', '~> 7.0', require: 'active_record' | ||
gem 'pg', '~> 1.1' | ||
end | ||
appraise "activerecord_70_pg_12" do | ||
gem 'activerecord', '~> 7.0', require: 'active_record' | ||
gem 'pg', '~> 1.2' | ||
end | ||
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 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 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,7 +1,4 @@ | ||
# Organize ActiveRecord model into a tree structure with PostgreSQL LTree | ||
# | ||
# @author a.ponomarenko | ||
module PgLtree | ||
# Gem Version | ||
VERSION = '1.1.8'.freeze | ||
VERSION = '1.1.9'.freeze | ||
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
adapter: postgresql | ||
host: localhost | ||
username: postgres | ||
password: | ||
password: postgres | ||
database: pg_ltree_test |