Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 52 lines (40 sloc) 1.313 kb
304bec9 @binarylogic Initial commit to shippinglogic.
authored
1 require 'rubygems'
2 require 'rake'
3
4 begin
5 require 'jeweler'
6 Jeweler::Tasks.new do |gem|
7 gem.name = "shippinglogic"
8 gem.summary = %Q{TODO: one-line summary of your gem}
9 gem.description = %Q{TODO: longer description of your gem}
10 gem.email = "bjohnson@binarylogic.com"
11 gem.homepage = "http://github.com/binarylogic/shippinglogic"
12 gem.authors = ["binarylogic"]
13 # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
14 end
15
16 rescue LoadError
17 puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
18 end
19
20 require 'spec/rake/spectask'
21 Spec::Rake::SpecTask.new(:spec) do |spec|
22 spec.libs << 'lib' << 'spec'
23 spec.spec_files = FileList['spec/**/*_spec.rb']
24 end
25
26 Spec::Rake::SpecTask.new(:rcov) do |spec|
27 spec.libs << 'lib' << 'spec'
28 spec.pattern = 'spec/**/*_spec.rb'
29 spec.rcov = true
30 end
31
32
33
34
35 task :default => :spec
36
37 require 'rake/rdoctask'
38 Rake::RDocTask.new do |rdoc|
39 if File.exist?('VERSION.yml')
40 config = YAML.load(File.read('VERSION.yml'))
41 version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
42 else
43 version = ""
44 end
45
46 rdoc.rdoc_dir = 'rdoc'
47 rdoc.title = "shippinglogic #{version}"
48 rdoc.rdoc_files.include('README*')
49 rdoc.rdoc_files.include('lib/**/*.rb')
50 end
51
Something went wrong with that request. Please try again.