dependabot-pub 0.217.0 → 0.219.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/pub/helpers.rb +12 -7
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ff3c04b98547ce2c5c58b25ac426a85e1c890746130083fc5bc57b6a3c32479
|
4
|
+
data.tar.gz: 236e145d4c807938c484e4983b386abaedce180774b202849170c3ee7fe8e6d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26db080b73e1e35ac8abeb4cfe718036ad9734a0e2126c8267e38c4519a6849fad6308b790fc6b568c466111b7acefc2f79a1636c3c1f7e6e7250a029872e744
|
7
|
+
data.tar.gz: 917e77a421c186975cf999b1fe9552984c9f79905c4021f187de8b05676eda829292f355aaefd614fd8c2d65f55509c2f132c060f5d64eff8b884ee6feab0467
|
@@ -16,12 +16,14 @@ module Dependabot
|
|
16
16
|
File.join(ENV.fetch("DEPENDABOT_NATIVE_HELPERS_PATH", nil), "pub")
|
17
17
|
end
|
18
18
|
|
19
|
-
def self.run_infer_sdk_versions(url: nil)
|
20
|
-
stdout, _, status =
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
19
|
+
def self.run_infer_sdk_versions(dir, url: nil)
|
20
|
+
stdout, _, status = Dir.chdir dir do
|
21
|
+
Open3.capture3(
|
22
|
+
{},
|
23
|
+
File.join(pub_helpers_path, "infer_sdk_versions"),
|
24
|
+
*("--flutter-releases-url=#{url}" if url)
|
25
|
+
)
|
26
|
+
end
|
25
27
|
return nil unless status.success?
|
26
28
|
|
27
29
|
JSON.parse(stdout)
|
@@ -108,7 +110,10 @@ module Dependabot
|
|
108
110
|
## Returns the sdk versions
|
109
111
|
def ensure_right_flutter_release
|
110
112
|
@ensure_right_flutter_release ||= begin
|
111
|
-
versions = Helpers.run_infer_sdk_versions
|
113
|
+
versions = Helpers.run_infer_sdk_versions(
|
114
|
+
File.join(Dir.pwd, dependency_files.first.directory),
|
115
|
+
url: options[:flutter_releases_url]
|
116
|
+
)
|
112
117
|
flutter_ref =
|
113
118
|
if versions
|
114
119
|
Dependabot.logger.info(
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dependabot-pub
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.219.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-
|
11
|
+
date: 2023-06-12 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.219.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.219.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: webrick
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -241,8 +241,8 @@ homepage: https://github.com/dependabot/dependabot-core
|
|
241
241
|
licenses:
|
242
242
|
- Nonstandard
|
243
243
|
metadata:
|
244
|
-
|
245
|
-
changelog_uri: https://github.com/dependabot/dependabot-core/
|
244
|
+
bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
|
245
|
+
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.219.0
|
246
246
|
post_install_message:
|
247
247
|
rdoc_options: []
|
248
248
|
require_paths:
|