[DRE-commits] [ruby-pathname2] 01/02: Use fixed gemspec
Hleb Valoshka
tsfgnu-guest at moszumanska.debian.org
Mon Sep 19 13:02:36 UTC 2016
This is an automated email from the git hooks/post-receive script.
tsfgnu-guest pushed a commit to branch master
in repository ruby-pathname2.
commit a9e9180079d03701bd6b6499f3ad97f1a55e4952
Author: Hleb Valoshka <375gnu at gmail.com>
Date: Mon Sep 19 15:56:52 2016 +0300
Use fixed gemspec
---
debian/pathname2.gemspec | 38 ++++++++++++++++++++++++++++++++++++++
debian/rules | 2 +-
2 files changed, 39 insertions(+), 1 deletion(-)
diff --git a/debian/pathname2.gemspec b/debian/pathname2.gemspec
new file mode 100644
index 0000000..eec5bce
--- /dev/null
+++ b/debian/pathname2.gemspec
@@ -0,0 +1,38 @@
+require 'rubygems'
+require 'rake'
+
+Gem::Specification.new do |spec|
+ spec.name = 'pathname2'
+ spec.version = '1.8.0'
+ spec.author = 'Daniel J. Berger'
+ spec.license = 'Apache 2.0'
+ spec.email = 'djberg96 at 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')
+
+ 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
diff --git a/debian/rules b/debian/rules
index acfc5fe..fe932fd 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,7 +9,7 @@
#export DH_RUBY_IGNORE_TESTS=ruby2.1 ruby2.2
#
# If you need to specify the .gemspec (eg there is more than one)
-#export DH_RUBY_GEMSPEC=gem.gemspec
+export DH_RUBY_GEMSPEC=debian/pathname2.gemspec
#
# Uncomment to check dependencies during build:
# export GEM2DEB_TEST_RUNNER = --check-dependencies
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-pathname2.git
More information about the Pkg-ruby-extras-commits
mailing list