wrap the conditions in a proc or lambda which are preferred syntax in rails4. change sass-rails to 4.0.1, limit sprockets to 2.11.0
add Gemfile.lock after runing bundle update