dependabot-nuget 0.99.1 → 0.99.2

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: c25a308f6330fe67482387067273b46742acccdc01b3e6b4ca6e5d6166915a17
4
- data.tar.gz: 38bd02f8b1cf3220b3fa70ca9cacf09df669c8eafae649e6bf2151a29ba327c4
3
+ metadata.gz: ebe6b35192fea15cd66e242b1bbbdb5880da58b6160e2a02dd09f93c331c770a
4
+ data.tar.gz: 10f169bf065d4ca91982796021b3c5bfc961307f868af5ae9c98192a32597054
5
5
  SHA512:
6
- metadata.gz: 632430509604c101b440eee1c3753ee6b66414f9aeedcd86cb98daf0e2696a4fbaf610899d4c98d52d1734a4af7c94c7aaf86c6fe4567b6b502df059703e10aa
7
- data.tar.gz: '08d1b54e722e2dbc73af08b3ce2fb44a499ef869e2db8483f023d258c60a7bb00ef485ffed219d414545cfc5702d5d6f2f00b03e45bbfb7246498b609c26cfbc'
6
+ metadata.gz: f548a6b4dfc68df78f82e6715e5e393e025d9dfce82c3a625c5bbabccb100864486593cb1c2e551fd12a3ffb26eec0d77b45a2f8bebab20fe82af7a3e693b31a
7
+ data.tar.gz: 291cb05db027067c850147587a6d603724c4210fe4847e1aa5795d2d49ef6d7b1120209ff415af8c9e54b333e8e8885dfc196c79629f6283addab21c2ee4a200
@@ -77,7 +77,7 @@ module Dependabot
77
77
  end.compact
78
78
  end
79
79
 
80
- def sln_file_name
80
+ def sln_file_names
81
81
  sln_files = repo_contents.select { |f| f.name.end_with?(".sln") }
82
82
  src_dir = repo_contents.any? { |f| f.name == "src" && f.type == "dir" }
83
83
 
@@ -91,8 +91,7 @@ module Dependabot
91
91
  # Return `nil` if no sln files were found
92
92
  return if sln_files.none?
93
93
 
94
- # Use the biggest sln file
95
- sln_files.max_by(&:size).name
94
+ sln_files.map(&:name)
96
95
  end
97
96
 
98
97
  def directory_build_props_files
@@ -124,13 +123,15 @@ module Dependabot
124
123
  end
125
124
 
126
125
  def sln_project_files
127
- return [] unless sln_file
126
+ return [] unless sln_files
128
127
 
129
128
  @sln_project_files ||=
130
129
  begin
131
- paths = SlnProjectPathsFinder.
132
- new(sln_file: sln_file).
133
- project_paths
130
+ paths = sln_files.flat_map do |sln_file|
131
+ SlnProjectPathsFinder.
132
+ new(sln_file: sln_file).
133
+ project_paths
134
+ end
134
135
 
135
136
  paths.map do |path|
136
137
  fetch_file_from_host(path)
@@ -142,10 +143,12 @@ module Dependabot
142
143
  end
143
144
  end
144
145
 
145
- def sln_file
146
- return unless sln_file_name
146
+ def sln_files
147
+ return unless sln_file_names
147
148
 
148
- @sln_file ||= fetch_file_from_host(sln_file_name)
149
+ @sln_files ||= sln_file_names.map do |sln_file_name|
150
+ fetch_file_from_host(sln_file_name)
151
+ end
149
152
  end
150
153
 
151
154
  def csproj_file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-nuget
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.99.1
4
+ version: 0.99.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-08 00:00:00.000000000 Z
11
+ date: 2019-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dependabot-common
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.99.1
19
+ version: 0.99.2
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.99.1
26
+ version: 0.99.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: byebug
29
29
  requirement: !ruby/object:Gem::Requirement