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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ffe17b3ee4fe2503a91b11cecad67224ecca0ad52fbe31bdb2204b60b84b8b44
4
- data.tar.gz: a8bd0761e8e646a2529d08da392d4bce446d63c841a1c7ec77db95bf47f9b7f2
3
+ metadata.gz: 7541d203739139db56d68d1a5a449261d115c606e380e10fd2b67cbaafd14c51
4
+ data.tar.gz: aa9e39ea773264ba6bf073ac669934eee0403f79954309cdab4186361cbce248
5
5
  SHA512:
6
- metadata.gz: 4ec6f71bdf08e94def692cd86e32b57916ea03c7d523be91c853bfc2cacf8dd6eb646058e8b3f5558d200c7297372d8f66f467f46a59854c03e015aa1ad98f86
7
- data.tar.gz: bf7049e0118a1858db87e84a0b34f0b3bf2fe4c2ad7ebf9fc139f29cb332335a0d8f21c528c5a9016f194e193954c454e7273f7694e33784e79bb9b7e0a3cee8
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
- 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: true
1
2
  # frozen_string_literal: true
2
3
 
3
4
  require "dependabot/dependency"
@@ -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
- 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: true
1
2
  # frozen_string_literal: true
2
3
 
3
4
  require "dependabot/file_updaters"
@@ -1,3 +1,4 @@
1
+ # typed: true
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: 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
- 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: 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 "dependabot/elm/version"
@@ -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
- 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: true
1
2
  # frozen_string_literal: true
2
3
 
3
4
  require "dependabot/version"
@@ -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.230.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-08 00:00:00.000000000 Z
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.230.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.230.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.230.0
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: