Skip to content

Commit

Permalink
Remove support for obsolete Ruby, ActiveRecord
Browse files Browse the repository at this point in the history
Their maintainers don't support them, why should we?
  • Loading branch information
amarshall committed Aug 6, 2016
1 parent 1d84a1b commit f1da2a1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 64 deletions.
19 changes: 1 addition & 18 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,37 +5,20 @@ rvm:
- "2.3.1"
- "2.2"
- "2.1"
- "2.0"
- "1.9"
- jruby-19mode
- jruby-9.0.0.0
- jruby-9.0.5.0

env:
- ACTIVE_RECORD_BRANCH="master"
- ACTIVE_RECORD_BRANCH="4-2-stable"
- ACTIVE_RECORD_BRANCH="4-1-stable"
- ACTIVE_RECORD_BRANCH="4-0-stable"
- ACTIVE_RECORD_VERSION="~> 4.2.0"
- ACTIVE_RECORD_VERSION="~> 4.1.0"
- ACTIVE_RECORD_VERSION="~> 4.0.0"
- ACTIVE_RECORD_VERSION="~> 3.2.0"
- ACTIVE_RECORD_VERSION="~> 3.1.0"

matrix:
allow_failures:
- env: ACTIVE_RECORD_BRANCH="master"
- env: ACTIVE_RECORD_BRANCH="4-2-stable"
- env: ACTIVE_RECORD_BRANCH="4-1-stable"
- env: ACTIVE_RECORD_BRANCH="4-0-stable"
exclude:
- rvm: "1.9"
env: ACTIVE_RECORD_BRANCH="master"
- rvm: "2.0"
env: ACTIVE_RECORD_BRANCH="master"
- rvm: "2.1"
env: ACTIVE_RECORD_BRANCH="master"
- rvm: jruby-19mode
env: ACTIVE_RECORD_BRANCH="master"
- rvm: jruby-9.0.0.0
env: ACTIVE_RECORD_BRANCH="master"

Expand Down
58 changes: 12 additions & 46 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,54 +18,33 @@ Read the blog post introducing PgSearch at http://blog.pivotal.io/labs/labs/pg-s

## REQUIREMENTS

* Ruby 1.9.2, 2.0, or later
* Active Record 3.1, 3.2, 4.0 or later
* Ruby 2.1+
* ActiveRecord 4.1+
* PostgreSQL
* [PostgreSQL contrib packages for certain
features](https://github.com/Casecommons/pg_search/wiki/Installing-Postgres-Contrib-Modules)

### Ruby 1.9, 2.0; ActiveRecord 3.1, 3.2, 4.0, 4.1

## INSTALL

```bash
$ gem install pg_search
```

### Rails 3.1, 3.2, 4.0 or later, Ruby 1.9.2, 2.0, or later
These may work with the current PgSearch, however they are unsupported by their maintainers and thus we do not actively support them.

In Gemfile
### Ruby 1.8.7

```ruby
gem 'pg_search'
```
Use PgSearch ~> 0.6.4 (not supported).

### Rails 3.0

The newest versions of PgSearch no longer support Rails 3.0. However, the 0.5
series still works. It's not actively maintained, but submissions are welcome
for backports and bugfixes.

```ruby
gem 'pg_search', "~> 0.5.7"
```

The 0.5 branch lives at
https://github.com/Casecommons/pg_search/tree/0.5-stable
Use PgSearch 0.5.x (not supported).

### Rails 2
### Rails 2.x

The newest versions of PgSearch no longer support Rails 2. However, the 0.2
series still works. It's not actively maintained, but submissions are welcome
for backports and bugfixes.
Use PgSearch 0.2.x (not supported).

```ruby
gem 'pg_search', "~> 0.2.0"
```
## INSTALL

The 0.2 branch lives at
https://github.com/Casecommons/pg_search/tree/0.2-stable
Install as usual: `gem install pg_search` or add `gem 'pg_search'` to your Gemfile.

### Other Active Record projects
### Non-Rails projects

In addition to installing and requiring the gem, you may want to include the
PgSearch rake tasks in your Rakefile. This isn't necessary for Rails projects,
Expand All @@ -75,19 +54,6 @@ which gain the Rake tasks via a Railtie.
load "pg_search/tasks.rb"
```

### Ruby 1.8.7 or earlier

The newest versions of PgSearch no longer support Ruby 1.8.7. However, the 0.6
series still works. It's not actively maintained, but submissions are welcome
for backports and bugfixes.

```ruby
gem 'pg_search', "~> 0.6.4"
```

The 0.6 branch lives at
https://github.com/Casecommons/pg_search/tree/0.6-stable

## USAGE

To add PgSearch to an Active Record model, simply include the PgSearch module.
Expand Down

0 comments on commit f1da2a1

Please sign in to comment.