jirawatch 0.5.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.
@@ -0,0 +1,63 @@
1
+ module Jirawatch
2
+ class Strings
3
+
4
+ attr_reader :tracking_file_content
5
+ attr_reader :tracking_cli_name
6
+ attr_reader :tracking_cli_time
7
+ attr_reader :tracking_cli_inputs
8
+ attr_reader :tracking_paused
9
+ attr_reader :tracking_restarted
10
+ attr_reader :tracking_less_than_60_secs
11
+ attr_reader :error_empty_worklog
12
+ attr_reader :error_invalid_tracking_start
13
+ attr_reader :error_login_info_not_found
14
+
15
+ def initialize
16
+ @tracking_file_content = [
17
+ "",
18
+ "# You spent %d minutes on this issue",
19
+ "# Write here your work log description",
20
+ "# If you leave this empty, no work log will be saved"
21
+ ].join "\n"
22
+
23
+ @tracking_cli_name = "Logging time for %s: %s"
24
+
25
+ @tracking_cli_time = [
26
+ "Started at: %s",
27
+ "Time logged / Original Estimate: %dh %dm / %dh %dm",
28
+ ].join "\n"
29
+
30
+ @tracking_cli_inputs = [
31
+ "Press CTRL-P to pause/restart tracking time",
32
+ "Press CTRL-C to stop tracking time"
33
+ ].join "\n"
34
+
35
+ @tracking_paused = [
36
+ "",
37
+ "Tracking has been paused with %d %s logged"
38
+ ].join "\n"
39
+
40
+ @tracking_restarted = [
41
+ "",
42
+ "Tracking has been restarted",
43
+ ].join "\n"
44
+
45
+ @tracking_less_than_60_secs =
46
+ "Jira can't log less than 60 seconds of work"
47
+
48
+ @error_empty_worklog =
49
+ "Worklog was empty, time was not tracked"
50
+
51
+ @error_invalid_tracking_start =
52
+ "Could not start tracking in a future time"
53
+
54
+ @error_login_info_not_found = [
55
+ "Login info not found, please use:",
56
+ "",
57
+ "jirawatch login",
58
+ ""
59
+ ].join "\n"
60
+ end
61
+
62
+ end
63
+ end
@@ -0,0 +1,11 @@
1
+ module Jirawatch
2
+ module Utils
3
+ module Messages
4
+
5
+ def fail!(message = nil)
6
+ raise Jirawatch::Errors::CommandFailed.new(message)
7
+ end
8
+
9
+ end
10
+ end
11
+ end
metadata ADDED
@@ -0,0 +1,107 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jirawatch
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.5.0
5
+ platform: ruby
6
+ authors:
7
+ - apontini
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2020-02-27 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: dry-cli
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: jira-ruby
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: tty-editor
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ description: A simple way to track jira issues time
56
+ email: alberto.pontini@gmail.com
57
+ executables:
58
+ - jirawatch
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - ".github/workflows/gem-push-gpr.yml"
63
+ - ".github/workflows/gem-push-rubygems.yml"
64
+ - ".gitignore"
65
+ - Dockerfile
66
+ - Gemfile
67
+ - LICENSE
68
+ - README.md
69
+ - bin/jirawatch
70
+ - jirawatch.gemspec
71
+ - lib/jirawatch.rb
72
+ - lib/jirawatch/cli/authenticated_command.rb
73
+ - lib/jirawatch/cli/issues.rb
74
+ - lib/jirawatch/cli/login.rb
75
+ - lib/jirawatch/cli/projects.rb
76
+ - lib/jirawatch/cli/track.rb
77
+ - lib/jirawatch/cli/version.rb
78
+ - lib/jirawatch/config.rb
79
+ - lib/jirawatch/errors/command_failed.rb
80
+ - lib/jirawatch/info.rb
81
+ - lib/jirawatch/interactors/worklogger.rb
82
+ - lib/jirawatch/jira/provisioning.rb
83
+ - lib/jirawatch/strings.rb
84
+ - lib/jirawatch/utils/messages.rb
85
+ homepage:
86
+ licenses: []
87
+ metadata: {}
88
+ post_install_message:
89
+ rdoc_options: []
90
+ require_paths:
91
+ - lib
92
+ required_ruby_version: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ required_rubygems_version: !ruby/object:Gem::Requirement
98
+ requirements:
99
+ - - ">="
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ requirements: []
103
+ rubygems_version: 3.1.2
104
+ signing_key:
105
+ specification_version: 4
106
+ summary: Jira time tracker
107
+ test_files: []