redmine_crm 0.0.58 → 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: 81a0216d566bed679a6f87d2ce909333215908e2cdb61fdc4e1e20e220147ee2
4
- data.tar.gz: 97490339fb9a5330be1a8928d00afeb5521592a407b4913ecea3b86ca22d7c40
3
+ metadata.gz: c6f734cf2d5b38da91d7d00682c4e0af61049b34ee8e19bec54714508f82d798
4
+ data.tar.gz: 4dbcbd32111b84e354bb2a442d2cadef7a1a5dbeaef6cf09b2b8c7d66f6a7390
5
5
  SHA512:
6
- metadata.gz: 9b17257627ce09e285db95899e99dc9a6db1b7e240f0f81d1adb9e08033ea0347e1fc0b8df313fa39ddaecb7a717bd98e3e6320c723b22032e1222d59b1dd94c
7
- data.tar.gz: 16d05fbc85c96c0cdfd07a87da14a9864a02201767beb6cbe47d5e52f641dce7b765b16191587ac7a1fef63778a0550b8af392876991b8dde47c12c8a603de72
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,8 +1,13 @@
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
 
7
12
  == 2022-09-26 v0.0.58
8
13
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  module RedmineCrm
2
- VERSION = '0.0.58'
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
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.58
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-09-26 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