forked from fimmtiu/xeroizer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
55 lines (49 loc) · 1.53 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
52
53
54
55
require 'rake'
require 'rake/testtask'
require 'rdoc/task'
require 'rubygems'
require 'yard'
require 'jeweler'
Jeweler::Tasks.new do |gem|
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
gem.name = "xeroizer"
gem.homepage = "http://github.com/waynerobinson/xeroizer"
gem.license = "MIT"
gem.summary = %Q{Xero library}
gem.description = %Q{Ruby library for the Xero accounting system API.}
gem.email = "[email protected]"
gem.authors = ["Wayne Robinson"]
gem.add_runtime_dependency 'builder', '>= 2.1.2'
gem.add_runtime_dependency 'oauth', '>= 0.3.6'
gem.add_runtime_dependency 'activesupport'
gem.add_runtime_dependency 'nokogiri'
gem.add_development_dependency 'mocha'
gem.add_development_dependency 'shoulda'
end
Jeweler::RubygemsDotOrgTasks.new
desc 'Default: run unit tests.'
task :default => :test
desc 'Test the xero gateway.'
Rake::TestTask.new(:test) do |t|
t.libs << ['lib', 'test']
t.pattern = 'test/**/*_test.rb'
t.verbose = true
end
namespace :test do
desc 'Run acceptance/integration tests'
Rake::TestTask.new(:acceptance) do |t|
t.libs << ['lib', 'test']
t.pattern = 'test/acceptance/**/*_test.rb'
t.verbose = true
end
desc 'Run unit tests'
Rake::TestTask.new(:unit) do |t|
t.libs << ['lib', 'test']
t.pattern = 'test/unit/**/*_test.rb'
t.verbose = true
end
end
YARD::Rake::YardocTask.new do |t|
# t.files = ['lib/**/*.rb', OTHER_PATHS] # optional
# t.options = ['--any', '--extra', '--opts'] # optional
end