File: remove_git_ls_files.patch

package info (click to toggle)
ruby-em-spec 0.2.7-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 172 kB
  • sloc: ruby: 500; makefile: 3
file content (22 lines) | stat: -rw-r--r-- 838 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
Description: Remove git ls-files command from gemspec
Author: Lucas Albuquerque Medeiros de Moura <lucas.moura128@gmail.com>
Last-updated: 2016-07-15
Forwarded: not-needed
Bug: not-needed

--- a/em-spec.gemspec
+++ b/em-spec.gemspec
@@ -10,11 +10,11 @@ Gem::Specification.new do |s|
   s.summary = "BDD for Ruby/EventMachine"
   s.description = "Simple BDD API for testing asynchronous Ruby/EventMachine code"
   s.email = %q{schmurfy@gmail.com}
-  s.files = `git ls-files`.split("\n")
+  s.files = Dir.glob('**/*')
   s.homepage = %q{https://github.com/joshbuddy/em-spec}
   s.require_paths = ["lib"]
   s.rubygems_version = %q{1.3.7}
-  s.test_files = `git ls-files`.split("\n").select{|f| f =~ /^test/}
+  s.test_files = Dir.glob('**/*').select{|f| f =~ /^test/}
   s.rubyforge_project = 'em-spec'
 
   s.add_dependency 'eventmachine'