Skip to content

Commit

Permalink
Move docs to a better place
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez committed May 31, 2020
1 parent b4948bd commit c87ac90
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 0 additions & 6 deletions lib/rubygems/specification.rb
Expand Up @@ -2592,17 +2592,11 @@ def validate_metadata
end
rubygems_deprecate :validate_metadata

##
# Checks that dependencies use requirements as we recommend. Warnings are
# issued when dependencies are open-ended or overly strict for semantic
# versioning.
def validate_dependencies
Gem::SpecificationPolicy.new(self).validate_dependencies
end
rubygems_deprecate :validate_dependencies

##
# Checks to see if the files to be packaged are world-readable.
def validate_permissions
Gem::SpecificationPolicy.new(self).validate_permissions
end
Expand Down
4 changes: 3 additions & 1 deletion lib/rubygems/specification_policy.rb
Expand Up @@ -127,7 +127,9 @@ def validate_metadata
end

##
# Implementation for Specification#validate_dependencies
# Checks that dependencies use requirements as we recommend. Warnings are
# issued when dependencies are open-ended or overly strict for semantic
# versioning.

def validate_dependencies # :nodoc:
# NOTE: see REFACTOR note in Gem::Dependency about types - this might be brittle
Expand Down

0 comments on commit c87ac90

Please sign in to comment.