-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes to make latest version of rubocop (0.50.0) happy
Changes: * Rubocop now complains when blocks are too long. RSpec relies on long blocks for `describe` and `context`. Disabled check only for specs. * Rubocop now complains if Marshal.load is used (rightly so), but one of the RubyGems endpoints only returns serialized ruby objects. Disabled the check until that endpoint is updated to also return json. * Rubocop now expects a blank line after any magic comment lines. * The ruby style guide now prefers %i[] over lists of symbols unless support for ruby < 2.0 is required. 1.9.x is now officially unsupported by the ruby team and Travis CI only checks ruby >= 2.1. * The ruby style guide prefers %w[] over %w() for array literals. * Rubocop now complains about using the URI.escape method that has been considered obsolete since ruby 1.9.2. Switch to URI.encode_www_form.
- Loading branch information
Showing
6 changed files
with
25 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# coding: utf-8 | ||
|
||
lib = File.expand_path('../lib', __FILE__) | ||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | ||
require 'gems/version' | ||
|
@@ -9,11 +10,11 @@ Gem::Specification.new do |spec| | |
spec.authors = ['Erik Michaels-Ober'] | ||
spec.description = 'Ruby wrapper for the RubyGems.org API' | ||
spec.email = ['[email protected]'] | ||
spec.files = %w(.yardopts CONTRIBUTING.md LICENSE.md README.md gems.gemspec) + Dir['lib/**/*.rb'] | ||
spec.files = %w[.yardopts CONTRIBUTING.md LICENSE.md README.md gems.gemspec] + Dir['lib/**/*.rb'] | ||
spec.homepage = 'https://github.com/rubygems/gems' | ||
spec.licenses = %w(MIT) | ||
spec.licenses = %w[MIT] | ||
spec.name = 'gems' | ||
spec.require_paths = %w(lib) | ||
spec.require_paths = %w[lib] | ||
spec.required_ruby_version = '>= 2.1.9' | ||
spec.summary = spec.description | ||
spec.version = Gems::VERSION | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters