Sha256: 2948ae00a7817a2ae5ac0bc402f1af50c4e09761ffb4e2efbbeb92c129f0dc9f

Contents?: true

Size: 1.34 KB

Versions: 24

Compression:

Stored size: 1.34 KB

Contents

# encoding: utf-8

source "https://rubygems.org"

# Use local clones if possible.
# If you want to use your local copy, just symlink it to vendor.
# See http://blog.101ideas.cz/posts/custom-gems-in-gemfile.html
extend Module.new {
  def gem(name, *args)
    options = args.last.is_a?(Hash) ? args.last : Hash.new

    local_path = File.expand_path("../vendor/#{name}", __FILE__)
    if File.exist?(local_path)
      super name, options.merge(:path => local_path).
        delete_if { |key, _| [:git, :branch].include?(key) }
    else
      super name, *args
    end
  end
}

gem "SystemTimer", "1.2", :platform => :ruby_18

gem "rake", ">= 10.0.4"
gem "effin_utf8"

group :development do
  gem "yard"

  gem "redcarpet", :platform => :mri
  gem "ruby-prof", :platform => :mri

  gem "json"
end

group :test do
  gem "rspec", ">= 2.13.0"
end

gemspec

# Use local clones if possible.
# If you want to use your local copy, just symlink it to vendor.
def custom_gem(name, options = Hash.new)
  local_path = File.expand_path("../vendor/#{name}", __FILE__)
  if File.exist?(local_path)
    # puts "Using #{name} from #{local_path}..."
    gem name, options.merge(:path => local_path).delete_if { |key, _| [:git, :branch].include?(key) }
  else
    gem name, options
  end
end

custom_gem "amq-protocol", :git => "git://github.com/ruby-amqp/amq-protocol.git", :branch => "master"

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
bunny-1.0.0.rc1 Gemfile
bunny-0.10.7 Gemfile
bunny-0.10.6 Gemfile
bunny-1.0.0.pre6 Gemfile
bunny-0.10.5 Gemfile
bunny-1.0.0.pre5 Gemfile
bunny-0.10.4 Gemfile
bunny-0.10.3 Gemfile
bunny-1.0.0.pre4 Gemfile
bunny-0.10.2 Gemfile
bunny-0.10.1 Gemfile
bunny-0.10.0 Gemfile
bunny-1.0.0.pre3 Gemfile
bunny-0.9.8 Gemfile
bunny-1.0.0.pre2 Gemfile
bunny-0.9.7 Gemfile
bunny-0.9.6 Gemfile
bunny-0.9.5 Gemfile
bunny-0.9.4 Gemfile
bunny-1.0.0.pre1 Gemfile