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 +4 -4
- data/lib/dependabot/elm/requirement.rb +10 -5
- 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: d38bea6bbad11868ddffccf474183109bd7a62148419f755552a6b55c353b4ca
|
4
|
+
data.tar.gz: dff94eb9b6ba3dfc0589209715b16ba742f55cd16f6b7769cb2e42600eacefb4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b64d724f14b0ae396684b88b19b0e9001d11e2197ef3f0207276973934d8e8499c2450ab0e7c8c9af88ce16df885278f2f7bcf8d221be0458515b49af9405a7b
|
7
|
+
data.tar.gz: 79182a4cc998f3c8f325c58abf8576d33c34669bf211612a3927f3a2e12565eb278f8e6d18b3575658704b3e4a06bc27f7dee08ea664d61b57f119c13edfad7a
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# typed:
|
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
|
-
|
17
|
-
|
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.
|
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-
|
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.
|
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.
|
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.
|
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:
|