create_ticket 0.4.0 → 0.5.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: 25260f0f4dc288acb2027a10c2be1afe361a66ec
4
- data.tar.gz: 99033ee879798834f415c1323c43f279ad9fcc81
3
+ metadata.gz: 268a2cbc8d1bfccf7a46e181fc3e68d4b56e1cea
4
+ data.tar.gz: 7f2e32537907f59e4b40c7e46511a67400d5b57c
5
5
  SHA512:
6
- metadata.gz: b5232da953a64edff3124d5bfb0fa5e5db9e3c9eccc67aa763ccb944b1bdad54921904d0ce692d1fc6a1b68bfb84b1079039a29e00a517508c28cd830cffe5b0
7
- data.tar.gz: 463ba37b5ffe282409ceafd7979c8e11b6b8de57e04a35470f4a9d8e6603137346eba6e24ed10ae4d7dcb7755470b6c771609f2d528f499321be0de73e4dbc69
6
+ metadata.gz: 0369e9d60fe0a132d9fcd3bc54064be70ace0d06f227a1d6cdc4ef601afc880864e3aba3494eee25db3910ade6d315d044ceee12520fc1f18413d3f5e88a2ad3
7
+ data.tar.gz: 83281923c8b7694bae1de07d6fd8e0e66f4931a07608f1ded5886ace5b6cf10f3c382a036ce04d2a0f6cbd8838e0f5fad61f702f7043a5c84f73f6eb01a083a5
@@ -49,15 +49,16 @@ class CreateTicket
49
49
  end
50
50
 
51
51
  def fields
52
- {
52
+ effs = {
53
53
  project: { key: project },
54
54
  issuetype: { name: issue_type },
55
55
  summary: summary,
56
56
  description: description,
57
57
  assignee: { name: assignee },
58
- reporter: { name: assignee },
59
- duedate: duedate
58
+ reporter: { name: assignee }
60
59
  }.merge(custom_fields)
60
+ effs[:duedate] = duedate unless duedate.nil?
61
+ effs
61
62
  end
62
63
 
63
64
  def jira_ticket_json
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class CreateTicket
4
- VERSION = '0.4.0'
4
+ VERSION = '0.5.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: create_ticket
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Marek-Spartz