Skip to content

Commit 5c98bb8

Browse files
authored
ci test: drop support for Redmine 5.0 (#183)
It's because Redmine 5.0 has already reached EOL. ref: https://www.redmine.org/news/156
1 parent 5bd0f1c commit 5c98bb8

17 files changed

+15
-198
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,6 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
include:
17-
- redmine-version: "5.0"
18-
ruby-version: "3.1"
19-
rdbms: "MySQL"
20-
- redmine-version: "5.0"
21-
ruby-version: "3.1"
22-
rdbms: "PostgreSQL"
2317
- redmine-version: "5.1"
2418
ruby-version: "3.2"
2519
rdbms: "MySQL"

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ Clone source codes. This is required only once.
269269
```console
270270
$ git clone https://github.com/redmine/redmine.git
271271
$ cd redmine
272-
$ git checkout 5.0-stable # or something
272+
$ git checkout 6.1-stable # or something
273273
$ git clone [email protected]:${YOUR_FORK}/redmine_full_text_search.git plugins/full_text_search
274274
```
275275

@@ -281,10 +281,10 @@ Choose suitable database configuration:
281281
$ ln -fs ../plugins/full_text_search/config/database.yml.example.${REDMINE_VERSION}.${RDBMS} config/database.yml
282282
```
283283

284-
Here is an example to use Redmine 5.0 and MySQL:
284+
Here is an example to use Redmine 6.1 and MySQL:
285285

286286
```console
287-
$ ln -fs ../plugins/full_text_search/config/database.yml.example.5.0.mysql config/database.yml
287+
$ ln -fs ../plugins/full_text_search/config/database.yml.example.6.1.mysql config/database.yml
288288
```
289289

290290
Run RDBMS.

app/models/fts_query_expansion.rb

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
class FtsQueryExpansion < ApplicationRecord
2-
if respond_to?(:connection_db_config)
3-
adapter = connection_db_config.adapter
4-
else
5-
adapter = connection_config[:adapter]
6-
end
7-
case adapter
2+
case connection_db_config.adapter
83
when "postgresql"
94
include FullTextSearch::Pgroonga
105
when "mysql2"

app/models/full_text_search/tag.rb

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,7 @@ class Tag < ApplicationRecord
33
self.table_name = :fts_tags
44
belongs_to :type, class_name: "FullTextSearch::TagType"
55

6-
if respond_to?(:connection_db_config)
7-
adapter = connection_db_config.adapter
8-
else
9-
adapter = connection_config[:adapter]
10-
end
11-
case adapter
6+
case connection_db_config.adapter
127
when "postgresql"
138
include Pgroonga
149
when "mysql2"

app/models/full_text_search/target.rb

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,7 @@ module FullTextSearch
22
class Target < ApplicationRecord
33
self.table_name = :fts_targets
44

5-
if respond_to?(:connection_db_config)
6-
adapter = connection_db_config.adapter
7-
else
8-
adapter = connection_config[:adapter]
9-
end
10-
case adapter
5+
case connection_db_config.adapter
116
when "postgresql"
127
include Pgroonga
138
when "mysql2"

config/database.yml.example.4.1.mysql

Lines changed: 0 additions & 23 deletions
This file was deleted.

config/database.yml.example.4.1.postgresql

Lines changed: 0 additions & 20 deletions
This file was deleted.

config/database.yml.example.4.2.mysql

Lines changed: 0 additions & 23 deletions
This file was deleted.

config/database.yml.example.4.2.postgresql

Lines changed: 0 additions & 20 deletions
This file was deleted.

config/database.yml.example.5.0.mysql

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)