redmineup 1.1.1 → 1.1.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/.gitlab-ci.yml +7 -18
  4. data/README.md +74 -153
  5. data/Rakefile +1 -1
  6. data/app/assets/images/icons.svg +9 -0
  7. data/app/assets/javascripts/consumer.js +37 -50
  8. data/app/assets/javascripts/consumer_worker.js +219 -0
  9. data/app/assets/javascripts/jquery.colorPicker.min.js +26 -0
  10. data/app/assets/javascripts/select2_helpers.js +12 -0
  11. data/app/assets/stylesheets/calendars.css +0 -3
  12. data/app/assets/stylesheets/redmineup.css +520 -0
  13. data/app/assets/stylesheets/select2.css +2 -2
  14. data/app/views/redmineup/_additional_assets.html.erb +1 -0
  15. data/app/views/redmineup/journals/_history.html.erb +33 -0
  16. data/config/locales/ar.yml +13 -0
  17. data/config/locales/az.yml +13 -0
  18. data/config/locales/bg.yml +13 -0
  19. data/config/locales/bs.yml +13 -0
  20. data/config/locales/ca.yml +13 -0
  21. data/config/locales/cs.yml +1 -0
  22. data/config/locales/da.yml +13 -0
  23. data/config/locales/de.yml +1 -0
  24. data/config/locales/el.yml +13 -0
  25. data/config/locales/en-GB.yml +14 -0
  26. data/config/locales/en.yml +1 -0
  27. data/config/locales/es-PA.yml +14 -0
  28. data/config/locales/es.yml +1 -0
  29. data/config/locales/et.yml +13 -0
  30. data/config/locales/eu.yml +13 -0
  31. data/config/locales/fa.yml +13 -0
  32. data/config/locales/fi.yml +13 -0
  33. data/config/locales/fr.yml +13 -0
  34. data/config/locales/gl.yml +13 -0
  35. data/config/locales/he.yml +13 -0
  36. data/config/locales/hr.yml +13 -0
  37. data/config/locales/hu.yml +13 -0
  38. data/config/locales/id.yml +13 -0
  39. data/config/locales/it.yml +13 -0
  40. data/config/locales/ja.yml +13 -0
  41. data/config/locales/ko.yml +13 -0
  42. data/config/locales/lt.yml +13 -0
  43. data/config/locales/lv.yml +13 -0
  44. data/config/locales/mk.yml +13 -0
  45. data/config/locales/mn.yml +13 -0
  46. data/config/locales/nl.yml +13 -0
  47. data/config/locales/no.yml +13 -0
  48. data/config/locales/pl.yml +13 -0
  49. data/config/locales/pt-BR.yml +13 -0
  50. data/config/locales/pt.yml +13 -0
  51. data/config/locales/ro.yml +13 -0
  52. data/config/locales/ru.yml +2 -1
  53. data/config/locales/sk.yml +13 -0
  54. data/config/locales/sl.yml +13 -0
  55. data/config/locales/sq.yml +13 -0
  56. data/config/locales/sr-YU.yml +13 -0
  57. data/config/locales/sr.yml +13 -0
  58. data/config/locales/sv.yml +13 -0
  59. data/config/locales/ta-IN.yml +13 -0
  60. data/config/locales/th.yml +13 -0
  61. data/config/locales/tr.yml +13 -0
  62. data/config/locales/uk.yml +13 -0
  63. data/config/locales/vi.yml +13 -0
  64. data/config/locales/zh-TW.yml +13 -0
  65. data/config/locales/zh.yml +13 -0
  66. data/config/routes.rb +4 -0
  67. data/doc/CHANGELOG +119 -24
  68. data/doc/active-record-mixins.md +156 -0
  69. data/doc/assets-money-and-utilities.md +71 -0
  70. data/doc/tagging-and-select2.md +115 -0
  71. data/lib/action_cable/connection/rup_connection.rb +17 -0
  72. data/lib/action_cable/server/rup_configuration.rb +1 -9
  73. data/lib/action_cable/server/rup_server.rb +8 -0
  74. data/lib/redmineup/acts_as_journalized/hook.rb +16 -0
  75. data/lib/redmineup/acts_as_journalized/journal_event.rb +30 -0
  76. data/lib/redmineup/acts_as_journalized/journal_patch.rb +87 -0
  77. data/lib/redmineup/acts_as_journalized/up_acts_as_journalized.rb +118 -0
  78. data/lib/redmineup/acts_as_taggable/tag.rb +13 -3
  79. data/lib/redmineup/acts_as_taggable/up_acts_as_taggable.rb +36 -28
  80. data/lib/redmineup/acts_as_viewed/up_acts_as_viewed.rb +8 -3
  81. data/lib/redmineup/currency/formatting.rb +1 -0
  82. data/lib/redmineup/engine.rb +14 -2
  83. data/lib/redmineup/helpers/datetime_helper.rb +23 -0
  84. data/lib/redmineup/helpers/external_assets_helper.rb +14 -6
  85. data/lib/redmineup/helpers/form_tag_helper.rb +44 -0
  86. data/lib/redmineup/helpers/journals_helper.rb +53 -0
  87. data/lib/redmineup/helpers/tags_helper.rb +108 -0
  88. data/lib/redmineup/helpers/test_helper.rb +12 -0
  89. data/lib/redmineup/hooks/views_layouts_hook.rb +1 -5
  90. data/lib/redmineup/money_helper.rb +10 -2
  91. data/lib/redmineup/patches/action_cable_base_patch.rb +13 -8
  92. data/lib/redmineup/patches/action_cable_patch.rb +3 -7
  93. data/lib/redmineup/patches/auto_completes_controller_patch.rb +17 -0
  94. data/lib/redmineup/patches/compatibility/routing_mapper_patch.rb +5 -18
  95. data/lib/redmineup/patches/compatibility/sprite_patch.rb +3 -9
  96. data/lib/redmineup/patches/compatibility_patch.rb +0 -6
  97. data/lib/redmineup/patches/liquid_patch.rb +13 -22
  98. data/lib/redmineup/version.rb +1 -1
  99. data/lib/redmineup.rb +38 -41
  100. data/redmineup.gemspec +1 -1
  101. data/test/acts_as_journalized/up_acts_as_journalized_test.rb +106 -0
  102. data/test/acts_as_taggable/tag_test.rb +12 -9
  103. data/test/acts_as_viewed/rup_acts_as_viewed_test.rb +12 -0
  104. data/test/currency_test.rb +7 -0
  105. data/test/locales_test.rb +12 -0
  106. data/test/models/journal.rb +38 -0
  107. data/test/models/journalized_thing.rb +5 -0
  108. data/test/redmine/acts_as_journalized/journalized_redmine_test.rb +264 -0
  109. data/test/schema.rb +18 -1
  110. data/test/tags_helper_view_test.rb +111 -0
  111. data/test/test_helper.rb +13 -12
  112. metadata +74 -5
  113. data/app/assets/stylesheets/money.css +0 -95
  114. data/lib/redmineup/patches/compatibility/application_controller_patch.rb +0 -32
  115. data/lib/redmineup/patches/compatibility/user_patch.rb +0 -21
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redmineup
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - RedmineUP
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-10-01 00:00:00.000000000 Z
11
+ date: 2026-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -119,29 +119,86 @@ files:
119
119
  - app/assets/javascripts/Chart.bundle.min.js.bak
