knife-changelog 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/chef/knife/changelog.rb +1 -6
- data/lib/knife/changelog/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1bbd51d2aca135fbd9769d8daf1dd01a7eb59f57
|
4
|
+
data.tar.gz: 7ae04bda29b8e5d5df002a8a325bffbe24de36b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8318f3899126b60f785c8688450f51301e5520e468baf93dfa5492b21700a3822bccd8947be6c0f7a3756b11faea674240598b49c65a62d415f20fa79fa19bc5
|
7
|
+
data.tar.gz: 1089434a0c3335385a7ae2c0d14d5bf01161500560949d08f44c6f5f002c56644d186922ca594bebe9d4f3f3e3037e2b2bb4a028d38d0215157317b49ad9c688
|
data/lib/chef/knife/changelog.rb
CHANGED
@@ -145,12 +145,7 @@ class Chef
|
|
145
145
|
|
146
146
|
def linkify(url, changelog)
|
147
147
|
changelog.map do |line|
|
148
|
-
|
149
|
-
when /gitlab[\w\.-]+\/([\w-]+\/[\w-]+)(\.git)?/
|
150
|
-
line.gsub(/^([a-f0-9]+) /, '%s@\1 ' % [$1])
|
151
|
-
else
|
152
|
-
line.gsub(/^([a-f0-9]+) /, '[\1](%s/commit/\1) ' % [url])
|
153
|
-
end
|
148
|
+
line.gsub(/^([a-f0-9]+) /, '[\1](%s/commit/\1) ' % [url.chomp('.git')])
|
154
149
|
end
|
155
150
|
end
|
156
151
|
|