Skip to content

Instantly share code, notes, and snippets.

@practicingruby
Created June 4, 2011 14:14
Show Gist options
  • Select an option

  • Save practicingruby/1007929 to your computer and use it in GitHub Desktop.

Select an option

Save practicingruby/1007929 to your computer and use it in GitHub Desktop.
$ ack Gem
features/steps/rails_steps.rb
13: FileUtils.ln_sf(ENV["BUNDLE_GEMFILE"], "Gemfile")
14: FileUtils.ln_sf(ENV["BUNDLE_GEMFILE"] + ".lock", "Gemfile.lock")
features/support/bundler_helpers.rb
6: command = "env RUBYOPT= BUNDLE_GEMFILE=Gemfile bundle install"
13: gemfile_lock = dir + "/Gemfile.lock"
14: gemfile = dir + "/Gemfile"
18: puts "Gemfile #{gemfile} has changed since it was locked. Re-locking..."
32: possibilities = [File.expand_path(gemfile, Dir.pwd), SporkWorld::GEMFILES_ROOT + gemfile + "Gemfile"]
33: possibilities.detect {|f| File.exist?(f)} || raise(RuntimeError, %(Gemfile not found:\n #{possibilities * "\n"}))
lib/spork/gem_helpers.rb
1:module Spork::GemHelpers
4: class GemPath
23: when Gem.respond_to?(:path)
24: Dir["{#{Gem.path.join(',')}}" + "/gems/*"].inject({}) do |h,f|
25: gem_path = GemPath.new(f)
lib/spork/run_strategy/magazine.rb
10: puts "The 'win32-process' gem is required for windows Spork support with ruby 1.9.1 and lower. Install it, or if using bundler, add it to your Gemfile."
15:require 'rubygems' # used for Gem.ruby
44: app_name = "#{Gem.ruby} ring_server.rb"
60: app = "#{Gem.ruby} magazine_slave_provider.rb #{id} '#{app_pwd}' #{@test_framework.short_name}"
lib/spork.rb
14: autoload :GemHelpers, (LIBDIR + 'spork/gem_helpers').to_s
108: @other_spork_gem_load_paths ||= Spork::GemHelpers.latest_load_paths.grep(/spork/).select do |g|
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment