File: 0002-drop-git-for-simplecov.patch

package info (click to toggle)
ruby-aruba 2.1.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,972 kB
  • sloc: ruby: 7,151; javascript: 6,850; makefile: 5
file content (28 lines) | stat: -rw-r--r-- 936 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
21
22
23
24
25
26
27
28
From: Hideki Yamane <henrich@debian.org>
Date: Sun, 15 Sep 2019 22:09:52 +0900
Subject: drop git for simplecov

---
 .simplecov | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/.simplecov b/.simplecov
index d4f5685..8284349 100644
--- a/.simplecov
+++ b/.simplecov
@@ -10,14 +10,7 @@ SimpleCov.configure do
   add_filter "Rakefile"
   add_filter "lib/tasks"
 
-  #
-  # Changed Files in Git Group
-  # @see http://fredwu.me/post/35625566267/simplecov-test-coverage-for-changed-files-only
-  untracked         = `git ls-files --exclude-standard --others`
-  unstaged          = `git diff --name-only`
-  staged            = `git diff --name-only --cached`
-  all               = untracked + unstaged + staged
-  changed_filenames = all.split("\n")
+  changed_filenames = Dir['**/*'].reject { |f| f =~ %r{^debian/} }
 
   add_group "Changed" do |source_file|
     changed_filenames.select do |changed_filename|