[DRE-commits] [ruby-pygments.rb] 02/09: Remove-gemspec-git-ls-files

Cédric Boutillier boutil at moszumanska.debian.org
Sun Nov 26 21:11:29 UTC 2017


This is an automated email from the git hooks/post-receive script.

boutil pushed a commit to branch patch-queue/master
in repository ruby-pygments.rb.

commit c344315e59ab39ca79cf5524418e4bf728d9824f
Author: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.alioth.debian.org>
Date:   Fri Sep 29 22:48:27 2017 +0200

    Remove-gemspec-git-ls-files
    
    
    Gbp-Pq: Name 0001-Remove-gemspec-git-ls-files.patch
---
 pygments.rb.gemspec | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/pygments.rb.gemspec b/pygments.rb.gemspec
index 4a7cac2..99e01a6 100644
--- a/pygments.rb.gemspec
+++ b/pygments.rb.gemspec
@@ -1,4 +1,8 @@
-require File.expand_path('../lib/pygments/version', __FILE__)
+version_file = File.expand_path('../lib/pygments/version.rb', __FILE__)
+if not File.exists?(version_file)
+  version_file = 'pygments/version'
+end
+require version_file
 
 Gem::Specification.new do |s|
   s.name = 'pygments.rb'
@@ -21,5 +25,5 @@ Gem::Specification.new do |s|
   # s.extensions = ['ext/extconf.rb']
   s.require_paths = ['lib']
 
-  s.files = `git ls-files`.split("\n").select { |f| !File.symlink?(f) }
+  #s.files = `git ls-files`.split("\n").select { |f| !File.symlink?(f) }
 end

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-pygments.rb.git



More information about the Pkg-ruby-extras-commits mailing list