File: don%27t_relly_on_git.patch

package info (click to toggle)
ruby-crack 0.4.4-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 2,716 kB
  • sloc: ruby: 859; sh: 39; makefile: 3
file content (20 lines) | stat: -rw-r--r-- 862 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: For ruby integration,dont relly on git
Author: Abhijith PA <abhijith@openmailbox.org>
Date: 29/10/2015

Index: ruby-crack/crack.gemspec
===================================================================
--- ruby-crack.orig/crack.gemspec
+++ ruby-crack/crack.gemspec
@@ -8,8 +8,9 @@ Gem::Specification.new do |gem|
   gem.summary       = %q{Really simple JSON and XML parsing, ripped from Merb and Rails.}
   gem.homepage      = "http://github.com/jnunemaker/crack"
 
-  gem.executables   = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
-  gem.files         = `git ls-files -- lib/*`.split("\n")
+  gem.executables   = Dir.glob('bin/*')
+  gem.files         = Dir.glob('**/*').reject { |s| File.directory?(s) || s =~ /^debian/ }
+
   gem.name          = "crack"
   gem.require_paths = ["lib"]
   gem.version       = Crack::VERSION