Skip to content

Commit

Permalink
Update rubocop requirement from ~> 0.59.0 to ~> 0.60.0
Browse files Browse the repository at this point in the history
Updates the requirements on [rubocop](https://github.com/rubocop-hq/rubocop) to permit the latest version.
- [Release notes](https://github.com/rubocop-hq/rubocop/releases)
- [Changelog](https://github.com/rubocop-hq/rubocop/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop-hq/rubocop/commits/v0.60.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
  • Loading branch information
dependabot-support authored and greysteil committed Oct 28, 2018
1 parent 13d3d80 commit f355e83
Show file tree
Hide file tree
Showing 71 changed files with 228 additions and 203 deletions.
2 changes: 1 addition & 1 deletion dependabot-core.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "rake"
spec.add_development_dependency "rspec", "~> 3.8.0"
spec.add_development_dependency "rspec-its", "~> 1.2.0"
spec.add_development_dependency "rubocop", "~> 0.59.0"
spec.add_development_dependency "rubocop", "~> 0.60.0"
spec.add_development_dependency "vcr", "~> 4.0.0"
spec.add_development_dependency "webmock", "~> 3.4.0"
end
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ module FileFetchers
module Dotnet
class Nuget
class SlnProjectPathsFinder
PROJECT_PATH_REGEX = /(?<=["'])[^"']*?\.(?:vb|cs|fs)proj(?=["'])/
PROJECT_PATH_REGEX =
/(?<=["'])[^"']*?\.(?:vb|cs|fs)proj(?=["'])/.freeze

def initialize(sln_file:)
@sln_file = sln_file
Expand Down
2 changes: 1 addition & 1 deletion lib/dependabot/file_fetchers/elixir/hex.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module Dependabot
module FileFetchers
module Elixir
class Hex < Dependabot::FileFetchers::Base
APPS_PATH_REGEX = /apps_path:\s*"(?<path>.*?)"/m
APPS_PATH_REGEX = /apps_path:\s*"(?<path>.*?)"/m.freeze

def self.required_files_in?(filenames)
filenames.include?("mix.exs")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module Java
class Gradle
class SettingsFileParser
INCLUDE_ARGS_REGEX =
/(?:^|\s)include(?:\(|\s)(\s*[^\s,\)]+(?:,\s*[^\s,\)]+)*)/
/(?:^|\s)include(?:\(|\s)(\s*[^\s,\)]+(?:,\s*[^\s,\)]+)*)/.freeze

def initialize(settings_file:)
@settings_file = settings_file
Expand Down
4 changes: 2 additions & 2 deletions lib/dependabot/file_fetchers/python/pip.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ module Dependabot
module FileFetchers
module Python
class Pip < Dependabot::FileFetchers::Base
CHILD_REQUIREMENT_REGEX = /^-r\s?(?<path>.*\.txt)/
CONSTRAINT_REGEX = /^-c\s?(?<path>\..*)/
CHILD_REQUIREMENT_REGEX = /^-r\s?(?<path>.*\.txt)/.freeze
CONSTRAINT_REGEX = /^-c\s?(?<path>\..*)/.freeze

def self.required_files_in?(filenames)
return true if filenames.any? { |name| name.end_with?(".txt", ".in") }
Expand Down
27 changes: 14 additions & 13 deletions lib/dependabot/file_parsers/docker/docker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,22 @@ class Docker < Dependabot::FileParsers::Base

# Detials of Docker regular expressions is at
# https://github.com/docker/distribution/blob/master/reference/regexp.go
DOMAIN_COMPONENT = /(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])/
DOMAIN = /(?:#{DOMAIN_COMPONENT}(?:\.#{DOMAIN_COMPONENT})+)/
REGISTRY = /(?<registry>#{DOMAIN}(?::[0-9]+)?)/

NAME_COMPONENT = /(?:[a-z0-9]+(?:(?:[._]|__|[-]*)[a-z0-9]+)*)/
IMAGE = %r{(?<image>#{NAME_COMPONENT}(?:/#{NAME_COMPONENT})*)}

FROM = /[Ff][Rr][Oo][Mm]/
TAG = /:(?<tag>[\w][\w.-]{0,127})/
DIGEST = /@(?<digest>[^\s]+)/
NAME = /\s+AS\s+(?<name>[a-zA-Z0-9_-]+)/
DOMAIN_COMPONENT =
/(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])/.freeze
DOMAIN = /(?:#{DOMAIN_COMPONENT}(?:\.#{DOMAIN_COMPONENT})+)/.freeze
REGISTRY = /(?<registry>#{DOMAIN}(?::[0-9]+)?)/.freeze

NAME_COMPONENT = /(?:[a-z0-9]+(?:(?:[._]|__|[-]*)[a-z0-9]+)*)/.freeze
IMAGE = %r{(?<image>#{NAME_COMPONENT}(?:/#{NAME_COMPONENT})*)}.freeze

FROM = /[Ff][Rr][Oo][Mm]/.freeze
TAG = /:(?<tag>[\w][\w.-]{0,127})/.freeze
DIGEST = /@(?<digest>[^\s]+)/.freeze
NAME = /\s+AS\s+(?<name>[a-zA-Z0-9_-]+)/.freeze
FROM_LINE =
%r{^#{FROM}\s+(#{REGISTRY}/)?#{IMAGE}#{TAG}?#{DIGEST}?#{NAME}?}
%r{^#{FROM}\s+(#{REGISTRY}/)?#{IMAGE}#{TAG}?#{DIGEST}?#{NAME}?}.freeze

AWS_ECR_URL = /dkr\.ecr\.(?<region>[^.]+).amazonaws\.com/
AWS_ECR_URL = /dkr\.ecr\.(?<region>[^.]+).amazonaws\.com/.freeze

def parse
dependency_set = DependencySet.new
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class ProjectFileParser
"ItemGroup > Dependency, "\
"ItemGroup > DevelopmentDependency"

PROPERTY_REGEX = /\$\((?<property>.*?)\)/
PROPERTY_REGEX = /\$\((?<property>.*?)\)/.freeze

def initialize(dependency_files:)
@dependency_files = dependency_files
Expand Down
2 changes: 1 addition & 1 deletion lib/dependabot/file_parsers/go/modules/go_mod_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module FileParsers
module Go
class Modules
class GoModParser
GIT_VERSION_REGEX = /^v\d+\.\d+\.\d+-.*-(?<sha>[0-9a-f]{12})$/
GIT_VERSION_REGEX = /^v\d+\.\d+\.\d+-.*-(?<sha>[0-9a-f]{12})$/.freeze

def initialize(dependency_files:, credentials:)
@dependency_files = dependency_files
Expand Down
13 changes: 7 additions & 6 deletions lib/dependabot/file_parsers/java/gradle.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,16 @@ class Gradle < Dependabot::FileParsers::Base
(?:\$\{property\((?<property_name>[^:\s]*?)\)\})|
(?:\$\{(?<property_name>[^:\s]*?)\})|
(?:\$(?<property_name>[^:\s]*))
/x
/x.freeze

PART = %r{[^\s,@'":/\\]+}
VSN_PART = %r{[^\s,'":/\\]+}
PART = %r{[^\s,@'":/\\]+}.freeze
VSN_PART = %r{[^\s,'":/\\]+}.freeze
DEPENDENCY_DECLARATION_REGEX =
/(?:\(|\s)\s*['"](?<declaration>#{PART}:#{PART}:#{VSN_PART})['"]/
/(?:\(|\s)\s*['"](?<declaration>#{PART}:#{PART}:#{VSN_PART})['"]/.
freeze
DEPENDENCY_SET_DECLARATION_REGEX =
/(?:^|\s)dependencySet\((?<arguments>[^\)]+)\)\s*\{/
DEPENDENCY_SET_ENTRY_REGEX = /entry\s+['"](?<name>#{PART})['"]/
/(?:^|\s)dependencySet\((?<arguments>[^\)]+)\)\s*\{/.freeze
DEPENDENCY_SET_ENTRY_REGEX = /entry\s+['"](?<name>#{PART})['"]/.freeze

def parse
dependency_set = DependencySet.new
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ module Java
class Gradle
class PropertyValueFinder
PROPERTY_DECLARATION_REGEX =
/(?:^|\s+|ext.)(?<name>[^\s=]+)\s*=\s*['"](?<value>[^\s]+)['"]/
/(?:^|\s+|ext.)(?<name>[^\s=]+)\s*=\s*['"](?<value>[^\s]+)['"]/.
freeze

def initialize(dependency_files:)
@dependency_files = dependency_files
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ class RepositoriesFinder
# it as a default.
CENTRAL_REPO_URL = "https://repo.maven.apache.org/maven2"

REPOSITORIES_BLOCK_START = /(?:^|\s)repositories\s*\{/
REPOSITORIES_BLOCK_START = /(?:^|\s)repositories\s*\{/.freeze
MAVEN_REPO_REGEX =
/maven\s*\{[^\}]*\surl[\s\(]\s*['"](?<url>[^'"]+)['"]/
/maven\s*\{[^\}]*\surl[\s\(]\s*['"](?<url>[^'"]+)['"]/.freeze

def initialize(dependency_files:, target_dependency_file:)
@dependency_files = dependency_files
Expand Down
2 changes: 1 addition & 1 deletion lib/dependabot/file_parsers/java/maven.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Maven < Dependabot::FileParsers::Base
PLUGIN_SELECTOR = "plugins > plugin"

# Regex to get the property name from a declaration that uses a property
PROPERTY_REGEX = /\$\{(?<property>.*?)\}/
PROPERTY_REGEX = /\$\{(?<property>.*?)\}/.freeze

def parse
dependency_set = DependencySet.new
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Maven
class PropertyValueFinder
require_relative "repositories_finder"

DOT_SEPARATOR_REGEX = %r{\.(?:(?!\d+[.\/])+)}
DOT_SEPARATOR_REGEX = %r{\.(?:(?!\d+[.\/])+)}.freeze

def initialize(dependency_files:)
@dependency_files = dependency_files
Expand Down
2 changes: 1 addition & 1 deletion lib/dependabot/file_parsers/java_script/npm_and_yarn.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class NpmAndYarn < Dependabot::FileParsers::Base
(?:\#semver:(?<semver>.+))|
(?:\#(?<ref>.+))
)?$
}ix
}ix.freeze

def parse
dependency_set = DependencySet.new
Expand Down
9 changes: 5 additions & 4 deletions lib/dependabot/file_parsers/python/pip/setup_file_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ module FileParsers
module Python
class Pip
class SetupFileParser
INSTALL_REQUIRES_REGEX = /install_requires\s*=\s*(\[.*?\])[,)\s]/m
SETUP_REQUIRES_REGEX = /setup_requires\s*=\s*(\[.*?\])[,)\s]/m
TESTS_REQUIRE_REGEX = /tests_require\s*=\s*(\[.*?\])[,)\s]/m
EXTRAS_REQUIRE_REGEX = /extras_require\s*=\s*(\{.*?\})[,)\s]/m
INSTALL_REQUIRES_REGEX =
/install_requires\s*=\s*(\[.*?\])[,)\s]/m.freeze
SETUP_REQUIRES_REGEX = /setup_requires\s*=\s*(\[.*?\])[,)\s]/m.freeze
TESTS_REQUIRE_REGEX = /tests_require\s*=\s*(\[.*?\])[,)\s]/m.freeze
EXTRAS_REQUIRE_REGEX = /extras_require\s*=\s*(\{.*?\})[,)\s]/m.freeze

def initialize(dependency_files:)
@dependency_files = dependency_files
Expand Down
2 changes: 1 addition & 1 deletion lib/dependabot/file_updaters/docker/docker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module Dependabot
module FileUpdaters
module Docker
class Docker < Dependabot::FileUpdaters::Base
FROM_REGEX = /[Ff][Rr][Oo][Mm]/
FROM_REGEX = /[Ff][Rr][Oo][Mm]/.freeze

def self.updated_files_regex
[/dockerfile/]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Nuget
class PackagesConfigDeclarationFinder
DECLARATION_REGEX =
%r{<package [^>]*?/>|
<package [^>]*?[^/]>.*?</package>}mx
<package [^>]*?[^/]>.*?</package>}mx.freeze

attr_reader :dependency_name, :declaring_requirement,
:packages_config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ module Dotnet
class Nuget
class ProjectFileDeclarationFinder
DECLARATION_REGEX =
%r{<PackageReference [^>]*?/>|
<PackageReference [^>]*?[^/]>.*?</PackageReference>|
<Dependency [^>]*?/>|
<Dependency [^>]*?[^/]>.*?</Dependency>|
<DevelopmentDependency [^>]*?/>|
<DevelopmentDependency [^>]*?[^/]>.*?</DevelopmentDependency>}mx
%r{
<PackageReference [^>]*?/>|
<PackageReference [^>]*?[^/]>.*?</PackageReference>|
<Dependency [^>]*?/>|
<Dependency [^>]*?[^/]>.*?</Dependency>|
<DevelopmentDependency [^>]*?/>|
<DevelopmentDependency [^>]*?[^/]>.*?</DevelopmentDependency>
}mx.freeze

attr_reader :dependency_name, :declaring_requirement,
:dependency_files
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Maven
class DeclarationFinder
DECLARATION_REGEX =
%r{<parent>.*?</parent>|<dependency>.*?</dependency>|
<plugin>.*?</plugin>|<extension>.*?</extension>}mx
<plugin>.*?</plugin>|<extension>.*?</extension>}mx.freeze

attr_reader :dependency, :declaring_requirement, :dependency_files

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,11 @@ def updated_lockfile_content(lockfile)

attr_reader :dependencies, :dependency_files, :credentials

UNREACHABLE_GIT = /ls-remote (?:(-h -t)|(--tags --heads)) (?<url>.*)/
UNREACHABLE_GIT =
/ls-remote (?:(-h -t)|(--tags --heads)) (?<url>.*)/.freeze
FORBIDDEN_PACKAGE =
/(403 Forbidden|401 Unauthorized): (?<package_req>.*)/
MISSING_PACKAGE = /404 Not Found: (?<package_req>.*)/
/(403 Forbidden|401 Unauthorized): (?<package_req>.*)/.freeze
MISSING_PACKAGE = /404 Not Found: (?<package_req>.*)/.freeze

def dependency
# For now, we'll only ever be updating a single dependency for JS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ class YarnLockfileUpdater
require_relative "npmrc_builder"
require_relative "package_json_updater"

TIMEOUT_FETCHING_PACKAGE = %r{(?<url>.+)/(?<package>[^/]+): ETIMEDOUT}
TIMEOUT_FETCHING_PACKAGE =
%r{(?<url>.+)/(?<package>[^/]+): ETIMEDOUT}.freeze

def initialize(dependencies:, dependency_files:, credentials:)
@dependencies = dependencies
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ def pipfile_hash_for(pipfile_content)
SharedHelpers.in_a_temporary_directory do |dir|
File.write(File.join(dir, "Pipfile"), pipfile_content)
SharedHelpers.run_helper_subprocess(
command: "pyenv exec python #{python_helper_path}",
command: "pyenv exec python #{python_helper_path}",
function: "get_pipfile_hash",
args: [dir]
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def pyproject_hash_for(pyproject_content)
SharedHelpers.in_a_temporary_directory do |dir|
File.write(File.join(dir, "pyproject.toml"), pyproject_content)
SharedHelpers.run_helper_subprocess(
command: "pyenv exec python #{python_helper_path}",
command: "pyenv exec python #{python_helper_path}",
function: "get_pyproject_hash",
args: [dir]
)
Expand Down
9 changes: 5 additions & 4 deletions lib/dependabot/file_updaters/ruby/bundler/lockfile_updater.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@ class LockfileUpdater
require_relative "gemspec_sanitizer"
require_relative "gemspec_dependency_name_finder"

LOCKFILE_ENDING = /(?<ending>\s*(?:RUBY VERSION|BUNDLED WITH).*)/m
GIT_DEPENDENCIES_SECTION = /GIT\n.*?\n\n(?!GIT)/m
GIT_DEPENDENCY_DETAILS = /GIT\n.*?\n\n/m
LOCKFILE_ENDING =
/(?<ending>\s*(?:RUBY VERSION|BUNDLED WITH).*)/m.freeze
GIT_DEPENDENCIES_SECTION = /GIT\n.*?\n\n(?!GIT)/m.freeze
GIT_DEPENDENCY_DETAILS = /GIT\n.*?\n\n/m.freeze
GEM_NOT_FOUND_ERROR_REGEX =
/locked to (?<name>[^\s]+) \(|not find (?<name>[^\s]+)-\d/
/locked to (?<name>[^\s]+) \(|not find (?<name>[^\s]+)-\d/.freeze
GEMSPEC_SOURCES = [
::Bundler::Source::Path,
::Bundler::Source::Gemspec
Expand Down
4 changes: 2 additions & 2 deletions lib/dependabot/git_commit_checker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
# rubocop:disable Metrics/ClassLength
module Dependabot
class GitCommitChecker
VERSION_REGEX = /(?<version>[0-9]+\.[0-9]+(?:\.[a-zA-Z0-9\-]+)*)$/
KNOWN_HOSTS = /github\.com|bitbucket\.org|gitlab.com/
VERSION_REGEX = /(?<version>[0-9]+\.[0-9]+(?:\.[a-zA-Z0-9\-]+)*)$/.freeze
KNOWN_HOSTS = /github\.com|bitbucket\.org|gitlab.com/.freeze

def initialize(dependency:, credentials:, ignored_versions: [])
@dependency = dependency
Expand Down
2 changes: 1 addition & 1 deletion lib/dependabot/metadata_finders/java/maven.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module Dependabot
module MetadataFinders
module Java
class Maven < Dependabot::MetadataFinders::Base
DOT_SEPARATOR_REGEX = %r{\.(?:(?!\d+[.\/])+)}
DOT_SEPARATOR_REGEX = %r{\.(?:(?!\d+[.\/])+)}.freeze

private

Expand Down
2 changes: 1 addition & 1 deletion lib/dependabot/pull_request_creator/labeler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
module Dependabot
class PullRequestCreator
class Labeler
DEPENDENCIES_LABEL_REGEX = %r{^[^/]*dependenc[^/]+$}i
DEPENDENCIES_LABEL_REGEX = %r{^[^/]*dependenc[^/]+$}i.freeze
LANGUAGE_LABEL_DETAILS = {
"bundler" => { name: "ruby", colour: "ce2d2d" },
"submodules" => { name: "submodules", colour: "000000" },
Expand Down
5 changes: 3 additions & 2 deletions lib/dependabot/pull_request_creator/message_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ class MessageBuilder
card_file_box loud_sound mute busts_in_silhouette
children_crossing building_construction iphone
clown_face egg see_no_evil camera_flash).freeze
ISSUE_TAG_REGEX = /(?<=[\s(\\]|^)(?<tag>(?:\#|GH-)\d+)(?=[^A-z0-9\-]|$)/
GITHUB_REF_REGEX = %r{github\.com/[^/\s]+/[^/\s]+/(?:issue|pull)}
ISSUE_TAG_REGEX =
/(?<=[\s(\\]|^)(?<tag>(?:\#|GH-)\d+)(?=[^A-z0-9\-]|$)/.freeze
GITHUB_REF_REGEX = %r{github\.com/[^/\s]+/[^/\s]+/(?:issue|pull)}.freeze

attr_reader :source, :dependencies, :files, :credentials,
:pr_message_footer, :author_details, :vulnerabilities_fixed
Expand Down
2 changes: 1 addition & 1 deletion lib/dependabot/source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class Source
(?:\.com|\.org)[/:]
(?<repo>[^/\s]+/(?:(?!\.git|\.\s)[^/\s#"',])+)
(?:(?:/tree|/blob|/src)/(?<branch>[^/]+)/(?<directory>.*)[\#|/])?
}x
}x.freeze

attr_reader :provider, :repo, :directory, :branch, :hostname, :api_endpoint

Expand Down
11 changes: 7 additions & 4 deletions lib/dependabot/update_checkers/docker/docker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,13 @@ module Dependabot
module UpdateCheckers
module Docker
class Docker < Dependabot::UpdateCheckers::Base
VERSION_REGEX = /(?<version>[0-9]+(?:\.[a-zA-Z0-9]+)*)/
VERSION_WTIH_SUFFIX = /^#{VERSION_REGEX}(?<affix>-[a-z0-9.\-]+)?$/
VERSION_WTIH_PREFIX = /^(?<affix>[a-z0-9.\-]+-)?#{VERSION_REGEX}$/
NAME_WITH_VERSION = /#{VERSION_WTIH_PREFIX}|#{VERSION_WTIH_SUFFIX}/
VERSION_REGEX = /(?<version>[0-9]+(?:\.[a-zA-Z0-9]+)*)/.freeze
VERSION_WTIH_SUFFIX =
/^#{VERSION_REGEX}(?<affix>-[a-z0-9.\-]+)?$/.freeze
VERSION_WTIH_PREFIX =
/^(?<affix>[a-z0-9.\-]+-)?#{VERSION_REGEX}$/.freeze
NAME_WITH_VERSION =
/#{VERSION_WTIH_PREFIX}|#{VERSION_WTIH_SUFFIX}/.freeze

def latest_version
@latest_version ||= fetch_latest_version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,12 +172,12 @@ def config_file_repositories

def default_repository_details
{
repository_url: DEFAULT_REPOSITORY_URL,
versions_url: "https://api.nuget.org/v3-flatcontainer/"\
repository_url: DEFAULT_REPOSITORY_URL,
versions_url: "https://api.nuget.org/v3-flatcontainer/"\
"#{dependency.name.downcase}/index.json",
search_url: "https://api-v2v3search-0.nuget.org/query"\
search_url: "https://api-v2v3search-0.nuget.org/query"\
"?q=#{dependency.name.downcase}&prerelease=true",
auth_header: {},
auth_header: {},
repository_type: "v3"
}
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module UpdateCheckers
module Dotnet
class Nuget
class RequirementsUpdater
VERSION_REGEX = /[0-9a-zA-Z]+(?:\.[a-zA-Z0-9\-]+)*/
VERSION_REGEX = /[0-9a-zA-Z]+(?:\.[a-zA-Z0-9\-]+)*/.freeze

def initialize(requirements:, latest_version:, source_details:)
@requirements = requirements
Expand Down
Loading

0 comments on commit f355e83

Please sign in to comment.