redmineup 1.1.3 → 1.1.4

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f706adbd36e4dfd53da2d24224e5669c4cdc88ecedd1d7b0e9f3b1ae485b8a06
4
- data.tar.gz: e6c3373d8a37c501d32f87251fe045ba69e0b576a39862835b0c3a4f4aee2479
3
+ metadata.gz: e16d0fd8b57ea9d77f2c2b769ee99e3f00adb3de950f2b856d206d6db9d7f66d
4
+ data.tar.gz: ae312cd72499e910065b8661485cb483e8798b6ed26887e18cf54660a3a8c03d
5
5
  SHA512:
6
- metadata.gz: f4aeb84bd22c370ca7cae5e938516aae0c75dcbfbd1c69139a27a2029d67578dafde73577ec1e43039a60dec34a2c7e11866924985b9862f6d8774e0ddf3e9c7
7
- data.tar.gz: 3883402ff5a4310e6d423ce618dda88489bb762fbeb7bf7960350484d327bc7ee5a8dc0eb8b9b531ee9cce3ddf4e686eea44b6d8d8e9adad2aedb986912d5a8d
6
+ metadata.gz: d273c6a8db3effbdce540bdd545576020f0f57083ba686739618894d6b8599951b7bf27ecdcd6677110d1db32f761148ad0f87b83c88a996bae3ff51a5036887
7
+ data.tar.gz: 61df5ba9902c47fd6c1257b018c6513ac393f51d2b75095c27e5f5b6dc04bf927d6fdaca8666189262f0580afb0b0f9ec76d75d81a9e24e47bbadc4c75d23729
data/doc/CHANGELOG CHANGED
@@ -4,6 +4,10 @@ Redmine UP gem - general functions for plugins (tags, vote, viewing, currency)
4
4
  Copyright (C) 2011-2026 Kirill Bezrukov (RedmineUP)
5
5
  https://www.redmineup.com/
6
6
 
7
+ == 2026-04-10 v1.1.4
8
+
9
+ * Fixed tags queries for MSSQL adapter
10
+
7
11
  == 2026-03-10 v1.1.3
8
12
 
9
13
  * Fixed ActionCable compatibility
@@ -74,7 +74,7 @@ module Redmineup
74
74
  having = 'COUNT(*) > 0'
75
75
  having = [having, at_least, at_most].compact.join(' AND ')
76
76
  group_by = "#{Tag.table_name}.id, #{Tag.table_name}.name"
77
- # group_by << " AND #{having}" unless having.blank?
77
+ group_by << ", #{Tag.table_name}.color" if column_names.include?('color')
78
78
 
79
79
  select_condition = if self.column_names.include?('color')
80
80
  "#{Tag.table_name}.id, #{Tag.table_name}.name, #{Tag.table_name}.color, COUNT(*) AS count"
@@ -147,6 +147,7 @@ module Redmineup
147
147
  group_fields = ''
148
148
  group_fields << ", #{Tag.table_name}.created_at" if Tag.respond_to?(:created_at)
149
149
  group_fields << ", #{Tag.table_name}.updated_at" if Tag.respond_to?(:updated_at)
150
+ group_fields << ", #{Tag.table_name}.color" if Tag.column_names.include?('color')
150
151
 
151
152
  if base_class.respond_to?(:visible_condition)
152
153
  visible_condition = base_class.visible_condition(User.current)
@@ -9,5 +9,10 @@ module Redmineup
9
9
  yield tag, classes[index]
10
10
  end
11
11
  end
12
+
13
+ def tag_color(tag_name)
14
+ "##{'%06x' % (tag_name.unpack('H*').first.hex % 0xffffff)}"
15
+ end
16
+
12
17
  end
13
18
  end
@@ -1,3 +1,3 @@
1
1
  module Redmineup
2
- VERSION = '1.1.3'
2
+ VERSION = '1.1.4'
3
3
  end
data/lib/redmineup.rb CHANGED
@@ -106,6 +106,7 @@ if defined?(ActionView::Base)
106
106
  ActionView::Base.send :include, Redmineup::CalendarsHelper
107
107
  ActionView::Base.send :include, Redmineup::ExternalAssetsHelper
108
108
  ActionView::Base.send :include, Redmineup::FormTagHelper
109
+ ActionView::Base.send :include, Redmineup::TagsHelper
109
110
  end
110
111
 
111
112
  def requires_redmineup(arg)
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.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - RedmineUP
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-03-10 00:00:00.000000000 Z
11
+ date: 2026-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails