`
山雨欲来风满楼
  • 浏览: 57207 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

Rails 3 Bundle 的简单介绍

阅读更多
请参考获取更详细原始信息,这里是笔记。
http://www.lindsaar.net/2010/2/6/bundle_me_some_rails

bundle is
# Library management system for rails app
# ability to pack and lock your gem files for your rails app.

My Understand
1. bundle let you rails app bypass the rubygems env
2. bundle depends on Gemfile created on current working directory
3. if you want to add new gem , add it into Gemfile even it was already gem installed

check the gem dependency by:
bundle check

pack the rails app by:
bundle pack
another side need run :bundle install

lock the current gem for rails app by:
bundle lock

附件 帮助:
G:\rails_11>bundle
Tasks:
  bundle check        # Checks if the dependencies listed in Gemfile are sati...

  bundle exec         # Run the command in context of the bundle
  bundle help [TASK]  # Describe available tasks or one specific task
  bundle init         # Generates a Gemfile into the current working directory
  bundle install      # Install the current environment to the system
  bundle lock         # Locks the bundle to the current set of dependencies, ...

  bundle pack         # Packs all the gems to vendor/cache
  bundle show         # Shows all gems that are part of the bundle.
  bundle unlock       # Unlock the bundle. This allows gem versions to be cha...

附件: Gem file :
G:\rails_11>cat Gemfile
# Edit this Gemfile to bundle your application's dependencies.
source 'http://gemcutter.org'


gem "rails", "3.0.0.beta"

## Bundle edge rails:
# gem "rails", :git => "git://github.com/rails/rails.git"

gem "mysql"

## Bundle the gems you use:
# gem "bj"
# gem "hpricot", "0.6"
# gem "sqlite3-ruby", :require => "sqlite3"
# gem "aws-s3", :require => "aws/s3"

## Bundle gems used only in certain environments:
# gem "rspec", :group => :test
# group :test do
#   gem "webrat"
# end






分享到:
评论

相关推荐

    Rails本地(离线)bundle install

    使用Ruby On Rails开发时经常需要Bundle Install 但有些环境网络太慢或无法连接外网的时候就需要离线Bundle 该压缩包包括52个gem 其中有sqlite3,tzinfo-data等等

    vim-rails-bundle:Vim内的Ruby on Rails开发环境

    遵循简单的安装指南即可立即破解! 注意:我们用整洁的替换了捆绑包的旧子模块架构,因此不再需要使用Git安装子模块。 我们还放弃了 ,转而使用 。 如果您对字体和状态栏的渲染有任何疑问,请首先参考的。 安装 ...

    Rails bundle命令安装mysql gem包出错的解决方法

    解决 Rails bundle 安装不上 mysql gem包的问题 环境 ubuntu 12.04 ruby-2.1.1 首先 新建一个的一个项目,在该项目上执行 bundle install 提示 代码如下: … Make sure that gem install mysql2 -v ‘0.3.16’; ...

    textmate-rails-bundle:我为TextMate 2剥离的Rails捆绑包

    DHH Ruby TextMate捆绑包安装 git clone git://github.com/dhh/textmate-rails-bundle ~/Library/Application\ Support/TextMate/Bundles/dhh-ruby.tmbundle

    RailsTwitterClone:使用Ruby on Rails 5的简单Twitter克隆

    $ bundle exec rails db:migrate $ bundle exec rails server 产品特点 为了保持简单,该应用程序未提供许多功能。 它确实包含以下功能: 见时间表 发表新推文 关注/取消关注用户 二手宝石 对于CSS样式 自举 字体真...

    rails_or:用于在Rails 5、6中编写OR Query的更简洁语法。还为Rails 3和4添加#or支持。

    支持Ruby2.2〜2.7 Rails 3.2、4.2、5.0、5.1、5.2、6.0安装将此行添加到您的应用程序的Gemfile中: gem 'rails_or' 然后执行: $ bundle或将其自己安装为: $ gem install rails_or用法与Rails 5的#or方法相同Person...

    graphql-rails-api:带有GraphQL的Rails API变得简单

    graphql-rails-api是一个gem,它提供了生成器,可以以域驱动的设计方式轻松地描述您的graphql API。 需要任何帮助或想要在不和谐中与我交谈:Poilon#5412 安装 通过创建Rails应用 rails new project-name --api ...

    kapchonka:一个简单的 Rails 数学验证码

    卡普琼卡Rails 4 的简单匹配验证码现场预览: : 导轨安装将此添加到您的 Gemfile 中: gem 'kapchonka' 运行以下命令进行安装: bundle install 运行生成器: rails generate kapchonka Gem 仅在 Rails 4 上测试...

    webpackrails-example:Webpack + Rails +React

    npm install && bundle && bundle exec rails s 关于版本的通知。 对于Rails 3,请检查您的gem文件,确保所有gem与Rails 3兼容。 对于Rails 4,请检查您的gem文件,确保所有gem与Rails 4兼容。 通常情况下,为...

    vagrant-rails-chef:Vagrant 中的 Rails 开发环境设置

    在使用 Vagrant 的虚拟环境中,正在构建存储库环境以开发 Ruby on Rails。 用法 $ git clone git@github.com:zaru/vagrant-rails-chef.git $ cd vagrant-rails-chef $ bundle install --path vendor/bundler $ ...

    rails_kindeditor:用于Ruby on Rails的Kindeditor

    Ruby on Rails的Kindeditor Kindeditor是所见即所得的javascript编辑器,有关详细信息,请访问 。 rails_kindeditor将帮助您的rails应用程序与kindeditor集成,包括图像和文件... bundle 运行安装生成器: rails g

    elemental_components:Rails 5.1+的简单视图组件

    Rails 5.1+的简单视图组件,旨在与配合使用。 两者的灵感来自( 的作品以及《寂寞星球》(Lonely Planet)风格指南 的。 安装 将此行添加到您的应用程序的Gemfile中: gem "elemental_components" 然后执行: $ ...

    CanCan1Ruby2Devise3Rails4:在 Rails 4 上使用 CanCan 1 和 Devise 3 的应用程序

    ##设置 CanCan 1:Ruby 2:设计 3:Rails 4本指南部分是根据 Tony Amoyal 的教程 [here.] ( ) 创建的######创建一个新应用程序: rails new appbundle install ######安装设计: gem 'devise'bundle install rails ...

    go-on-rails:使用Rails开发或生成Golang应用程序

    关于go-on-rails生成器的基本用法的简单 展示了如何将Go API集成到Rails项目中显示了如何处理Rails会话以在go-on-rails生成的Go API中获取用户的信息先决条件Rails 4.2+(不支持Rails 6,需要您的帮助) Golang ...

    Ruby on Rails网站项目构建简单指南

    但在国内因为连接 RubyGems 的速度太慢,而 Rails 默认在构建完项目结构后,会使用 bundle 命令从 RubyGems 下载安装依赖包。最后会因为网络问题而卡死。所以需要使用 –skip-bundle 参数跳过执行 bundle 这一步。...

    foundation-rails:Rails基础

    安装将这些行添加到应用程序的Gemfile中: gem ' foundation-rails 'gem ' autoprefixer-rails ' 然后执行: bundle 或将其自己安装为: gem install foundation-rails配置基础您可以运行以下命令来添加Foundation:...

    rails-basic-template:基本 Rails 模板

    Rails 基本模板参考: : Ruby on Rails Gemfile:定义应用程序正在使用的库的文件bundle install:基于Gemfile,安装所有库每次修改 Gemfile 时都应该运行bundle install gem 是 Ruby 的库RubyGems.org 是一个查找和...

    permisi:用于Rails的简单动态的基于角色的访问控制

    简单,动态的基于角色的Rails访问控制 概念 Permisi提供了一种使用简单的基于角色的访问控制方案动态声明用户权限(也称为权限)的方法。 这不是CanCanCan / Pundit的替代方案,而是通过动态角色定义和角色成员身份...

    prawn-rails:一个插件,可与rails无缝使用prawn库

    Prawn :: Prawn :: Rails提供了一种使用对虾库在Rails 3中创建PDF视图的简单方法。 要使用Prawn :: Rails,只需添加以下行gem 'prawn_rails'到您的Gemfile,然后运行bundle install而已! 您现在可以创建名为[ ...

Global site tag (gtag.js) - Google Analytics