Skip to content

Commit

Permalink
Prepare for release 1.1.9 (#35)
Browse files Browse the repository at this point in the history
* Release 1.1.9
  • Loading branch information
sjke authored Aug 12, 2022
1 parent e22647f commit 019b6cf
Show file tree
Hide file tree
Showing 12 changed files with 108 additions and 134 deletions.
63 changes: 63 additions & 0 deletions .github/workflows/tests.yml
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
57 changes: 0 additions & 57 deletions .travis.yml

This file was deleted.

74 changes: 34 additions & 40 deletions Appraisals
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
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 1.1.9

* [IMPROVE] Add Rails 7 version support ([#29](https://github.com/sjke/pg_ltree/pull/33) by [@chrisortman](https://github.com/chrisortman))
* [IMPROVE] Add Ruby 3 version support ([#29](https://github.com/sjke/pg_ltree/pull/33) by [@chrisortman](https://github.com/chrisortman))

## 1.1.8

* [IMPROVE] Update rails/pg version support (rails 6, pg 1.0)
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,27 @@ It uses a implementation based around PostgreSQL's [ltree](http://www.postgresql
| | |
| ----------- | :-----------------------------: |
| **Author** | Andrei Panamarenka |
| **Version** | 1.1.8 (December 13, 2019) |
| **Version** | 1.1.9 (August 13, 2022) |
| **License** | Released under the MIT license. |

##

[![Gem Version](https://badge.fury.io/rb/pg_ltree.svg)](http://badge.fury.io/rb/pg_ltree)
[![Build Status](https://travis-ci.org/sjke/pg_ltree.svg?branch=travis-ci)](https://travis-ci.org/sjke/pg_ltree)
[![Build Status](https://github.com/sjke/pg_ltree/actions/workflows/tests.yml/badge.svg)](https://github.com/sjke/pg_ltree/actions/workflows/tests.yml)
[![Code Climate](https://codeclimate.com/github/sjke/pg_ltree/badges/gpa.svg)](https://codeclimate.com/github/sjke/pg_ltree)
[![RubyDoc](http://inch-ci.org/github/sjke/pg_ltree.svg?branch=master)](http://www.rubydoc.info/github/sjke/pg_ltree/)

## Support

* **_Ruby_** 2.\*
* **_Rails_** >= 4, < 7
* **_Rails_** >= 4, < 8
* **_Pg adapter (gem 'pg')_** >= 0.17, < 2

## Installation

Add this line to your application's Gemfile:

gem 'pg_ltree', '1.1.8'
gem 'pg_ltree', '1.1.9'

And then execute:

Expand Down
8 changes: 0 additions & 8 deletions gemfiles/activerecord_52_pg_100.gemfile

This file was deleted.

8 changes: 0 additions & 8 deletions gemfiles/activerecord_60_pg_100.gemfile

This file was deleted.

8 changes: 0 additions & 8 deletions gemfiles/activerecord_61_pg_100.gemfile

This file was deleted.

2 changes: 0 additions & 2 deletions lib/pg_ltree/ltree.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ module PgLtree
#
# @see [ActiveRecord::Base]
# @see http://www.postgresql.org/docs/current/static/ltree.html
#
# @author a.ponomarenko
module Ltree
# Initialzie ltree for active model
#
Expand Down
2 changes: 0 additions & 2 deletions lib/pg_ltree/scoped_for.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
module PgLtree
# Narrowing the Scope for ActiveRecord Model
# @note When model have composite uniq key (for example: state + path), you should use this module for narrowing the scope
#
# @author a.ponomarenko
module ScopedFor
# Define base instance scope for model by columns
#
Expand Down
5 changes: 1 addition & 4 deletions lib/pg_ltree/version.rb
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
2 changes: 1 addition & 1 deletion test/database.yml.sample
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

0 comments on commit 019b6cf

Please sign in to comment.