Sha256: 87a8a35e2f5bc67f546ebb5b78002f287e76fddaab6f6e50a1ea8de7bcfc2160

Contents?: true

Size: 879 Bytes

Versions: 10

Compression:

Stored size: 879 Bytes

Contents

# encoding: utf-8

require 'jeweler'

def readme
  File.read(File.join(File.dirname(__FILE__), '../README.md'))
end

def remove_badges(s)
  s.gsub(/^\[![^\n]+\n/, '')
end

def join_lines(s)
  s.gsub(/\n/, ' ').strip
end

def description
  unless (desc = readme[/\A#[^\n]*\n*(.*?)\n*^#/m, 1])
    raise "Failed to extract description from readme"
  end
  desc = remove_badges(desc)
  desc = join_lines(desc)
  desc
end

Jeweler::Tasks.new do |gem|
  # gem is a Gem::Specification... see
  # http://docs.rubygems.org/read/chapter/20 for more options
  gem.name = 'cute_print'
  gem.homepage = 'http://github.com/wconrad/cute_print'
  gem.license = 'MIT'
  gem.summary = %Q{print debug to stderr, with flair}
  gem.description = description
  gem.email = 'wconrad@yagni.com'
  gem.authors = ['Wayne Conrad']
  # dependencies defined in Gemfile
end

Jeweler::RubygemsDotOrgTasks.new

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
cute_print-1.1.4 tasks/jeweler.rake
cute_print-1.1.3 tasks/jeweler.rake
cute_print-1.1.2 tasks/jeweler.rake
cute_print-1.1.1 tasks/jeweler.rake
cute_print-1.1.0 tasks/jeweler.rake
cute_print-1.0.1 tasks/jeweler.rake
cute_print-1.0.0 tasks/jeweler.rake
cute_print-0.4.0 tasks/jeweler.rake
cute_print-0.3.0 tasks/jeweler.rake
cute_print-0.2.0 tasks/jeweler.rake