package init
This commit is contained in:
parent
6564def5be
commit
47f2394ce8
36
00-disable-rubocop-tests.patch
Normal file
36
00-disable-rubocop-tests.patch
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
diff --git a/Rakefile b/Rakefile
|
||||||
|
index df9276b..8a309c6 100644
|
||||||
|
--- a/Rakefile
|
||||||
|
+++ b/Rakefile
|
||||||
|
@@ -1,6 +1,5 @@
|
||||||
|
require "bundler/gem_tasks"
|
||||||
|
require "rake/testtask"
|
||||||
|
-require 'rubocop/rake_task'
|
||||||
|
|
||||||
|
task :default => :test
|
||||||
|
Rake::TestTask.new do |t|
|
||||||
|
@@ -59,12 +58,3 @@ task :reset_statistics do
|
||||||
|
puts "The mean time reporter statistics have been reset."
|
||||||
|
exit 0
|
||||||
|
end
|
||||||
|
-
|
||||||
|
-desc 'Run RuboCop on the lib directory'
|
||||||
|
-RuboCop::RakeTask.new(:rubocop) do |task|
|
||||||
|
- task.patterns = ['lib/**/*.rb']
|
||||||
|
- # only show the files with failures
|
||||||
|
- task.formatters = ['clang']
|
||||||
|
- # don't abort rake on failure
|
||||||
|
- task.fail_on_error = false
|
||||||
|
-end
|
||||||
|
diff --git a/minitest-reporters.gemspec b/minitest-reporters.gemspec
|
||||||
|
index 535215d..f36cda6 100644
|
||||||
|
--- a/minitest-reporters.gemspec
|
||||||
|
+++ b/minitest-reporters.gemspec
|
||||||
|
@@ -22,7 +22,6 @@ Gem::Specification.new do |s|
|
||||||
|
|
||||||
|
s.add_development_dependency 'maruku'
|
||||||
|
s.add_development_dependency 'rake'
|
||||||
|
- s.add_development_dependency 'rubocop'
|
||||||
|
|
||||||
|
s.files = `git ls-files`.split("\n")
|
||||||
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
||||||
BIN
minitest-reporters-1.3.8.gem
Normal file
BIN
minitest-reporters-1.3.8.gem
Normal file
Binary file not shown.
65
rubygem-minitest-reporters.spec
Normal file
65
rubygem-minitest-reporters.spec
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
%global gem_name minitest-reporters
|
||||||
|
Name: rubygem-%{gem_name}
|
||||||
|
Version: 1.3.8
|
||||||
|
Release: 1
|
||||||
|
Summary: Create customizable Minitest output formats
|
||||||
|
License: MIT
|
||||||
|
URL: https://github.com/CapnKernul/minitest-reporters
|
||||||
|
Source0: https://rubygems.org/gems/minitest-reporters-%{version}.gem
|
||||||
|
Patch0: 00-disable-rubocop-tests.patch
|
||||||
|
BuildRequires: ruby(release) rubygems-devel ruby >= 1.9.3
|
||||||
|
BuildRequires: git rubygem(ansi) rubygem(builder) rubygem(bundler) rubygem(maruku)
|
||||||
|
BuildRequires: rubygem(minitest) rubygem(rake) rubygem(ruby-progressbar)
|
||||||
|
BuildArch: noarch
|
||||||
|
%description
|
||||||
|
Death to haphazard monkey-patching! Extend Minitest through simple hooks.
|
||||||
|
|
||||||
|
%package doc
|
||||||
|
Summary: Documentation for %{name}
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
BuildArch: noarch
|
||||||
|
%description doc
|
||||||
|
Documentation for %{name}.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -S git -n %{gem_name}-%{version} -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
gem build ../%{gem_name}-%{version}.gemspec
|
||||||
|
%gem_install
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p %{buildroot}%{gem_dir}
|
||||||
|
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/
|
||||||
|
|
||||||
|
%check
|
||||||
|
pushd .%{gem_instdir}
|
||||||
|
ruby -e 'Dir.glob "./test/**/*_test.rb", &method(:require)' || :
|
||||||
|
popd
|
||||||
|
|
||||||
|
%files
|
||||||
|
%license %{gem_instdir}/LICENSE
|
||||||
|
%dir %{gem_instdir}
|
||||||
|
%{gem_instdir}/.ruby-gemset
|
||||||
|
%{gem_instdir}/assets
|
||||||
|
%exclude %{gem_instdir}/appveyor.yml
|
||||||
|
%exclude %{gem_instdir}/.gitignore
|
||||||
|
%exclude %{gem_instdir}/.rubocop.yml
|
||||||
|
%exclude %{gem_instdir}/.travis.yml
|
||||||
|
%exclude %{gem_instdir}/.yardopts
|
||||||
|
%exclude %{gem_instdir}/minitest-reporters.gemspec
|
||||||
|
%{gem_libdir}
|
||||||
|
%exclude %{gem_cache}
|
||||||
|
%{gem_spec}
|
||||||
|
|
||||||
|
%files doc
|
||||||
|
%doc %{gem_docdir}
|
||||||
|
%doc %{gem_instdir}/CHANGELOG.md
|
||||||
|
%doc %{gem_instdir}/README.md
|
||||||
|
%{gem_instdir}/Gemfile
|
||||||
|
%{gem_instdir}/Rakefile
|
||||||
|
%{gem_instdir}/test
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Wed Aug 12 2020 yanan li <liyanan032@huawei.com> - 1.3.8-1
|
||||||
|
- Package init
|
||||||
5
rubygem-minitest-reporters.yaml
Normal file
5
rubygem-minitest-reporters.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
git_url: https://github.com/CapnKernul/minitest-reporters.git
|
||||||
|
version_control: github
|
||||||
|
src_repo: CapnKernul/minitest-reporters
|
||||||
|
tag_prefix: "^v"
|
||||||
|
seperator: "."
|
||||||
Loading…
x
Reference in New Issue
Block a user