forked from johnnyhalife/waz-storage
-
Notifications
You must be signed in to change notification settings - Fork 1
/
rakefile
executable file
·51 lines (46 loc) · 2.02 KB
/
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
42
43
44
45
46
47
48
49
50
51
require 'rake'
require 'rubygems'
require 'spec/rake/spectask'
require 'rake/gempackagetask'
require 'rake/rdoctask'
require 'lib/waz-storage'
namespace :test do
Spec::Rake::SpecTask.new('run_with_rcov') do |t|
t.spec_files = FileList['tests/waz/queues/*.rb', 'tests/waz/blobs/*.rb', 'tests/waz/tables/*.rb', 'tests/waz/storage/*.rb']
t.rcov = true
t.rcov_opts = ['--text-report', '--exclude', "exclude.*/.gem,test,Library,#{ENV['GEM_HOME']}", '--sort', 'coverage' ]
t.spec_opts = ['-cfn']
end
end
namespace :dist do
spec = Gem::Specification.new do |s|
s.name = 'waz-storage'
s.version = Gem::Version.new(WAZ::Storage::Version)
s.summary = "Client library for Windows Azure's Storage Service REST API"
s.description = "A simple implementation of Windows Azure Storage API for Ruby, inspired by the S3 gems and self experience of dealing with queues. The major goal of the whole gem is to enable ruby developers [like me =)] to leverage Windows Azure Storage features and have another option for cloud storage."
s.email = 'johnny.halife@me.com'
s.author = 'Johnny G. Halife'
s.homepage = 'http://waz-storage.heroku.com'
s.require_paths = ["lib"]
s.files = FileList['rakefile', 'lib/**/*.rb']
s.test_files = Dir['test/**/*']
s.has_rdoc = true
s.rdoc_options << '--line-numbers' << '--inline-source' << '-A cattr_accessor=object'
# Dependencies
s.add_dependency 'rest-client'
s.add_dependency 'ruby-hmac'
end
Rake::GemPackageTask.new(spec) do |pkg|
pkg.need_tar = true
end
end
namespace :docs do
Rake::RDocTask.new do |t|
t.rdoc_dir = 'rdoc'
t.title = "Windows Azure Storage library — simple gem for accessing WAZ‘s Storage REST API"
t.options << '--line-numbers' << '--inline-source' << '-A cattr_accessor=object'
t.options << '--charset' << 'utf-8'
t.rdoc_files.include('README.rdoc')
t.rdoc_files.include('lib/**/*.rb')
end
end