redmine-reporting 0.1.4 → 0.1.5

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
  SHA1:
3
- metadata.gz: 93ec28245e00de04fdd59c0c08a3a0589f959c55
4
- data.tar.gz: f1018fb1f932e834dcffd959fb666ce421cd7260
3
+ metadata.gz: 8691a6a676d35aa4100c383077f8579c4b1b73a0
4
+ data.tar.gz: f2ab9cd794b8208d2edb3566460a68c9208dc0f7
5
5
  SHA512:
6
- metadata.gz: 3d61ac2c5d910a4c4a32b5dd041b80386c584cf2d28debcbe91864dc096e6964b81da4a9d8fd99d6a9092a65ace12f44e50dee14f6b1440ee925971e50daddd9
7
- data.tar.gz: 6172f44a44d581c58cc6ca41d44522b08f882c3c923bcdf5bf1022a6e09cd9f3d2509e53910be8593ce5f20c95632afff40c33a50f0fb7140491386f2159d1d1
6
+ metadata.gz: 4485d52dc79fb662f027899e8033d6e7ef7c3e4226f160e0c65dc1b6d2bf243438dad5a5060606c689e3e67fb50de09c5376a9fced1b253bccb6ab75a876d09b
7
+ data.tar.gz: c540a6fc214dc99b9d18b3ad95ac40c5e8351bd41f410e5947ccc251d3f478deb241e34aac876614da8cc6140077e3911cc9527d5e6f7fabeed733ef9396ef27
@@ -39,14 +39,14 @@ module Redmine
39
39
 
40
40
  if saved_issue_id.nil?
41
41
  # add reference_id to description if updates are disabled
42
- @description = "h1. #{reference_id}\n\n#{@description}" if config[:no_update]
42
+ desc = config[:no_update] ? "h1. #{reference_id}\n\n#{@description}" : @description
43
43
 
44
44
  resp = HTTParty.post("#{config[:base_url]}/issues.json", options.merge({
45
45
  body: {
46
46
  issue: {
47
47
  subject: @subject.strip,
48
48
  project_id: config[:project],
49
- description: @description.strip,
49
+ description: desc.strip,
50
50
  tracker_id: config[:tracker],
51
51
  category_id: config[:category]
52
52
  }
@@ -1,5 +1,5 @@
1
1
  module Redmine
2
2
  module Reporting
3
- VERSION = '0.1.4'
3
+ VERSION = '0.1.5'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redmine-reporting
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Schwab