dependabot-elm 0.211.0 → 0.213.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 +2 -2
- data/lib/dependabot/elm/update_checker/cli_parser.rb +2 -4
- data/lib/dependabot/elm/update_checker/elm_19_version_resolver.rb +4 -6
- data/lib/dependabot/elm/update_checker/requirements_updater.rb +2 -2
- data/lib/dependabot/elm/version.rb +2 -2
- metadata +14 -42
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7839a02e6ee2d7390cc7b02aa72ea22be1fcc687e7a24d799a6daa4f756a47a1
|
4
|
+
data.tar.gz: de3d691f2280fea35b4ca1e08bb2cd2937af06b754258333cc9d03e04921d9d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f26d1f3e8631a4cc35976689eddadbabc6d4fcf0aaad9da95dbd053d393c374525f7ae26add79c26d56d4729200ed7ab9ae35d5f694dbced7f0add55b52c8bb6
|
7
|
+
data.tar.gz: 4585a2dbe087cf462881c2a1be5de115363b4152eee9d7666aad97a1f81b71160185f084f726beac47c97c46621d4988527870b23584abb7124059a68a0d3d1d
|
@@ -9,8 +9,8 @@ module Dependabot
|
|
9
9
|
ELM_PATTERN_RAW =
|
10
10
|
"(#{Elm::Version::VERSION_PATTERN}) (<=?) v (<=?) " \
|
11
11
|
"(#{Elm::Version::VERSION_PATTERN})"
|
12
|
-
ELM_PATTERN = /\A#{ELM_PATTERN_RAW}\z
|
13
|
-
ELM_EXACT_PATTERN = /\A#{Elm::Version::VERSION_PATTERN}\z
|
12
|
+
ELM_PATTERN = /\A#{ELM_PATTERN_RAW}\z/
|
13
|
+
ELM_EXACT_PATTERN = /\A#{Elm::Version::VERSION_PATTERN}\z/
|
14
14
|
|
15
15
|
# Returns an array of requirements. At least one requirement from the
|
16
16
|
# returned array must be satisfied for a version to be valid.
|
@@ -7,10 +7,8 @@ module Dependabot
|
|
7
7
|
module Elm
|
8
8
|
class UpdateChecker
|
9
9
|
class CliParser
|
10
|
-
INSTALL_DEPENDENCY_REGEX =
|
11
|
-
|
12
|
-
UPGRADE_DEPENDENCY_REGEX =
|
13
|
-
%r{([^\s]+\/[^\s]+) \(\d+\.\d+\.\d+ => (\d+\.\d+\.\d+)\)}.freeze
|
10
|
+
INSTALL_DEPENDENCY_REGEX = %r{([^\s]+\/[^\s]+)\s+(\d+\.\d+\.\d+)}
|
11
|
+
UPGRADE_DEPENDENCY_REGEX = %r{([^\s]+\/[^\s]+) \(\d+\.\d+\.\d+ => (\d+\.\d+\.\d+)\)}
|
14
12
|
|
15
13
|
def self.decode_install_preview(text)
|
16
14
|
installs = {}
|
@@ -36,7 +36,7 @@ module Dependabot
|
|
36
36
|
def updated_dependencies_after_full_unlock
|
37
37
|
changed_deps = install_metadata
|
38
38
|
|
39
|
-
original_dependency_details.
|
39
|
+
original_dependency_details.filter_map do |original_dep|
|
40
40
|
new_version = changed_deps.fetch(original_dep.name, nil)
|
41
41
|
next unless new_version
|
42
42
|
|
@@ -60,7 +60,7 @@ module Dependabot
|
|
60
60
|
previous_requirements: original_dep.requirements,
|
61
61
|
package_manager: original_dep.package_manager
|
62
62
|
)
|
63
|
-
end
|
63
|
+
end
|
64
64
|
end
|
65
65
|
|
66
66
|
private
|
@@ -158,10 +158,8 @@ module Dependabot
|
|
158
158
|
# `elm install <dependency_name>` to generate the install plan
|
159
159
|
%w(dependencies test-dependencies).each do |type|
|
160
160
|
json[type].delete(dependency.name) if json.dig(type, dependency.name)
|
161
|
-
|
162
|
-
|
163
|
-
json[type][category].delete(dependency.name) if json.dig(type, category, dependency.name)
|
164
|
-
end
|
161
|
+
json[type]["direct"].delete(dependency.name) if json.dig(type, "direct", dependency.name)
|
162
|
+
json[type]["indirect"].delete(dependency.name) if json.dig(type, "indirect", dependency.name)
|
165
163
|
end
|
166
164
|
|
167
165
|
json["source-directories"] = []
|
@@ -9,8 +9,8 @@ module Dependabot
|
|
9
9
|
class UpdateChecker
|
10
10
|
class RequirementsUpdater
|
11
11
|
RANGE_REQUIREMENT_REGEX =
|
12
|
-
/(\d+\.\d+\.\d+) <= v < (\d+\.\d+\.\d+)
|
13
|
-
SINGLE_VERSION_REGEX = /\A(\d+\.\d+\.\d+)\z
|
12
|
+
/(\d+\.\d+\.\d+) <= v < (\d+\.\d+\.\d+)/
|
13
|
+
SINGLE_VERSION_REGEX = /\A(\d+\.\d+\.\d+)\z/
|
14
14
|
|
15
15
|
def initialize(requirements:, latest_resolvable_version:)
|
16
16
|
@requirements = requirements
|
@@ -9,8 +9,8 @@ require "rubygems_version_patch"
|
|
9
9
|
module Dependabot
|
10
10
|
module Elm
|
11
11
|
class Version < Gem::Version
|
12
|
-
VERSION_PATTERN = "[0-9]
|
13
|
-
VERSION_PATTERN_REGEX = /\A#{VERSION_PATTERN}\Z
|
12
|
+
VERSION_PATTERN = "[0-9]+\\.[0-9]+\\.[0-9]+"
|
13
|
+
VERSION_PATTERN_REGEX = /\A#{VERSION_PATTERN}\Z/
|
14
14
|
|
15
15
|
def self.correct?(version)
|
16
16
|
version.to_s.match?(VERSION_PATTERN_REGEX)
|
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.213.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dependabot-common
|
@@ -16,42 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.213.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.
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: debase
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - '='
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 0.2.3
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - '='
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: 0.2.3
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: debase-ruby_core_source
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - '='
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: 0.10.16
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - '='
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: 0.10.16
|
26
|
+
version: 0.213.0
|
55
27
|
- !ruby/object:Gem::Dependency
|
56
28
|
name: debug
|
57
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,14 +58,14 @@ dependencies:
|
|
86
58
|
requirements:
|
87
59
|
- - "~>"
|
88
60
|
- !ruby/object:Gem::Version
|
89
|
-
version: 3.
|
61
|
+
version: 3.13.0
|
90
62
|
type: :development
|
91
63
|
prerelease: false
|
92
64
|
version_requirements: !ruby/object:Gem::Requirement
|
93
65
|
requirements:
|
94
66
|
- - "~>"
|
95
67
|
- !ruby/object:Gem::Version
|
96
|
-
version: 3.
|
68
|
+
version: 3.13.0
|
97
69
|
- !ruby/object:Gem::Dependency
|
98
70
|
name: rake
|
99
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -142,28 +114,28 @@ dependencies:
|
|
142
114
|
requirements:
|
143
115
|
- - "~>"
|
144
116
|
- !ruby/object:Gem::Version
|
145
|
-
version: 1.
|
117
|
+
version: 1.37.1
|
146
118
|
type: :development
|
147
119
|
prerelease: false
|
148
120
|
version_requirements: !ruby/object:Gem::Requirement
|
149
121
|
requirements:
|
150
122
|
- - "~>"
|
151
123
|
- !ruby/object:Gem::Version
|
152
|
-
version: 1.
|
124
|
+
version: 1.37.1
|
153
125
|
- !ruby/object:Gem::Dependency
|
154
|
-
name:
|
126
|
+
name: rubocop-performance
|
155
127
|
requirement: !ruby/object:Gem::Requirement
|
156
128
|
requirements:
|
157
129
|
- - "~>"
|
158
130
|
- !ruby/object:Gem::Version
|
159
|
-
version:
|
131
|
+
version: 1.15.0
|
160
132
|
type: :development
|
161
133
|
prerelease: false
|
162
134
|
version_requirements: !ruby/object:Gem::Requirement
|
163
135
|
requirements:
|
164
136
|
- - "~>"
|
165
137
|
- !ruby/object:Gem::Version
|
166
|
-
version:
|
138
|
+
version: 1.15.0
|
167
139
|
- !ruby/object:Gem::Dependency
|
168
140
|
name: simplecov
|
169
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -265,14 +237,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
265
237
|
requirements:
|
266
238
|
- - ">="
|
267
239
|
- !ruby/object:Gem::Version
|
268
|
-
version:
|
240
|
+
version: 3.1.0
|
269
241
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
270
242
|
requirements:
|
271
243
|
- - ">="
|
272
244
|
- !ruby/object:Gem::Version
|
273
|
-
version:
|
245
|
+
version: 3.1.0
|
274
246
|
requirements: []
|
275
|
-
rubygems_version: 3.
|
247
|
+
rubygems_version: 3.3.7
|
276
248
|
signing_key:
|
277
249
|
specification_version: 4
|
278
250
|
summary: Elm support for dependabot
|