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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 175bd282a91e660dc5b372445d48103270f7a49caf7bb29ce138ed5406a6b80b
4
- data.tar.gz: b48621d0bdabb2621cf63b1b485383dd367395b3823a0182d7fc130a9538a99c
3
+ metadata.gz: 7504b49f267375d128e36417a687f4741617ce9cf2d1fd2661c6f11d83999e3c
4
+ data.tar.gz: e623062452d3b2c3ab0f3f72b9ffa15d1f02ebfb0524d20a6ef8087027aec0a7
5
5
  SHA512:
6
- metadata.gz: b2b0c5d5d395bc77e3631c0c929c028b2d4c924fec27d824e3de7b3415615a710fae99561e6e701d391c7f269ec4f50d5b34df163210ec35b49ed017a2e90e58
7
- data.tar.gz: 63afe37d95f7cdadb42c74890c277bb533a6f9f386fac98c4f07818244308ba8a316f78425bdbd2c7a0776e3fbd460600afd6b7374b97f8f1729e1d4c6496b80
6
+ metadata.gz: eec1ac34508a544e9ca52382a3ef76a5222876089975663e0477c196e4e572cc2b04db64beed7427a71be712a05f1f43e6fac5c57f2ad8887b9033640b9e711e
7
+ data.tar.gz: 8a1d067af01d0f0cc7db13225b6ffcc337b32e782cc37d989fff0bd98bb8375637c3103695e1d92b5229463fa0fc796bba5c305cd3f4a67203023ef7af2c6663
data/.gitignore CHANGED
@@ -2,7 +2,6 @@
2
2
  /.yardoc
3
3
  /_yardoc/
4
4
  /coverage/
5
- /doc/
6
5
  /pkg/
7
6
  /spec/reports/
8
7
  /tmp/
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
- [![asciicast](https://asciinema.org/a/V5imC7CqyDeidlqiPKHJxqTWX.svg)](https://asciinema.org/a/V5imC7CqyDeidlqiPKHJxqTWX)
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
+ [![demo](https://asciinema.org/a/V5imC7CqyDeidlqiPKHJxqTWX.svg)](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
+ ![](https://github.com/shlima/gitloggl/blob/master/doc/screen-manage.png?raw=true)
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 toggle -> gitlab integrations') do |menu|
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', 'Toggle ProjectID', 'Toggl Token']
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 << [
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Gitloggl
4
- VERSION = '0.32'
4
+ VERSION = '0.33'
5
5
  end
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.32'
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