lib/railsthemes/theme_installer.rb
def add_needed_gems
      installed_gems = Utils.gemspecs.map(&:name)
      %w(
        sass
        jquery-rails
        jquery-ui-rails
        coderay
      ).each do |gemname|
        Utils.add_gem_to_gemfile gemname unless installed_gems.include?(gemname)
      end

      add_compass_rails_gem installed_gems
      add_zurb_foundation_gem installed_gems
      add_turbo_sprockets_gem installed_gems
    end
# General assumption is `bundler check` is always clean prior to installation (via ensurer),
# so if the gemspecs are in the Gemfile.lock, then the gem is in the Gemfile
General assumption is `bundler check` is always clean prior to installation (via ensurer),
so if the gemspecs are in the Gemfile.lock, then the gem is in the Gemfile
General assumption is ` bundler check ` is always clean prior to installation ( via ensurer ) so if the gemspecs are in the Gemfile . lock then the gem is in the Gemfile
def add_needed_gems
      installed_gems = Utils.gemspecs.map(&:name)
      %w(
        sass
        jquery-rails
        jquery-ui-rails
        coderay
      ).each do |gemname|
        Utils.add_gem_to_gemfile gemname unless installed_gems.include?(gemname)
      end
      add_compass_rails_gem installed_gems
      add_zurb_foundation_gem installed_gems
      add_turbo_sprockets_gem installed_gems
    end
def add_needed_gems installed_gems = Utils . gemspecs . map ( & :name ) %w( sass jquery-rails jquery-ui-rails coderay ) . each do | gemname | Utils . add_gem_to_gemfile gemname unless installed_gems . include? ( gemname ) end add_compass_rails_gem installed_gems add_zurb_foundation_gem installed_gems add_turbo_sprockets_gem installed_gems end
General assumption is `bundler check` is always clean prior to installation (via ensurer),
so if the gemspecs are in the Gemfile.lock, then the gem is in the Gemfile
General assumption is ` bundler check ` is always clean prior to installation ( via ensurer ) so if the gemspecs are in the Gemfile . lock then the gem is in the Gemfile