redmine_crm 0.0.57 → 0.0.58

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: 81a0216d566bed679a6f87d2ce909333215908e2cdb61fdc4e1e20e220147ee2
4
+ data.tar.gz: 97490339fb9a5330be1a8928d00afeb5521592a407b4913ecea3b86ca22d7c40
5
5
  SHA512:
6
- metadata.gz: 94df5375a9504037d560bcd3da69c76d1915539056e3da79978c3548d950364afb09e594a6c4ef478e8901aa84ee407c66426d8aecc98f882929a94e43d3ab9e
7
- data.tar.gz: 239c0df29c90a226d5ba7c62d5838a60311b3e3a6ac6dc70bcbeb4361f5fa130b0133de2ac1d83527a5850572e37153fa394d9a64eea6301c6946853170b4a08
6
+ metadata.gz: 9b17257627ce09e285db95899e99dc9a6db1b7e240f0f81d1adb9e08033ea0347e1fc0b8df313fa39ddaecb7a717bd98e3e6320c723b22032e1222d59b1dd94c
7
+ data.tar.gz: 16d05fbc85c96c0cdfd07a87da14a9864a02201767beb6cbe47d5e52f641dce7b765b16191587ac7a1fef63778a0550b8af392876991b8dde47c12c8a603de72
data/doc/CHANGELOG CHANGED
@@ -4,6 +4,12 @@ Redmine crm gem - general functions for plugins (tags, vote, viewing, currency)
4
4
  Copyright (C) 2011-2022 RedmineUP
5
5
  https://www.redmineup.com/
6
6
 
7
+ == 2022-09-26 v0.0.58
8
+
9
+ * Added closed? method to Issue Drop
10
+ * Added blank issue for Time Entry
11
+ * Added helpdesk_ticket method for Issue Drop
12
+
7
13
  == 2022-02-14 v0.0.57
8
14
 
9
15
  * Fixed BigDecimal liquid bug for ruby > 2.6
@@ -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.58'
3
3
  end
@@ -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.58
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: 2022-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails