knife-changelog 0.5.9.pre.alpha.pre.76 → 0.5.10.pre.alpha.pre.78

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- M2ZlNjk0YjhjYzYwZjZlZmExYjJhYmUzYTM4NWU5ZjE0MzBjOTI1Nw==
4
+ ZGQ1MjBjMmMxODU1YzkzZGMyN2Y1NjRlNTNjYjVjMjlhYzg0ZmMxOA==
5
5
  data.tar.gz: !binary |-
6
- Mzc1ZGI2ZGE0ODBmODZhNTY4MTMwOWE5MjAyODkwYzYwN2M4Y2NlZQ==
6
+ MTAzMzc2NzY2NzA3YjFmOWYxMTEwNmQyZGFhNWM0NTNlYjU3NThkOA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZjgwMDhkM2VlMjQxZTMwMjI5ZDQ2N2JlY2UyM2EyNDliYjdiZmQxZGJjMzEz
10
- MmEwMzhhZjI4NzQxZmI1NTIxMTA1ZDdlZDQ4YTM5YzNjY2Y2M2VhZDdjNWNj
11
- NzgwZDU3ZDM5ZGE1ZjA4NzJlNDA4NTNiYjM5OTNmMGJjMTMxMzg=
9
+ ZTEyMjMwNGM2OTk2MWFmOGM4ZWRjYzYyZWYwYmRlMTk4YzFhMDYyMDU5YTg1
10
+ YTVkMmExYzg4Y2FjZDQ4MWZlNGQ5MDZkYmZlNmFmMzk0NzgyMDIwM2Q3MGYx
11
+ YzBjYmJlYzg0ZDRiYWYwMmJkNDQ0NTg1M2FmMjZhMmI0N2QwYjM=
12
12
  data.tar.gz: !binary |-
13
- NzVmMGNlZmIzYWNkNzQxY2ZkMjg1NDQ5YjFkMGQ4ZmZlMmI1YTgwODA3Zjc0
14
- NmYwMTIyMzRjODk0YTlkNzcwZWM0MzBiNTk3NzY5ZTk3MzkzYTQyY2VhZTFi
15
- MjcxMDg2NzRhNDI3MjU5MTgyMDUyNTVhZjJlZDZhNmUwNzdhYWU=
13
+ NjAyM2YzYWM2YTM1ZDc3ZjRjY2FhNzViNDE2YWUxMjRkNWZjM2QxMWNmY2E4
14
+ OWViMTk5ZjQ4MGFhY2RkZGY0YzdlODJlYzQ0ZjRjNzU3N2Y1NDg5NjdjODdl
15
+ Mjk1MTY3NGNlMzBiZmE4NmU4ZmVkNzdhNTU2NGYxYzI1Y2Y5YWE=
@@ -107,7 +107,11 @@ class KnifeChangelog
107
107
  def get_from_supermarket_sources(name)
108
108
  urls = @sources.map { |s|
109
109
  begin
110
- RestClient.get "#{s.uri}/api/v1/cookbooks/#{name}"
110
+ RestClient::Request.execute(
111
+ url: "#{s.uri}/api/v1/cookbooks/#{name}",
112
+ method: :get,
113
+ verify_ssl: false # TODO make this configurable
114
+ )
111
115
  rescue
112
116
  nil
113
117
  end
@@ -131,7 +135,7 @@ class KnifeChangelog
131
135
  url = get_from_supermarket_sources(name)
132
136
  Chef::Log.debug("Using #{url} as source url")
133
137
  case url.strip
134
- when /(gitlab|github).com\/(.*)(.git)?/
138
+ when /(gitlab.*|github).com\/(.*)(.git)?/
135
139
  url = "https://#{$1}.com/#{$2.chomp('/')}.git"
136
140
  options = {
137
141
  :git => url,
@@ -1,5 +1,5 @@
1
1
  module Knife
2
2
  module Changelog
3
- VERSION = "0.5.9"
3
+ VERSION = "0.5.10"
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: 0.5.9.pre.alpha.pre.76
4
+ version: 0.5.10.pre.alpha.pre.78
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregoire Seux
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-08 00:00:00.000000000 Z
11
+ date: 2016-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler