katip 1.0.2 → 1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 486fe00ecb32f53bdc764ef9dcaaffb39285f16d
4
- data.tar.gz: 39fffd5f49da2c7d1a6248d373e941643c82b330
3
+ metadata.gz: 9ed0d88de0d21f2f08a55c677ecc7dd15450636f
4
+ data.tar.gz: e5e6d1d82974d84cf11356882229841a9680993f
5
5
  SHA512:
6
- metadata.gz: ed13d652e15e172ce71b12f14d00d1e82af118a488b0f0cec9adf75017fe218c48ee472bd8fd89a831cc60b4155c63e9de3a4cf2733e102ab8eb72a609c4ac1a
7
- data.tar.gz: 981e0f4e2c1a535e25d2d62deab2e678bd9f68d94da8844445caaf83a68ff6bba605f2b9f450bb1fd0d3aa70b30390296070c05918d47a87a455b765e0c07884
6
+ metadata.gz: 1ead6f29197176717b0409a3d306920fc87a553dca959c97ada34e3cac0f723db959bbfddcae707871fc2a3fac26198837319f9f8ead6b8a65f09e7d72d5b4d9
7
+ data.tar.gz: bf0b0019cee4194adbefcff7ec1bf37dbfa8e0602c6a0db5caef601931683c565eb48a5efefbb4170b6742e78e1e28ba419d3b3302967e67ddec38cd04e87c16
data/CHANGELOG.md CHANGED
@@ -1,30 +1,43 @@
1
1
 
2
2
  #### [Current]
3
+ * [7b5c1e2](../../commit/7b5c1e2) [#1](../../issues/1) Add links to issues in comments __(Murat Kemal BAYGÜN)__
4
+ * [3780df9](../../commit/3780df9) typo fixed. __(Onur Özgür ÖZKAN)__
5
+ * [2dbf361](../../commit/2dbf361) [#14](../../issues/14) fix video links image __(Murat Kemal BAYGÜN)__
6
+ * [0a11741](../../commit/0a11741) [#14](../../issues/14) add video link and translation __(Murat Kemal BAYGÜN)__
7
+ * [0d128bd](../../commit/0d128bd) [#16](../../issues/16) Add git repository check __(Murat Kemal BAYGÜN)__
8
+ * [8b22c6f](../../commit/8b22c6f) Add latest change log __(Murat Kemal BAYGÜN)__
9
+ * [5fc6991](../../commit/5fc6991) [#14](../../issues/14) Update readme, add sample output __(Murat Kemal BAYGÜN)__
10
+ * [3f7788c](../../commit/3f7788c) [#14](../../issues/14) update README.md __(Onur Ozgur OZKAN)__
3
11
 
12
+ #### 1.0.2
13
+ * [664e012](../../commit/664e012) [#15](../../issues/15) Set version 1.0.2 __(Murat Kemal BAYGÜN)__
14
+
15
+ #### 1.0.1
16
+ * [35f0b39](../../commit/35f0b39) [#15](../../issues/15) Fixes broken commit URL In previous version commit URL was broken unexpectedly.Current commit fixes broken URL and replaces it with the correct one __(Murat Kemal BAYGÜN)__
4
17
 
5
18
  #### 1.0.0
6
19
  * [cbec9c0](../../commit/cbec9c0) release version 1.0.0 __(Murat Kemal BAYGÜN)__
7
- * [6b8cfe7](../../commit/6b8cfe7) #13 Add custom file name support to rake __(Murat Kemal BAYGÜN)__
8
- * [7b5be3d](../../commit/7b5be3d) #10 add output file name as optional parameter __(Murat Kemal BAYGÜN)__
9
- * [695646c](../../commit/695646c) #12 Add and correct information on gemspec __(Murat Kemal BAYGÜN)__
10
- * [f30a3b2](../../commit/f30a3b2) #9 Update rake job to use installed executable __(Murat Kemal BAYGÜN)__
11
- * [a7200f0](../../commit/a7200f0) #11 Fix bug Current commits is not seen on log file __(Murat Kemal BAYGÜN)__
12
- * [6385fff](../../commit/6385fff) #8 Change executable file name to katip __(Murat Kemal BAYGÜN)__
20
+ * [6b8cfe7](../../commit/6b8cfe7) [#13](../../issues/13) Add custom file name support to rake __(Murat Kemal BAYGÜN)__
21
+ * [7b5be3d](../../commit/7b5be3d) [#10](../../issues/10) add output file name as optional parameter __(Murat Kemal BAYGÜN)__
22
+ * [695646c](../../commit/695646c) [#12](../../issues/12) Add and correct information on gemspec __(Murat Kemal BAYGÜN)__
23
+ * [f30a3b2](../../commit/f30a3b2) [#9](../../issues/9) Update rake job to use installed executable __(Murat Kemal BAYGÜN)__
24
+ * [a7200f0](../../commit/a7200f0) [#11](../../issues/11) Fix bug Current commits is not seen on log file __(Murat Kemal BAYGÜN)__
25
+ * [6385fff](../../commit/6385fff) [#8](../../issues/8) Change executable file name to katip __(Murat Kemal BAYGÜN)__
13
26
 
14
27
  #### 0.2.0
15
28
  * [61b2f06](../../commit/61b2f06) Version 0.2.0 __(Murat Kemal BAYGÜN)__
16
- * [9bd7659](../../commit/9bd7659) #7 Fix documentation __(Murat Kemal BAYGÜN)__
17
- * [2abca18](../../commit/2abca18) #7 Organize readme, add usage for daktilo __(Murat Kemal BAYGÜN)__
18
- * [b939475](../../commit/b939475) #7 Add output message to inform user __(Murat Kemal BAYGÜN)__
19
- * [99d3b3f](../../commit/99d3b3f) #7 Add executable ruby file to gem to generate default output CHANGELOG.md __(Murat Kemal BAYGÜN)__
20
- * [7265622](../../commit/7265622) #4 Add simple usage documentation on readme __(Murat Kemal BAYGÜN)__
29
+ * [9bd7659](../../commit/9bd7659) [#7](../../issues/7) Fix documentation __(Murat Kemal BAYGÜN)__
30
+ * [2abca18](../../commit/2abca18) [#7](../../issues/7) Organize readme, add usage for daktilo __(Murat Kemal BAYGÜN)__
31
+ * [b939475](../../commit/b939475) [#7](../../issues/7) Add output message to inform user __(Murat Kemal BAYGÜN)__
32
+ * [99d3b3f](../../commit/99d3b3f) [#7](../../issues/7) Add executable ruby file to gem to generate default output CHANGELOG.md __(Murat Kemal BAYGÜN)__
33
+ * [7265622](../../commit/7265622) [#4](../../issues/4) Add simple usage documentation on readme __(Murat Kemal BAYGÜN)__
21
34
 
22
35
  #### 0.1.0
23
- * [de3acfb](../../commit/de3acfb) #6 Update gemspec __(Onur Ozgur OZKAN)__
24
- * [498c3d6](../../commit/498c3d6) #6 Set gem __(Onur Ozgur OZKAN)__
25
- * [416e6c8](../../commit/416e6c8) #6 Set gem __(Onur Ozgur OZKAN)__
26
- * [c820767](../../commit/c820767) #4 Add CHANGELOG.md file __(Murat Kemal BAYGÜN)__
27
- * [18fba8f](../../commit/18fba8f) #3 Add logger file __(Murat Kemal BAYGÜN)__
36
+ * [de3acfb](../../commit/de3acfb) [#6](../../issues/6) Update gemspec __(Onur Ozgur OZKAN)__
37
+ * [498c3d6](../../commit/498c3d6) [#6](../../issues/6) Set gem __(Onur Ozgur OZKAN)__
38
+ * [416e6c8](../../commit/416e6c8) [#6](../../issues/6) Set gem __(Onur Ozgur OZKAN)__
39
+ * [c820767](../../commit/c820767) [#4](../../issues/4) Add CHANGELOG.md file __(Murat Kemal BAYGÜN)__
40
+ * [18fba8f](../../commit/18fba8f) [#3](../../issues/3) Add logger file __(Murat Kemal BAYGÜN)__
28
41
  * [105af37](../../commit/105af37) Update readme __(Murat Kemal BAYGÜN)__
29
42
  * [bc56515](../../commit/bc56515) Initial commit __(Murat Kemal BAYGÜN)__
30
43
  * [1b1d477](../../commit/1b1d477) Initial commit __(Murat Kemal BAYGÜN)__
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- katip (1.0.2)
4
+ katip (1.1.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -72,7 +72,23 @@ and that's it. You have your change log file on project root, generated based on
72
72
 
73
73
  [CHANGELOG.md](https://github.com/kebab-project/katip/blob/develop/CHANGELOG.md)
74
74
 
75
- #### Links to resources
75
+
76
+ ## An unforgettable scene from Yeşilçam
77
+
78
+ [![yaz_kizim](https://i1.ytimg.com/vi/v9L96Hh9jJc/mqdefault.jpg)](http://www.youtube.com/watch?v=v9L96Hh9jJc)
79
+
80
+ - **Wife:** Open the door, hey hurry up, Open the door! If you don’t , I will break the door down
81
+ - **Şakir (performer Şener Şen):** take a note, 200 pocket cement, 20 truckland pebble, 15 doors
82
+ - **Wife:** Şakir!
83
+ - **Şakir:** Hey, welcome, 30 trunkland building sand
84
+ - **Wife:** the lowest of the low! rogue! Beneath comtempt guy
85
+ - **Şakir:** What’s up? Why are you shouting?
86
+ - **Wife:** what a shame, don’t answer back. Women chaser! How could you do this to me?
87
+ - **Şakir:** Ooovv. Please don’t start to blame me again
88
+ - **Wife:** Son, Spit in your dad’s face
89
+ - **Wife:** what a poor bitch! The women who steal my husband have not been born yet.
90
+
91
+ ## Links to resources
76
92
 
77
93
  * Disqussion http://stackoverflow.com/questions/7387612/git-changelog-how-to-get-all-changes-up-to-a-specific-tag
78
94
  * Example bash https://github.com/kandanapp/kandan/blob/master/gen-changelog.sh
@@ -105,4 +121,4 @@ Once you've made your great commits:
105
121
 
106
122
  ## License
107
123
 
108
- Copyright 2012 lab2023 – internet technologies
124
+ Copyright 2012 lab2023 – internet technologies
data/bin/katip CHANGED
@@ -1,6 +1,17 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- REPO_URL='../../commit/'
3
+ COMMIT_URL='../../commit/'
4
+ ISSUE_URL='../../issues/'
5
+
6
+ def git_repository?
7
+ initialized = `git rev-parse --is-inside-work-tree`.chomp
8
+
9
+ if initialized != 'true'
10
+ initialized = false
11
+ puts 'Exiting. Nothing to create log file.'
12
+ end
13
+ initialized
14
+ end
4
15
 
5
16
  def write_file(output)
6
17
 
@@ -42,17 +53,24 @@ def parse_change_log
42
53
  output << "\n#### #{previous_tag}"
43
54
  end
44
55
 
45
- output << `git log --pretty=format:" * [%h](#{REPO_URL}%h) %s __(%an)__" "#{current_tag}".."#{previous_tag}" | grep -v "Merge branch "`
56
+ output << `git log --pretty=format:" * [%h](#{COMMIT_URL}%h) %s __(%an)__" "#{current_tag}".."#{previous_tag}" | grep -v "Merge branch "`
46
57
 
47
58
  previous_tag = current_tag
48
59
  end
49
60
 
50
61
  output << "\n#### #{previous_tag}"
51
- output << `git log --pretty=format:" * [%h](#{REPO_URL}%h) %s __(%an)__" #{previous_tag} | grep -v "Merge branch "`
62
+ output << `git log --pretty=format:" * [%h](#{COMMIT_URL}%h) %s __(%an)__" #{previous_tag} | grep -v "Merge branch "`
63
+
64
+ output.each do |line|
65
+
66
+ line.gsub!(/#[1-9][0-9]*/) {|s| '[' + s + "](#{ISSUE_URL}" + s[-(s.length-1)..-1] + ')'}
67
+
68
+ end
52
69
 
53
70
  output
54
71
  end
55
72
 
56
- write_file parse_change_log
57
-
73
+ if git_repository?
74
+ write_file parse_change_log
75
+ end
58
76
 
data/lib/katip/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Katip
2
- VERSION = '1.0.2'
2
+ VERSION = '1.1.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: katip
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - lab2023
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-26 00:00:00.000000000 Z
11
+ date: 2013-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler