dependabot-pub 0.216.2 → 0.218.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: 7986dc8a7d20da4298a2d91175d81b3d6af6dc61191ea80fc4447f6d240094e1
|
4
|
+
data.tar.gz: 051476070c03c9c7bb276656cf1e103db095364ae4b86e3507415ca56f669c7b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6032d872bdccfaebcd0b489b15899d9fed7cee1172423c42c7543b32a01cac5b7cecac48c89c35b5d7750a1646be231dcbcdf018656fe8352b1330d8fadc73f
|
7
|
+
data.tar.gz: deace05f8c93011f375b072f5e9f17ebf4decad02a821ce98fe1f87997e3ed53f2de01ee8d6a34902b605cf9ad2ba0a7b9db00e216c76ef4c36d36086febd94e
|
@@ -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.218.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-05-22 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.218.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.218.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.218.0
|
246
246
|
post_install_message:
|
247
247
|
rdoc_options: []
|
248
248
|
require_paths:
|