Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 34 lines (27 sloc) 0.831 kB
23e3ad3 @sferik Make Rakefile executable
sferik authored
1 #!/usr/bin/env rake
59ecd8d Initial test coverage for option parsing and command dispatch.
Marcel Molina authored
2 require 'rake/testtask'
95112a4 @sferik Replace deprecated rake/gempackagetask with rubygems/package_task
sferik authored
3 require 'rubygems/package_task'
59ecd8d Initial test coverage for option parsing and command dispatch.
Marcel Molina authored
4
5 task :default => :test
6
7 Rake::TestTask.new do |test|
8 test.pattern = 'test/*_test.rb'
9 test.verbose = true
10 end
11
9a0a5b0 Add gem generating task and add MIT license.
Marcel Molina authored
12 namespace :dist do
747fd09 @sferik Move gemspec into a file (prepare for Bundler)
sferik authored
13 spec = Gem::Specification.load('twurl.gemspec')
9a0a5b0 Add gem generating task and add MIT license.
Marcel Molina authored
14
95112a4 @sferik Replace deprecated rake/gempackagetask with rubygems/package_task
sferik authored
15 Gem::PackageTask.new(spec) do |pkg|
9a0a5b0 Add gem generating task and add MIT license.
Marcel Molina authored
16 pkg.need_tar_gz = true
17 pkg.package_files.include('{lib,bin,test}/**/*')
18 pkg.package_files.include('README')
19 pkg.package_files.include('COPYING')
20 pkg.package_files.include('INSTALL')
21 pkg.package_files.include('Rakefile')
22 end
23
24 task :spec do
25 puts spec.to_ruby
26 end
27
b05a1da Stick Options on Twurl since Twurl can be used as a library and not j…
Marcel Molina authored
28 desc "Unpack current version of library into the twitter.com vendor directory"
29 task :unpack_to_vendor => :repackage do
30 cd 'pkg'
31 system("gem unpack '#{spec.name}-#{spec.version}.gem' --target=$TWITTER/vendor/gems")
32 end
747fd09 @sferik Move gemspec into a file (prepare for Bundler)
sferik authored
33 end
Something went wrong with that request. Please try again.