dependabot-bundler 0.216.0 → 0.216.2

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: 488f55b66d388c723bf2f3c5a224bc4f9475a128e8c4d988f6eefc86c7e0b33a
4
- data.tar.gz: 6c8d892bb5eb351f8c5ad2ecf077c76eded7280dd47d28c478ed6eda136af10a
3
+ metadata.gz: 1ad59af24d3a0f24fa6590890f438eba205d59415b6a7444c277fefe101a1e8e
4
+ data.tar.gz: d4e95545b59b2b8137be001e69c404cfd9627be007d69e4b57cb363fd29e5ea3
5
5
  SHA512:
6
- metadata.gz: 36a34e2574d1ac85878d1c120992045f89271e3a258fc1811fad2b9f665255b5ab2571f7bfd9524fab4592625fe6db4f30a6f0166b2a99fbd7053bebb4e758df
7
- data.tar.gz: 770e917cdf8e5e0750dcdd115b5bc3b64b436fdc493570a89d7ad0bec06b6b44dfcfc03744adec8ad0935345b13db4c8a6ec40e06d5326d0408acf9eb6932132
6
+ metadata.gz: 6b4511cacbd8bc90175c27e44e7982e6af00ec63c5658cadca2ad8c597d3afdaa0aa971596f9ef400ed5914bc3580f54fd222ed240881125382a78c3f0822bf8
7
+ data.tar.gz: 29ac7bb8faae80a7d3c202f1a3b5534b0cdfe75085615740db90da109f35480a8e021b496c5c90c962dd1207b6eb249b9fc122cebbea4547755e8b2fa0668a45
@@ -97,7 +97,7 @@ RSpec.describe Functions::FileParser do
97
97
  branch: nil,
98
98
  ref: nil,
99
99
  type: "git",
100
- url: "http://github.com/dependabot-fixtures/uk_phone_numbers"
100
+ url: "https://github.com/dependabot-fixtures/uk_phone_numbers"
101
101
  },
102
102
  type: :runtime
103
103
  }
@@ -1,12 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "dependabot/dependency_file"
4
- require "dependabot/bundler/file_parser"
4
+ require "dependabot/file_parsers/base"
5
5
  require "dependabot/bundler/file_updater/gemspec_sanitizer"
6
6
 
7
7
  module Dependabot
8
8
  module Bundler
9
- class FileParser
9
+ class FileParser < Dependabot::FileParsers::Base
10
10
  class FilePreparer
11
11
  def initialize(dependency_files:)
12
12
  @dependency_files = dependency_files
@@ -1,11 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "parser/current"
4
- require "dependabot/bundler/file_parser"
4
+ require "dependabot/file_parsers/base"
5
5
 
6
6
  module Dependabot
7
7
  module Bundler
8
- class FileParser
8
+ class FileParser < Dependabot::FileParsers::Base
9
9
  # Checks whether a dependency is declared in a Gemfile
10
10
  class GemfileDeclarationFinder
11
11
  def initialize(gemfile:)
@@ -1,10 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "parser/current"
4
+ require "dependabot/file_parsers/base"
4
5
 
5
6
  module Dependabot
6
7
  module Bundler
7
- class FileParser
8
+ class FileParser < Dependabot::FileParsers::Base
8
9
  # Checks whether a dependency is declared in a gemspec file
9
10
  class GemspecDeclarationFinder
10
11
  def initialize(gemspec:)
@@ -79,6 +79,10 @@ module Dependabot
79
79
  )
80
80
  end
81
81
  post_process_lockfile(lockfile_body)
82
+ rescue SharedHelpers::HelperSubprocessFailed => e
83
+ raise Dependabot::DependencyFileNotResolvable, e.message if e.error_class == "Bundler::SolveFailure"
84
+
85
+ raise
82
86
  end
83
87
 
84
88
  def write_temporary_dependency_files
@@ -146,7 +150,7 @@ module Dependabot
146
150
 
147
151
  def top_level_gemspecs
148
152
  dependency_files.
149
- select { |file| file.name.end_with?(".gemspec") }
153
+ select { |file| file.name.end_with?(".gemspec") && Pathname.new(file.name).dirname.to_s == "." }
150
154
  end
151
155
 
152
156
  def ruby_version_file
@@ -115,9 +115,7 @@ module Dependabot
115
115
  end
116
116
 
117
117
  def requirement_class
118
- Utils.requirement_class_for_package_manager(
119
- dependency.package_manager
120
- )
118
+ dependency.requirement_class
121
119
  end
122
120
 
123
121
  def gemfile
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-bundler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.216.0
4
+ version: 0.216.2
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-12 00:00:00.000000000 Z
11
+ date: 2023-04-20 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.216.0
19
+ version: 0.216.2
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.216.0
26
+ version: 0.216.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: debug
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -114,14 +114,14 @@ dependencies:
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 1.48.0
117
+ version: 1.50.0
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: 1.48.0
124
+ version: 1.50.0
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: rubocop-performance
127
127
  requirement: !ruby/object:Gem::Requirement