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 +8 -8
- data/lib/knife/changelog/changelog.rb +6 -2
- data/lib/knife/changelog/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZGQ1MjBjMmMxODU1YzkzZGMyN2Y1NjRlNTNjYjVjMjlhYzg0ZmMxOA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MTAzMzc2NzY2NzA3YjFmOWYxMTEwNmQyZGFhNWM0NTNlYjU3NThkOA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZTEyMjMwNGM2OTk2MWFmOGM4ZWRjYzYyZWYwYmRlMTk4YzFhMDYyMDU5YTg1
|
10
|
+
YTVkMmExYzg4Y2FjZDQ4MWZlNGQ5MDZkYmZlNmFmMzk0NzgyMDIwM2Q3MGYx
|
11
|
+
YzBjYmJlYzg0ZDRiYWYwMmJkNDQ0NTg1M2FmMjZhMmI0N2QwYjM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
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.
|
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
|
138
|
+
when /(gitlab.*|github).com\/(.*)(.git)?/
|
135
139
|
url = "https://#{$1}.com/#{$2.chomp('/')}.git"
|
136
140
|
options = {
|
137
141
|
:git => url,
|
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.
|
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-
|
11
|
+
date: 2016-10-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|