norman/friendly_id

View on GitHub
friendly_id.gemspec

Summary

Maintainability
Test Coverage
require File.expand_path("../lib/friendly_id/version", __FILE__)

Gem::Specification.new do |s|
  s.name = "friendly_id"
  s.version = FriendlyId::VERSION
  s.authors = ["Norman Clarke", "Philip Arndt"]
  s.email = ["norman@njclarke.com", "p@arndt.io"]
  s.homepage = "https://github.com/norman/friendly_id"
  s.summary = "A comprehensive slugging and pretty-URL plugin."
  s.files = `git ls-files`.split("\n")
  s.test_files = `git ls-files -- {test}/*`.split("\n")
  s.require_paths = ["lib"]
  s.license = "MIT"

  s.required_ruby_version = ">= 2.1.0"

  s.add_dependency "activerecord", ">= 4.0.0"

  s.add_development_dependency "coveralls"
  s.add_development_dependency "railties", ">= 4.0"
  s.add_development_dependency "minitest", "~> 5.3"
  s.add_development_dependency "mocha", "~> 2.1"
  s.add_development_dependency "yard"
  s.add_development_dependency "i18n"
  s.add_development_dependency "ffaker"
  s.add_development_dependency "simplecov"

  s.description = "FriendlyId is the \"Swiss Army bulldozer\" of slugging " \
    "and permalink plugins for Active Record. It lets you create pretty URLs " \
    "and work with human-friendly strings as if they were numeric ids."

  s.cert_chain = [File.expand_path("certs/parndt.pem", __dir__)]
  if $PROGRAM_NAME.end_with?("gem") && ARGV.include?("build") && ARGV.include?(__FILE__)
    s.signing_key = File.expand_path("~/.ssh/gem-private_key.pem")
  end
end