createissue_jira 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
  SHA256:
3
- metadata.gz: 8ddd1e79a3d28d6bf5e20cf3e9717d4c016017992d02060e474db6555568c54c
4
- data.tar.gz: 1a739441f44a43cbe88be50dc6e569e16ab1f49ed607ee4eabeb75aebf96393e
3
+ metadata.gz: 149e36e69be40905e87e0607ce3b669cc4fe4eee55a19226ee647f0f6e73562d
4
+ data.tar.gz: ff59d92277f004eabb3ff59230208129fc5369458209624a24c8d5291b3286a8
5
5
  SHA512:
6
- metadata.gz: 4ac7fafe471865de2b2c2338834f3b046ae47884a6b8a607f77cf49bf8ab179aaa8eec47c139dd46636e21e8bcaa4cb874cf32dc9f61f033c8c2884cc0c8fbc7
7
- data.tar.gz: 38c98832b2570f6e40e44692f4902e2f9c46ef4111887158280fd9f1ba76fa58df4f7afc887129793879ac56a7a2a09f5d6d769ea7f886c21a4d35b7452ba382
6
+ metadata.gz: acfe67c2d3d3423f59b0b0c2af8366e298ce1375c5a886fd4e3fca840a627c8c95eb1234960cbbce758f668efcd47125be98db1f555c546427d71069025b338d
7
+ data.tar.gz: 78d467e1255b4edc50dfe6c76a791e5e1fe5fb0e1de85be8dcd693f3e648199be19f0f0cf1adb7ea6cb9b43e76cf6b46486cd2bf50091975b5c5964da3192c57
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- createissue_jira (0.1.9)
4
+ createissue_jira (0.2.0)
5
5
  base64 (~> 0.1, >= 0.1.0)
6
6
  json (~> 2.1, >= 2.1.0)
7
7
  rest-client (~> 2.0, >= 2.0.2)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CreateissueJira
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  end
@@ -8,12 +8,14 @@ require 'roo'
8
8
 
9
9
  module CreateissueJira
10
10
  class Datafile
11
- def jira_api_credentials email,base_url, jira_api_token, assignee_id, acceptance_criteria_id
11
+ def jira_api_credentials email: ,base_url:, jira_api_token:, assignee_id:, acceptance_criteria_id:
12
12
  @base_url = base_url
13
13
  @jira_api_token = jira_api_token
14
14
  @assignee_id = assignee_id
15
15
  @acceptance_criteria_id = acceptance_criteria_id
16
16
  @email = email
17
+ #2022 - atlassian - jira password updated with api token
18
+ @auth = "Basic #{Base64.strict_encode64("#{@email + ":" + @jira_api_token}")}"
17
19
  end
18
20
 
19
21
  def load_file (file_path, sheet_no, header_name)
@@ -85,8 +87,6 @@ module CreateissueJira
85
87
  }
86
88
  }
87
89
 
88
- #2022 - atlassian - jira password updated with api token
89
- @auth = "Basic #{Base64.strict_encode64("#{@email + ":" + @jira_api_token}")}"
90
90
 
91
91
  response = RestClient.post(
92
92
  "#{@base_url}/rest/api/2/issue/",
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: createissue_jira
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
  - SachinPatel
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-01-24 00:00:00.000000000 Z
11
+ date: 2023-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client