Gemfile

作者: Asuzuki | 来源:发表于2018-08-25 20:05 被阅读0次

    平时在用的Gemfile, 免得担心因版本号出的问题

    Rails版本5.1.6

    # source 'https://rubygems.org'
    source 'https://gems.ruby-china.com'
    
    gem 'rails',                   '5.1.6' 
    gem 'bcrypt',                  '3.1.12'
    gem 'faker',                   '1.7.3'
    gem 'carrierwave',             '1.2.2'
    gem 'mini_magick',             '4.7.0'
    gem 'will_paginate',           '3.1.6'
    gem 'bootstrap-will_paginate', '1.0.0'
    gem 'bootstrap-sass',          '3.3.7'
    gem 'puma',                    '3.9.1'
    gem 'sass-rails',              '5.0.6'
    gem 'uglifier',                '3.2.0'
    gem 'coffee-rails',            '4.2.2'
    gem 'jquery-rails',            '4.3.1'
    gem 'turbolinks',              '5.0.1'
    gem 'jbuilder',                '2.7.0'
    
    group :development, :test do
      gem 'sqlite3', '1.3.13'
      gem 'byebug',  '9.0.6', platform: :mri
    end
    
    group :development do
      gem 'web-console',           '3.5.1'
      gem 'listen',                '3.1.5'
      gem 'spring',                '2.0.2'
      gem 'spring-watcher-listen', '2.0.1'
    end
    
    group :test do
      gem 'rails-controller-testing', '1.0.2'
      gem 'minitest',                 '5.10.3'
      gem 'minitest-reporters',       '1.1.14'
      gem 'guard',                    '2.14.1'
      gem 'guard-minitest',           '2.4.6'
    end
    
    group :production do
      gem 'pg',  '0.20.0'
      gem 'fog', '1.42'
    end
    
    # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
    gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
    

    运行

    $ bundle install --without production
    

    Rails版本5.1.4

    # source 'https://rubygems.org'
    source 'https://gems.ruby-china.com'
    
    gem 'rails',                   '5.1.4'
    gem 'bcrypt',                  '3.1.11'
    gem 'faker',                   '1.7.3'
    gem 'carrierwave',             '1.1.0'
    gem 'mini_magick',             '4.7.0'
    gem 'fog-aws',                 '2.0.0'
    gem 'nokogiri',                '1.8.1'
    gem 'will_paginate',           '3.1.6'
    gem 'bootstrap-will_paginate', '1.0.0'
    gem 'bootstrap-sass',          '3.3.7'
    gem 'puma',                    '3.9.1'
    gem 'sass-rails',              '5.0.6'
    gem 'uglifier',                '3.2.0'
    gem 'coffee-rails',            '4.2.2'
    gem 'jquery-rails',            '4.3.1'
    gem 'turbolinks',              '5.0.1'
    gem 'jbuilder',                '2.7.0'
    
    group :development, :test do
      gem 'sqlite3', '1.3.13'
      gem 'byebug',  '9.0.6', platform: :mri
    end
    
    group :development do
      gem 'web-console',           '3.5.1'
      gem 'listen',                '3.0.8'
      gem 'spring',                '2.0.2'
      gem 'spring-watcher-listen', '2.0.1'
    end
    
    group :test do
      gem 'rails-controller-testing', '1.0.2'
      gem 'minitest-reporters',       '1.1.14'
      gem 'guard',                    '2.14.1'
      gem 'guard-minitest',           '2.4.6'
    end
    
    group :production do
      gem 'pg', '0.20.0'
    end
    
    # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
    gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
    
    

    运行

    $ bundle install --without production
    

    相关文章

      网友评论

          本文标题:Gemfile

          本文链接:https://www.haomeiwen.com/subject/wrngiftx.html