22 May 2013

The Ruby Reflector

Topic

Bundler

  Source Favicon
Email

Relies on Bundler and its' binstubs to manage gems

Uses shims to handle executable gems

Updates shims upon receipt of the rbenv rehash command after new Ruby executables are installed (rehashing can be automated with the gem rehash plugin )

Installs everything to ~/.rbenv/

How to switch from RVM to rbenv

Check out our laptop script to see our process for installing rbenv, or follow the steps below.

If you're a tmux …

robots.thoughtbot.com Read
  Source Favicon
By Adam of Heroku 2 months ago.
Email

For example, here's a screenshot of log2viz running against the Rubygems Bundler API (written and maintained by Terence Lee, André Arko, and Larry Marburger, and running on Heroku):

log2viz gets all of its data from the Heroku log stream — the same data you see when running heroku logs --tail at the command line. It requires no changes to your app code and works for apps written in any language and web framework, demonstrating some of the benefits of logs as data. …

blog.heroku.com Read
  Source Favicon
By Mike Gunderloy of A Fresh Cup 3 months ago.
Email

Lots of new releases to report this morning. I guess this is what Rubyists do on the weekend.

Ruby 2.0.0-p0 is released - The big one, the first stable Ruby 2.0 release. Pretty safe to say Ruby 1.8 is dead now.

RubyGems 2.0.0 Released - You probably want to switch if you're moving to Ruby 2.0. Don't forget to grab a prerelease copy of Bundler 1.3.0 at the same time.

rdoc 4.0.0 - Supporting the display of pages (such as readme files) and Markdown formatting.

afreshcup.com Read
  Source Favicon
By James Mead of Blog - James Mead 4 months ago.
Email

…an unreleased version of Rails. You could always lock things down further by using the Bundler :ref option to restrict the version of Rails to a specific SHA .

Option 2 - Downgrade to Mocha 0.12.8 # Gemfile in Rails app gem "mocha", "~> 0.12.8", :require => false

# At bottom of test_helper.rb require "mocha"

Note: This isn't as bad as it sounds, because there aren't many changes in Mocha 0.13.x that are not in 0.12.x. …

blog.floehopper.org Read
  Source Favicon
By James Mead of Blog - James Mead 4 months ago.
Email

…an unreleased version of Rails. You could always lock things down further by using the Bundler :ref option to restrict the version of Rails to a specific SHA .

Option 3 - Downgrade to Mocha 0.12.8 # Gemfile in Rails app gem "mocha", "~> 0.12.8", :require => false

# At bottom of test_helper.rb require "mocha"

Note: This isn't as bad as it sounds, because there aren't many changes in Mocha 0.13.x that are not in 0.12.x. …

blog.floehopper.org Read
  Source Favicon
Email

…coaches from Engine Yard, Github, Heroku and Snapguide. We'll also be covering snacks, beverages and lots of other goodies. Want to meet the creator of the now-famous Riker Ipsum , or hang out with the Bundler guy ? They'll both be there, among many other incredibly inspiring tech-lovers.

To learn more and to register, go here .

engineyard.com Read
  Source Favicon
By Andrew Bloomgarden of New Relic 4 months ago.
Email

That monkey patch to Bundler is within our Gemfile. We needed similarly unclean changes in other files in the Rails boot sequence. At the end of all of that, it booted correctly in both environments. We then iteratively fixed the test suite in Rails 3 while maintaining compatibility with Rails 2 — oftentimes switching out implementations by writing the Ruby equivalent of a C preprocessor flag. That resulted in 225 patches. At the same time, we added the rails_xss plugin to Rails…

newrelic.com Read
  Source Favicon
By Mislav of Mislav's blog 5 months ago.
Email

Bundler can install binstubs in your project for all executables contained in the current bundle. bundle install --binstubs

This creates, among others, ./bin/rspec (simplified version shown):

#!/usr/bin/env ruby require 'rubygems' # Prepares the $LOAD_PATH by adding to it lib directories of all gems in the # project's bundle: require 'bundler/setup' load Gem . bin_path ( 'rspec-core' , 'rspec' )

RSpec can now be easily called with bin/rspec …

mislav.uniqpath.com Read
  Source Favicon
By Giles Bowkett of Giles Bowkett 5 months ago.
Email

…define Foo " error represents. You see it less these days, thanks to Bundler, but any experienced Rails developer has seen that error countless times, even though very few have ever seen it happen because foo.rb actually failed to define Foo . That almost never happens.

Instead, the error-throwing code is lodged inside a module method for loading missing constants. So you see it whenever a constant is missing; it usually means you forgot to require some utterly unrelated …

gilesbowkett.blogspot.com Read
  Source Favicon
Email

Thank you to Yehuda Katz and Carl Lerche for Bundler.

Thank you to Nick Quaranto, Terence Lee, and Larry Marburger for making the Bundler API faster.

Thank you to John Resig for jQuery, and to John, The Filament Group, and the other contributors to jQuery Mobile for making mobile web development fun.

Thank you to Jonas Nicklas for Capybara, a big step forward in browser simulation and acceptance testing.

Thank you to KDE, Apple, Google, Trolltech, and …

robots.thoughtbot.com Read