File: 0002-Replace-gemspec-git-execution.patch

package info (click to toggle)
ruby-commander 4.4.5-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 368 kB
  • sloc: ruby: 1,813; makefile: 5; sh: 4
file content (26 lines) | stat: -rw-r--r-- 3,039 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
23
24
25
26
From: Youhei SASAKI <uwabami@gfd-dennou.org>
Date: Tue, 5 Jun 2018 18:35:21 +0900
Subject: Replace gemspec git execution

Signed-off-by: Youhei SASAKI <uwabami@gfd-dennou.org>
---
 commander.gemspec | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/commander.gemspec b/commander.gemspec
index 08c8890..563e727 100644
--- a/commander.gemspec
+++ b/commander.gemspec
@@ -13,9 +13,9 @@ Gem::Specification.new do |s|
   s.summary     = 'The complete solution for Ruby command-line executables'
   s.description = 'The complete solution for Ruby command-line executables. Commander bridges the gap between other terminal related libraries you know and love (OptionParser, HighLine), while providing many new features, and an elegant API.'
 
-  s.files         = `git ls-files`.split("\n")
-  s.test_files    = `git ls-files -- {test,spec,features}/*`.split("\n")
-  s.executables   = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
+  s.files         = [".gitignore",".rspec",".rubocop.yml",".rubocop_todo.yml",".travis.yml","DEVELOPMENT","Gemfile","History.rdoc","LICENSE","Manifest","README.md","Rakefile","bin/commander","commander.gemspec","debian/changelog","debian/commander.1","debian/compat","debian/control","debian/copyright","debian/patches/0001-Test-suite-adjustments.patch","debian/patches/series","debian/ruby-commander.docs","debian/ruby-commander.manpages","debian/ruby-tests.rake","debian/rules","debian/source/format","debian/tests/control","debian/tests/run-test","debian/watch","lib/commander.rb","lib/commander/blank.rb","lib/commander/command.rb","lib/commander/configure.rb","lib/commander/core_ext.rb","lib/commander/core_ext/array.rb","lib/commander/core_ext/object.rb","lib/commander/delegates.rb","lib/commander/help_formatters.rb","lib/commander/help_formatters/base.rb","lib/commander/help_formatters/terminal.rb","lib/commander/help_formatters/terminal/command_help.erb","lib/commander/help_formatters/terminal/help.erb","lib/commander/help_formatters/terminal_compact.rb","lib/commander/help_formatters/terminal_compact/command_help.erb","lib/commander/help_formatters/terminal_compact/help.erb","lib/commander/import.rb","lib/commander/methods.rb","lib/commander/platform.rb","lib/commander/runner.rb","lib/commander/user_interaction.rb","lib/commander/version.rb","spec/command_spec.rb","spec/configure_spec.rb","spec/core_ext/array_spec.rb","spec/core_ext/object_spec.rb","spec/help_formatters/terminal_compact_spec.rb","spec/help_formatters/terminal_spec.rb","spec/methods_spec.rb","spec/runner_spec.rb","spec/spec_helper.rb","spec/ui_spec.rb"]
+  s.test_files    = ["spec/command_spec.rb","spec/configure_spec.rb","spec/core_ext/array_spec.rb","spec/core_ext/object_spec.rb","spec/help_formatters/terminal_compact_spec.rb","spec/help_formatters/terminal_spec.rb","spec/methods_spec.rb","spec/runner_spec.rb","spec/spec_helper.rb","spec/ui_spec.rb"]
+  s.executables   = ['commander']
   s.require_paths = ['lib']
 
   s.add_runtime_dependency('highline', '~> 1.7.2')