lib/generators/kinney/install/install_generator.rb in kinney-0.1.0 vs lib/generators/kinney/install/install_generator.rb in kinney-0.1.1
- old
+ new
@@ -28,15 +28,15 @@
%Q|@import "kinney";\n@import "font-awesome";|
end
def remove_turbolinks
gsub_file('Gemfile', %Q|gem 'turbolinks'|, '')
- gsbu_file('app/assets/javascripts/application.js', '//= require turbolinks', '')
+ gsub_file('app/assets/javascripts/application.js', '//= require turbolinks', '')
end
def insert_seeds
- insert_into_file "db/seeds.rb", "\nKinney::Engine.load_seed\n"
+ append_to_file "db/seeds.rb", "\nKinney::Engine.load_seed\n"
end
def remove_coffeescript
gsub_file('Gemfile', /^gem 'coffee-rails.*$'/, '')
end
@@ -112,10 +112,9 @@
# added by Kinney
# once these are published as gems we can use them from there, until then we need to have them in our Gemfile
gem 'mediaelement_rails', :git => 'https://github.com/tobsch/mediaelement_rails.git'
gem 'webvtt', :git => 'https://github.com/jronallo/webvtt.git'
-gem 'compass-rails', '>= 2.0.alpha.0'
gem 'bootstrap-sass', git: 'https://github.com/thomas-mcdonald/bootstrap-sass.git', branch: 'master'
EOF
inject_into_file 'Gemfile', :after => "source 'https://rubygems.org'" do
gems
end
\ No newline at end of file