dependabot-elm 0.230.0 → 0.232.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dependabot/elm/file_fetcher.rb +3 -2
- data/lib/dependabot/elm/file_parser.rb +1 -0
- data/lib/dependabot/elm/file_updater/elm_json_updater.rb +10 -9
- data/lib/dependabot/elm/file_updater.rb +1 -0
- data/lib/dependabot/elm/metadata_finder.rb +1 -0
- data/lib/dependabot/elm/requirement.rb +3 -2
- data/lib/dependabot/elm/update_checker/cli_parser.rb +5 -4
- data/lib/dependabot/elm/update_checker/elm_19_version_resolver.rb +4 -3
- data/lib/dependabot/elm/update_checker/requirements_updater.rb +1 -0
- data/lib/dependabot/elm/update_checker.rb +17 -16
- data/lib/dependabot/elm/version.rb +1 -0
- data/lib/dependabot/elm.rb +3 -2
- metadata +19 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7541d203739139db56d68d1a5a449261d115c606e380e10fd2b67cbaafd14c51
|
4
|
+
data.tar.gz: aa9e39ea773264ba6bf073ac669934eee0403f79954309cdab4186361cbce248
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ceea84acd87671f96367e73541b8db016ef86e6a844f326f81508bc1b8a1bef11467ddf213ce97bfb809587ff29b3f26fce60e5485f740592b1513e464e3a34
|
7
|
+
data.tar.gz: d1b50cd5e2e43b9f8fa35f11ce0b867a39cf759438ff35101c14ed1a021a115a7b37409e3cfbab16e2f6a2e9c22957d2c67e8c20e5b3f5709f332edcfb1e1cfb
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# typed: true
|
1
2
|
# frozen_string_literal: true
|
2
3
|
|
3
4
|
require "dependabot/file_fetchers"
|
@@ -31,8 +32,8 @@ module Dependabot
|
|
31
32
|
def check_required_files_present
|
32
33
|
return if elm_json
|
33
34
|
|
34
|
-
path = Pathname.new(File.join(directory, "elm.json"))
|
35
|
-
|
35
|
+
path = Pathname.new(File.join(directory, "elm.json"))
|
36
|
+
.cleanpath.to_path
|
36
37
|
raise Dependabot::DependencyFileNotFound, path
|
37
38
|
end
|
38
39
|
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# typed: true
|
1
2
|
# frozen_string_literal: true
|
2
3
|
|
3
4
|
require "dependabot/elm/file_updater"
|
@@ -12,9 +13,9 @@ module Dependabot
|
|
12
13
|
end
|
13
14
|
|
14
15
|
def updated_content
|
15
|
-
dependencies
|
16
|
-
select { |dep| requirement_changed?(elm_json_file, dep) }
|
17
|
-
reduce(elm_json_file.content.dup) do |content, dep|
|
16
|
+
dependencies
|
17
|
+
.select { |dep| requirement_changed?(elm_json_file, dep) }
|
18
|
+
.reduce(elm_json_file.content.dup) do |content, dep|
|
18
19
|
updated_content = content
|
19
20
|
|
20
21
|
updated_content = update_requirement(
|
@@ -42,14 +43,14 @@ module Dependabot
|
|
42
43
|
|
43
44
|
def update_requirement(content:, filename:, dependency:)
|
44
45
|
updated_req =
|
45
|
-
dependency.requirements
|
46
|
-
|
47
|
-
|
46
|
+
dependency.requirements
|
47
|
+
.find { |r| r.fetch(:file) == filename }
|
48
|
+
.fetch(:requirement)
|
48
49
|
|
49
50
|
old_req =
|
50
|
-
dependency.previous_requirements
|
51
|
-
|
52
|
-
|
51
|
+
dependency.previous_requirements
|
52
|
+
.find { |r| r.fetch(:file) == filename }
|
53
|
+
.fetch(:requirement)
|
53
54
|
|
54
55
|
return content unless old_req
|
55
56
|
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# typed: false
|
1
2
|
# frozen_string_literal: true
|
2
3
|
|
3
4
|
require "dependabot/utils"
|
@@ -58,5 +59,5 @@ module Dependabot
|
|
58
59
|
end
|
59
60
|
end
|
60
61
|
|
61
|
-
Dependabot::Utils
|
62
|
-
register_requirement_class("elm", Dependabot::Elm::Requirement)
|
62
|
+
Dependabot::Utils
|
63
|
+
.register_requirement_class("elm", Dependabot::Elm::Requirement)
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# typed: true
|
1
2
|
# frozen_string_literal: true
|
2
3
|
|
3
4
|
require "dependabot/elm/version"
|
@@ -14,12 +15,12 @@ module Dependabot
|
|
14
15
|
installs = {}
|
15
16
|
|
16
17
|
# Parse new installs
|
17
|
-
text.scan(INSTALL_DEPENDENCY_REGEX)
|
18
|
-
|
18
|
+
text.scan(INSTALL_DEPENDENCY_REGEX)
|
19
|
+
.each { |n, v| installs[n] = Elm::Version.new(v) }
|
19
20
|
|
20
21
|
# Parse upgrades
|
21
|
-
text.scan(UPGRADE_DEPENDENCY_REGEX)
|
22
|
-
|
22
|
+
text.scan(UPGRADE_DEPENDENCY_REGEX)
|
23
|
+
.each { |n, v| installs[n] = Elm::Version.new(v) }
|
23
24
|
|
24
25
|
installs
|
25
26
|
end
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# typed: true
|
1
2
|
# frozen_string_literal: true
|
2
3
|
|
3
4
|
require "open3"
|
@@ -85,9 +86,9 @@ module Dependabot
|
|
85
86
|
|
86
87
|
def check_install_result(changed_deps)
|
87
88
|
other_deps_bumped =
|
88
|
-
changed_deps
|
89
|
-
keys
|
90
|
-
reject { |name| name == dependency.name }
|
89
|
+
changed_deps
|
90
|
+
.keys
|
91
|
+
.reject { |name| name == dependency.name }
|
91
92
|
|
92
93
|
return :forced_full_unlock_bump if other_deps_bumped.any?
|
93
94
|
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# typed: true
|
1
2
|
# frozen_string_literal: true
|
2
3
|
|
3
4
|
require "excon"
|
@@ -32,8 +33,8 @@ module Dependabot
|
|
32
33
|
|
33
34
|
def latest_resolvable_version
|
34
35
|
@latest_resolvable_version ||=
|
35
|
-
version_resolver
|
36
|
-
latest_resolvable_version(unlock_requirement: :own)
|
36
|
+
version_resolver
|
37
|
+
.latest_resolvable_version(unlock_requirement: :own)
|
37
38
|
end
|
38
39
|
|
39
40
|
def latest_resolvable_version_with_no_unlock
|
@@ -71,13 +72,13 @@ module Dependabot
|
|
71
72
|
end
|
72
73
|
|
73
74
|
def latest_version_resolvable_with_full_unlock?
|
74
|
-
latest_version == version_resolver
|
75
|
-
latest_resolvable_version(unlock_requirement: :all)
|
75
|
+
latest_version == version_resolver
|
76
|
+
.latest_resolvable_version(unlock_requirement: :all)
|
76
77
|
end
|
77
78
|
|
78
79
|
def candidate_versions
|
79
|
-
filtered = all_versions
|
80
|
-
reject { |v| ignore_requirements.any? { |r| r.satisfied_by?(v) } }
|
80
|
+
filtered = all_versions
|
81
|
+
.reject { |v| ignore_requirements.any? { |r| r.satisfied_by?(v) } }
|
81
82
|
|
82
83
|
if @raise_on_ignored && filter_lower_versions(filtered).empty? && filter_lower_versions(all_versions).any?
|
83
84
|
raise AllVersionsIgnored
|
@@ -89,8 +90,8 @@ module Dependabot
|
|
89
90
|
def filter_lower_versions(versions_array)
|
90
91
|
return versions_array unless current_version
|
91
92
|
|
92
|
-
versions_array
|
93
|
-
select { |version| version > current_version }
|
93
|
+
versions_array
|
94
|
+
.select { |version| version > current_version }
|
94
95
|
end
|
95
96
|
|
96
97
|
def all_versions
|
@@ -104,10 +105,10 @@ module Dependabot
|
|
104
105
|
|
105
106
|
return [] unless response.status == 200
|
106
107
|
|
107
|
-
JSON.parse(response.body)
|
108
|
-
|
109
|
-
|
110
|
-
|
108
|
+
JSON.parse(response.body)
|
109
|
+
.keys
|
110
|
+
.map { |v| version_class.new(v) }
|
111
|
+
.sort
|
111
112
|
end
|
112
113
|
|
113
114
|
# Overwrite the base class's requirements_up_to_date? method to instead
|
@@ -115,10 +116,10 @@ module Dependabot
|
|
115
116
|
def requirements_up_to_date?
|
116
117
|
return false unless latest_version
|
117
118
|
|
118
|
-
dependency.requirements
|
119
|
-
|
120
|
-
|
121
|
-
|
119
|
+
dependency.requirements
|
120
|
+
.map { |r| r.fetch(:requirement) }
|
121
|
+
.map { |r| requirement_class.new(r) }
|
122
|
+
.all? { |r| r.satisfied_by?(latest_version) }
|
122
123
|
end
|
123
124
|
end
|
124
125
|
end
|
data/lib/dependabot/elm.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
# typed: true
|
1
2
|
# frozen_string_literal: true
|
2
3
|
|
3
4
|
# These all need to be required so the various classes can be registered in a
|
@@ -11,8 +12,8 @@ require "dependabot/elm/requirement"
|
|
11
12
|
require "dependabot/elm/version"
|
12
13
|
|
13
14
|
require "dependabot/pull_request_creator/labeler"
|
14
|
-
Dependabot::PullRequestCreator::Labeler
|
15
|
-
register_label_details("elm", name: "elm", colour: "76d3f2")
|
15
|
+
Dependabot::PullRequestCreator::Labeler
|
16
|
+
.register_label_details("elm", name: "elm", colour: "76d3f2")
|
16
17
|
|
17
18
|
require "dependabot/dependency"
|
18
19
|
Dependabot::Dependency.register_production_check("elm", ->(_) { true })
|
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.
|
4
|
+
version: 0.232.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-09-
|
11
|
+
date: 2023-09-14 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.
|
19
|
+
version: 0.232.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.
|
26
|
+
version: 0.232.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: debug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -136,6 +136,20 @@ dependencies:
|
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: 1.19.0
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: rubocop-sorbet
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: 0.7.3
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 0.7.3
|
139
153
|
- !ruby/object:Gem::Dependency
|
140
154
|
name: stackprof
|
141
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -203,7 +217,7 @@ licenses:
|
|
203
217
|
- Nonstandard
|
204
218
|
metadata:
|
205
219
|
bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
|
206
|
-
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.
|
220
|
+
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.232.0
|
207
221
|
post_install_message:
|
208
222
|
rdoc_options: []
|
209
223
|
require_paths:
|