Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 37 lines (31 sloc) 1.066 kb
f173ef9 @adamsanderson Initial commit.
adamsanderson authored
1 require 'rake'
2 require 'rake/testtask'
3 require 'rake/rdoctask'
4
5 begin
6 require 'jeweler'
7 Jeweler::Tasks.new do |s|
8 s.name = "open_gem"
f348a50 @adamsanderson Fixing up docs
adamsanderson authored
9 s.summary = "Gem Command to easily open a ruby gem with the editor of your choice."
ae1a294 @adamsanderson Fixing up spec and docs.
adamsanderson authored
10 s.description = <<-DESC
11 Open a gem's source directory with either the default editor, or a specified command.
12 DESC
f173ef9 @adamsanderson Initial commit.
adamsanderson authored
13 s.email = "netghost@gmail.com"
14 s.homepage = "http://github.com/adamsanderson/open_gem"
dfddaa2 @adamsanderson Trying to migrate to gem cutter and get everything in order...
adamsanderson authored
15 s.rubyforge_project = "opengem"
f173ef9 @adamsanderson Initial commit.
adamsanderson authored
16 s.authors = ["Adam Sanderson"]
ae1a294 @adamsanderson Fixing up spec and docs.
adamsanderson authored
17 s.has_rdoc = false
f173ef9 @adamsanderson Initial commit.
adamsanderson authored
18 s.files = FileList["[A-Z]*", "{bin,lib,test}/**/*"]
9284648 @adamsanderson Adding some tests, hooray for test later development.
adamsanderson authored
19
20 # Testing
21 s.test_files = FileList["test/**/*_test.rb"]
50b4b3c switched to using launchy to launch browser to observe system defaults
Nick Gauthier authored
22 s.add_dependency 'launchy', '~> 0.3.5'
5664d68 @adamsanderson Trying to get GitHub to love my gem.
adamsanderson authored
23 s.add_development_dependency 'mocha', '~> 0.9.5'
f173ef9 @adamsanderson Initial commit.
adamsanderson authored
24 end
25
26 rescue LoadError
27 puts "Jeweler not available. Install it for jeweler-related tasks with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
28 end
29
30 Rake::TestTask.new do |t|
31 t.libs << 'lib'
32 t.pattern = 'test/**/*_test.rb'
33 t.verbose = false
34 end
35
50b4b3c switched to using launchy to launch browser to observe system defaults
Nick Gauthier authored
36 task :default => :test
Something went wrong with that request. Please try again.