Sha256: 60b337f6f374c2e9be2350d9e28bea97142d61ea670da9cd8051a97931b345b7

Contents?: true

Size: 1.35 KB

Versions: 7

Compression:

Stored size: 1.35 KB

Contents

namespace :gem do
  begin
    require 'jeweler'
    Jeweler::Tasks.new do |gemspec|
      gemspec.name = "xebec"
      gemspec.summary = "Navigation helpers"
      gemspec.description = "Helpers for generating navigation bars"
      gemspec.email = "james.a.rosen@gmail.com"
      gemspec.homepage = "http://github.com/jamesarosen/xebec"
      gemspec.authors = ["James A. Rosen"]
      gemspec.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Xebec Documentation", "--charset", "utf-8"]
      gemspec.platform = Gem::Platform::RUBY
      gemspec.add_development_dependency 'shoulda', '~> 2.10.3'
      gemspec.add_development_dependency 'mocha', '~> 0.9.8'
      gemspec.add_development_dependency 'redgreen', '~> 1.2.2'
    end
  rescue LoadError
    puts "Jeweler not available. Install it with [sudo] gem install jeweler -s http://gemscutter.org"
  end
  
  task :push => 'gem:build' do
    command = ('gem push')
    command << " -p $#{ENV['http_proxy']}" if ENV['http_proxy'] && !ENV['http_proxy'].empty?
    command << " #{latest_gem}"
    puts "Pushing gem..."
    IO.popen(command) { |io| io.each { |line| puts '  ' + line } }
  end
  
  def latest_gem
    result = File.expand_path(Dir.glob(File.join(File.dirname(__FILE__), '..', 'pkg', '*.gem')).sort.last)
    abort "No gems found in pkg/. Did you run gem:build?" if result.nil?
    result
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
xebec-2.6.0 developer_tasks/gem.rake
xebec-2.5.2 developer_tasks/gem.rake
xebec-2.5.1 developer_tasks/gem.rake
xebec-2.5.0 developer_tasks/gem.rake
xebec-2.4.0 developer_tasks/gem.rake
xebec-2.3.0 developer_tasks/gem.rake
xebec-2.2.0 developer_tasks/gem.rake