redmine_crm 0.0.57 → 0.0.59

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 214cac797343372370ee81fb9edd38aba5e67ce9d47ad15276952da329f6f876
4
- data.tar.gz: d1b987d030f3c4fcd6c10c6cfdd3cb42c8b7bbd2014ce2ab1653c6adce75f3e7
3
+ metadata.gz: c6f734cf2d5b38da91d7d00682c4e0af61049b34ee8e19bec54714508f82d798
4
+ data.tar.gz: 4dbcbd32111b84e354bb2a442d2cadef7a1a5dbeaef6cf09b2b8c7d66f6a7390
5
5
  SHA512:
6
- metadata.gz: 94df5375a9504037d560bcd3da69c76d1915539056e3da79978c3548d950364afb09e594a6c4ef478e8901aa84ee407c66426d8aecc98f882929a94e43d3ab9e
7
- data.tar.gz: 239c0df29c90a226d5ba7c62d5838a60311b3e3a6ac6dc70bcbeb4361f5fa130b0133de2ac1d83527a5850572e37153fa394d9a64eea6301c6946853170b4a08
6
+ metadata.gz: dbf5932fc7cc9891b967afbc884513bd90b25a202792630e322ab0d164c292d312127aacee0960af4d2d29d761929695a393bfc8683250f1f5f12ef4c3cecb50
7
+ data.tar.gz: cceee61e637a53865e9c87e13ed4cbdf69dd8fd1ddb3daa3f62b965967b1c2493e988d0c37041550261504bc4c6421c61b3ed81ba5c2d068b4de7c4ade6a2abd
@@ -0,0 +1,13 @@
1
+ es:
2
+ label_redmine_crm_settings: Configuración
3
+ label_redmine_crm_money: Dinero
4
+
5
+ label_redmine_crm_disable_taxes: Deshabilitar impuestos
6
+ label_redmine_crm_default_tax: Impuesto por defecto
7
+ label_redmine_crm_tax_type: Tipo de impuesto
8
+ label_redmine_crm_tax_type_exclusive: Excluir
9
+ label_redmine_crm_tax_type_inclusive: Incluir
10
+ label_redmine_crm_default_currency: Moneda por defecto
11
+ label_redmine_crm_major_currencies: Monedas usadas
12
+ label_redmine_crm_thousands_delimiter: Separador de miles
13
+ label_redmine_crm_decimal_separator: Separador de decimales
data/doc/CHANGELOG CHANGED
@@ -1,9 +1,20 @@
1
1
  == Redmine CRM gem changelog
2
2
 
3
3
  Redmine crm gem - general functions for plugins (tags, vote, viewing, currency)
4
- Copyright (C) 2011-2022 RedmineUP
4
+ Copyright (C) 2011-2023 RedmineUP
5
5
  https://www.redmineup.com/
6
+
7
+ == 2023-01-16 v0.0.59
8
+
9
+ * Fixed attachments constraint
10
+ * Added Spanish locale (Juan José Taguas Navarro)
6
11
 
12
+ == 2022-09-26 v0.0.58
13
+
14
+ * Added closed? method to Issue Drop
15
+ * Added blank issue for Time Entry
16
+ * Added helpdesk_ticket method for Issue Drop
17
+
7
18
  == 2022-02-14 v0.0.57
8
19
 
9
20
  * Fixed BigDecimal liquid bug for ruby > 2.6
@@ -0,0 +1,25 @@
1
+ module RedmineCrm
2
+ module Patches
3
+ module RoutingMapperPatch
4
+ def self.included(base)
5
+ base.send(:include, InstanceMethods)
6
+
7
+ base.class_eval do
8
+ alias_method :constraints_without_redmine_crm, :constraints
9
+ alias_method :constraints, :constraints_with_redmine_crm
10
+ end
11
+ end
12
+
13
+ module InstanceMethods
14
+ def constraints_with_redmine_crm(options = {}, &block)
15
+ options[:object_type] = /.+/ if options[:object_type] && options[:object_type].is_a?(Regexp)
16
+ constraints_without_redmine_crm(options, &block)
17
+ end
18
+ end
19
+ end
20
+ end
21
+ end
22
+
23
+ unless ActionDispatch::Routing::Mapper.included_modules.include?(RedmineCrm::Patches::RoutingMapperPatch)
24
+ ActionDispatch::Routing::Mapper.send(:include, RedmineCrm::Patches::RoutingMapperPatch)
25
+ end
@@ -37,7 +37,7 @@ module RedmineCrm
37
37
  :subject,
