dependabot-core 0.81.1 → 0.82.0

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: 92db7a446ed4825255573765a75739cb426697d4fdccc4ab2ad68b473474ddff
4
- data.tar.gz: 71e3d41a1328b272ffd76bbf0e747a4d5296fdcfb25920d464799f29bc95f1f2
3
+ metadata.gz: 683111bd6931aea6db310ecf42b1b153bd73ddef17a87d3764b29ad37480860b
4
+ data.tar.gz: 1ac644258b3d6ff8b41ca6c516eaa2cb443ea11079f1164abadba94379987fa7
5
5
  SHA512:
6
- metadata.gz: 89f3870c1d23a3ec5f42b3cc00ab47fc0b5b6db086ed737d209c6aadd0bbd388eb54b3f48ba7d3b5ab8121d062ca1f902ebf95ba7ff2bf32be66f5174105755f
7
- data.tar.gz: fb2d4eac1cd75e10eee5b50483224a0be82444d1b61b9d8cab8ad449f7d5d1a36b930625732550a74d779e3a40f3723e612ec6511db31b084e3dbafac0673cea
6
+ metadata.gz: c2140be05a504ef8929e1f50eeb5c2f4ae02683eda7379a1a3c194932e5bb15ee60f619c63a1b8e9bd491e60820364b4d8cf96f0e0dc72d5dabf52858186a49a
7
+ data.tar.gz: b282586b69aede50baa6c5139f38d0425b48bab6e85bf9b7cfa8ab62f2021ac68754e2022f45658607634f0899cec2e0a8d3114fb4c867d779ec112d2f1e636a
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## v0.82.0, 11 December 2018
2
+
3
+ - Reorg Elm
4
+ - Python: Make helpers build file executable
5
+ - Handle spaces in GitHub file paths
6
+ - Python: Test that python version error is for updating this dependency
7
+ - Python: Ignore upgrades that break Python compatibility quietly
8
+
1
9
  ## v0.81.1, 10 December 2018
2
10
 
3
11
  - Rust: Register cargo metadata finder
@@ -8,7 +8,6 @@ require "dependabot/file_fetchers/php/composer"
8
8
  require "dependabot/file_fetchers/elixir/hex"
9
9
  require "dependabot/file_fetchers/go/dep"
10
10
  require "dependabot/file_fetchers/go/modules"
11
- require "dependabot/file_fetchers/elm/elm_package"
12
11
 
13
12
  module Dependabot
14
13
  module FileFetchers
@@ -20,8 +19,7 @@ module Dependabot
20
19
  "composer" => FileFetchers::Php::Composer,
21
20
  "hex" => FileFetchers::Elixir::Hex,
22
21
  "dep" => FileFetchers::Go::Dep,
23
- "go_modules" => FileFetchers::Go::Modules,
24
- "elm-package" => FileFetchers::Elm::ElmPackage
22
+ "go_modules" => FileFetchers::Go::Modules
25
23
  }
26
24
 
27
25
  def self.for_package_manager(package_manager)
@@ -141,6 +141,7 @@ module Dependabot
141
141
  end
142
142
 
143
143
  def github_repo_contents(path)
144
+ path = path.gsub(" ", "%20")
144
145
  github_response = github_client_for_source.
145
146
  contents(repo, path: path, ref: commit)
146
147
 
@@ -8,7 +8,6 @@ require "dependabot/file_parsers/php/composer"
8
8
  require "dependabot/file_parsers/elixir/hex"
9
9
  require "dependabot/file_parsers/go/dep"
10
10
  require "dependabot/file_parsers/go/modules"
11
- require "dependabot/file_parsers/elm/elm_package"
12
11
 
13
12
  module Dependabot
14
13
  module FileParsers
@@ -20,8 +19,7 @@ module Dependabot
20
19
  "composer" => FileParsers::Php::Composer,
21
20
  "hex" => FileParsers::Elixir::Hex,
22
21
  "dep" => FileParsers::Go::Dep,
23
- "go_modules" => FileParsers::Go::Modules,
24
- "elm-package" => FileParsers::Elm::ElmPackage
22
+ "go_modules" => FileParsers::Go::Modules
25
23
  }
26
24
 
27
25
  def self.for_package_manager(package_manager)
@@ -8,7 +8,6 @@ require "dependabot/file_updaters/php/composer"
8
8
  require "dependabot/file_updaters/elixir/hex"
9
9
  require "dependabot/file_updaters/go/dep"
10
10
  require "dependabot/file_updaters/go/modules"
11
- require "dependabot/file_updaters/elm/elm_package"
12
11
 
13
12
  module Dependabot
14
13
  module FileUpdaters
@@ -20,8 +19,7 @@ module Dependabot
20
19
  "composer" => FileUpdaters::Php::Composer,
21
20
  "hex" => FileUpdaters::Elixir::Hex,
22
21
  "dep" => FileUpdaters::Go::Dep,
23
- "go_modules" => FileUpdaters::Go::Modules,
24
- "elm-package" => FileUpdaters::Elm::ElmPackage
22
+ "go_modules" => FileUpdaters::Go::Modules
25
23
  }
26
24
 
27
25
  def self.for_package_manager(package_manager)
@@ -6,7 +6,6 @@ require "dependabot/metadata_finders/java/maven"
6
6
  require "dependabot/metadata_finders/php/composer"
7
7
  require "dependabot/metadata_finders/elixir/hex"
8
8
  require "dependabot/metadata_finders/go/dep"
9
- require "dependabot/metadata_finders/elm/elm_package"
10
9
 
11
10
  module Dependabot
12
11
  module MetadataFinders
@@ -18,8 +17,7 @@ module Dependabot
18
17
  "composer" => MetadataFinders::Php::Composer,
19
18
  "hex" => MetadataFinders::Elixir::Hex,
20
19
  "dep" => MetadataFinders::Go::Dep,
21
- "go_modules" => MetadataFinders::Go::Dep,
22
- "elm-package" => MetadataFinders::Elm::ElmPackage
20
+ "go_modules" => MetadataFinders::Go::Dep
23
21
  }
24
22
 
25
23
  def self.for_package_manager(package_manager)
@@ -8,7 +8,6 @@ require "dependabot/update_checkers/php/composer"
8
8
  require "dependabot/update_checkers/elixir/hex"
9
9
  require "dependabot/update_checkers/go/dep"
10
10
  require "dependabot/update_checkers/go/modules"
11
- require "dependabot/update_checkers/elm/elm_package"
12
11
 
13
12
  module Dependabot
14
13
  module UpdateCheckers
@@ -20,8 +19,7 @@ module Dependabot
20
19
  "composer" => UpdateCheckers::Php::Composer,
21
20
  "hex" => UpdateCheckers::Elixir::Hex,
22
21
  "dep" => UpdateCheckers::Go::Dep,
23
- "go_modules" => UpdateCheckers::Go::Modules,
24
- "elm-package" => UpdateCheckers::Elm::ElmPackage
22
+ "go_modules" => UpdateCheckers::Go::Modules
25
23
  }
26
24
 
27
25
  def self.for_package_manager(package_manager)
@@ -5,7 +5,6 @@ require "dependabot/utils/java/version"
5
5
  require "dependabot/utils/java_script/version"
6
6
  require "dependabot/utils/php/version"
7
7
  require "dependabot/utils/go/version"
8
- require "dependabot/utils/elm/version"
9
8
 
10
9
  require "dependabot/utils/elixir/requirement"
11
10
  require "dependabot/utils/java/requirement"
@@ -13,7 +12,6 @@ require "dependabot/utils/java_script/requirement"
13
12
  require "dependabot/utils/php/requirement"
14
13
  require "dependabot/utils/ruby/requirement"
15
14
  require "dependabot/utils/go/requirement"
16
- require "dependabot/utils/elm/requirement"
17
15
 
18
16
  # TODO: in due course, these "registries" should live in a wrapper gem, not
19
17
  # dependabot-core.
@@ -29,8 +27,7 @@ module Dependabot
29
27
  "composer" => Utils::Php::Version,
30
28
  "hex" => Utils::Elixir::Version,
31
29
  "dep" => Utils::Go::Version,
32
- "go_modules" => Utils::Go::Version,
33
- "elm-package" => Utils::Elm::Version
30
+ "go_modules" => Utils::Go::Version
34
31
  }
35
32
 
36
33
  def self.version_class_for_package_manager(package_manager)
@@ -54,8 +51,7 @@ module Dependabot
54
51
  "composer" => Utils::Php::Requirement,
55
52
  "hex" => Utils::Elixir::Requirement,
56
53
  "dep" => Utils::Go::Requirement,
57
- "go_modules" => Utils::Go::Requirement,
58
- "elm-package" => Utils::Elm::Requirement
54
+ "go_modules" => Utils::Go::Requirement
59
55
  }
60
56
 
61
57
  def self.requirement_class_for_package_manager(package_manager)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dependabot
4
- VERSION = "0.81.1"
4
+ VERSION = "0.82.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.81.1
4
+ version: 0.82.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-10 00:00:00.000000000 Z
11
+ date: 2018-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-ecr
@@ -376,7 +376,6 @@ files:
376
376
  - lib/dependabot/file_fetchers/README.md
377
377
  - lib/dependabot/file_fetchers/base.rb
378
378
  - lib/dependabot/file_fetchers/elixir/hex.rb
379
- - lib/dependabot/file_fetchers/elm/elm_package.rb
380
379
  - lib/dependabot/file_fetchers/go/dep.rb
381
380
  - lib/dependabot/file_fetchers/go/modules.rb
382
381
  - lib/dependabot/file_fetchers/java/gradle.rb
@@ -394,7 +393,6 @@ files:
394
393
  - lib/dependabot/file_parsers/base.rb
395
394
  - lib/dependabot/file_parsers/base/dependency_set.rb
396
395
  - lib/dependabot/file_parsers/elixir/hex.rb
397
- - lib/dependabot/file_parsers/elm/elm_package.rb
398
396
  - lib/dependabot/file_parsers/go/dep.rb
399
397
  - lib/dependabot/file_parsers/go/modules.rb
400
398
  - lib/dependabot/file_parsers/go/modules/go_mod_parser.rb
@@ -418,9 +416,6 @@ files:
418
416
  - lib/dependabot/file_updaters/elixir/hex/mixfile_requirement_updater.rb
419
417
  - lib/dependabot/file_updaters/elixir/hex/mixfile_sanitizer.rb
420
418
  - lib/dependabot/file_updaters/elixir/hex/mixfile_updater.rb
421
- - lib/dependabot/file_updaters/elm/elm_package.rb
422
- - lib/dependabot/file_updaters/elm/elm_package/elm_json_updater.rb
423
- - lib/dependabot/file_updaters/elm/elm_package/elm_package_updater.rb
424
419
  - lib/dependabot/file_updaters/go/dep.rb
425
420
  - lib/dependabot/file_updaters/go/dep/lockfile_updater.rb
426
421
  - lib/dependabot/file_updaters/go/dep/manifest_updater.rb
@@ -441,6 +436,7 @@ files:
441
436
  - lib/dependabot/file_updaters/php/composer.rb
442
437
  - lib/dependabot/file_updaters/php/composer/lockfile_updater.rb
443
438
  - lib/dependabot/file_updaters/php/composer/manifest_updater.rb
439
+ - lib/dependabot/file_updaters/ruby/.DS_Store
444
440
  - lib/dependabot/file_updaters/ruby/bundler.rb
445
441
  - lib/dependabot/file_updaters/ruby/bundler/gemfile_updater.rb
446
442
  - lib/dependabot/file_updaters/ruby/bundler/gemspec_dependency_name_finder.rb
@@ -459,7 +455,6 @@ files:
459
455
  - lib/dependabot/metadata_finders/base/commits_finder.rb
460
456
  - lib/dependabot/metadata_finders/base/release_finder.rb
461
457
  - lib/dependabot/metadata_finders/elixir/hex.rb
