Skip to content

Commit

Permalink
Merge pull request #24 from sjke/feature/update_deps_version
Browse files Browse the repository at this point in the history
Update deps versions
  • Loading branch information
sjke committed Apr 3, 2018
2 parents 92a535a + f4e1ed2 commit 1bb665d
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 19 deletions.
8 changes: 7 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ rvm:
- 2.1.8
- 2.2.4
- 2.3.0
- 2.4.0
- ruby-head

gemfile:
Expand All @@ -17,6 +18,7 @@ gemfile:
- gemfiles/activerecord_50_pg_018.gemfile
- gemfiles/activerecord_51_pg_020.gemfile
- gemfiles/activerecord_51_pg_021.gemfile
- gemfiles/activerecord_52_pg_100.gemfile

services:
- postgresql
Expand All @@ -34,10 +36,14 @@ matrix:
- rvm: 2.0.0
gemfile: gemfiles/activerecord_51_pg_020.gemfile
- rvm: 2.0.0
gemfile: gemfiles/activerecord_51_pg_021.gemfile
gemfile: gemfiles/activerecord_51_pg_020.gemfile
- rvm: 2.0.0
gemfile: gemfiles/activerecord_52_pg_100.gemfile
- rvm: 2.1.8
gemfile: gemfiles/activerecord_50_pg_018.gemfile
- rvm: 2.1.8
gemfile: gemfiles/activerecord_51_pg_020.gemfile
- rvm: 2.1.8
gemfile: gemfiles/activerecord_51_pg_021.gemfile
- rvm: 2.1.8
gemfile: gemfiles/activerecord_52_pg_100.gemfile
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
## 1.1.7

* [IMPROVE] Update rails/pg version support (rails 5.2, pg 1.0)

## 1.1.6

* [IMPROVE] Adds `table_name` prefix for a generating SQL queries ([#21](https://github.com/sjke/pg_ltree/pull/21) by [@arjan0307](https://github.com/arjan0307))
* [IMPROVE] Adds `table_name` prefix for a generating SQL queries ([#21](https://github.com/sjke/pg_ltree/pull/21) by [@arjan0307](https://github.com/arjan0307))

## 1.1.5

Expand Down
27 changes: 14 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@

It uses a implementation based around PostgreSQL's [ltree](http://www.postgresql.org/docs/current/static/ltree.html) data type, associated functions and operators.

| | |
|---------------|:--------------------------------:|
| **Author** | Andrei Panamarenka |
| **Version** | 1.1.6 (September 19, 2017) |
| **License** | Released under the MIT license. |

| | |
| ----------- | :-----------------------------: |
| **Author** | Andrei Panamarenka |
| **Version** | 1.1.7 (March 20, 2018) |
| **License** | Released under the MIT license. |

##

Expand All @@ -19,23 +18,24 @@ It uses a implementation based around PostgreSQL's [ltree](http://www.postgresql
[![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, < 5.2
* ***Pg adapter (gem 'pg')*** >= 0.17, < 0.22

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

## Installation

Add this line to your application's Gemfile:

gem 'pg_ltree', '1.1.6'
gem 'pg_ltree', '1.1.7'

And then execute:

$ bundle

Add ltree extension to PostgreSQL:

``` ruby
```ruby
class AddLtreeExtension < ActiveRecord::Migration
def change
enable_extension 'ltree'
Expand All @@ -45,7 +45,7 @@ end

Update your model:

``` ruby
```ruby
class AnyModel < ActiveRecord::Migration
def change
add_column :any_model, :path, :ltree
Expand All @@ -61,7 +61,7 @@ Run migrations:

## Usage

``` ruby
```ruby
class AnyModel < ActiveRecord::Base
ltree :path
# ltree :path, cascade: false # Disable cascade update and delete
Expand All @@ -79,6 +79,7 @@ Run migrations:
```

For find a lots of additional information about PgLtee see:

* [Wiki](https://github.com/sjke/pg_ltree/wiki)
* [List of methods for work with LTree](https://github.com/sjke/pg_ltree/wiki/List-of-methods-for-work-with-LTree)
* [Module SCOPE FOR (For not uniq path in tree)](https://github.com/sjke/pg_ltree/wiki/Module-SCOPED-FOR)
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace :test do
activerecord_41_pg_017 activerecord_41_pg_018
activerecord_42_pg_017 activerecord_42_pg_018
activerecord_50_pg_018 activerecord_51_pg_020
activerecord_51_pg_021
activerecord_51_pg_021 activerecord_52_pg_100
).freeze

AVAILABLE_CASES.each do |version|
Expand Down
6 changes: 6 additions & 0 deletions gemfiles/activerecord_52_pg_100.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
source 'https://rubygems.org'

gem 'activerecord', '>= 5.2.0.rc1', '< 5.3', require: 'active_record'
gem 'pg', '~> 1.0'

gemspec path: '../'
2 changes: 1 addition & 1 deletion lib/pg_ltree/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# @author a.ponomarenko
module PgLtree
# Gem Version
VERSION = '1.1.6'.freeze
VERSION = '1.1.7'.freeze
end
4 changes: 2 additions & 2 deletions pg_ltree.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ Gem::Specification.new do |s|
s.files = Dir['{app,config,db,lib}/**/*', 'MIT-LICENSE', 'Rakefile', 'README.rdoc']
s.test_files = Dir['test/**/*']

s.add_dependency 'activerecord', '>= 4.0.0', '< 5.2'
s.add_dependency 'pg', '>= 0.17.0', '< 0.22'
s.add_dependency 'activerecord', '>= 4.0.0', '< 5.3'
s.add_dependency 'pg', '>= 0.17.0', '< 2'

s.add_development_dependency 'bundler'
s.add_development_dependency 'rake'
Expand Down

0 comments on commit 1bb665d

Please sign in to comment.