git_timelog 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +62 -11
  3. data/lib/git_timelog/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c9d41a6ba5cf6b1b15ffd1e860dea4fd9336ec1d
4
- data.tar.gz: bad0f86918025502f3f8371e367a5719da901ec3
3
+ metadata.gz: af86eb96ac30faa0edfd342dc6f0434bab611d24
4
+ data.tar.gz: 4668c9ff022be4188988e774e7c4c22b3b513dce
5
5
  SHA512:
6
- metadata.gz: b50ec1d7adf31f6f4ce15310c821d576c0a27263d05bdcfdfaa335c75332092cbb027694490906d35e4db4435b027264e01d31f59ac8cc623465c5a43bc408da
7
- data.tar.gz: 9c8c7077f4be7b0b1d9f67053c06206e6d18d2f0d22d591ee92698f2a2dc7ccfb0fc11895f74d72080ef1928c658ecd9083350ed869d46dd4a2150c76578d294
6
+ metadata.gz: 80f675d4d2a74c8a80abfc455324000d5931ce57006c32ee06f6c7f57c244ae5f18f02dc4a05a1df688392c3c643451a65a91a0cfe124c4cfb051e0f927f7cf4
7
+ data.tar.gz: 09b451cd330adffc6d98f5ca4cfa8e0b478272ca5a5fc15493ccd9eda4259d3a8d621629908f1dbe8b3c7e091b130f9d99fea1b595ca98f5df0a3d138fbbe8c5
data/README.md CHANGED
@@ -1,30 +1,81 @@
1
1
  # GitTimelog
2
2
 
3
- TODO: Write a gem description
3
+ A tool to extract daily update from GIT commits.
4
+
5
+ The tool can return json of the tasks done along with start and end time. As well as simply copy the list of commits done as plain-text list which can be ordered or unordered.
4
6
 
5
7
  ## Installation
6
8
 
7
- Add this line to your application's Gemfile:
9
+ Execute this line to your root directory
8
10
 
9
11
  ```ruby
10
- gem 'git_timelog'
12
+ gem install 'git_timelog'
11
13
  ```
12
14
 
13
- And then execute:
15
+ ## Dependency for Linux
14
16
 
15
- $ bundle
17
+ sudo apt-get install xsel
16
18
 
17
- Or install it yourself as:
19
+ ## Usage
18
20
 
19
- $ gem install git_timelog
21
+ Executable:
20
22
 
21
- ## Usage
23
+ $ git_timelog
24
+ => Copies the commit logs from 6am in the morning
25
+ $ git_timelog --since=“6am”
26
+ => Time can be specified since when through this option
27
+ $ git_timelog -s “6am”
28
+ => shortcode of —since [6am => :default]
29
+ $ git_timelog --format=“json”
30
+ => format = “json” || “ordered” || “unordered”
31
+ “json” => returns the json formatted values
32
+ title:
33
+ description:
34
+ start_time:
35
+ end_time:
36
+ “ordered” => Copies ordered list of daily log in clipboard.
37
+ “unordered” => Copies un-ordered list of daily log in clipboard. [:default]
38
+ $ git_timelog -f “json”
39
+ => shortcode of --format
40
+ $ git_timelog --help
41
+ => helps you use the executables
42
+ $ git_timelog -h
43
+ => shortcode for help
44
+ $ git_timelog --emitii
45
+ => Sets emitii to true which updates the API and also asks for:
46
+ access_token:
47
+ emitii_subdomain:
48
+ project_name:
49
+ $ git_timelog -e
50
+ => Shortcode for --emitii
51
+
52
+ ## Features
53
+
54
+ - Get the commits throughout all branch in current repo for current author.
55
+ - The CLI accepts different parameters
56
+ time to be dynamically chosen.
57
+ - Hours can be specified through commit messages title with format => [2] for two hours.
58
+ - Copy the unordered list to clipboard for easy paste in any time-logger.
59
+ - Copy the ordered list to clipboard for easy paste in any time-logger if preferred.
60
+
61
+ ## Future Enhancements
62
+
63
+ - Refactor! Refactor!! Refactor!!!
64
+ - YML to be set as hidden within project directory.
65
+ - Only the commits with [1] in title is logged in emitii.
66
+
67
+ ## Few Assumptions (to be reduced gradually)
68
+
69
+ - need to be in the same repo for update.
70
+ - not to use following in git commits messages or descriptions:
71
+ - git__title:
72
+ - git__description:
73
+ - git__date:
22
74
 
23
- TODO: Write usage instructions here
24
75
 
25
- ## Contributing
76
+ ## Wanna Contribute? You're Welcome!
26
77
 
27
- 1. Fork it ( https://github.com/[my-github-username]/git_timelog/fork )
78
+ 1. Fork it ( https://github.com/sushil10018/git_timelog/fork )
28
79
  2. Create your feature branch (`git checkout -b my-new-feature`)
29
80
  3. Commit your changes (`git commit -am 'Add some feature'`)
30
81
  4. Push to the branch (`git push origin my-new-feature`)
@@ -1,3 +1,3 @@
1
1
  module GitTimelog
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git_timelog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sushil Shrestha