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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 401d0e3f69454195f5582dbdc6084318c3a0c6a6
4
- data.tar.gz: 6f02bcdf5f2e417af90a6beb11ff66ac67201603
3
+ metadata.gz: 1bbd51d2aca135fbd9769d8daf1dd01a7eb59f57
4
+ data.tar.gz: 7ae04bda29b8e5d5df002a8a325bffbe24de36b9
5
5
  SHA512:
6
- metadata.gz: 5b53bf27f344bc3d7f59812be5e4b7ba7936636b917d8c040bd09f69e3382256e8b2709077030c27cd87e2b0394ed41884c485b77f117f3bb79544767c9ed67f
7
- data.tar.gz: 63388ad26b299b9d913ee76a87b8f2096838ce02d549252a20d40aafbbb881441cf030ba0058011e716d88795d25478cbd1e0fbf5afdcce15318c6f40783fd2a
6
+ metadata.gz: 8318f3899126b60f785c8688450f51301e5520e468baf93dfa5492b21700a3822bccd8947be6c0f7a3756b11faea674240598b49c65a62d415f20fa79fa19bc5
7
+ data.tar.gz: 1089434a0c3335385a7ae2c0d14d5bf01161500560949d08f44c6f5f002c56644d186922ca594bebe9d4f3f3e3037e2b2bb4a028d38d0215157317b49ad9c688
@@ -145,12 +145,7 @@ class Chef
145
145
 
146
146
  def linkify(url, changelog)
147
147
  changelog.map do |line|
148
- case url
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
 
@@ -1,5 +1,5 @@
1
1
  module Knife
2
2
  module Changelog
3
- VERSION = "0.0.5"
3
+ VERSION = "0.0.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-changelog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregoire Seux