462
- - lib/dependabot/metadata_finders/elm/elm_package.rb
463
458
  - lib/dependabot/metadata_finders/go/dep.rb
464
459
  - lib/dependabot/metadata_finders/java/maven.rb
465
460
  - lib/dependabot/metadata_finders/java_script/npm_and_yarn.rb
@@ -483,11 +478,6 @@ files:
483
478
  - lib/dependabot/update_checkers/elixir/hex/file_preparer.rb
484
479
  - lib/dependabot/update_checkers/elixir/hex/requirements_updater.rb
485
480
  - lib/dependabot/update_checkers/elixir/hex/version_resolver.rb
486
- - lib/dependabot/update_checkers/elm/elm_package.rb
487
- - lib/dependabot/update_checkers/elm/elm_package/cli_parser.rb
488
- - lib/dependabot/update_checkers/elm/elm_package/elm_18_version_resolver.rb
489
- - lib/dependabot/update_checkers/elm/elm_package/elm_19_version_resolver.rb
490
- - lib/dependabot/update_checkers/elm/elm_package/requirements_updater.rb
491
481
  - lib/dependabot/update_checkers/go/dep.rb
492
482
  - lib/dependabot/update_checkers/go/dep/file_preparer.rb
493
483
  - lib/dependabot/update_checkers/go/dep/latest_version_finder.rb
@@ -522,8 +512,6 @@ files:
522
512
  - lib/dependabot/utils.rb
523
513
  - lib/dependabot/utils/elixir/requirement.rb
524
514
  - lib/dependabot/utils/elixir/version.rb
525
- - lib/dependabot/utils/elm/requirement.rb
526
- - lib/dependabot/utils/elm/version.rb
527
515
  - lib/dependabot/utils/go/path_converter.rb
528
516
  - lib/dependabot/utils/go/requirement.rb
529
517
  - lib/dependabot/utils/go/shared_helper.rb
@@ -556,7 +544,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
556
544
  version: 2.7.3
557
545
  requirements: []
558
546
  rubyforge_project:
559
- rubygems_version: 2.7.7
547
+ rubygems_version: 2.7.6
560
548
  signing_key:
561
549
  specification_version: 4
562
550
  summary: Automated dependency management
@@ -1,52 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "dependabot/file_fetchers/base"
4
-
5
- module Dependabot
6
- module FileFetchers
7
- module Elm
8
- class ElmPackage < Dependabot::FileFetchers::Base
9
- def self.required_files_in?(filenames)
10
- return true if filenames.include?("elm-package.json")
11
-
12
- filenames.include?("elm.json")
13
- end
14
-
15
- def self.required_files_message
16
- "Repo must contain an elm-package.json or an elm.json"
17
- end
18
-
19
- private
20
-
21
- def fetch_files
22
- fetched_files = []
23
-
24
- fetched_files << elm_package if elm_package
25
- fetched_files << elm_json if elm_json
26
-
27
- # Note: We *do not* fetch the exact-dependencies.json file, as it is
28
- # recommended that this is not committed
29
-
30
- check_required_files_present
31
- fetched_files
32
- end
33
-
34
- def check_required_files_present
35
- return if elm_package || elm_json
36
-
37
- path = Pathname.new(File.join(directory, "elm.json")).
38
- cleanpath.to_path
39
- raise Dependabot::DependencyFileNotFound, path
40
- end
41
-
42
- def elm_package
43
- @elm_package ||= fetch_file_if_present("elm-package.json")
44
- end
45
-
46
- def elm_json
47
- @elm_json ||= fetch_file_if_present("elm.json")
48
- end
49
- end
50
- end
51
- end
52
- end
@@ -1,136 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "dependabot/dependency"
4
- require "dependabot/errors"
5
- require "dependabot/file_parsers/base"
6
- require "dependabot/utils/elm/requirement"
7
-
8
- module Dependabot
9
- module FileParsers
10
- module Elm
11
- class ElmPackage < Dependabot::FileParsers::Base
12
- require "dependabot/file_parsers/base/dependency_set"
13
-
14
- DEPENDENCY_TYPES = %w(dependencies test-dependencies).freeze
15
-
16
- def parse
17
- dependency_set = DependencySet.new
18
-
19
- dependency_set += elm_package_dependencies if elm_package
20
- dependency_set += elm_json_dependencies if elm_json
21
-
22
- dependency_set.dependencies.sort_by(&:name)
23
- end
24
-
25
- private
26
-
27
- def elm_package_dependencies
28
- dependency_set = DependencySet.new
29
-
30
- parsed_package_file.fetch("dependencies").each do |name, req|
31
- dependency_set <<
32
- Dependency.new(
33
- name: name,
34
- version: version_for(req)&.to_s,
35
- requirements: [{
36
- requirement: req, # 4.0 <= v <= 4.0
37
- groups: [], # we don't have this (its dev vs non-dev)
38
- source: nil, # elm-package only has elm-package sources
39
- file: "elm-package.json"
40
- }],
41
- package_manager: "elm-package"
42
- )
43
- end
44
-
45
- dependency_set
46
- end
47
-
48
- # For docs on elm.json, see:
49
- # https://github.com/elm/compiler/blob/master/docs/elm.json/application.md
50
- # https://github.com/elm/compiler/blob/master/docs/elm.json/package.md
51
- def elm_json_dependencies
52
- dependency_set = DependencySet.new
53
-
54
- DEPENDENCY_TYPES.each do |dep_type|
55
- if repo_type == "application"
56
- dependencies_hash = parsed_elm_json.fetch(dep_type, {})
57
- dependencies_hash.fetch("direct", {}).each do |name, req|
58
- dependency_set << build_elm_json_dependency(
59
- name: name, group: dep_type, requirement: req, direct: true
60
- )
61
- end
62
- dependencies_hash.fetch("indirect", {}).each do |name, req|
63
- dependency_set << build_elm_json_dependency(
64
- name: name, group: dep_type, requirement: req, direct: false
65
- )
66
- end
67
- elsif repo_type == "package"
68
- parsed_elm_json.fetch(dep_type, {}).each do |name, req|
69
- dependency_set << build_elm_json_dependency(
70
- name: name, group: dep_type, requirement: req, direct: true
71
- )
72
- end
73
- else raise "Unexpected repo type for Elm repo: #{repo_type}"
74
- end
75
- end
76
-
77
- dependency_set
78
- end
79
-
80
- def build_elm_json_dependency(name:, group:, requirement:, direct:)
81
- requirements = [{
82
- requirement: requirement,
83
- groups: [group],
84
- source: nil,
85
- file: "elm.json"
86
- }]
87
-
88
- Dependency.new(
89
- name: name,
90
- version: version_for(requirement)&.to_s,
91
- requirements: direct ? requirements : [],
92
- package_manager: "elm-package"
93
- )
94
- end
95
-
96
- def repo_type
97
- parsed_elm_json.fetch("type")
98
- end
99
-
100
- def check_required_files
101
- return if elm_json || elm_package
102
-
103
- raise "No elm.json or elm-package.json!"
104
- end
105
-
106
- def version_for(version_requirement)
107
- req = Dependabot::Utils::Elm::Requirement.new(version_requirement)
108
-
109
- return unless req.exact?
110
-
111
- req.requirements.first.last
112
- end
113
-
114
- def parsed_package_file
115
- @parsed_package_file ||= JSON.parse(elm_package.content)
116
- rescue JSON::ParserError
117
- raise Dependabot::DependencyFileNotParseable, elm_package.path
118
- end
119
-
120
- def parsed_elm_json
121
- @parsed_elm_json ||= JSON.parse(elm_json.content)
122
- rescue JSON::ParserError
123
- raise Dependabot::DependencyFileNotParseable, elm_json.path
124
- end
125
-
126
- def elm_package
127
- @elm_package ||= get_original_file("elm-package.json")
128
- end
129
-
130
- def elm_json
131
- @elm_json ||= get_original_file("elm.json")
132
- end
133
- end
134
- end
135
- end
136
- end