create_ticket 0.2.0 → 0.2.1

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: 73ab251a7382b54198e7c1830125e6cc7167b1d7
4
- data.tar.gz: c98af4da77d50084804ec1d4e64703d8f89916c5
3
+ metadata.gz: 4603d519ab737c1403dfb2398ed2d0fc63603817
4
+ data.tar.gz: 73690dfb7101b39200b40d1f7c32334075307f7a
5
5
  SHA512:
6
- metadata.gz: 997a48983c059a4bfe8edbda17963abcee4a192d58aa777f650071a179da59b5f62600e99dd958105371609ea499a0782ad27ffb16ae5e33197c5c79f1eb3fee
7
- data.tar.gz: 82336605d4282b272f7f8bfe677a08bba2936245dc173ad320e5cc0058c6701cec8d5dd334765b1449a142c0e37018530b3780f9304449da40019af0ee978f0e
6
+ metadata.gz: 458f88080e178570ad8a86244158c6d6ee10c4d7c5ab4220449e085bb59434cf61ee92960fde28d3eae1c91a731a68d387f26686e22200d08c22677c918b7d60
7
+ data.tar.gz: f45a547fc2d3ca8d49afba27ed4b069aa289f2c5812632711d7d7d30c300a6aa3eb40ab1eec15a4fe6aaf8b92038442bbfe5dcb5138071282e6d8caa0d0b5324
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # frozen_string_literal: true
3
3
 
4
- require 'create_ticket'
4
+ require 'create_ticket/cli'
5
5
 
6
6
  CreateTicket::CLI.new.run!
@@ -7,7 +7,7 @@ require 'json'
7
7
  require 'erb'
8
8
 
9
9
  class CreateTicket
10
- attr_reader *%i[jira_url project jira_token template_filename assignee issue_type]
10
+ attr_reader :jira_url, :project, :jira_token, :template_filename, :assignee, :issue_type
11
11
 
12
12
  def initialize(conf)
13
13
  @jira_url = conf.fetch(:jira_url)
@@ -30,7 +30,7 @@ class CreateTicket
30
30
  end
31
31
  end
32
32
 
33
- def create_ticket
33
+ def create_ticket!
34
34
  response = jira_request.post do |req|
35
35
  req.url '/rest/api/2/issue'
36
36
  req.body = jira_ticket_json
@@ -1,7 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'create_ticket'
4
+
3
5
  class CreateTicket
4
- class Cli
6
+ class CLI
5
7
  def conf
6
8
  {
7
9
  jira_url: ENV.fetch('JIRA_URL'),
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class CreateTicket
4
- VERSION = '0.2.0'
4
+ VERSION = '0.2.1'
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.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Marek-Spartz