dependabot-elm 0.229.0 → 0.231.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: 2383064031665aa702da64a996ec168489418dbea459a859cd918c776db8fdb9
4
- data.tar.gz: b84b8fc8ce3f66b361bf584811c11d0d2b9c83b23f0ad2b862ea27b79fd0a737
3
+ metadata.gz: 7b2f22ecd69189cb68f5228f242026869077b08e0ff028dee638d3f08a97f32f
4
+ data.tar.gz: 3f67d91e5d8f83d446d9991f2315123aad14c30eb5ae476b9dea11f4736e988b
5
5
  SHA512:
6
- metadata.gz: ca89ab12bc4c9887e0764730223bed59995cad983e8cb207ccc04e3596755d788f11b20f1599e43cfa030c8e8df22df27ad722d0cca73d99366c291b4deb5c19
7
- data.tar.gz: 63836350ad5727121f83f3060c309fd8b06a3a462923693d6dd55d2f3c70d126456edcd4097f527951c6815cd840025c46dce687130be4cabb28e19b4fd0c90f
6
+ metadata.gz: 02251b5ebb0a0ebe612dcd39b5ce93d43031bb6e81f0c09747962af3c4b0964310561bd081a90c0f0717b9623c7c0e733ff7430273465c437c9558516fd1ec05
7
+ data.tar.gz: 5e11609c35135b168767c2f75f9a4d5b645b1983985c591682cf3c769d93a32c88fbe65d3a427024e7e1192c8094d76dfb03a5eacb6fcd0419fd8a036f07e73d
@@ -1,3 +1,4 @@
1
+ # typed: false
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
- cleanpath.to_path
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: false
1
2
  # frozen_string_literal: true
2
3
 
3
4
  require "dependabot/dependency"
@@ -1,3 +1,4 @@
1
+ # typed: false
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
- find { |r| r.fetch(:file) == filename }.
47
- fetch(:requirement)
46
+ dependency.requirements
47
+ .find { |r| r.fetch(:file) == filename }
48
+ .fetch(:requirement)
48
49
 
49
50
  old_req =
50
- dependency.previous_requirements.
51
- find { |r| r.fetch(:file) == filename }.
52
- fetch(:requirement)
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/file_updaters"
@@ -1,3 +1,4 @@
1
+ # typed: false
1
2
  # frozen_string_literal: true
2
3
 
3
4
  require "dependabot/metadata_finders"
@@ -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: false
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
- each { |n, v| installs[n] = Elm::Version.new(v) }
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
- each { |n, v| installs[n] = Elm::Version.new(v) }
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: false
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: false
1
2
  # frozen_string_literal: true
2
3
 
3
4
  require "dependabot/elm/version"
@@ -1,3 +1,4 @@
1
+ # typed: false
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
- keys.
109
- map { |v| version_class.new(v) }.
110
- sort
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
- map { |r| r.fetch(:requirement) }.
120
- map { |r| requirement_class.new(r) }.
121
- all? { |r| r.satisfied_by?(latest_version) }
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
@@ -1,3 +1,4 @@
1
+ # typed: false
1
2
  # frozen_string_literal: true
2
3
 
3
4
  require "dependabot/version"
@@ -1,3 +1,4 @@
1
+ # typed: false
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.229.0
4
+ version: 0.231.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-08-30 00:00:00.000000000 Z
11
+ date: 2023-09-12 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.229.0
19
+ version: 0.231.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.229.0
26
+ version: 0.231.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.229.0
220
+ changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.231.0
207
221
  post_install_message:
208
222
  rdoc_options: []
209
223
  require_paths: