Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 54 lines (46 sloc) 1.369 kb
7c9bbcb @defunkt move to using Echoe
authored
1 require 'rubygems'
2 require 'rake'
3
4 begin
5 require 'echoe'
6
b6df531 @kballard Bump the version to 0.1.3
kballard authored
7 Echoe.new('github', '0.1.3') do |p|
7c9bbcb @defunkt move to using Echoe
authored
8 p.rubyforge_name = 'github'
9 p.summary = "The official `github` command line helper for simplifying your GitHub experience."
10 p.description = "The official `github` command line helper for simplifying your GitHub experience."
11 p.url = "http://github.com/"
37d9cc7 @kballard Add my name to the authors list in the gemspec
kballard authored
12 p.author = ['Chris Wanstrath', 'Kevin Ballard']
7c9bbcb @defunkt move to using Echoe
authored
13 p.email = "chris@ozmm.org"
6704855 @snowblink Removing requirement for launchy. It will enable installation of gem …
snowblink authored
14 # p.dependencies = ["launchy"]
7c9bbcb @defunkt move to using Echoe
authored
15 end
16
17 rescue LoadError => boom
18 puts "You are missing a dependency required for meta-operations on this gem."
19 puts "#{boom.to_s.capitalize}."
d462d2a @defunkt add rakefile with working gemify
authored
20 end
bca9702 @kballard Add spec and rcov_spec tasks to the Rakefile, but only if you have rs…
kballard authored
21
22 # add spec tasks, if you have rspec installed
23 begin
24 require 'spec/rake/spectask'
25
c1a6f99 @kballard Tweak Rakefile spec tasks to be a bit cleaner
kballard authored
26 def spec_task(cmd=nil, rcov=false)
670a1a6 @kballard Hoist the specs into a per-binary spec structure
kballard authored
27 name = "spec"
28 name << ":rcov" if rcov
29 root_name = name.dup
30 cmd ||= "shared"
31 name << ":#{cmd}"
c1a6f99 @kballard Tweak Rakefile spec tasks to be a bit cleaner
kballard authored
32 desc ''
670a1a6 @kballard Hoist the specs into a per-binary spec structure
kballard authored
33 Spec::Rake::SpecTask.new(name) do |t|
34 t.spec_files = FileList["spec#{"/#{cmd}" if cmd}/*_spec.rb"]
35 t.spec_opts = ['--color']
36 if rcov
37 t.rcov = true
38 t.rcov_opts = ['--exclude', '^spec,/gems/']
39 end
40 end
41 task root_name => name
c1a6f99 @kballard Tweak Rakefile spec tasks to be a bit cleaner
kballard authored
42 spec_task cmd, true unless rcov
bca9702 @kballard Add spec and rcov_spec tasks to the Rakefile, but only if you have rs…
kballard authored
43 end
44
670a1a6 @kballard Hoist the specs into a per-binary spec structure
kballard authored
45 desc 'Run specs'
46 task :spec
47 desc 'Run specs using RCov'
48 task :'spec:shared'
49
50 spec_task
c1a6f99 @kballard Tweak Rakefile spec tasks to be a bit cleaner
kballard authored
51 spec_task 'github'
9582b9b @kballard Add gist binary
kballard authored
52 spec_task 'gist'
bca9702 @kballard Add spec and rcov_spec tasks to the Rakefile, but only if you have rs…
kballard authored
53 end
Something went wrong with that request. Please try again.