gitloggl 0.32 → 0.33
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 +4 -4
- data/.gitignore +0 -1
- data/README.md +21 -1
- data/doc/logo.jpg +0 -0
- data/doc/screen-manage.png +0 -0
- data/lib/gitloggl/commands/manage_integration.rb +2 -2
- data/lib/gitloggl/version.rb +1 -1
- metadata +3 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7504b49f267375d128e36417a687f4741617ce9cf2d1fd2661c6f11d83999e3c
|
|
4
|
+
data.tar.gz: e623062452d3b2c3ab0f3f72b9ffa15d1f02ebfb0524d20a6ef8087027aec0a7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: eec1ac34508a544e9ca52382a3ef76a5222876089975663e0477c196e4e572cc2b04db64beed7427a71be712a05f1f43e6fac5c57f2ad8887b9033640b9e711e
|
|
7
|
+
data.tar.gz: 8a1d067af01d0f0cc7db13225b6ffcc337b32e782cc37d989fff0bd98bb8375637c3103695e1d92b5229463fa0fc796bba5c305cd3f4a67203023ef7af2c6663
|
data/.gitignore
CHANGED
data/README.md
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
|
+
<img src="https://github.com/shlima/gitloggl/blob/master/doc/logo.jpg?raw=true" align="center" width="48" />
|
|
2
|
+
|
|
1
3
|
## Gitloggl
|
|
2
4
|
|
|
3
|
-
|
|
5
|
+
Console application written in Ruby allows you to sync time tracks between
|
|
6
|
+
[toggl.com](https://toggl.com) and [gitlab.com](https://gitlab.com)
|
|
7
|
+
|
|
8
|
+
Program calculates total time you've currently spent on issue at gitlab
|
|
9
|
+
and posts time tracks to gitlab with the +diff between toggl and gitlab.
|
|
10
|
+
|
|
11
|
+
[](https://asciinema.org/a/V5imC7CqyDeidlqiPKHJxqTWX?autoplay=1)
|
|
12
|
+
|
|
13
|
+
## Installation
|
|
4
14
|
|
|
5
15
|
```bash
|
|
6
16
|
gem instal gitloggl
|
|
@@ -11,3 +21,13 @@ gitloggl
|
|
|
11
21
|
# or
|
|
12
22
|
gitloggl menu --verbose
|
|
13
23
|
```
|
|
24
|
+
|
|
25
|
+
## Usage
|
|
26
|
+

|
|
27
|
+
|
|
28
|
+
1) Go to Toggl's [profile page](https://toggl.com/app/profile) and copy Access token
|
|
29
|
+
1) Copy WorkspaceID from [workspaces page](https://toggl.com/app/workspaces) (click edit and copy ID from URL)
|
|
30
|
+
1) Generate Gitlab Personal Access token with API rights at [profile page](https://gitlab.com/profile/personal_access_tokens)
|
|
31
|
+
1) Add credentials at `gitloggl -> Manage Integrations -> Add`
|
|
32
|
+
1) Use gitlab issue path names in your toggl's tracks (my-project#41) to be able to match data between toggl and gitlab
|
|
33
|
+
1) Enjoy
|
data/doc/logo.jpg
ADDED
|
Binary file
|
|
Binary file
|
|
@@ -6,7 +6,7 @@ module Gitloggl
|
|
|
6
6
|
def execute
|
|
7
7
|
puts render_table(table)
|
|
8
8
|
|
|
9
|
-
prompt.select('Manage
|
|
9
|
+
prompt.select('Manage toggl-> gitlab integrations') do |menu|
|
|
10
10
|
menu.enum ')'
|
|
11
11
|
menu_back(menu)
|
|
12
12
|
menu.choice 'Add', -> { add }
|
|
@@ -49,7 +49,7 @@ module Gitloggl
|
|
|
49
49
|
end
|
|
50
50
|
|
|
51
51
|
def table
|
|
52
|
-
table = TTY::Table.new header: ['№', 'Name', 'Gitlab URL', 'Gitlab Token', 'Toggl WorkspaceID', '
|
|
52
|
+
table = TTY::Table.new header: ['№', 'Name', 'Gitlab URL', 'Gitlab Token', 'Toggl WorkspaceID', 'Toggl ProjectID', 'Toggl Token']
|
|
53
53
|
|
|
54
54
|
integrations(default: [{}]).each_with_index do |row, index|
|
|
55
55
|
table << [
|
data/lib/gitloggl/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gitloggl
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: '0.
|
|
4
|
+
version: '0.33'
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Shylau Aloaksandr
|
|
@@ -307,6 +307,8 @@ files:
|
|
|
307
307
|
- Rakefile
|
|
308
308
|
- bin/console
|
|
309
309
|
- bin/setup
|
|
310
|
+
- doc/logo.jpg
|
|
311
|
+
- doc/screen-manage.png
|
|
310
312
|
- exe/gitloggl
|
|
311
313
|
- gitloggl.gemspec
|
|
312
314
|
- lib/gitloggl.rb
|