dependabot-pub 0.217.0 → 0.218.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/dependabot/pub/helpers.rb +12 -7
  3. metadata +6 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9576b42ca531ea9cc39a6e163dc5972ea399be6f23a1c637ea15ee0413e5c440
4
- data.tar.gz: d6e073007889ae950c96be7934a42d5a9ebafc438b2296c66e6ba91bf7adddc7
3
+ metadata.gz: 7986dc8a7d20da4298a2d91175d81b3d6af6dc61191ea80fc4447f6d240094e1
4
+ data.tar.gz: 051476070c03c9c7bb276656cf1e103db095364ae4b86e3507415ca56f669c7b
5
5
  SHA512:
6
- metadata.gz: 13e8f64e7d042bb9971cc137afe071e9df8a26f124797e078788d504ca4d4174b3c1b606019399e960fd1ed9a0140f776ec9b6ad5697ff34bc12135e667ec03b
7
- data.tar.gz: 3cc6d62fe5edbb70b0cc122346df27e4916b4d5ee4d0f174dc8df5b91e030fd3b213184b1529e8db055b98c14a8448a523c248bb00ec1d9428add1d49d2dd39b
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 = Open3.capture3(
21
- {},
22
- File.join(pub_helpers_path, "infer_sdk_versions"),
23
- *("--flutter-releases-url=#{url}" if url)
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 url: options[:flutter_releases_url]
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.217.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-04-24 00:00:00.000000000 Z
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.217.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.217.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
- issue_tracker_uri: https://github.com/dependabot/dependabot-core/issues
245
- changelog_uri: https://github.com/dependabot/dependabot-core/blob/main/CHANGELOG.md
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: