dependabot-common 0.136.0 → 0.138.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bc3edda385ad9712adee28a2e6ce158255538bc08ebb97254d21c12c93eb6b77
4
- data.tar.gz: e80fc751689e19297e517af77f33f2cbbabc9a1c2d6a42ee2cc22e093100c5ab
3
+ metadata.gz: 8b67173d817d1d43bc6495b7aeb76616c5ee36db91178124e87a533be26f36a3
4
+ data.tar.gz: 8e68c82708bbd1e6bf57eba1bde3d56af198e205e0f6db904413ffacad504836
5
5
  SHA512:
6
- metadata.gz: c2f0551c77fcbd34fd26551b30dba175cddfac71a7dbdc17965647a2f0e71b8019be4be0055c3c75c2cad24f37653116e97c9760afbe8b94fdb01bccc9ca83ac
7
- data.tar.gz: b1a8902b9a7d11ac6c8524f95ab0b223a745e42268e39060dea75440399d314d6b38145911fc3856701f9983d1068a84132f964b1a8d15e31ddeb04a5e4fd509
6
+ metadata.gz: fa18930f9bb899054e009f66764764d7df0380c88a2051968112762e90c4011791b16e69054543d3cc1fc4e6de858e6c6e72267284d1a851c42bf51f031229e7
7
+ data.tar.gz: a391af9d047a10d264cfef80471a60da07cb08cea30a480ba4305e96824efdd123b1d26d48269e1805231b0be2237cce3e740206483d241e1deb706bb60935aa
@@ -47,6 +47,8 @@ module Dependabot
47
47
 
48
48
  class OutOfMemory < DependabotError; end
49
49
 
50
+ class NotImplemented < DependabotError; end
51
+
50
52
  #####################
51
53
  # Repo level errors #
52
54
  #####################
@@ -1,17 +1,20 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "dependabot/notifications"
4
+
3
5
  module Dependabot
4
6
  module FileParsers
5
7
  class Base
6
- attr_reader :dependency_files, :repo_contents_path, :credentials, :source
8
+ attr_reader :dependency_files, :repo_contents_path, :credentials, :source, :options
7
9
 
8
10
  def initialize(dependency_files:, repo_contents_path: nil, source:,
9
- credentials: [], reject_external_code: false)
11
+ credentials: [], reject_external_code: false, options: {})
10
12
  @dependency_files = dependency_files
11
13
  @repo_contents_path = repo_contents_path
12
14
  @credentials = credentials
13
15
  @source = source
14
16
  @reject_external_code = reject_external_code
17
+ @options = options
15
18
 
16
19
  check_required_files
17
20
  end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "active_support/notifications"
4
+
5
+ module Dependabot
6
+ module Notifications
7
+ FILE_PARSER_PACKAGE_MANAGER_VERSION_PARSED = "dependabot.file_parser.package_manager_version_parsed"
8
+ end
9
+
10
+ def self.instrument(name, payload = {})
11
+ ActiveSupport::Notifications.instrument(name, payload)
12
+ end
13
+
14
+ def self.subscribe(pattern = nil, callback = nil, &block)
15
+ ActiveSupport::Notifications.subscribe(pattern, callback, &block)
16
+ end
17
+ end
@@ -9,12 +9,14 @@ module Dependabot
9
9
  class Base
10
10
  attr_reader :dependency, :dependency_files, :repo_contents_path,
11
11
  :credentials, :ignored_versions, :raise_on_ignored,
12
- :security_advisories, :requirements_update_strategy
12
+ :security_advisories, :requirements_update_strategy,
13
+ :options
13
14
 
14
15
  def initialize(dependency:, dependency_files:, repo_contents_path: nil,
15
16
  credentials:, ignored_versions: [],
16
17
  raise_on_ignored: false, security_advisories: [],
17
- requirements_update_strategy: nil)
18
+ requirements_update_strategy: nil,
19
+ options: {})
18
20
  @dependency = dependency
19
21
  @dependency_files = dependency_files
20
22
  @repo_contents_path = repo_contents_path
@@ -23,6 +25,7 @@ module Dependabot
23
25
  @ignored_versions = ignored_versions
24
26
  @raise_on_ignored = raise_on_ignored
25
27
  @security_advisories = security_advisories
28
+ @options = options
26
29
  end
27
30
 
28
31
  def up_to_date?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dependabot
4
- VERSION = "0.136.0"
4
+ VERSION = "0.138.1"
5
5
  end
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-common
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.136.0
4
+ version: 0.138.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-08 00:00:00.000000000 Z
11
+ date: 2021-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activesupport
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 6.0.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 6.0.0
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: aws-sdk-codecommit
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -401,6 +415,7 @@ files:
401
415
  - lib/dependabot/metadata_finders/base/changelog_pruner.rb
402
416
  - lib/dependabot/metadata_finders/base/commits_finder.rb
403
417
  - lib/dependabot/metadata_finders/base/release_finder.rb
418
+ - lib/dependabot/notifications.rb
404
419
  - lib/dependabot/pull_request_creator.rb
405
420
  - lib/dependabot/pull_request_creator/azure.rb
406
421
  - lib/dependabot/pull_request_creator/bitbucket.rb