bundler : package manager

Installation

gem install bundler

or install specific version of bundler

gem install bundler -v 1.11.2

Command

bundle

NOTE :

  • need GemFile
  • ‘bundle’ is a shortcut for ‘bundle install’

Installation log

Bundler and RubyGems.org are free for anyone to use, but maintaining them costs more than $25,000 USD every month. Help us cover those costs so that we can keep the gem ecosystem free for everyone: https://ruby.to/support-bundler</pre>
When upgrading

Re-run the migrations generator

rake acts_as_taggable_on_engine:install:migrations

This will create any new migrations and skip existing ones

Version 3.5.0 has a migration for mysql adapter

Post-install message from haml:

HEADS UP! Haml 4.0 has many improvements, but also has changes that may break

your application:

* Support for Ruby 1.8.6 dropped

* Support for Rails 2 dropped

* Sass filter now always outputs
<style> tags

* Data attributes are now hyphenated, not underscored

* html2haml utility moved to the html2haml gem

* Textile and Maruku filters moved to the haml-contrib gem

For more info see:

http://rubydoc.info/github/haml/haml/file/CHANGELOG.md

Post-install message from httparty:

When you HTTParty, you must party hard!

Post-install message from compass:

Compass is charityware. If you love it, please donate on our behalf at http://umdf.org/compass Thanks!

Post-install message from money:

Please note the following API changes in Money version 6

- Money#amount, Money#dollars methods now return instances of BigDecimal (rather than Float).

Please read the migration notes at https://github.com/RubyMoney/money#migration-notes

and choose the migration that best suits your application.

Test responsibly 🙂

Post-install message from rails_best_practices:

********************************************************************************

rails_best_practices is a code metric tool to check the quality of rails codes.

I highly recommend you browse the Rails Best Practices website first.

http://rails-bestpractices.com

Please also try our online service

http://railsbp.com

Enjoy!

Richard Huang (flyerhzm@gmail.com)

********************************************************************************

Post-install message from rdoc:

Depending on your version of ruby, you may need to install ruby rdoc/ri data:

<= 1.8.6 : unsupported = 1.8.7 : gem install rdoc-data; rdoc-data --install = 1.9.1 : gem install rdoc-data; rdoc-data --install >= 1.9.2 : nothing to do! Yay!

Gemfile example

Example of Gemfile generated from rails.

source 'https://rubygems.org'

&nbsp;

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.2.4'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.1.0'
# See https://github.com/rails/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby

# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.0'
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', '~> 0.4.0', group: :doc

# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'

# Use Unicorn as the app server
# gem 'unicorn'

# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development

group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug'
end

group :development do
# Access an IRB console on exception pages or by using <%= console %> in views
gem 'web-console', '~> 2.0'

# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'
end

NOTE : gem server : `​https://rubygems.org` by default

If some of your gems need to be fetched from a private gem server, this default source can be overridden for those gems.

After installing any needed gems to your system, bundler writes a snapshot of all of the gems and versions that it installed to Gemfile.lock.

Gem with Git dependency

gem 'twitter', git: 'https://github.com/sferik/twitter.git'
gem 'twitter', git: 'https://github.com/sferik/twitter.git', branch: 'master'

ref : http://bundler.io/v1.7/rationale.html#checking-your-code-into-version-control,

http://bundler.io/git.html

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s