Sha256: bda51b12a338c1dd80fcc55a9ae221ff88d5701c7cb8a7bd024ae7ccd3bbf964

Contents?: true

Size: 1.08 KB

Versions: 1

Compression:

Stored size: 1.08 KB

Contents

require 'rubygems'
require 'bundler'

begin
  Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
  $stderr.puts e.message
  $stderr.puts "Run `bundle install` to install missing gems."
  exit e.status_code
end

require 'rake'
require 'rspec/core/rake_task'

require 'jeweler'

Jeweler::Tasks.new do |gem|
  gem.name = "gem-licenses"
  gem.homepage = "http://github.com/dblock/gem-licenses"
  gem.license = "MIT"
  gem.summary = "List all gem licenses."
  gem.description = "Attempts to figure out what licenses various gems use."
  gem.email = "dblock@dblock.org"
  gem.authors = [ "Daniel Doubrovkine" ]
end

Jeweler::RubygemsDotOrgTasks.new

RSpec::Core::RakeTask.new(:spec) do |spec|
  spec.pattern = "spec/**/*_spec.rb"
end

task :default => :spec

require 'gem_licenses'

task :licenses do
  Gem.licenses.each do |license, gems| 
    puts "#{license}"
    puts "=" * license.length
    gems.sort_by { |gem| gem.name }.each do |gem|
      puts "* #{gem.name} #{gem.version} (#{gem.homepage}) - #{gem.summary.strip}"
      puts gem.full_gem_path
    end
    puts ""
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gem-licenses-0.1.2 Rakefile