38
38
  :description,
39
39
  :visible?,
40
- :open?,
40
+ :closed?,
41
41
  :start_date,
42
42
  :due_date,
43
43
  :overdue?,
@@ -146,6 +146,12 @@ module RedmineCrm
146
146
  end
147
147
  end
148
148
 
149
+ def helpdesk_ticket
150
+ return nil unless defined?(::HelpdeskTicketDrop)
151
+
152
+ @helpdesk_ticket ||= HelpdeskTicketDrop.new(@issue)
153
+ end
154
+
149
155
  def custom_field_values
150
156
  @issue.custom_field_values
151
157
  end
@@ -49,7 +49,7 @@ module RedmineCrm
49
49
  end
50
50
 
51
51
  def issue
52
- @issue ||= IssueDrop.new(@time_entry.issue)
52
+ @issue ||= IssueDrop.new(@time_entry.issue) unless @time_entry.issue.blank?
53
53
  end
54
54
 
55
55
  def activity
@@ -1,3 +1,3 @@
1
1
  module RedmineCrm
2
- VERSION = '0.0.57'
2
+ VERSION = '0.0.59'
3
3
  end
data/lib/redmine_crm.rb CHANGED
@@ -43,6 +43,7 @@ require 'redmine_crm/helpers/form_tag_helper'
43
43
  require 'redmine_crm/assets_manager'
44
44
 
45
45
  require 'redmine_crm/compatibility/application_controller_patch'
46
+ require 'redmine_crm/compatibility/routing_mapper_patch'
46
47
  require 'redmine_crm/patches/liquid_patch' unless BigDecimal.respond_to?(:new)
47
48
 
48
49
  module RedmineCrm
@@ -29,6 +29,10 @@ module RedmineCrm
29
29
  def test_issue_delegated
30
30
  assert_equal [@issue.id, @issue.subject, @issue.description].join('|'),
31
31
  @liquid_render.render('{{ issue.id }}|{{ issue.subject }}|{{ issue.description }}')
32
+
33
+ assert_not_equal @issue.subject, @liquid_render.render('{% if issue.closed? %}{{issue.subject}}{% endif %}')
34
+ @issue.closed = true
35
+ assert_equal @issue.subject, @liquid_render.render('{% if issue.closed? %}{{issue.subject}}{% endif %}')
32
36
  end
33
37
  end
34
38
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redmine_crm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.57
4
+ version: 0.0.59
5
5
  platform: ruby
6
6
  authors:
7
7
  - RedmineUP
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-13 00:00:00.000000000 Z
11
+ date: 2023-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -114,6 +114,7 @@ files:
114
114
  - config/locales/cs.yml
115
115
  - config/locales/de.yml
116
116
  - config/locales/en.yml
117
+ - config/locales/es.yml
117
118
  - config/locales/ru.yml
118
119
  - config/routes.rb
119
120
  - doc/CHANGELOG
@@ -136,6 +137,7 @@ files:
136
137
  - lib/redmine_crm/assets_manager.rb
137
138
  - lib/redmine_crm/colors_helper.rb
138
139
  - lib/redmine_crm/compatibility/application_controller_patch.rb
140
+ - lib/redmine_crm/compatibility/routing_mapper_patch.rb
139
141
  - lib/redmine_crm/currency.rb
140
142
  - lib/redmine_crm/currency/formatting.rb
141
143
  - lib/redmine_crm/currency/heuristics.rb