Sha256: d66618e9a13581ebf414d9e77a2f4120abbfb9f0ffb48c8e3785fdc6d1e296f1

Contents?: true

Size: 1.51 KB

Versions: 2

Compression:

Stored size: 1.51 KB

Contents

lib = File.expand_path("../lib", __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "uuid/ncname/version"

Gem::Specification.new do |spec|
  spec.name          = "uuid-ncname"
  spec.version       = UUID::NCName::VERSION
  spec.authors       = ["Dorian Taylor"]
  spec.email         = ["code@doriantaylor.com"]

  spec.homepage      = "https://github.com/doriantaylor/rb-uuid-ncname"
  spec.summary       = %q{Format a UUID as a valid NCName.}
  spec.description   = <<DESC
This module creates an isomorphic representation of a UUID which is
guaranteed to fit into the grammar of the XML NCName construct, which
also happens to exhibit (modulo case and hyphens) the same constraints
as identifiers in nearly all programming languages. Provides case
sensitive (Base64) and case-insensitive (Base32) variants.
DESC

  spec.files         = `git ls-files -z`.split("\x0").reject do |f|
    f.match(%r{^(test|spec|features)/})
  end
  spec.bindir        = "exe"
  spec.executables   = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
  spec.require_paths = ["lib"]

  # surprisingly do not need this
  # spec.add_runtime_dependency 'uuidtools', '~> 2.1.5'
  spec.add_runtime_dependency 'base32',    '~> 0.3.2'

  spec.add_development_dependency 'bundler', '~> 1.16'
  spec.add_development_dependency 'rake',    '~> 10.0'
  spec.add_development_dependency 'rspec',   '~> 3.0'

  # only need it for testing, who knew
  # spec.add_development_dependency 'uuidtools', '~> 2.1.5'
  # actually don't even need it for that
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
uuid-ncname-0.1.1 uuid-ncname.gemspec
uuid-ncname-0.1.0 uuid-ncname.gemspec