120
120
  - app/assets/javascripts/chart.min.js
121
121
  - app/assets/javascripts/consumer.js
122
+ - app/assets/javascripts/consumer_worker.js
123
+ - app/assets/javascripts/jquery.colorPicker.min.js
122
124
  - app/assets/javascripts/select2.js
123
125
  - app/assets/javascripts/select2_helpers.js
124
126
  - app/assets/stylesheets/calendars.css
125
- - app/assets/stylesheets/money.css
127
+ - app/assets/stylesheets/redmineup.css
126
128
  - app/assets/stylesheets/select2.css
127
129
  - app/controllers/redmineup_controller.rb
130
+ - app/views/redmineup/_additional_assets.html.erb
128
131
  - app/views/redmineup/_money.html.erb
132
+ - app/views/redmineup/journals/_history.html.erb
129
133
  - app/views/redmineup/settings.html.erb
130
134
  - config/currency_iso.json
135
+ - config/locales/ar.yml
136
+ - config/locales/az.yml
137
+ - config/locales/bg.yml
138
+ - config/locales/bs.yml
139
+ - config/locales/ca.yml
131
140
  - config/locales/cs.yml
141
+ - config/locales/da.yml
132
142
  - config/locales/de.yml
143
+ - config/locales/el.yml
144
+ - config/locales/en-GB.yml
133
145
  - config/locales/en.yml
