Permalink
Browse files

use Ruby 1.9 hash syntax

  • Loading branch information...
1 parent 46f3c61 commit c3cb059007e124ccc8c8a4a5a6742147de669fee Francesco Rodriguez committed May 3, 2013
Showing with 5 additions and 5 deletions.
  1. +1 −1 Rakefile
  2. +1 −1 lib/sass/rails/railtie.rb
  3. +1 −1 test/fixtures/alternate_config_project/Gemfile
  4. +2 −2 test/test_helper.rb
View
@@ -11,7 +11,7 @@ Rake::TestTask.new(:test) do |t|
end
desc 'Default: run unit tests.'
-task :default => :test
+task default: :test
specname = "sass-rails.gemspec"
deps = `git ls-files`.split("\n") - [specname]
@@ -29,7 +29,7 @@ class Railtie < ::Rails::Railtie
app.config.middleware.delete(Sass::Plugin::Rack) if defined?(Sass::Plugin::Rack)
end
- initializer :setup_sass, :group => :all do |app|
+ initializer :setup_sass, group: :all do |app|
# Only emit one kind of syntax because though we have registered two kinds of generators
syntax = app.config.sass.preferred_syntax.to_sym
alt_syntax = syntax == :sass ? "scss" : "sass"
@@ -4,4 +4,4 @@ gem 'rails', "~> 3.2.0.rc1"
gem 'sqlite3'
# Asset template engines
-gem 'sass-rails', :path => File.expand_path('../../../..', __FILE__)
+gem 'sass-rails', path: File.expand_path('../../../..', __FILE__)
View
@@ -5,7 +5,7 @@
require 'bundler/setup'
require 'rails'
-require "rails/test_help"
+require 'rails/test_help'
require 'sass/rails'
Rails.backtrace_cleaner.remove_silencers!
@@ -17,7 +17,7 @@
Bundler.load.specs.each do |s|
if possible_dev_dependencies.include?(s.name)
gem_path = s.full_gem_path
- gem_options = {:version => s.version}
+ gem_options = { version: s.version}
gem_options[:path] = gem_path if File.exists?("#{gem_path}/#{s.name}.gemspec")
$gem_options[s.name] = gem_options
end

0 comments on commit c3cb059

Please sign in to comment.