Sha256: b193d76b8c348779126c182f3b1768d1685f6d64b83b9f83874e2e0c92619816
Contents?: true
Size: 1.53 KB
Versions: 4
Compression:
Stored size: 1.53 KB
Contents
#!/usr/bin/env rake1.9 # encoding: utf-8 # http://support.runcoderun.com/faqs/builds/how-do-i-run-rake-with-trace-enabled Rake.application.options.trace = true task :setup => ["submodules:init"] namespace :submodules do desc "Init submodules" task :init do sh "git submodule init" end desc "Update submodules" task :update do Dir["vendor/*"].each do |path| if File.directory?(path) && File.directory?(File.join(path, ".git")) Dir.chdir(path) do puts "=> #{path}" puts %x[git reset --hard] puts %x[git fetch] puts %x[git reset origin/master --hard] puts end end end end end task :gem do sh "gem build media-path.gemspec" end desc "Release new version of media-path" task release: ["release:tag", "release:gemcutter"] namespace :release do desc "Create Git tag" task :tag do require_relative "lib/media-path" puts "Creating new git tag #{MediaPath::VERSION} and pushing it online ..." sh "git tag -a -m 'Version #{MediaPath::VERSION}' #{MediaPath::VERSION}" sh "git push --tags" puts "Tag #{MediaPath::VERSION} was created and pushed to GitHub." end desc "Push gem to Gemcutter" task :gemcutter => :gem do puts "Pushing to Gemcutter ..." sh "gem push #{Dir["*.gem"].last}" end end desc "Run specs" task :default => :setup do rubylib = (ENV["RUBYLIB"] || String.new).split(":") libdirs = Dir["vendor/*/lib"] ENV["RUBYLIB"] = (libdirs + rubylib).join(":") exec "./script/spec --options spec/spec.opts spec" end
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
pupu-0.0.2.pre | vendor/media-path/Rakefile |
pupu-0.0.2 | vendor/media-path/Rakefile |
rango-0.1.pre | vendor/media-path/Rakefile |
pupu-0.0.1 | vendor/media-path/Rakefile |