Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 59 lines (51 sloc) 1.69 kb
6674a38 @jot Initial commit to notifo.
authored
1 require 'rubygems'
2 require 'rake'
3
4 begin
5 require 'jeweler'
6 Jeweler::Tasks.new do |gem|
7 gem.name = "notifo"
bf6a8fe @jot initial commit
authored
8 gem.summary = "A library for using the Notifo iPhone notifications service."
9 gem.description = "A library for using Notifo. Notifo is a way for users to receive mobile notifications for anything, more at http://notifo.com. This gem uses John Nunemaker's awesome HTTParty."
6674a38 @jot Initial commit to notifo.
authored
10 gem.email = "jonathan.markwell@gmail.com"
11 gem.homepage = "http://github.com/jot/notifo"
bf6a8fe @jot initial commit
authored
12 gem.authors = ["Jonathan Markwell"]
13 gem.add_dependency "httparty", "~>0.4.5"
6674a38 @jot Initial commit to notifo.
authored
14 gem.add_development_dependency "thoughtbot-shoulda"
15 # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
16 end
bf6a8fe @jot initial commit
authored
17 Jeweler::GemcutterTasks.new
6674a38 @jot Initial commit to notifo.
authored
18 rescue LoadError
19 puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
20 end
21
22 require 'rake/testtask'
23 Rake::TestTask.new(:test) do |test|
24 test.libs << 'lib' << 'test'
25 test.pattern = 'test/**/*_test.rb'
26 test.verbose = true
27 end
28
29 begin
30 require 'rcov/rcovtask'
31 Rcov::RcovTask.new do |test|
32 test.libs << 'test'
33 test.pattern = 'test/**/*_test.rb'
34 test.verbose = true
35 end
36 rescue LoadError
37 task :rcov do
38 abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
39 end
40 end
41
42 task :test => :check_dependencies
43
44 task :default => :test
45
46 require 'rake/rdoctask'
47 Rake::RDocTask.new do |rdoc|
48 if File.exist?('VERSION')
49 version = File.read('VERSION')
50 else
51 version = ""
52 end
53
54 rdoc.rdoc_dir = 'rdoc'
55 rdoc.title = "notifo #{version}"
56 rdoc.rdoc_files.include('README*')
57 rdoc.rdoc_files.include('lib/**/*.rb')
58 end
Something went wrong with that request. Please try again.