diff options
author | Xavier Noria <fxn@hashref.com> | 2016-08-06 19:28:46 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2016-08-06 19:28:46 +0200 |
commit | e6ab70c439301d533f14b3387ee181d843a86b30 (patch) | |
tree | aec5e61d15660ff68ec99b8280b2f01f889127b1 /railties | |
parent | adca8154c6ffce978a5dbc514273cceecbb15f8e (diff) | |
download | rails-e6ab70c439301d533f14b3387ee181d843a86b30.tar.gz rails-e6ab70c439301d533f14b3387ee181d843a86b30.tar.bz2 rails-e6ab70c439301d533f14b3387ee181d843a86b30.zip |
applies new string literal convention to the rest of the project
The current code base is not uniform. After some discussion,
we have chosen to go with double quotes by default.
Diffstat (limited to 'railties')
-rw-r--r-- | railties/Rakefile | 14 | ||||
-rwxr-xr-x | railties/exe/rails | 4 |
2 files changed, 9 insertions, 9 deletions
diff --git a/railties/Rakefile b/railties/Rakefile index db23bbabaa..edc405f605 100644 --- a/railties/Rakefile +++ b/railties/Rakefile @@ -1,11 +1,11 @@ -require 'rake/testtask' +require "rake/testtask" task :default => :test task :package desc "Run all unit tests" -task :test => 'test:isolated' +task :test => "test:isolated" namespace :test do task :isolated do @@ -14,8 +14,8 @@ namespace :test do Dir[*test_files].each do |file| next true if file.include?("fixtures") dash_i = [ - 'test', - 'lib', + "test", + "lib", "#{File.dirname(__FILE__)}/../activesupport/lib", "#{File.dirname(__FILE__)}/../actionpack/lib", "#{File.dirname(__FILE__)}/../activemodel/lib" @@ -25,9 +25,9 @@ namespace :test do end end -Rake::TestTask.new('test:regular') do |t| - t.libs << 'test' << "#{File.dirname(__FILE__)}/../activesupport/lib" - t.pattern = 'test/**/*_test.rb' +Rake::TestTask.new("test:regular") do |t| + t.libs << "test" << "#{File.dirname(__FILE__)}/../activesupport/lib" + t.pattern = "test/**/*_test.rb" t.warning = false t.verbose = true t.ruby_opts = ["--dev"] if defined?(JRUBY_VERSION) diff --git a/railties/exe/rails b/railties/exe/rails index 82c17cabce..7e791c1f99 100755 --- a/railties/exe/rails +++ b/railties/exe/rails @@ -1,9 +1,9 @@ #!/usr/bin/env ruby -git_path = File.expand_path('../../../.git', __FILE__) +git_path = File.expand_path("../../../.git", __FILE__) if File.exist?(git_path) - railties_path = File.expand_path('../../lib', __FILE__) + railties_path = File.expand_path("../../lib", __FILE__) $:.unshift(railties_path) end require "rails/cli" |