-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
66 lines (57 loc) · 1.86 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
56
57
58
59
60
61
62
63
64
65
66
require 'rake'
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "party_resource"
gem.summary = %Q{Simple REST interface for ruby objects.}
gem.description = %Q{party_resource is a framework for building ruby objects which interact with a REST api. Built on top of HTTParty.}
gem.email = "steve@heavi.es"
gem.homepage = "http://github.com/tooky/party_resource.git"
gem.authors = ["Tristan Harris", "Steve Tooke"]
gem.add_runtime_dependency "httparty", ">= 0.5.2"
gem.add_runtime_dependency "activesupport", ">= 2.3.5"
gem.add_development_dependency "rspec", ">= 1.2.9"
gem.add_development_dependency "yard", ">= 0"
gem.add_development_dependency "webmock", ">= 0"
gem.files = FileList['lib/**/*.rb']
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec) do |spec|
spec.pattern = 'spec/**/*_spec.rb'
end
namespace :spec do
RSpec::Core::RakeTask.new(:unit) do |spec|
spec.pattern = 'spec/unit/**/*_spec.rb'
end
RSpec::Core::RakeTask.new(:integration) do |spec|
spec.pattern = 'spec/integration/**/*_spec.rb'
end
end
RSpec::Core::RakeTask.new(:rcov) do |spec|
spec.pattern = 'spec/**/*_spec.rb'
spec.rcov = true
spec.rcov_opts = %q[--exclude "spec"]
end
task :default => :spec
begin
require 'yard'
YARD::Rake::YardocTask.new do |t|
t.options = ['--no-private']
end
rescue LoadError
task :yardoc do
abort "YARD is not available. In order to run yardoc, you must: sudo gem install yard"
end
end
begin
require 'metric_fu'
rescue LoadError
task :"metrics:all" do
abort "metric_fu is not available. gem install metric_fu"
end
end