lib/synvert/snippets/ruby/new_hash_syntax.rb in synvert-0.0.13 vs lib/synvert/snippets/ruby/new_hash_syntax.rb in synvert-0.0.14

- old
+ new

@@ -1,5 +1,11 @@ -Synvert::Rewriter.new "ruby_new_hash_syntax", "Ruby uses new hash syntax" do +Synvert::Rewriter.new "ruby_new_hash_syntax" do + description <<-EOF +Use ruby new hash syntax. + + {:foo => 'bar'} => {foo: 'bar'} + EOF + if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("1.9.0") within_files '**/*.rb' do # {:foo => 'bar'} => {foo: 'bar'} within_node type: 'hash' do with_node type: 'pair' do