dependabot-nuget 0.98.8 → 0.98.9

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: 1fc361cf8c8e72f1ed9cdebbf8d4cddbfb37dae7dcefb1ff79b536a3be438c1f
4
- data.tar.gz: 3ddb6a623c549d96b1ff727b87086457eead85bddc8c9f7c1b2d5f7d3f17ffe2
3
+ metadata.gz: 7c0c2d32c5d9c3e65d34c0117636d67d2a1e13da4f1e2fbc4e04e0081adbdb5f
4
+ data.tar.gz: 741db9c8fe083f5cd268ed76c33fd98afe2f72b957bff5b0efeba1d4169fd646
5
5
  SHA512:
6
- metadata.gz: 0e80a9ac46304ab9f10451a45f9895775b66060213fa8c45de5f581727476612fa5efcb90e218903ee8548579d0403679066606ccbe93c17d4322173b30e5bf3
7
- data.tar.gz: d112ae232d552f4c490194678c3a885d0625cd953198077518c2e3f026e6bab9c45b9f1881c847226c16500e9da0b5b3e0c70fbf6c6a9c1d50657d628bfbcf7e
6
+ metadata.gz: 70fa6954d884cfa2c7c052b93d44d7f16a0f3ad42c04cb1bab36d247714b8c49a45f5492f939c99e8946ce3ba28e64075012810e66e1e4155ea2ead3ddaf4429
7
+ data.tar.gz: 8eddc21bdfb231389c2c1382b6deb0cbfd1c8793446533dac2c44ff17818eafbf97625440ac2632ce46680526060f697fac93143488e9aa1d8ac4fd56964a8cf
@@ -20,8 +20,7 @@ module Dependabot
20
20
  def dependency_set
21
21
  dependency_set = Dependabot::FileParsers::Base::DependencySet.new
22
22
 
23
- project_sdks = JSON.parse(global_json.content).
24
- fetch("msbuild-sdks", {})
23
+ project_sdks = parsed_global_json.fetch("msbuild-sdks", {})
25
24
 
26
25
  unless project_sdks.is_a?(Hash)
27
26
  raise Dependabot::DependencyFileNotParseable, global_json.path
@@ -48,6 +47,12 @@ module Dependabot
48
47
  private
49
48
 
50
49
  attr_reader :global_json
50
+
51
+ def parsed_global_json
52
+ @parsed_global_json ||= JSON.parse(global_json.content)
53
+ rescue JSON::ParserError
54
+ raise Dependabot::DependencyFileNotParseable, global_json.path
55
+ end
51
56
  end
52
57
  end
53
58
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-nuget
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.98.8
4
+ version: 0.98.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.98.8
19
+ version: 0.98.9
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.98.8
26
+ version: 0.98.9
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: byebug
29
29
  requirement: !ruby/object:Gem::Requirement