knife-changelog 1.0.4 → 1.0.5

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
  SHA256:
3
- metadata.gz: 1d5eab5f193893c7ae463e7ddecd7e001aacca5eb46aebf9aa9952835e58fef9
4
- data.tar.gz: 314cd0c501054eac81c9112cd8f6e735997241269e1048cfe281bf18c0bb195d
3
+ metadata.gz: aa4e42103311806ff7c88b829d826fb4e8546e1d17c463d8bb4082b31a88f479
4
+ data.tar.gz: 189c09706beb96b561e124719e396bdac38fba5f1205cdff0e8a5450a8cb2d2c
5
5
  SHA512:
6
- metadata.gz: 37099d51c2a1f18a7fd9b51f158cf9dde20c76676df96f82806fd879da24b78c285afa0f89e815d9d359569bfa5fb691c382a75730709f79f9e522537f7e0fe9
7
- data.tar.gz: 7db47e191620e1278f9b1daa15448dc5e44e83926ada6f55a20a8b495aee8f44601754852bd4f41a9c05804b40e6510a714e7715e7ca6f0d6066f8b2904c9501
6
+ metadata.gz: 5d22e0aedafda4f36d0650718965c2ad1c39e17edf9c72a683f0b94ed498696ec4880a9387330a4de82a135ab7f5b8ac1232e0c8435d073e5f6c9138b6497465
7
+ data.tar.gz: 6b7d85d9a2ed9e500fb533106ea3e258ae8fcddb81406a7adf9aaccd1ad8ec2f64396b076ed58e44fc9f9e0956703c14ef521ef0c68cb3f1b194deef31450fe7
@@ -172,6 +172,11 @@ class KnifeChangelog
172
172
  url = get_from_supermarket_sources(name)
173
173
  raise "No source found in supermarket for cookbook '#{name}'" unless url
174
174
  Chef::Log.debug("Using #{url} as source url")
175
+ # Workaround source_url not being written in a clonable way.
176
+ # github.com/blah/cookbook works but git clone requires github.com/blah/cookbook.git
177
+ if !url.end_with?('.git')
178
+ url = "#{url}.git"
179
+ end
175
180
  location = Location.new(url, guess_version_for(name), 'master')
176
181
  handle_git(name, location)
177
182
  end
@@ -1,5 +1,5 @@
1
1
  module Knife
2
2
  module Changelog
3
- VERSION = '1.0.4'
3
+ VERSION = '1.0.5'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-changelog
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregoire Seux
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-23 00:00:00.000000000 Z
11
+ date: 2017-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler