dependabot-core 0.86.11 → 0.86.12

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: a823a69ede90ac8ad982e3d4c981c85cbc62e33507397879ea479b2e0bf00984
4
- data.tar.gz: a6a9dccfe89393ae011b349ba920805d73624ad85dc2bbbd39297f40ac67276b
3
+ metadata.gz: 2819732750e0dd0c1bd1b8d7eac30c029b058b3d408a9938a880ac3fec165df7
4
+ data.tar.gz: cbea227565c62312c2c91d661335c11b8bc8aa75580d6323a5c1fc7eb2f448fb
5
5
  SHA512:
6
- metadata.gz: 96475ab54827e805d29e052e3baf27575e14fcad264453fcc35f115770219a2f607faec7563de0e0698ed80cd75d034ed3c506ba9435836259fc361e1d5fb0cf
7
- data.tar.gz: 1a719919ce887458492c70a5f447d044c13d71fc313a57a618d8bb79f8a95a3c91104bd634ddcae2e8157bb294756481c7080ce739bb46d6d361b91e0b97494f
6
+ metadata.gz: 966924c3e22cf820ece70c901f0d71f53cd647a006bdb41b992884a3cee0f03dcf2c1ce37401aa19b40c3d722eb899fec6af0b3f25dc82ec4bc1390b58ed6890
7
+ data.tar.gz: 96e9ec715a08cd8766bb68c6bcc8a01961b345b393d19cd000c371e8cfd932b19a48fa3354a2ff9a26d553db3d89d297811058696477a8c9fa4de4cc9aeaf81a
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## v0.86.12, 26 December 2018
2
+
3
+ - Opt in to Rubygems 4 behaviour through monkey patch
4
+
1
5
  ## v0.86.11, 25 December 2018
2
6
 
3
7
  - Ruby: Ensure gemspec paths are always pathnames
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "rubygems_version_patch"
4
+
3
5
  module Dependabot
4
6
  class Dependency
5
7
  attr_reader :name, :version, :requirements, :package_manager,
@@ -10,7 +10,7 @@ module Dependabot
10
10
  OR_SEPARATOR = /\s+or\s+/.freeze
11
11
 
12
12
  # Add the double-equality matcher to the list of allowed operations
13
- OPS["=="] = ->(v, r) { v == r }
13
+ OPS = OPS.merge("==" => ->(v, r) { v == r })
14
14
 
15
15
  # Override the version pattern to allow local versions
16
16
  quoted = OPS.keys.map { |k| Regexp.quote k }.join "|"
@@ -45,7 +45,8 @@ module Dependabot
45
45
 
46
46
  def satisfied_by?(version)
47
47
  version = Utils::Elixir::Version.new(version.to_s)
48
- super
48
+
49
+ requirements.all? { |op, rv| (OPS[op] || OPS["="]).call(version, rv) }
49
50
  end
50
51
  end
51
52
  end
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "rubygems_version_patch"
4
+
3
5
  # Elixir versions can include build information, which Ruby can't parse.
4
6
  # This class augments Gem::Version with build information.
5
7
  # See https://hexdocs.pm/elixir/Version.html for details.
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "rubygems_version_patch"
4
+
3
5
  # Go pre-release versions use 1.0.1-rc1 syntax, which Gem::Version
4
6
  # converts into 1.0.1.pre.rc1. We override the `to_s` method to stop that
5
7
  # alteration.
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "rubygems_version_patch"
4
+
3
5
  # JavaScript pre-release versions use 1.0.1-rc1 syntax, which Gem::Version
4
6
  # converts into 1.0.1.pre.rc1. We override the `to_s` method to stop that
5
7
  # alteration.
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "rubygems_version_patch"
4
+
3
5
  # PHP pre-release versions use 1.0.1-rc1 syntax, which Gem::Version
4
6
  # converts into 1.0.1.pre.rc1. We override the `to_s` method to stop that
5
7
  # alteration.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dependabot
4
- VERSION = "0.86.11"
4
+ VERSION = "0.86.12"
5
5
  end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "rubygems/version"
4
+
5
+ # Opt in to Rubygems 4 behaviour
6
+ module Gem
7
+ class Version
8
+ def self.correct?(version)
9
+ return false if version.nil?
10
+
11
+ version.to_s.match?(ANCHORED_VERSION_PATTERN)
12
+ end
13
+ end
14
+ 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.86.11
4
+ version: 0.86.12
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-25 00:00:00.000000000 Z
11
+ date: 2018-12-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-ecr
@@ -498,6 +498,7 @@ files:
498
498
  - lib/dependabot/utils/php/version.rb
499
499
  - lib/dependabot/utils/ruby/requirement.rb
500
500
  - lib/dependabot/version.rb
501
+ - lib/rubygems_version_patch.rb
501
502
  homepage: https://github.com/dependabot/dependabot-core
502
503
  licenses:
503
504
  - Nonstandard