Skip to content

Commit 7bed88a

Browse files
authored
Merge pull request #67 from gtt-project/fix/gem_versions
Supported Gemfile rgeo-activerecord/activerecord-postgis-adapter compatible versions with environment variables
2 parents 5a7b9b6 + 6e68dea commit 7bed88a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Gemfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ gem 'deface'
44
gem 'immutable-struct'
55
gem "rgeo"
66
gem "rgeo-geojson"
7-
gem "rgeo-activerecord"
87
gem "pg", (ENV['GEM_PG_VERSION'] ? "~> #{ENV['GEM_PG_VERSION']}" : "~> 1.1.4") # make sure we use a version compatible with AR
9-
gem 'activerecord-postgis-adapter'
8+
gem "rgeo-activerecord", (ENV['GEM_RGEO_ACTIVERECORD_VERSION'] ? "~> #{ENV['GEM_RGEO_ACTIVERECORD_VERSION']}" : "~> 6.2.2") # same as above
9+
gem 'activerecord-postgis-adapter', (ENV['GEM_ACTIVERECORD_POSTGIS_ADAPTER_VERSION'] ? "~> #{ENV['GEM_ACTIVERECORD_POSTGIS_ADAPTER_VERSION']}" : "~> 5.2.3") # same as above
1010
gem 'rails-controller-testing' # This gem brings back assigns to your controller tests as well as assert_template to both controller and integration tests.

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ git clone https://github.com/gtt-project/redmine_gtt.git
3939
Then run
4040

4141
```
42+
export GEM_PG_VERSION=your-pg-version # skip this line if redmine use pg 1.1.4.
43+
export GEM_RGEO_ACTIVERECORD_VERSION=your-rgeo-activerecord-version # skip this line if using rgeo-activerecord 6.2.2.
44+
export GEM_ACTIVERECORD_POSTGIS_ADAPTER_VERSION=your-activerecord-postgis-adapter-version # skip this line if using activerecord-postgis-adapter 5.2.3.
4245
bundle install
4346
bundle exec rake redmine:plugins:migrate
4447
```

0 commit comments

Comments
 (0)