-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathRakefile
More file actions
31 lines (25 loc) · 685 Bytes
/
Rakefile
File metadata and controls
31 lines (25 loc) · 685 Bytes
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
require 'bundler/gem_tasks'
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
test.libs << 'test'
test.pattern = 'test/**/test_*.rb'
test.verbose = true
end
module Bundler
class GemHelper
unless method_defined?(:rubygem_push)
raise NoMethodError, 'Monkey patching Bundler::GemHelper#rubygem_push failed: did the Bundler API change???'
end
def rubygem_push(path)
gem_server_url = 'http://162.150.185.166'
sh %{gem push #{path} --host #{gem_server_url}}
Bundler.ui.confirm "Pushed #{name} #{version} to #{gem_server_url}"
end
end
end
task default: :test
task :pry do
require 'couchbase'
require 'pry'
Pry.start
end