146
+ - config/locales/es-PA.yml
134
147
  - config/locales/es.yml
148
+ - config/locales/et.yml
149
+ - config/locales/eu.yml
150
+ - config/locales/fa.yml
151
+ - config/locales/fi.yml
152
+ - config/locales/fr.yml
153
+ - config/locales/gl.yml
154
+ - config/locales/he.yml
155
+ - config/locales/hr.yml
156
+ - config/locales/hu.yml
157
+ - config/locales/id.yml
158
+ - config/locales/it.yml
159
+ - config/locales/ja.yml
160
+ - config/locales/ko.yml
161
+ - config/locales/lt.yml
162
+ - config/locales/lv.yml
163
+ - config/locales/mk.yml
164
+ - config/locales/mn.yml
165
+ - config/locales/nl.yml
166
+ - config/locales/no.yml
167
+ - config/locales/pl.yml
168
+ - config/locales/pt-BR.yml
169
+ - config/locales/pt.yml
170
+ - config/locales/ro.yml
135
171
  - config/locales/ru.yml
172
+ - config/locales/sk.yml
173
+ - config/locales/sl.yml
174
+ - config/locales/sq.yml
175
+ - config/locales/sr-YU.yml
176
+ - config/locales/sr.yml
177
+ - config/locales/sv.yml
178
+ - config/locales/ta-IN.yml
179
+ - config/locales/th.yml
180
+ - config/locales/tr.yml
181
+ - config/locales/uk.yml
182
+ - config/locales/vi.yml
183
+ - config/locales/zh-TW.yml
184
+ - config/locales/zh.yml
136
185
  - config/routes.rb
137
186
  - doc/CHANGELOG
138
187
  - doc/LICENSE.txt
188
+ - doc/active-record-mixins.md
189
+ - doc/assets-money-and-utilities.md
190
+ - doc/tagging-and-select2.md
191
+ - lib/action_cable/connection/rup_connection.rb
139
192
  - lib/action_cable/server/rup_configuration.rb
140
193
  - lib/action_cable/server/rup_server.rb
141
194
  - lib/application_record.rb
142
195
  - lib/redmineup.rb
143
196
  - lib/redmineup/acts_as_draftable/draft.rb
144
197
  - lib/redmineup/acts_as_draftable/up_acts_as_draftable.rb
198
+ - lib/redmineup/acts_as_journalized/hook.rb
199
+ - lib/redmineup/acts_as_journalized/journal_event.rb
200
+ - lib/redmineup/acts_as_journalized/journal_patch.rb
201
+ - lib/redmineup/acts_as_journalized/up_acts_as_journalized.rb
145
202
  - lib/redmineup/acts_as_list/list.rb
146
203
  - lib/redmineup/acts_as_priceable/up_acts_as_priceable.rb
147
204
  - lib/redmineup/acts_as_taggable/tag.rb
@@ -162,9 +219,12 @@ files:
162
219
  - lib/redmineup/currency/loader.rb
163
220
  - lib/redmineup/engine.rb
164
221
  - lib/redmineup/helpers/calendars_helper.rb
222
+ - lib/redmineup/helpers/datetime_helper.rb
165
223
  - lib/redmineup/helpers/external_assets_helper.rb
166
224
  - lib/redmineup/helpers/form_tag_helper.rb
225
+ - lib/redmineup/helpers/journals_helper.rb
167
226
  - lib/redmineup/helpers/tags_helper.rb
227
+ - lib/redmineup/helpers/test_helper.rb
168
228
  - lib/redmineup/helpers/vote_helper.rb
169
229
  - lib/redmineup/hooks/views_layouts_hook.rb
170
230
  - lib/redmineup/liquid/drops/attachment_drop.rb
@@ -183,10 +243,9 @@ files:
183
243
  - lib/redmineup/money_helper.rb
184
244
  - lib/redmineup/patches/action_cable_base_patch.rb
185
245
  - lib/redmineup/patches/action_cable_patch.rb
186
- - lib/redmineup/patches/compatibility/application_controller_patch.rb
246
+ - lib/redmineup/patches/auto_completes_controller_patch.rb
187
247
  - lib/redmineup/patches/compatibility/routing_mapper_patch.rb
188
248
  - lib/redmineup/patches/compatibility/sprite_patch.rb
189
- - lib/redmineup/patches/compatibility/user_patch.rb
190
249
  - lib/redmineup/patches/compatibility_patch.rb
191
250
  - lib/redmineup/patches/liquid_patch.rb
192
251
  - lib/redmineup/settings.rb
@@ -195,6 +254,7 @@ files:
195
254
  - redmineup.gemspec
196
255
  - test/acts_as_draftable/draft_test.rb
197
256
  - test/acts_as_draftable/rup_acts_as_draftable_test.rb
257
+ - test/acts_as_journalized/up_acts_as_journalized_test.rb
198
258
  - test/acts_as_taggable/rup_acts_as_taggable_test.rb
199
259
  - test/acts_as_taggable/tag_list_test.rb
200
260
  - test/acts_as_taggable/tag_test.rb
@@ -227,17 +287,21 @@ files:
227
287
  - test/liquid/filters/base_filter_test.rb
228
288
  - test/liquid/filters/colors_filter_test.rb
229
289
  - test/liquid/liquid_helper.rb
290
+ - test/locales_test.rb
230
291
  - test/models/attachment.rb
231
292
  - test/models/issue.rb
232
293
  - test/models/issue_relation.rb
233
294
  - test/models/journal.rb
295
+ - test/models/journalized_thing.rb
234
296
  - test/models/news.rb
235
297
  - test/models/project.rb
236
298
  - test/models/user.rb
237
299
  - test/models/vote_classes.rb
238
300
  - test/money_helper_test.rb
301
+ - test/redmine/acts_as_journalized/journalized_redmine_test.rb
239
302
  - test/schema.rb
240
303
  - test/tags_helper_test.rb
304
+ - test/tags_helper_view_test.rb
241
305
  - test/test_helper.rb
242
306
  - test/vote_helper_test.rb
243
307
  homepage: https://www.redmineup.com
@@ -266,6 +330,7 @@ summary: Common libraries for RedmineUP plugins for Redmine
266
330
  test_files:
267
331
  - test/acts_as_draftable/draft_test.rb
268
332
  - test/acts_as_draftable/rup_acts_as_draftable_test.rb
333
+ - test/acts_as_journalized/up_acts_as_journalized_test.rb
269
334
  - test/acts_as_taggable/rup_acts_as_taggable_test.rb
270
335
  - test/acts_as_taggable/tag_list_test.rb
271
336
  - test/acts_as_taggable/tag_test.rb
@@ -298,16 +363,20 @@ test_files:
298
363
  - test/liquid/filters/base_filter_test.rb
299
364
  - test/liquid/filters/colors_filter_test.rb
300
365
  - test/liquid/liquid_helper.rb
366
+ - test/locales_test.rb
301
367
  - test/models/attachment.rb
302
368
  - test/models/issue.rb
303
369
  - test/models/issue_relation.rb
304
370
  - test/models/journal.rb
371
+ - test/models/journalized_thing.rb
305
372
  - test/models/news.rb
306
373
  - test/models/project.rb
307
374
  - test/models/user.rb
308
375
  - test/models/vote_classes.rb
309
376
  - test/money_helper_test.rb
377
+ - test/redmine/acts_as_journalized/journalized_redmine_test.rb
310
378
  - test/schema.rb
311
379
  - test/tags_helper_test.rb
380
+ - test/tags_helper_view_test.rb
312
381
  - test/test_helper.rb
313
382
  - test/vote_helper_test.rb
@@ -1,95 +0,0 @@
1
- #admin-menu a.icon-redmineup-money:not(:has(svg)) {
2
- background-image: url(../images/money.png);
3
- }
4
-
5
- /***** Calendar *****/
6
- ul.cal {
7
- list-style: none;
8
- width: 100%;
9
- padding: 0;
10
- display: grid;
11
- grid-template-columns: 2rem repeat(7, 1fr);
12
- margin: 0;
13
- border: 1px solid #c0c0c0;
14
- border-spacing: 0;
15
- border-radius: 3px;
16
- }
17
-
18
- .cal .calhead {
19
- background-color:#eee;
20
- text-align: center;
21
- font-weight: bold;
22
- padding: 4px
23
- }
24
-
25
- .cal .week-number {
26
- background-color:#eee;
27
- border:none;
28
- font-size: 1em;
29
- padding: 4px;
30
- text-align: center;
31
- }
32
-
33
- .cal .week-number .label-week {
34
- display: none;
35
- }
36
-
37
- .cal .calbody {
38
- border: 1px solid #d7d7d7;
39
- vertical-align: top;
40
- font-size: 0.9em;
41
- border-bottom: 0;
42
- border-right: 0;
43
- line-height: 1.2;
44
- min-height: calc(1.2em * 6);
45
- padding: 2px;
46
- }
47
-
48
- .cal .calbody p.day-num {font-size: 1.1em; text-align:right;}
49
- .cal .calbody .abbr-day {display:none}
50
- .cal .calbody.odd p.day-num {color: #bbb;}
51
- .cal .calbody.today {background:#ffd;}
52
- .cal .calbody.today p.day-num {font-weight: bold;}
53
-
54
- .cal .calbody .icon {padding-top: 2px; padding-bottom: 3px;}
55
- .cal .calbody.nwday:not(.odd) {background-color:#f1f1f1;}
56
- .cal .starting a.issue, p.cal.legend .starting {background: url(../images/bullet_go.png) no-repeat -1px -2px; padding-left:16px;}
57
- .cal .ending a.issue, p.cal.legend .ending {background: url(../images/bullet_end.png) no-repeat -1px -2px; padding-left:16px;}
58
- .cal .starting.ending a.issue, p.cal.legend .starting.ending {background: url(../images/bullet_diamond.png) no-repeat -1px -2px; padding-left:16px;}
59
-
60
-
61
- /* responsive.css */
62
- @media screen and (max-width: 899px)
63
- {
64
- ul.cal {
65
- display: block
66
- }
67
- .cal .calhead {
68
- display: none
69
- }
70
-
71
- .cal .calbody {
72
- min-height: calc(1.2em * 3);
73
- }
74
-
75
- .cal .calbody .abbr-day {
76
- display: inline;
77
- }
78
-
79
- .cal .week-number {
80
- border: 1px solid #c0c0c0;
81
- text-align: left;
82
- font-weight: bold;
83
- background-color: #def;
84
- }
85
-
86
- .cal .week-number .label-week {
87
- display: inline;
88
- }
89
-
90
- .cal .calbody p.day-num {
91
- font-size: 1.1em;
92
- text-align: left;
93
- }
94
- }
95
- /***** End Calendar *****/
@@ -1,32 +0,0 @@
1
- module Redmineup
2
- module Patches
3
- module Compatibility
4
- module ApplicationControllerPatch
5
- def self.included(base) # :nodoc:
6
- base.extend(ClassMethods)
7
- base.class_eval do
8
- unloadable # Send unloadable so it will not be unloaded in development
9
- end
10
- end
11
-
12
- module ClassMethods
13
- def before_action(*filters, &block)
14
- before_filter(*filters, &block)
15
- end
16
-
17
- def after_action(*filters, &block)
18
- after_filter(*filters, &block)
19
- end
20
-
21
- def skip_before_action(*filters, &block)
22
- skip_before_filter(*filters, &block)
23
- end
24
- end
25
- end
26
- end
27
- end
28
- end
29
-
30
- unless ActionController::Base.methods.include?(:before_action)
31
- ActionController::Base.send(:include,Redmineup::Patches::Compatibility::ApplicationControllerPatch)
32
- end
@@ -1,21 +0,0 @@
1
- module Redmineup
2
- module Patches
3
- module Compatibility
4
- module UserPatch
5
- def self.included(base)
6
- base.send(:include, InstanceMethods)
7
- end
8
-
9
- module InstanceMethods
10
- def atom_key
11
- rss_key
12
- end
13
- end
14
- end
15
- end
16
- end
17
- end
18
-
19
- unless ActionDispatch::Routing::Mapper.included_modules.include?(Redmineup::Patches::Compatibility::UserPatch)
20
- ActionDispatch::Routing::Mapper.send(:include, Redmineup::Patches::Compatibility::UserPatch)
21
- end