diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2013-10-23 21:37:05 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2013-10-23 21:37:05 -0700 |
commit | 872073ee055ff8e72251e6483a7c4d7c1558013e (patch) | |
tree | 66a5e2937c23b239331ce46a9dd865fdc5350ab2 /Rakefile | |
download | ffi-yajl-872073ee055ff8e72251e6483a7c4d7c1558013e.tar.gz |
gem structure and POC library code
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..501ffed --- /dev/null +++ b/Rakefile @@ -0,0 +1,25 @@ +require 'rspec/core/rake_task' +require 'rubygems/package_task' + +Dir[File.expand_path("../*gemspec", __FILE__)].reverse.each do |gemspec_path| + gemspec = eval(IO.read(gemspec_path)) + Gem::PackageTask.new(gemspec).define +end + +require 'ffi_yajl/version' + +desc "Run all specs in spec directory" +RSpec::Core::RakeTask.new(:spec) do |t| + t.pattern = FileList['spec/**/*_spec.rb'] +end + +desc "Build it and ship it" +task :ship => [:clean, :gem] do + sh("git tag #{Mixlib::ShellOut::VERSION}") + sh("git push --tags") + Dir[File.expand_path("../pkg/*.gem", __FILE__)].reverse.each do |built_gem| + sh("gem push #{built_gem}") + end +end + +task :default => :spec |