-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
41 lines (29 loc) · 796 Bytes
/
Rakefile
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
# require 'spec/rake/spectask' # depreciated
require 'rspec/core/rake_task'
# require 'rake/gempackagetask' # depreciated
require 'rubygems/package_task'
require 'rdoc/task'
# Build gem: rake gem
# Push gem: rake push
task :default => [ :spec, :gem ]
RSpec::Core::RakeTask.new do
message = <<-MESSAGE
====================================
| NOTE:
| Make sure to provide the correct connection info for database 'PlastronicsDB'
| in file 'csv_spec.rb' (line 12).
====================================
MESSAGE
puts message
:spec
end
gem_spec = eval(File.read('rstore.gemspec'))
Gem::PackageTask.new( gem_spec ) do |t|
t.need_zip = true
end
#RDoc::Task.new do |rdoc|
#
#end
task :push => :gem do |t|
sh "gem push -v pkg/#{gem_spec.name}-#{gem_spec.version}.gem"
end