Skip to content

Commit

Permalink
Don't depend on coffee-rails gem.
Browse files Browse the repository at this point in the history
Instead add it to Gemfile if it's not there when using template.
  • Loading branch information
ugisozols authored and parndt committed Oct 15, 2012
1 parent 45367eb commit 6f0ee74
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion core/refinerycms-core.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,5 @@ Gem::Specification.new do |s|
s.add_dependency 'truncate_html', '~> 0.5'
s.add_dependency 'will_paginate', '~> 3.0.2'
s.add_dependency 'sass-rails', '~> 3.2.3'
s.add_dependency 'coffee-rails', '~> 3.2.1'
s.add_dependency 'jquery-rails', '~> 2.0.0'
end
5 changes: 5 additions & 0 deletions templates/refinery/edge.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
require 'rbconfig'

gsub_file 'Gemfile', "gem 'jquery-rails'", "gem 'jquery-rails', '~> 2.0.0'"

if File.read("#{destination_root}/Gemfile") !~ /assets.+coffee-rails/m
gem "coffee-rails", :group => :assets
end

# We want to ensure that you have an ExecJS runtime available!
begin
run 'bundle install'
Expand Down

0 comments on commit 6f0ee74

Please sign in to comment.