errbit_redmine_plugin 0.2.0 → 0.3.0

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: fe12640481524215b1f0cc933f4580fba32effbc
4
- data.tar.gz: 72444add0c45c6756ae383a7415776916344b454
3
+ metadata.gz: ff53ecfb7e10ed33b14d595638647f990101288a
4
+ data.tar.gz: ab240fcfcca18705d0c9e266d4a5f65e2bb35c84
5
5
  SHA512:
6
- metadata.gz: dfe724375c4f574a129f59387a596bc3704d6bc9e3230b9f56c4d1cadd98ffe959f4189de70b5021e45398161f348f537ed5e11694c6741cb8790d72a3805edf
7
- data.tar.gz: b294d27fe162fa9d04b8a839e8a35b6baa0e7030ec18354fc5d1a0d74bcf5daf7c7d9f243ff38194e99e082e5b9c0fe357de82b83445b21de16932efdb043436
6
+ metadata.gz: d95d4d007b7a78ddf1d6322d89b66ce077ff6b17bfe415bfa7f62676be0383353359df1886b3fc22b602f1dfe637d943226f5557e0c2b7a69abe5226930238c7
7
+ data.tar.gz: 3359d03bd57cf75c7d6a5ac83e2c5080dd217e00a29b2685c0344565c470500ac3357ec22169c2bcd740d0d758b50532ebd36325edc32d92776195a14b4f746c
@@ -27,6 +27,11 @@ module ErrbitRedminePlugin
27
27
  :optional => true,
28
28
  :label => "App Project",
29
29
  :placeholder => "Where app's files & revisions can be viewed. (Leave blank to use the above project by default)"
30
+ }],
31
+ [:tracker_id, {
32
+ :optional => true,
33
+ :label => "Issue Tracker Id",
34
+ :placeholder => "The tracker where tickets will be created. (Leave blank to use default)"
30
35
  }]
31
36
  ]
32
37
 
@@ -82,6 +87,7 @@ module ErrbitRedminePlugin
82
87
  user = params['username']
83
88
  passwd = params['password']
84
89
  project_id = params['project_id']
90
+ tracker_id = params['tracker_id']
85
91
 
86
92
  RedmineClient::Base.configure do
87
93
  self.token = token
@@ -94,6 +100,7 @@ module ErrbitRedminePlugin
94
100
  issue = RedmineClient::Issue.new(:project_id => project_id)
95
101
  issue.subject = "[#{ problem.environment }][#{ problem.where }] #{problem.message.to_s.truncate(100)}"
96
102
  issue.description = self.class.body_template.result(binding)
103
+ issue.tracker_id = tracker_id if tracker_id.present?
97
104
  issue.save!
98
105
 
99
106
  problem.update_attributes(
@@ -1,3 +1,3 @@
1
1
  module ErrbitRedminePlugin
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: errbit_redmine_plugin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Crosby
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-10 00:00:00.000000000 Z
11
+ date: 2014-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: errbit_plugin