forked from ruby-amqp/bunny
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gemfile
56 lines (45 loc) · 1.42 KB
/
Gemfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# 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 "rake", ">= 12.3.1"
gem "effin_utf8"
group :development do
gem "yard"
gem "redcarpet", platform: :mri
gem "ruby-prof", platform: :mri
gem "ripl"
gem "ripl-multi_line"
gem "ripl-irb"
end
group :test do
gem "rspec", "~> 3.5.0"
gem "rabbitmq_http_api_client", "~> 1.9.1", require: "rabbitmq/http/client"
gem "toxiproxy", "~> 1.0.3"
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: "https://github.com/ruby-amqp/amq-protocol", branch: "master"