dependabot-elm 0.236.0 → 0.237.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: 8e4fbd12e80594c1f1f2689fb192707b3893208b57cc87cdff2ec49957d995b6
4
- data.tar.gz: 1f176ab77a5c65ccbb038f36600ccd4de68adc2eb5016be7797dfecdd1de5d05
3
+ metadata.gz: 2d76b2cb4098b445bd95ecc58fdbd68be569790fd235ab8669f659babce020f1
4
+ data.tar.gz: fcb5fd66c05ea773498766e8211bbc821b947cdb098b7ebdaf8bfc5032c956c4
5
5
  SHA512:
6
- metadata.gz: e8c341da8fc9562ae811c1a23afeb41f3e0d302f650403bda8c57e4793580352c6c1b8e3f3cedcd4b08ec40214d30720fb42af1a2efb15aafdabfb2e46aed91c
7
- data.tar.gz: dd660a308f10e79e89cb2ecc8aa1866244776bbdb5976cc74e10f63bbff55f5d650e6670c415b2a3464780ee956a8ec85b0aa5ec746fd490d24a89ecdc401ed9
6
+ metadata.gz: b2e3d889c5db350d75fa3553c42cdaaa20834dfc20cdf4eb108554b9c610c75687ddc54e2055645570c5234602e883a93bd5815768923887fb136959c11191f9
7
+ data.tar.gz: c571e672dd6c5e42c318d3880703b1422ab763f1c803ba3ce1b09fe562a16be0888b9dac5f7b8670dec7ae6ee612d36de6678033cacef5433027e633f8f98b66
@@ -1,22 +1,27 @@
1
- # typed: true
1
+ # typed: strict
2
2
  # frozen_string_literal: true
3
3
 
4
+ require "sorbet-runtime"
4
5
  require "dependabot/file_fetchers"
5
6
  require "dependabot/file_fetchers/base"
6
7
 
7
8
  module Dependabot
8
9
  module Elm
9
10
  class FileFetcher < Dependabot::FileFetchers::Base
11
+ extend T::Sig
12
+ extend T::Helpers
13
+
14
+ sig { override.params(filenames: T::Array[String]).returns(T::Boolean) }
10
15
  def self.required_files_in?(filenames)
11
16
  filenames.include?("elm.json")
12
17
  end
13
18
 
19
+ sig { override.returns(String) }
14
20
  def self.required_files_message
15
21
  "Repo must contain an elm-package.json or an elm.json"
16
22
  end
17
23
 
18
- private
19
-
24
+ sig { override.returns(T::Array[DependencyFile]) }
20
25
  def fetch_files
21
26
  fetched_files = []
22
27
 
@@ -29,6 +34,9 @@ module Dependabot
29
34
  fetched_files
30
35
  end
31
36
 
37
+ private
38
+
39
+ sig { void }
32
40
  def check_required_files_present
33
41
  return if elm_json
34
42
 
@@ -37,10 +45,11 @@ module Dependabot
37
45
  raise Dependabot::DependencyFileNotFound, path
38
46
  end
39
47
 
48
+ sig { returns(T.nilable(Dependabot::DependencyFile)) }
40
49
  def elm_json
41
50
  return @elm_json if defined?(@elm_json)
42
51
 
43
- @elm_json = fetch_file_if_present("elm.json")
52
+ @elm_json = T.let(fetch_file_if_present("elm.json"), T.nilable(Dependabot::DependencyFile))
44
53
  end
45
54
  end
46
55
  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.236.0
4
+ version: 0.237.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-10-26 00:00:00.000000000 Z
11
+ date: 2023-11-21 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.236.0
19
+ version: 0.237.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.236.0
26
+ version: 0.237.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: debug
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -94,20 +94,34 @@ dependencies:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: '1.3'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rspec-sorbet
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 1.9.2
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 1.9.2
97
111
  - !ruby/object:Gem::Dependency
98
112
  name: rubocop
99
113
  requirement: !ruby/object:Gem::Requirement
100
114
  requirements:
101
115
  - - "~>"
102
116
  - !ruby/object:Gem::Version
103
- version: 1.56.0
117
+ version: 1.57.2
104
118
  type: :development
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
107
121
  requirements:
108
122
  - - "~>"
109
123
  - !ruby/object:Gem::Version
110
- version: 1.56.0
124
+ version: 1.57.2
111
125
  - !ruby/object:Gem::Dependency
112
126
  name: rubocop-performance
113
127
  requirement: !ruby/object:Gem::Requirement
@@ -217,7 +231,7 @@ licenses:
217
231
  - Nonstandard
218
232
  metadata:
219
233
  bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
220
- changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.236.0
234
+ changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.237.0
221
235
  post_install_message:
222
236
  rdoc_options: []
223
237
  require_paths: