Skip to content

Commit bc0c065

Browse files
committed
tell rubocop that we want to use the new hash syntax, update missing ones
1 parent 9f54313 commit bc0c065

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

.rubocop.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Style/FileName:
1414
- 'lib/dotenv-rails.rb'
1515

1616
Style/HashSyntax:
17-
EnforcedStyle: 'hash_rockets'
17+
EnforcedStyle: 'ruby19'
1818

1919
Style/StringLiterals:
2020
EnforcedStyle: 'double_quotes'

Gemfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
source "https://rubygems.org"
2-
gemspec :name => "dotenv"
3-
gemspec :name => "dotenv-rails"
2+
gemspec name: "dotenv"
3+
gemspec name: "dotenv-rails"
44

55
group :guard do
66
gem "guard-rspec"

Guardfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ guard "bundler" do
22
watch("Gemfile")
33
end
44

5-
guard "rspec", :cmd => "bundle exec rspec" do
5+
guard "rspec", cmd: "bundle exec rspec" do
66
watch(%r{^spec/.+_spec\.rb$})
77
watch(%r{^spec/spec_helper.rb$}) { "spec" }
88
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }

Rakefile

+6-6
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
require "bundler/gem_helper"
44

55
namespace "dotenv" do
6-
Bundler::GemHelper.install_tasks :name => "dotenv"
6+
Bundler::GemHelper.install_tasks name: "dotenv"
77
end
88

99
namespace "dotenv-rails" do
@@ -13,12 +13,12 @@ namespace "dotenv-rails" do
1313
def tag_version; end # noop
1414
end
1515

16-
DotenvRailsGemHelper.install_tasks :name => "dotenv-rails"
16+
DotenvRailsGemHelper.install_tasks name: "dotenv-rails"
1717
end
1818

19-
task :build => ["dotenv:build", "dotenv-rails:build"]
20-
task :install => ["dotenv:install", "dotenv-rails:install"]
21-
task :release => ["dotenv:release", "dotenv-rails:release"]
19+
task build: ["dotenv:build", "dotenv-rails:build"]
20+
task install: ["dotenv:install", "dotenv-rails:install"]
21+
task release: ["dotenv:release", "dotenv-rails:release"]
2222

2323
require "rspec/core/rake_task"
2424

@@ -31,4 +31,4 @@ end
3131
require "rubocop/rake_task"
3232
RuboCop::RakeTask.new
3333

34-
task :default => [:spec, :rubocop]
34+
task default: [:spec, :rubocop]

0 commit comments

Comments
 (0)