Skip to content

Commit c3cb059

Browse files
author
Francesco Rodriguez
committed
use Ruby 1.9 hash syntax
1 parent 46f3c61 commit c3cb059

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Rake::TestTask.new(:test) do |t|
1111
end
1212

1313
desc 'Default: run unit tests.'
14-
task :default => :test
14+
task default: :test
1515

1616
specname = "sass-rails.gemspec"
1717
deps = `git ls-files`.split("\n") - [specname]

lib/sass/rails/railtie.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Railtie < ::Rails::Railtie
2929
app.config.middleware.delete(Sass::Plugin::Rack) if defined?(Sass::Plugin::Rack)
3030
end
3131

32-
initializer :setup_sass, :group => :all do |app|
32+
initializer :setup_sass, group: :all do |app|
3333
# Only emit one kind of syntax because though we have registered two kinds of generators
3434
syntax = app.config.sass.preferred_syntax.to_sym
3535
alt_syntax = syntax == :sass ? "scss" : "sass"

test/fixtures/alternate_config_project/Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ gem 'rails', "~> 3.2.0.rc1"
44
gem 'sqlite3'
55

66
# Asset template engines
7-
gem 'sass-rails', :path => File.expand_path('../../../..', __FILE__)
7+
gem 'sass-rails', path: File.expand_path('../../../..', __FILE__)

test/test_helper.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
require 'bundler/setup'
66

77
require 'rails'
8-
require "rails/test_help"
8+
require 'rails/test_help'
99
require 'sass/rails'
1010

1111
Rails.backtrace_cleaner.remove_silencers!
@@ -17,7 +17,7 @@
1717
Bundler.load.specs.each do |s|
1818
if possible_dev_dependencies.include?(s.name)
1919
gem_path = s.full_gem_path
20-
gem_options = {:version => s.version}
20+
gem_options = { version: s.version}
2121
gem_options[:path] = gem_path if File.exists?("#{gem_path}/#{s.name}.gemspec")
2222
$gem_options[s.name] = gem_options
2323
end

0 commit comments

Comments
 (0)