dependabot-core 0.88.0 → 0.88.1

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: 5baac5ebf6cb593e43f66de38fbab67da68f55f771a576cdec418db8f71f2722
4
- data.tar.gz: a72cb17501ab4a87a3c240684d62c224dcf1537aa8331585867d2f41440a0f21
3
+ metadata.gz: dfa99aadbbebedcd52e0382d2b13a3ec6d5775fc4062cd1d7879129226d5dde1
4
+ data.tar.gz: 8a135682758a7f56aba2bd17e61c5c03a00668be57cd68165791888a8decfe59
5
5
  SHA512:
6
- metadata.gz: 2c0fe474ca371161091421f0f903b9765eb2c9f992f52397687520a48b75aac41b0500145c1d4ec29e15dc905ff245606b5f856efc1b5a6f96c3261392bb1d51
7
- data.tar.gz: ec89afa574296a90926ca749556abb99f68be8b814c1ae5c7fc879afb55f8a08f810eeeabe5f1e514291eb557b6c23dcc24a0385b82227de4958823fa76b7b5a
6
+ metadata.gz: 21b2cfb915ab34353e97976ba1bf99ebe9842dd39ac8442b8ccf167ab6eebf123e99a115f24f6946f63d3b05be4b0883ab886e04d2bf95b814f62a68623bf52c
7
+ data.tar.gz: 64c2ec9504666622992b32c504600e4d99b4a9b659827640668007ceb3321331c93fd8a3878c8144543058204fd4b7079abfa7cbb6ce27f8719256034ef883d0
@@ -1,3 +1,7 @@
1
+ ## v0.88.1, 9 January 2019
2
+
3
+ - Better handling of directories in changelog finder
4
+
1
5
  ## v0.88.0, 9 January 2019
2
6
 
3
7
  - Elixir reorg
@@ -202,17 +202,18 @@ module Dependabot
202
202
 
203
203
  if source.directory
204
204
  opts = { path: source.directory, ref: ref }.compact
205
- files += github_client.contents(source.repo, opts)
205
+ tmp_files = github_client.contents(source.repo, opts)
206
+ files += tmp_files if tmp_files.is_a?(Array)
206
207
  end
207
208
 
208
209
  opts = { ref: ref }.compact
209
210
  files += github_client.contents(source.repo, opts)
210
211
 
211
- %w(doc docs).each do |dir_name|
212
- if files.any? { |f| f.name == dir_name && f.type == "dir" }
213
- opts = { path: dir_name, ref: ref }.compact
214
- files += github_client.contents(source.repo, opts)
215
- end
212
+ files.uniq.each do |f|
213
+ next unless %w(doc docs).include?(f.name) && f.type == "dir"
214
+
215
+ opts = { path: f.path, ref: ref }.compact
216
+ files += github_client.contents(source.repo, opts)
216
217
  end
217
218
 
218
219
  files
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dependabot
4
- VERSION = "0.88.0"
4
+ VERSION = "0.88.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.88.0
4
+ version: 0.88.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot