Sha256: 41f308658256ad0ff661c13301f49f51f0408b5ac3c748ff4e00746cc65c7396

Contents?: true

Size: 1.01 KB

Versions: 8

Compression:

Stored size: 1.01 KB

Contents

module LearnGenerate
  module Helpers
    module GemfileHelper
      def edit_mvc_gemfile
        File.open("Gemfile", 'a') do |f|
          f << "\ngem 'sinatra'
    gem 'activerecord', :require => 'active_record'
    gem 'sinatra-activerecord', :require => 'sinatra/activerecord'
    gem 'rake'
    gem 'require_all'
    gem 'sqlite3'
    gem 'thin'
    gem 'shotgun'
    gem 'pry'
    \ngroup :test do
      gem 'rspec'
      gem 'capybara'
      gem 'rack-test'
      gem 'database_cleaner', git: 'https://github.com/bmabey/database_cleaner.git'
    end"
        end
      end

      def edit_classic_gemfile
        File.open("Gemfile", 'a') do |f|
          f << "\ngem 'sinatra'
    gem 'rake'
    gem 'thin'
    gem 'shotgun'
    gem 'pry'
    gem 'require_all'
    \ngroup :test do
      gem 'rspec'
      gem 'capybara'
      gem 'rack-test'
    end"
        end
      end

      def edit_gemfile
        File.open("Gemfile", 'a') do |f|
          f << "\ngem 'rspec'
    gem 'pry'"
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
learn-generate-1.0.16 lib/learn_generate/helpers/gemfile-helper.rb
learn-generate-1.0.15 lib/learn_generate/helpers/gemfile-helper.rb
learn-generate-1.0.14 lib/learn_generate/helpers/gemfile-helper.rb
learn-generate-1.0.13 lib/learn_generate/helpers/gemfile-helper.rb
learn-generate-1.0.12 lib/learn_generate/helpers/gemfile-helper.rb
learn-generate-1.0.11 lib/learn_generate/helpers/gemfile-helper.rb
learn-generate-1.0.1 lib/learn_generate/helpers/gemfile-helper.rb
learn-generate-1.0.0 lib/learn_generate/helpers/gemfile-helper.rb