File tree Expand file tree Collapse file tree 7 files changed +18
-15
lines changed
lib/redmine_datetime_custom_field Expand file tree Collapse file tree 7 files changed +18
-15
lines changed Original file line number Diff line number Diff line change 1- name : Tests 5.1.3
1+ name : Tests 5.1.5
22
33env :
44 PLUGIN_NAME : redmine_datetime_custom_field
5- REDMINE_VERSION : 5.1.3
5+ REDMINE_VERSION : 5.1.5
66 RAILS_ENV : test
77
88on :
Original file line number Diff line number Diff line change 1- name : Tests 4.2.11
1+ name : Tests 6.0.2
22
33env :
44 PLUGIN_NAME : redmine_datetime_custom_field
5- REDMINE_VERSION : 4.2.11
5+ REDMINE_VERSION : 6.0.2
66 RAILS_ENV : test
77
88on :
1616
1717 strategy :
1818 matrix :
19- ruby : ['2.7 ']
19+ ruby : ['3.3 ']
2020 db : ['postgres']
2121 fail-fast : false
2222
8989 - name : Prepare Redmine source
9090 working-directory : redmine
9191 run : |
92- # TODO Remove the following line when https://www.redmine.org/issues/40551 is fixed
93- sed -i -e 's/.*mocha.*/ gem "mocha", "2.1.0"/' Gemfile # Fix core tests not compatible with Mocha 2.2.0
9492 sed -i '/rubocop/d' Gemfile
9593 rm -f .rubocop*
9694 cp plugins/redmine_base_rspec/spec/support/database-${{ matrix.db }}.yml config/database.yml
97- echo 'gem "builder", "~> 3.2.4"' >> Gemfile
9895
9996 - name : Install Ruby dependencies
10097 working-directory : redmine
Original file line number Diff line number Diff line change 1616
1717 strategy :
1818 matrix :
19- ruby : ['3.2 ']
19+ ruby : ['3.3 ']
2020 db : ['postgres']
2121 fail-fast : false
2222
Original file line number Diff line number Diff line change @@ -12,11 +12,11 @@ Note that this plugin has a dependency. You have to install this other plugin:
1212
1313| Plugin branch| Redmine Version | Test Status |
1414| -------------| -----------------| -------------------|
15- | master | 4.2.11 | [ ![ 4.2.11 ] [ 1 ]] [ 5 ] |
16- | master | 5.1.3 | [ ![ 5.1.3 ] [ 2 ]] [ 5 ] |
15+ | master | 6.0.2 | [ ![ 6.0.2 ] [ 1 ]] [ 5 ] |
16+ | master | 5.1.5 | [ ![ 5.1.5 ] [ 2 ]] [ 5 ] |
1717| master | master | [ ![ master] [ 4 ]] [ 5 ] |
1818
19- [ 1 ] : https://github.com/nanego/redmine_datetime_custom_field/actions/workflows/4_2_11 .yml/badge.svg
20- [ 2 ] : https://github.com/nanego/redmine_datetime_custom_field/actions/workflows/5_1_3 .yml/badge.svg
19+ [ 1 ] : https://github.com/nanego/redmine_datetime_custom_field/actions/workflows/6_0_2 .yml/badge.svg
20+ [ 2 ] : https://github.com/nanego/redmine_datetime_custom_field/actions/workflows/5_1_5 .yml/badge.svg
2121[ 4 ] : https://github.com/nanego/redmine_datetime_custom_field/actions/workflows/master.yml/badge.svg
2222[ 5 ] : https://github.com/nanego/redmine_datetime_custom_field/actions
Original file line number Diff line number Diff line change 1313
1414# Custom patches
1515require_relative 'lib/redmine_datetime_custom_field/hooks'
16+
17+ # Support for Redmine 5
18+ if Redmine ::VERSION ::MAJOR < 6
19+ class ApplicationRecord < ActiveRecord ::Base
20+ self . abstract_class = true
21+ end
22+ end
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ module CustomFieldPatch
55 def self . included ( base )
66 base . send ( :include , InstanceMethods )
77 base . class_eval do
8- unloadable
98 safe_attributes 'show_hours' , 'show_shortcut'
109 end
1110 end
Original file line number Diff line number Diff line change 44module RedmineDatetimeCustomField ::QueryPatch
55end
66
7- class Query < ActiveRecord :: Base
7+ class Query < ApplicationRecord
88
99 def validate_query_filters
1010 filters . each_key do |field |
You can’t perform that action at this time.
0 commit comments