Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 78 lines (67 sloc) 2.012 kb
5529c05 @pusewicz Initial commit to sonia.
pusewicz authored
1 require 'rubygems'
c705635 @pusewicz Update rakefiles
pusewicz authored
2 require 'rake'
8e193e0 @pusewicz Change way you boot the app
pusewicz authored
3 require 'bundler'
c4c6a6a @pusewicz Reorder loading of libs
pusewicz authored
4
8e193e0 @pusewicz Change way you boot the app
pusewicz authored
5 begin
6 Bundler.setup
7 rescue Bundler::BundlerError => e
8 $stderr.puts e.message
9 $stderr.puts "Run `bundle install` to install missing gems"
10 exit e.status_code
11 end
12
c705635 @pusewicz Update rakefiles
pusewicz authored
13 $LOAD_PATH.unshift('lib')
14
15 require 'sonia'
c4c6a6a @pusewicz Reorder loading of libs
pusewicz authored
16
5529c05 @pusewicz Initial commit to sonia.
pusewicz authored
17 begin
18 require 'jeweler'
19 Jeweler::Tasks.new do |gem|
20 gem.name = "sonia"
764ac61 @pusewicz Update docs
pusewicz authored
21 gem.summary = %Q{Superawesome Dashboard}
22 gem.description = %Q{Superawesome Dashboard}
5529c05 @pusewicz Initial commit to sonia.
pusewicz authored
23 gem.email = "piotr@layer22.com"
24 gem.homepage = "http://github.com/pusewicz/sonia"
25 gem.authors = ["Piotr Usewicz"]
c705635 @pusewicz Update rakefiles
pusewicz authored
26 gem.executables = ['sonia']
27 gem.version = Sonia::VERSION
764ac61 @pusewicz Update docs
pusewicz authored
28 # gem.add_development_dependency "rspec", ">= 1.2.9"
29 # gem.add_development_dependency "yard", ">= 0"
30 # gem.add_development_dependency "cucumber", ">= 0"
5529c05 @pusewicz Initial commit to sonia.
pusewicz authored
31 # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
32 end
33 Jeweler::GemcutterTasks.new
34 rescue LoadError
35 puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
36 end
37
42a54ac @pusewicz Add initial documentation
pusewicz authored
38 begin
39 require 'spec/rake/spectask'
40 Spec::Rake::SpecTask.new(:spec) do |spec|
41 spec.libs << 'lib' << 'spec'
42 spec.spec_files = FileList['spec/**/*_spec.rb']
43 end
5529c05 @pusewicz Initial commit to sonia.
pusewicz authored
44
42a54ac @pusewicz Add initial documentation
pusewicz authored
45 Spec::Rake::SpecTask.new(:rcov) do |spec|
46 spec.libs << 'lib' << 'spec'
47 spec.pattern = 'spec/**/*_spec.rb'
48 spec.rcov = true
49 end
5529c05 @pusewicz Initial commit to sonia.
pusewicz authored
50
42a54ac @pusewicz Add initial documentation
pusewicz authored
51 task :spec => :check_dependencies
52 task :default => :spec
53 rescue LoadError
54 task :spec do
55 abort "RSpec is not available. In order to run rspec, you must: sudo gem install rspec"
56 end
57 end
5529c05 @pusewicz Initial commit to sonia.
pusewicz authored
58
59 begin
60 require 'cucumber/rake/task'
61 Cucumber::Rake::Task.new(:features)
62
63 task :features => :check_dependencies
64 rescue LoadError
65 task :features do
66 abort "Cucumber is not available. In order to run features, you must: sudo gem install cucumber"
67 end
68 end
69
70 begin
71 require 'yard'
72 YARD::Rake::YardocTask.new
73 rescue LoadError
74 task :yardoc do
75 abort "YARD is not available. In order to run yardoc, you must: sudo gem install yard"
76 end
77 end
Something went wrong with that request. Please try again.