jira-worklog 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +10 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +63 -0
- data/LICENSE.txt +21 -0
- data/README.md +82 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/example.xlsx +0 -0
- data/exe/jira-worklog +4 -0
- data/jira-worklog.gemspec +28 -0
- data/lib/jira/worklog.rb +12 -0
- data/lib/jira/worklog/api_client.rb +64 -0
- data/lib/jira/worklog/cli.rb +129 -0
- data/lib/jira/worklog/version.rb +5 -0
- metadata +147 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: dae0dae3af9ab3285fb419cdc4c1d6338c9ed5df
|
4
|
+
data.tar.gz: d9b95a7c330cb519c77afcc71440e1e0522f52bd
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 0050fc8ced2f953489114eadeea114b85e9dfbbd6e24ba1120d968f5db5b04efb547003fbe5d7c91acb71adc575a6fe3cdbd4ad6e9475060522505f59e45eb8c
|
7
|
+
data.tar.gz: ead9e23abe1e027a1bf14489ae6aadc3dd01b1e1cb3cdedcbd3ba526a6da64d8bf9522b661702255ff2ca9d7dcdea933fea5911adb31c6df4468fa1be495402f
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,63 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
jira-worklog (0.1.0)
|
5
|
+
commander (~> 4.4.3)
|
6
|
+
rest-client (~> 2.0.0)
|
7
|
+
simple_xlsx_reader (~> 1.0.2)
|
8
|
+
|
9
|
+
GEM
|
10
|
+
remote: https://rubygems.org/
|
11
|
+
specs:
|
12
|
+
commander (4.4.3)
|
13
|
+
highline (~> 1.7.2)
|
14
|
+
diff-lcs (1.3)
|
15
|
+
domain_name (0.5.20161129)
|
16
|
+
unf (>= 0.0.5, < 1.0.0)
|
17
|
+
highline (1.7.8)
|
18
|
+
http-cookie (1.0.3)
|
19
|
+
domain_name (~> 0.5)
|
20
|
+
mime-types (3.1)
|
21
|
+
mime-types-data (~> 3.2015)
|
22
|
+
mime-types-data (3.2016.0521)
|
23
|
+
mini_portile2 (2.1.0)
|
24
|
+
netrc (0.11.0)
|
25
|
+
nokogiri (1.7.0.1)
|
26
|
+
mini_portile2 (~> 2.1.0)
|
27
|
+
rake (10.5.0)
|
28
|
+
rest-client (2.0.0)
|
29
|
+
http-cookie (>= 1.0.2, < 2.0)
|
30
|
+
mime-types (>= 1.16, < 4.0)
|
31
|
+
netrc (~> 0.8)
|
32
|
+
rspec (3.5.0)
|
33
|
+
rspec-core (~> 3.5.0)
|
34
|
+
rspec-expectations (~> 3.5.0)
|
35
|
+
rspec-mocks (~> 3.5.0)
|
36
|
+
rspec-core (3.5.4)
|
37
|
+
rspec-support (~> 3.5.0)
|
38
|
+
rspec-expectations (3.5.0)
|
39
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
40
|
+
rspec-support (~> 3.5.0)
|
41
|
+
rspec-mocks (3.5.0)
|
42
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
43
|
+
rspec-support (~> 3.5.0)
|
44
|
+
rspec-support (3.5.0)
|
45
|
+
rubyzip (1.2.1)
|
46
|
+
simple_xlsx_reader (1.0.2)
|
47
|
+
nokogiri
|
48
|
+
rubyzip
|
49
|
+
unf (0.1.4)
|
50
|
+
unf_ext
|
51
|
+
unf_ext (0.0.7.2)
|
52
|
+
|
53
|
+
PLATFORMS
|
54
|
+
ruby
|
55
|
+
|
56
|
+
DEPENDENCIES
|
57
|
+
bundler (~> 1.12)
|
58
|
+
jira-worklog!
|
59
|
+
rake (~> 10.0)
|
60
|
+
rspec (~> 3.0)
|
61
|
+
|
62
|
+
BUNDLED WITH
|
63
|
+
1.12.5
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 Petr Cervinka
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,82 @@
|
|
1
|
+
# Jira::Worklog
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'jira-worklog'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install jira-worklog
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
You can use JIRA API Client programatically (see `lib/jira/worklog/api_client.rb`) or as CLI utility `jira-worklog`
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
### CLI - List issues
|
28
|
+
|
29
|
+
In order to add some worklog from excel, you need to know available issues (key or id). This command helps you to get list of issues:
|
30
|
+
|
31
|
+
```bash
|
32
|
+
jira-worklog issues -u MY_USERNAME -p MY_PASSWORD -b https://jira.example.com/rest/api/2/
|
33
|
+
```
|
34
|
+
|
35
|
+
### CLI - List worklogs for issue
|
36
|
+
|
37
|
+
```bash
|
38
|
+
jira-worklog list -u MY_USERNAME -p MY_PASSWORD -b https://jira.example.com/rest/api/2/ --issue ISUE_ID_OR_KEY
|
39
|
+
```
|
40
|
+
|
41
|
+
### CLI - Add worklogs from xlsx file
|
42
|
+
|
43
|
+
File must be in excel xlsx form and must contain 4 colums (ussue_id_or_key, date, duration_in_hours, comment). For example file se `exmple.xlsx`.
|
44
|
+
|
45
|
+
```bash
|
46
|
+
jira-worklog add -u MY_USERNAME -p MY_PASSWORD -b https://jira.example.com/rest/api/2/ --xlsx FILE.XLSX
|
47
|
+
```
|
48
|
+
|
49
|
+
### CLI - delete worklogs
|
50
|
+
|
51
|
+
```bash
|
52
|
+
jira-worklog delete -u MY_USERNAME -p MY_PASSWORD -b https://jira.example.com/rest/api/2/ WORKLOG_ID1,WORKLOG_ID2,...
|
53
|
+
```
|
54
|
+
|
55
|
+
|
56
|
+
### Ruby API Client
|
57
|
+
|
58
|
+
```ruby
|
59
|
+
api = Jira::Worklog::APIClient.new(base_url, user, password)
|
60
|
+
api.issues() # list issues for logged user
|
61
|
+
api.worklogs(issue_id_or_key) # fetch stored worklogs for given issue
|
62
|
+
api.add_worklog(worklog_data) # add worklog - worklog_data is a Hash:
|
63
|
+
# {issue: 'ISSSUE_ID_OR_KEY', started: Date, duration: in_seconds, comment: 'comment'}
|
64
|
+
api.delete_worklog(issue_id_or_key, worklog_id)
|
65
|
+
|
66
|
+
```
|
67
|
+
|
68
|
+
## Development
|
69
|
+
|
70
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
71
|
+
|
72
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
73
|
+
|
74
|
+
## Contributing
|
75
|
+
|
76
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/jira-worklog.
|
77
|
+
|
78
|
+
|
79
|
+
## License
|
80
|
+
|
81
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
82
|
+
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "jira/worklog"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
data/example.xlsx
ADDED
Binary file
|
data/exe/jira-worklog
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'jira/worklog/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'jira-worklog'
|
8
|
+
spec.version = Jira::Worklog::VERSION
|
9
|
+
spec.authors = ['Petr Cervinka']
|
10
|
+
spec.email = ['petr@petrcervinka.cz']
|
11
|
+
|
12
|
+
spec.summary = %q{Allow add JIRA worklog (hours worked) from excel (.xlsx) file via JIRA REST API}
|
13
|
+
spec.homepage = 'https://github.com/cervinka/jira-worklog'
|
14
|
+
spec.license = 'MIT'
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
17
|
+
spec.bindir = 'exe'
|
18
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
19
|
+
spec.require_paths = ['lib']
|
20
|
+
|
21
|
+
spec.add_dependency 'commander', '~> 4.4.3'
|
22
|
+
spec.add_dependency 'rest-client', '~> 2.0.0'
|
23
|
+
spec.add_dependency 'simple_xlsx_reader', '~> 1.0.2'
|
24
|
+
|
25
|
+
spec.add_development_dependency 'bundler', '~> 1.12'
|
26
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
27
|
+
spec.add_development_dependency 'rspec', '~> 3.0'
|
28
|
+
end
|
data/lib/jira/worklog.rb
ADDED
@@ -0,0 +1,64 @@
|
|
1
|
+
class APIClient
|
2
|
+
attr_reader :user, :password, :url_base
|
3
|
+
|
4
|
+
def initialize(url_base, user, password)
|
5
|
+
@user = user
|
6
|
+
@password = password
|
7
|
+
@url_base = url_base
|
8
|
+
end
|
9
|
+
|
10
|
+
|
11
|
+
def issues
|
12
|
+
data = request("search?jql=assignee=#{user}")
|
13
|
+
data['issues'].map { |issue| {key: issue['key'], id: issue['id'], summary: issue['fields']['summary']} }
|
14
|
+
end
|
15
|
+
|
16
|
+
def delete_worklog(issue, worklog_id)
|
17
|
+
delete_request("issue/#{issue}/worklog/#{worklog_id}")
|
18
|
+
end
|
19
|
+
|
20
|
+
def add_worklog(worklog)
|
21
|
+
req = {
|
22
|
+
comment: worklog[:comment],
|
23
|
+
started: worklog[:date].strftime('%Y-%m-%d') + 'T07:00:00.000+0100',
|
24
|
+
timeSpentSeconds: worklog[:duration]
|
25
|
+
}
|
26
|
+
data = post_request("issue/#{worklog[:issue]}/worklog", req.to_json)
|
27
|
+
# puts "added: #{worklog.inspect}"
|
28
|
+
data['id']
|
29
|
+
end
|
30
|
+
|
31
|
+
|
32
|
+
def worklogs(issue)
|
33
|
+
data = request("issue/#{issue}/worklog")
|
34
|
+
# pp data
|
35
|
+
data['worklogs'].map { |worklog|
|
36
|
+
{
|
37
|
+
duration: worklog['timeSpentSeconds'],
|
38
|
+
comment: worklog['comment'],
|
39
|
+
issue_id: worklog['issueId'],
|
40
|
+
id: worklog['id'],
|
41
|
+
date: Date.strptime(worklog['started'][0..9], '%Y-%m-%d')
|
42
|
+
}
|
43
|
+
}
|
44
|
+
end
|
45
|
+
|
46
|
+
private
|
47
|
+
def request(path)
|
48
|
+
url = url_base + path
|
49
|
+
resp = RestClient::Request.execute method: :get, url: url, user: user, password: password, :verify_ssl => false
|
50
|
+
JSON.parse resp.body
|
51
|
+
end
|
52
|
+
|
53
|
+
def delete_request(path)
|
54
|
+
url = url_base + path
|
55
|
+
RestClient::Request.execute method: :delete, url: url, user: user, password: password, :verify_ssl => false
|
56
|
+
end
|
57
|
+
|
58
|
+
def post_request(path, payload)
|
59
|
+
url = url_base + path
|
60
|
+
resp = RestClient::Request.execute method: :post, url: url, user: user, password: password, :verify_ssl => false, payload: payload, headers: {'Content-Type' => 'application/json; charset=utf-8'}
|
61
|
+
JSON.parse resp.body
|
62
|
+
end
|
63
|
+
|
64
|
+
end
|
@@ -0,0 +1,129 @@
|
|
1
|
+
require 'commander/import'
|
2
|
+
|
3
|
+
program :name, 'jira-worklog'
|
4
|
+
program :version, '0.0.1'
|
5
|
+
program :description, 'Add worklog to JIRA using REST API'
|
6
|
+
# program :help_formatter, :compact
|
7
|
+
|
8
|
+
global_option '-u', '--user USERNAME', 'JIRA login username'
|
9
|
+
global_option '-p', '--password PASSWORD', 'JIRA login password'
|
10
|
+
global_option '-b', '--url-base BASE_URL', 'JIRA base URL. ie: https://jira.example.com/rest/api/2/'
|
11
|
+
|
12
|
+
command :issues do |c|
|
13
|
+
c.syntax = 'jira-worklog issues [options]'
|
14
|
+
c.summary = 'List available issues'
|
15
|
+
# c.description = ''
|
16
|
+
c.example 'list issues', 'jira-worklog issues -u USERNAME -p PASSWORD -b BASE_URL'
|
17
|
+
c.action do |_args, options|
|
18
|
+
url_base, user, password = get_credentials(options)
|
19
|
+
api = APIClient.new(url_base,user, password)
|
20
|
+
# api = Jira::Worklog::APIClient.new(url_base,user, password)
|
21
|
+
api.issues.each do |issue|
|
22
|
+
puts "#{issue[:key]} (issue_id #{issue[:id]}) - #{issue[:summary]}"
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
command :add do |c|
|
28
|
+
c.syntax = 'jira-worklog add [options]'
|
29
|
+
c.summary = 'Add new worklog entries to JIRA'
|
30
|
+
c.description= <<DESCRIPTION
|
31
|
+
- input file must contain 4 columns and each column is required (additional rows are ignored)
|
32
|
+
- 1st column: issue key or id
|
33
|
+
- 2nd column: date (start time is set to 7am automatically)
|
34
|
+
- 3rd column: duration in hours
|
35
|
+
- 4th column: comment
|
36
|
+
DESCRIPTION
|
37
|
+
c.example 'description', 'jira-worklog add -u USER -p PASSWORD -b BASE_URL --xlsx FILE.XLSX'
|
38
|
+
c.option '--xlsx FILE', 'Add new entries to JIRA workog from xlsx file'
|
39
|
+
c.action do |_args, options|
|
40
|
+
raise '--xlsx is mandatory parameter' unless options.xlsx
|
41
|
+
url_base, user, password = get_credentials(options)
|
42
|
+
api = APIClient.new(url_base, user, password)
|
43
|
+
worklogs = load_from_xlsx(options.xlsx)
|
44
|
+
worklog_ids = []
|
45
|
+
|
46
|
+
worklogs.each do |worklog|
|
47
|
+
worklog_id = api.add_worklog(worklog)
|
48
|
+
worklog_ids << worklog_id
|
49
|
+
puts "#{formatted_duration(worklog[:duration])} - (id: #{worklog_id}) #{worklog[:date]} #{worklog[:issue]} #{worklog[:comment]}"
|
50
|
+
end
|
51
|
+
puts '-' * 60
|
52
|
+
puts "#{formatted_duration(worklogs.inject(0) { |sum, worklog| sum + worklog[:duration] })} inserted"
|
53
|
+
puts "New ids: #{worklog_ids.join(',')}"
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
command :delete do |c|
|
58
|
+
c.syntax = 'jira-worklog delete ISSUE WORKLOG_IDS'
|
59
|
+
c.summary = 'Delete worklog entries by ids (comma separated)'
|
60
|
+
c.example 'delete worklogs', 'jira-worklog delete -u USER -p PASSWORD -b BASE_URL WORKLOG1_ID,WORKLOG2_ID,...'
|
61
|
+
c.action do |args, options|
|
62
|
+
issue = args[0].to_s
|
63
|
+
raise 'please specify issue key or id' if issue.nil?
|
64
|
+
ids = args[1].to_s.split(',')
|
65
|
+
raise 'please specify worklog ids (comma separated)' if ids.empty?
|
66
|
+
url_base, user, password = get_credentials(options)
|
67
|
+
api = APIClient.new(url_base, user, password)
|
68
|
+
ids.each do |worklog_id|
|
69
|
+
puts "Deleting worklog ##{worklog_id}"
|
70
|
+
api.delete_worklog(issue, worklog_id)
|
71
|
+
end
|
72
|
+
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
command :list do |c|
|
77
|
+
c.syntax = 'jira-worklog list [options]'
|
78
|
+
c.summary = 'List worklog entries for given issue'
|
79
|
+
c.description = ''
|
80
|
+
c.example 'list worklogs for given issue', 'jira-worklog list -u USER -p PASSWORD -b BASE_URL --issue ISSUE_ID_OR_KEY'
|
81
|
+
c.option '--issue ISSUE', 'JIRA Issue Key or Id (use "issues" command to list available issues)'
|
82
|
+
c.action do |_args, options|
|
83
|
+
raise '--issue is mandatory parameter' unless options.issue
|
84
|
+
url_base, user, password = get_credentials(options)
|
85
|
+
api = APIClient.new(url_base, user, password)
|
86
|
+
worklogs = api.worklogs(options.issue)
|
87
|
+
worklog_ids = []
|
88
|
+
worklogs.each do |worklog|
|
89
|
+
puts "#{formatted_duration(worklog[:duration])} - (id: #{worklog[:id]}) #{worklog[:date]} #{worklog[:comment]}"
|
90
|
+
worklog_ids << worklog[:id]
|
91
|
+
end
|
92
|
+
puts '-' * 60
|
93
|
+
puts "#{formatted_duration(worklogs.inject(0) { |sum, worklog| sum + worklog[:duration] })} total"
|
94
|
+
puts "Worklog ids: #{worklog_ids.join(',')}"
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
def load_from_xlsx(filename)
|
99
|
+
doc = SimpleXlsxReader.open(filename)
|
100
|
+
doc.sheets # => [<#SXR::Sheet>, ...]
|
101
|
+
sheet = doc.sheets.first
|
102
|
+
puts "Loading from sheet: #{sheet.name}"
|
103
|
+
worklogs = []
|
104
|
+
sheet.rows.each.with_index do |row, idx|
|
105
|
+
issue, date, duration, comment = row[0], row[1], row[2], row[3]
|
106
|
+
duration = Float(duration) rescue 0
|
107
|
+
if issue && !issue.nil? && !issue.empty? && date.is_a?(Date) && duration > 0 && comment && !comment.nil? && !comment.empty?
|
108
|
+
worklogs << ({issue: issue, date: date, duration: duration * 3600, comment: comment})
|
109
|
+
else
|
110
|
+
puts "Skipping row ##{idx + 1}: #{row.inspect}"
|
111
|
+
end
|
112
|
+
end
|
113
|
+
worklogs
|
114
|
+
end
|
115
|
+
|
116
|
+
def formatted_duration(total_seconds)
|
117
|
+
hours = total_seconds / (60 * 60)
|
118
|
+
minutes = (total_seconds / 60) % 60
|
119
|
+
seconds = total_seconds % 60
|
120
|
+
'%2d:%02d:%02d' % [hours, minutes, seconds]
|
121
|
+
end
|
122
|
+
|
123
|
+
def get_credentials(options)
|
124
|
+
user = options.user || ask('JIRA user: ')
|
125
|
+
password = options.password || ask('JIRA password: ') { |q| q.echo = '*' }
|
126
|
+
url_base = options.url_base
|
127
|
+
raise('--url_base is mandatory option') if url_base.nil? || url_base.empty?
|
128
|
+
[url_base, user, password]
|
129
|
+
end
|
metadata
ADDED
@@ -0,0 +1,147 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: jira-worklog
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Petr Cervinka
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-02-15 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: commander
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 4.4.3
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 4.4.3
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rest-client
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 2.0.0
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 2.0.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: simple_xlsx_reader
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 1.0.2
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 1.0.2
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: bundler
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.12'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '1.12'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rake
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '10.0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '10.0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rspec
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '3.0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '3.0'
|
97
|
+
description:
|
98
|
+
email:
|
99
|
+
- petr@petrcervinka.cz
|
100
|
+
executables:
|
101
|
+
- jira-worklog
|
102
|
+
extensions: []
|
103
|
+
extra_rdoc_files: []
|
104
|
+
files:
|
105
|
+
- ".gitignore"
|
106
|
+
- ".rspec"
|
107
|
+
- ".travis.yml"
|
108
|
+
- Gemfile
|
109
|
+
- Gemfile.lock
|
110
|
+
- LICENSE.txt
|
111
|
+
- README.md
|
112
|
+
- Rakefile
|
113
|
+
- bin/console
|
114
|
+
- bin/setup
|
115
|
+
- example.xlsx
|
116
|
+
- exe/jira-worklog
|
117
|
+
- jira-worklog.gemspec
|
118
|
+
- lib/jira/worklog.rb
|
119
|
+
- lib/jira/worklog/api_client.rb
|
120
|
+
- lib/jira/worklog/cli.rb
|
121
|
+
- lib/jira/worklog/version.rb
|
122
|
+
homepage: https://github.com/cervinka/jira-worklog
|
123
|
+
licenses:
|
124
|
+
- MIT
|
125
|
+
metadata: {}
|
126
|
+
post_install_message:
|
127
|
+
rdoc_options: []
|
128
|
+
require_paths:
|
129
|
+
- lib
|
130
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
131
|
+
requirements:
|
132
|
+
- - ">="
|
133
|
+
- !ruby/object:Gem::Version
|
134
|
+
version: '0'
|
135
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
136
|
+
requirements:
|
137
|
+
- - ">="
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: '0'
|
140
|
+
requirements: []
|
141
|
+
rubyforge_project:
|
142
|
+
rubygems_version: 2.5.1
|
143
|
+
signing_key:
|
144
|
+
specification_version: 4
|
145
|
+
summary: Allow add JIRA worklog (hours worked) from excel (.xlsx) file via JIRA REST
|
146
|
+
API
|
147
|
+
test_files: []
|