File: pathname2.gemspec

package info (click to toggle)
ruby-pathname2 1.8.1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 312 kB
  • sloc: ruby: 2,033; makefile: 2
file content (47 lines) | stat: -rw-r--r-- 1,919 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
require 'rubygems'
require 'rake'

Gem::Specification.new do |spec|
  spec.name        = 'pathname2'
  spec.version     = '1.8.1'
  spec.author      = 'Daniel J. Berger'
  spec.license     = 'Apache-2.0'
  spec.email       = 'djberg96@gmail.com'
  spec.homepage    = 'https://github.com/djberg96/pathname2'
  spec.summary     = 'An alternate implementation of the Pathname class'
  spec.files       = Dir['**/*'].reject{ |f| f.include?('git') }
  spec.cert_chain  = ['certs/djberg96_pub.pem']

  spec.extra_rdoc_files  = ['README', 'CHANGES', 'MANIFEST']

  spec.add_dependency('facade')
  spec.add_development_dependency('test-unit')
  spec.add_development_dependency('rake')

  spec.metadata = {
    'homepage_uri'      => 'https://github.com/djberg96/pathname2',
    'bug_tracker_uri'   => 'https://github.com/djberg96/pathname2/issues',
    'changelog_uri'     => 'https://github.com/djberg96/pathname2/blob/ffi/CHANGES',
    'documentation_uri' => 'https://github.com/djberg96/pathname2/wiki',
    'source_code_uri'   => 'https://github.com/djberg96/pathname2',
    'wiki_uri'          => 'https://github.com/djberg96/pathname2/wiki'
  }

  if File::ALT_SEPARATOR
    spec.add_dependency('ffi')
    spec.test_files = FileList['test/windows/*.rb', 'test/test_version.rb']
    spec.platform = Gem::Platform.new(['universal', 'mingw32'])
  else
    spec.test_files = FileList['test/test_pathname.rb', 'test/test_version.rb']
  end

  spec.description = <<-EOF
    The pathname2 library provides an implementation of the Pathname
    class different from the one that ships as part of the Ruby standard
    library. It is a subclass of String, though several methods have been
    overridden to better fit a path context. In addition, it supports file
    URL's as paths, provides additional methods for Windows paths, and
    handles UNC paths on Windows properly. See the README file for more
    details.
  EOF
end