Skip to content

Commit

Permalink
Fix RuboCop offenses
Browse files Browse the repository at this point in the history
  • Loading branch information
sferik committed Jan 6, 2017
1 parent b5c053a commit a6e9ac3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,5 @@ Lambda:
RaiseArgs:
EnforcedStyle: compact

TrailingComma:
TrailingCommaInLiteral:
Enabled: false
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
source 'https://rubygems.org'

gem 'jruby-openssl', :platforms => :jruby
gem 'rake'
gem 'yard'
gem 'jruby-openssl', :platforms => :jruby

group :development do
gem 'pry'
Expand Down
7 changes: 4 additions & 3 deletions lib/gems/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module Configuration
:password,
:user_agent,
:username,
]
].freeze

# Set the default API endpoint
DEFAULT_HOST = ENV['RUBYGEMS_HOST'] ? ENV['RUBYGEMS_HOST'] : 'https://rubygems.org'
Expand All @@ -20,7 +20,7 @@ module Configuration
DEFAULT_KEY = Gem.configuration.rubygems_api_key

# Set the default 'User-Agent' HTTP header
DEFAULT_USER_AGENT = "Gems #{Gems::VERSION}"
DEFAULT_USER_AGENT = "Gems #{Gems::VERSION}".freeze

attr_accessor(*VALID_OPTIONS_KEYS)

Expand All @@ -43,7 +43,8 @@ def options

# Reset all configuration options to defaults
def reset
self.username, self.password = nil, nil
self.username = nil
self.password = nil
self.host = DEFAULT_HOST
self.key = DEFAULT_KEY
self.user_agent = DEFAULT_USER_AGENT
Expand Down

0 comments on commit a6e9ac3

Please sign in to comment.