Skip to content

Commit

Permalink
enforce to use Ruby 1.9 style hash syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Sep 5, 2016
1 parent deb7c2a commit f8f686e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ StringLiterals:
SpaceAroundEqualsInParameterDefault:
Enabled: false

HashSyntax:
Enabled: false
Style/HashSyntax:
Enabled: true

LineLength:
Enabled: true
Expand Down
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ RDoc::Task.new do |doc|
doc.rdoc_dir = 'html'
end

task :ghpages => :rdoc do
task ghpages: :rdoc do
`git checkout gh-pages`
require 'fileutils'
FileUtils.rm_rf '/tmp/html'
Expand All @@ -35,4 +35,4 @@ task :ghpages => :rdoc do
FileUtils.cp_r Dir.glob('/tmp/html/*'), '.'
end

task :default => :test
task default: :test

0 comments on commit f8f686e

Please sign in to comment.