dependabot-elm 0.224.0 → 0.226.0

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: 81aeaea13fd35e048d244435881c1ae466b2280851d3c9bc365c8d1028411b34
4
- data.tar.gz: 61bb5a59740cd2185bea48471724abdb5da657d907d192a4b52da091b0693f0a
3
+ metadata.gz: 14e1bb3018eaef855daa0e99be5a390e98563d7762ef493c4f73e2c4fe32a75b
4
+ data.tar.gz: 9c68dd653ec0e81f537b30aad3e17628ca715945c489ff7ccdec5738cb2e7701
5
5
  SHA512:
6
- metadata.gz: 0c42e440a3547d0c152ad4779bf4788225328d572202ef4c2af847e77c14f7d2a775b5d0f8a63c8b7730de06df9227ba13651abdc0c422abd5aaab9796d84e01
7
- data.tar.gz: 0eafc9681b78ec410f799b4cf821cfb3c4f8eacd8afcabafb85857a25be43c11801fbe5d9ee669df21f596f2518258bf82565808458df3dc054ad6fa967c7777
6
+ metadata.gz: 718659181f3d83e348828846734581baf6f445d00a2693ae71eb22c2f4f137b0c0a8073906ec4d910ff2f874a6677be24d808f0c9293f861d9935bde1cf0c88d
7
+ data.tar.gz: 526a58a178a6f5c5fd2cc12a145c0bbd03b46c755746661e35eb5feba6875f04c79b4308236b5ce2d0025f3c3a09eb99eb26f178ec33fad868c3bc64c9b1b371
@@ -37,7 +37,9 @@ module Dependabot
37
37
  end
38
38
 
39
39
  def elm_json
40
- @elm_json ||= fetch_file_if_present("elm.json")
40
+ return @elm_json if defined?(@elm_json)
41
+
42
+ @elm_json = fetch_file_if_present("elm.json")
41
43
  end
42
44
  end
43
45
  end
@@ -94,18 +94,17 @@ module Dependabot
94
94
  end
95
95
 
96
96
  def all_versions
97
- return @all_versions if @version_lookup_attempted
98
-
99
- @version_lookup_attempted = true
97
+ @all_versions ||= fetch_all_versions
98
+ end
100
99
 
100
+ def fetch_all_versions
101
101
  response = Dependabot::RegistryClient.get(
102
102
  url: "https://package.elm-lang.org/packages/#{dependency.name}/releases.json"
103
103
  )
104
104
 
105
- return @all_versions = [] unless response.status == 200
105
+ return [] unless response.status == 200
106
106
 
107
- @all_versions =
108
- JSON.parse(response.body).
107
+ JSON.parse(response.body).
109
108
  keys.
110
109
  map { |v| version_class.new(v) }.
111
110
  sort
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-elm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.224.0
4
+ version: 0.226.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-27 00:00:00.000000000 Z
11
+ date: 2023-08-11 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.224.0
19
+ version: 0.226.0
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.224.0
26
+ version: 0.226.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: debug
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -128,14 +128,14 @@ dependencies:
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: 1.17.1
131
+ version: 1.18.0
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: 1.17.1
138
+ version: 1.18.0
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: stackprof
141
141
  requirement: !ruby/object:Gem::Requirement
@@ -203,7 +203,7 @@ licenses:
203
203
  - Nonstandard
204
204
  metadata:
205
205
  bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
206
- changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.224.0
206
+ changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.226.0
207
207
  post_install_message:
208
208
  rdoc_options: []
209
209
  require_paths: