dependabot-elm 0.245.0 → 0.247.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: 8ea5d001ff54163a542c55cd72123ac145fd3b52ee31a19e383c49ec203f801f
4
- data.tar.gz: c54deb85e08b34cc00ea816131dc2e2530825a92ac0d3df88c37131844460e50
3
+ metadata.gz: d38bea6bbad11868ddffccf474183109bd7a62148419f755552a6b55c353b4ca
4
+ data.tar.gz: dff94eb9b6ba3dfc0589209715b16ba742f55cd16f6b7769cb2e42600eacefb4
5
5
  SHA512:
6
- metadata.gz: d16e50db4977acd6b3206edb5e8485145276325b08cc9a267c494c2d787613ee901b5dc9262a3490c1d3ffad96dbf3d0b527acd56efa42387e43bb27341aa166
7
- data.tar.gz: 538f948c424d6896c926b3c89e151061f62c7370e3bbdb7844649db0436ea0c7fc37758c732d4dac71018fc5a39d9cef70204db51a7610f31bf4d4e99c172ecc
6
+ metadata.gz: b64d724f14b0ae396684b88b19b0e9001d11e2197ef3f0207276973934d8e8499c2450ab0e7c8c9af88ce16df885278f2f7bcf8d221be0458515b49af9405a7b
7
+ data.tar.gz: 79182a4cc998f3c8f325c58abf8576d33c34669bf211612a3927f3a2e12565eb278f8e6d18b3575658704b3e4a06bc27f7dee08ea664d61b57f119c13edfad7a
@@ -1,4 +1,4 @@
1
- # typed: false
1
+ # typed: strict
2
2
  # frozen_string_literal: true
3
3
 
4
4
  require "sorbet-runtime"
@@ -13,8 +13,10 @@ module Dependabot
13
13
  extend T::Sig
14
14
 
15
15
  ELM_PATTERN_RAW =
16
- "(#{Elm::Version::VERSION_PATTERN}) (<=?) v (<=?) " \
17
- "(#{Elm::Version::VERSION_PATTERN})".freeze
16
+ T.let(
17
+ "(#{Elm::Version::VERSION_PATTERN}) (<=?) v (<=?) (#{Elm::Version::VERSION_PATTERN})".freeze,
18
+ String
19
+ )
18
20
  ELM_PATTERN = /\A#{ELM_PATTERN_RAW}\z/
19
21
  ELM_EXACT_PATTERN = /\A#{Elm::Version::VERSION_PATTERN}\z/
20
22
 
@@ -25,6 +27,7 @@ module Dependabot
25
27
  [new(requirement_string)]
26
28
  end
27
29
 
30
+ sig { params(requirements: T.any(T.nilable(String), T::Array[T.nilable(String)])).void }
28
31
  def initialize(*requirements)
29
32
  requirements = requirements.flatten.flat_map do |req_string|
30
33
  raise BadRequirementError, "Nil requirement not supported in Elm" if req_string.nil?
@@ -37,6 +40,7 @@ module Dependabot
37
40
  super(requirements)
38
41
  end
39
42
 
43
+ sig { override.params(version: T.any(String, Gem::Version)).returns(T::Boolean) }
40
44
  def satisfied_by?(version)
41
45
  version = Elm::Version.new(version.to_s)
42
46
  super
@@ -46,6 +50,7 @@ module Dependabot
46
50
 
47
51
  # Override the parser to create Elm::Versions and return an
48
52
  # array of parsed requirements
53
+ sig { params(obj: String).returns(T.any(String, T::Array[String])) }
49
54
  def convert_elm_constraint_to_ruby_constraint(obj)
50
55
  # If a version is given this is an equals requirement
51
56
  return obj if ELM_EXACT_PATTERN.match?(obj.to_s)
@@ -54,10 +59,10 @@ module Dependabot
54
59
 
55
60
  # If the two versions specified are identical this is an equals
56
61
  # requirement
57
- return matches[4] if matches[1] == matches[4] && matches[3] == "<="
62
+ return T.must(matches[4]) if matches[1] == matches[4] && matches[3] == "<="
58
63
 
59
64
  [
60
- [matches[2].tr("<", ">"), matches[1]].join(" "),
65
+ [T.must(matches[2]).tr("<", ">"), matches[1]].join(" "),
61
66
  [matches[3], matches[4]].join(" ")
62
67
  ]
63
68
  end
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.245.0
4
+ version: 0.247.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-22 00:00:00.000000000 Z
11
+ date: 2024-03-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.245.0
19
+ version: 0.247.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.245.0
26
+ version: 0.247.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-rspec
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: 2.27.1
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: 2.27.1
139
153
  - !ruby/object:Gem::Dependency
140
154
  name: rubocop-sorbet
141
155
  requirement: !ruby/object:Gem::Requirement
@@ -245,7 +259,7 @@ licenses:
245
259
  - Nonstandard
246
260
  metadata:
247
261
  bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
248
- changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.245.0
262
+ changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.247.0
249
263
  post_install_message:
250
264
  rdoc_options: []
251
265
  require_paths: