diff --git a/.travis.yml b/.travis.yml index 4062eda..ecd7780 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,7 @@ rvm: - 2.1.8 - 2.2.4 - 2.3.0 + - 2.4.0 - ruby-head gemfile: @@ -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 @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index 3b15458..707be30 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/README.md b/README.md index a1aeb9e..5fec47b 100644 --- a/README.md +++ b/README.md @@ -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. | ## @@ -19,15 +18,16 @@ 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: @@ -35,7 +35,7 @@ And then execute: Add ltree extension to PostgreSQL: -``` ruby +```ruby class AddLtreeExtension < ActiveRecord::Migration def change enable_extension 'ltree' @@ -45,7 +45,7 @@ end Update your model: -``` ruby +```ruby class AnyModel < ActiveRecord::Migration def change add_column :any_model, :path, :ltree @@ -61,7 +61,7 @@ Run migrations: ## Usage -``` ruby +```ruby class AnyModel < ActiveRecord::Base ltree :path # ltree :path, cascade: false # Disable cascade update and delete @@ -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) diff --git a/Rakefile b/Rakefile index f131eb2..eadebd1 100644 --- a/Rakefile +++ b/Rakefile @@ -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| diff --git a/gemfiles/activerecord_52_pg_100.gemfile b/gemfiles/activerecord_52_pg_100.gemfile new file mode 100644 index 0000000..12b2148 --- /dev/null +++ b/gemfiles/activerecord_52_pg_100.gemfile @@ -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: '../' diff --git a/lib/pg_ltree/version.rb b/lib/pg_ltree/version.rb index 7c91dfe..973f394 100644 --- a/lib/pg_ltree/version.rb +++ b/lib/pg_ltree/version.rb @@ -3,5 +3,5 @@ # @author a.ponomarenko module PgLtree # Gem Version - VERSION = '1.1.6'.freeze + VERSION = '1.1.7'.freeze end diff --git a/pg_ltree.gemspec b/pg_ltree.gemspec index cf6ef94..c002e0d 100644 --- a/pg_ltree.gemspec +++ b/pg_ltree.gemspec @@ -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'