diff --git a/Fix-rubygem-expression_parser-test-failure.patch b/Fix-rubygem-expression_parser-test-failure.patch deleted file mode 100644 index 51ff620dc29805948e72d13c1f7f8306dee42780..0000000000000000000000000000000000000000 --- a/Fix-rubygem-expression_parser-test-failure.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -Naur a/lib/rspec/core/ruby_project.rb b/lib/rspec/core/ruby_project.rb ---- a/lib/rspec/core/ruby_project.rb 2023-08-11 16:28:19.863503691 +0800 -+++ b/lib/rspec/core/ruby_project.rb 2023-08-11 16:29:29.028511667 +0800 -@@ -24,7 +24,7 @@ - end - - def find_first_parent_containing(dir) -- ascend_until {|path| File.exists?(File.join(path, dir))} -+ ascend_until {|path| File.exist?(File.join(path, dir))} - end - - def ascend_until diff --git a/README.en.md b/README.en.md deleted file mode 100644 index 2f21295337af0f963d8ff0714abd2454e5084493..0000000000000000000000000000000000000000 --- a/README.en.md +++ /dev/null @@ -1,36 +0,0 @@ -# rubygem-rspec2-core - -#### Description -Rspec 2 runner and formatters - -#### Software Architecture -Software architecture description - -#### Installation - -1. xxxx -2. xxxx -3. xxxx - -#### Instructions - -1. xxxx -2. xxxx -3. xxxx - -#### Contribution - -1. Fork the repository -2. Create Feat_xxx branch -3. Commit your code -4. Create Pull Request - - -#### Gitee Feature - -1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md -2. Gitee blog [blog.gitee.com](https://blog.gitee.com) -3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) -4. The most valuable open source project [GVP](https://gitee.com/gvp) -5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) -6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/README.md b/README.md index c47efbdc26149f776b8c4455a487e5d8027e940e..87377f9a479cc7a77a6936e51b284478dac11097 100644 --- a/README.md +++ b/README.md @@ -1,37 +1,4 @@ -# rubygem-rspec2-core +Deprecated since Aug 2025 -#### 介绍 -Rspec 2 runner and formatters - -#### 软件架构 -软件架构说明 - - -#### 安装教程 - -1. xxxx -2. xxxx -3. xxxx - -#### 使用说明 - -1. xxxx -2. xxxx -3. xxxx - -#### 参与贡献 - -1. Fork 本仓库 -2. 新建 Feat_xxx 分支 -3. 提交代码 -4. 新建 Pull Request - - -#### 码云特技 - -1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md -2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com) -3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目 -4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目 -5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) -6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) +- https://gitee.com/openeuler/community/pulls/6700 +- https://gitee.com/openeuler/release-management/pulls/2331 diff --git a/rspec-core-2.14.8.gem b/rspec-core-2.14.8.gem deleted file mode 100644 index e3e1bc65f80ef57fc0cb0bd538becaba8d1e8370..0000000000000000000000000000000000000000 Binary files a/rspec-core-2.14.8.gem and /dev/null differ diff --git a/rspec2 b/rspec2 deleted file mode 100644 index a73d710553e89f66f6f6b1132ab5c91dcf5a841f..0000000000000000000000000000000000000000 --- a/rspec2 +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/ruby -# -# This file was modified from the file generated by RubyGems. -# -# The application 'rspec-core' is installed as part of a gem, and -# this file is here to facilitate running it. -# - -require 'rubygems' - -version = "~> 2.14.0" - -if ARGV.first - str = ARGV.first - str = str.dup.force_encoding("BINARY") if str.respond_to? :force_encoding - if str =~ /\A_(.*)_\z/ and Gem::Version.correct?($1) then - version = $1 - ARGV.shift - end -end - -gem 'rspec-core', version -begin - gem 'rspec-mocks', version - gem 'rspec-expectations', version -rescue -end -begin - gem 'rspec', version -rescue -end -load Gem.bin_path('rspec-core', 'rspec', version) diff --git a/rubygem-rspec-core-2.14.8-remove-aruba-dependency.patch b/rubygem-rspec-core-2.14.8-remove-aruba-dependency.patch deleted file mode 100644 index c251e7a50ba10276b7d64aac866248999a8f9df0..0000000000000000000000000000000000000000 --- a/rubygem-rspec-core-2.14.8-remove-aruba-dependency.patch +++ /dev/null @@ -1,65 +0,0 @@ ---- rspec-core-2.14.8/spec/spec_helper.rb.aruba 2017-02-17 16:22:33.309398987 +0900 -+++ rspec-core-2.14.8/spec/spec_helper.rb 2017-02-17 18:53:34.740609923 +0900 -@@ -17,7 +17,7 @@ - Spork.prefork do - require 'rspec/autorun' - require 'autotest/rspec2' -- require 'aruba/api' -+ #require 'aruba/api' - - if RUBY_PLATFORM == 'java' - # Works around https://jira.codehaus.org/browse/JRUBY-5678 -@@ -96,14 +96,53 @@ - end - end - -+ # bollowed from Aruba 0.6.2 -+ class RSpec::Core::ExampleGroup -+ def write_file(file_name, file_content) -+ _create_file(file_name, file_content, false) -+ end -+ -+ def current_dir -+ #File.join(*dirs) -+ # Fixme -+ "tmp/aruba" -+ end -+ -+ def in_current_dir(&block) -+ _mkdir(current_dir) -+ Dir.chdir(current_dir, &block) -+ end -+ -+ def _create_file(file_name, file_content, check_presence) -+ in_current_dir do -+ file_name = File.expand_path(file_name) -+ -+ raise "expected #{file_name} to be present" if check_presence && !File.file?(file_name) -+ -+ _mkdir(File.dirname(file_name)) -+ File.open(file_name, 'w') { |f| f << file_content } -+ end -+ -+ self -+ end -+ -+ def _mkdir(dir_name) -+ dir_name = File.expand_path(dir_name) -+ -+ FileUtils.mkdir_p(dir_name) unless File.directory?(dir_name) -+ end -+ end -+ - RSpec.configure do |c| - # structural - c.alias_it_behaves_like_to 'it_has_behavior' - c.around {|example| Sandboxing.sandboxed { example.run }} - c.include(RSpecHelpers) -+ ''' - c.include Aruba::Api, :example_group => { - :file_path => /spec\/command_line/ - } -+ ''' - - c.expect_with :rspec do |expectations| - expectations.syntax = :expect diff --git a/rubygem-rspec-core-2.14.8-ruby24.patch b/rubygem-rspec-core-2.14.8-ruby24.patch deleted file mode 100644 index 4ad188df89ba02954bc52eeeacddf30a83df513b..0000000000000000000000000000000000000000 --- a/rubygem-rspec-core-2.14.8-ruby24.patch +++ /dev/null @@ -1,22 +0,0 @@ ---- rspec-core-2.14.8/spec/rspec/core/memoized_helpers_spec.rb.ruby24 2017-02-17 16:22:33.306398976 +0900 -+++ rspec-core-2.14.8/spec/rspec/core/memoized_helpers_spec.rb 2017-02-17 19:01:54.597667276 +0900 -@@ -380,7 +380,7 @@ - end - its([:a]) { should eq("Symbol: a") } - its(['a']) { should eq("String: a") } -- its([:b, 'c', 4]) { should eq("Symbol: b; String: c; Fixnum: 4") } -+ its([:b, 'c', 4]) { should eq("Symbol: b; String: c; Integer: 4") } - its(:name) { should eq("George") } - context "when referring to an attribute without the proper array syntax" do - context "it raises an error" do ---- rspec-core-2.14.8/lib/rspec/core/rake_task.rb.ruby24 2017-02-17 16:22:33.288398906 +0900 -+++ rspec-core-2.14.8/lib/rspec/core/rake_task.rb 2017-02-17 16:48:35.937522005 +0900 -@@ -115,7 +115,7 @@ - def initialize(*args, &task_block) - setup_ivars(args) - -- desc "Run RSpec code examples" unless ::Rake.application.last_comment -+ desc "Run RSpec code examples" unless ::Rake.application.last_description - - task name, *args do |_, task_args| - RakeFileUtils.send(:verbose, verbose) do diff --git a/rubygem-rspec2-core.spec b/rubygem-rspec2-core.spec deleted file mode 100644 index 9d599fd9bedbfa268fe8f2160de89c80004e82dc..0000000000000000000000000000000000000000 --- a/rubygem-rspec2-core.spec +++ /dev/null @@ -1,118 +0,0 @@ -%bcond_with bootstrap -%global majorver 2.14.8 -%global rpmminorver .%(echo %preminorver | sed -e 's|^\\.\\.*||') -%global fullver %{majorver}%{?preminorver} -%global gem_name rspec-core -%global rpmgem_name rspec2-core -%global need_bootstrap_set 0 -Summary: Rspec 2 runner and formatters -Name: rubygem-%{rpmgem_name} -Version: %{majorver} -Release: 3 -License: MIT -URL: http://github.com/rspec/rspec-core -Source0: http://rubygems.org/gems/%{gem_name}-%{fullver}.gem -# Fix for ruby24 -Patch0: rubygem-rspec-core-2.14.8-ruby24.patch -# F-26 uses aruba 0.14.x, which uses rspec3 and so incompatible with rspec2. -# Remove aruba dependency -Patch1: rubygem-rspec-core-2.14.8-remove-aruba-dependency.patch -Patch2: Fix-rubygem-expression_parser-test-failure.patch -Source1: rspec2 -BuildRequires: ruby(release) rubygems-devel -%if 0%{?need_bootstrap_set} < 1 -BuildRequires: rubygem(ZenTest) rubygem(nokogiri) rubygem(rake) rubygem(rspec2) -BuildRequires: rubygem(rspec2-expectations) rubygem(aruba) -%endif -Requires: rubygem(rake) -Provides: rubygem(%{rpmgem_name}) = %{version}-%{release} -Obsoletes: rubygem-rspec-core < 2.14.8-1 -BuildArch: noarch -%description -Behaviour Driven Development for Ruby. - -%package doc -Summary: Documentation for %{name} -Requires: %{name} = %{version}-%{release} -Obsoletes: rubygem-rspec-core-doc < %{version}-%{release} -%description doc -This package contains documentation for %{name}. - -%prep -gem unpack %{SOURCE0} -%setup -q -D -T -n %{gem_name}-%{version} -sed -i \ - -e '\@#!/usr/bin/env@d' \ - lib/rspec/core/mocking/with_flexmock.rb -sed -i \ - -e 's|SAFE = 3|SAFE = 1|' \ - spec/support/helper_methods.rb -%patch0 -p1 -%patch1 -p1 -%patch2 -p1 -gem specification %{SOURCE0} -l --ruby > %{gem_name}.gemspec - -%build -gem build %{gem_name}.gemspec -%gem_install - -%install -mkdir -p %{buildroot}%{_prefix} -cp -a .%{_prefix}/* %{buildroot}%{_prefix}/ -mv %{buildroot}%{_bindir}/autospec{,2} -mv %{buildroot}%{_bindir}/rspec{,2} -install -cpm 0755 %{SOURCE1} \ - %{buildroot}%{_bindir}/rspec2 -rm -f %{buildroot}%{gem_instdir}/{.document,.gitignore,.treasure_map.rb,.rspec,.travis.yml,spec.txt,.yardopts} -%if %{with bootstrap} -%if 0%{?need_bootstrap_set} < 1 - -%check -LANG=C.UTF-8 -pushd .%{gem_instdir} -sed -i.bak \ - -e "\@configures streams before command line options@s|do|, :broken => true do|" \ - spec/rspec/core/command_line_spec.rb -sed -i.bak \ - -e "\@produces HTML identical to the one we designed manually@s|do|, :broken => true do|" \ - spec/rspec/core/formatters/text_mate_formatter_spec.rb -sed -i.bak \ - -e "\@warns when HOME env var is not set@s|do|, :broken => true do|" \ - spec/rspec/core/configuration_options_spec.rb -sed -i.bak spec/rspec/core/example_spec.rb \ - -e "\@leaves a raised exception unmodified@s|do|, :broken => true do|" -sed -i.bak spec/support/mathn_integration_support.rb \ - -e "\@require.*mathn@d" -sed -i.bak spec/rspec/core/memoized_helpers_spec.rb \ - -e "\@is still a private method@s|do|, :broken => true do|" -ruby -rrubygems -Ilib/ %{buildroot}%{_bindir}/rspec2 spec || \ - ruby -rrubygems -Ilib/ %{buildroot}%{_bindir}/rspec2 spec --tag ~broken -popd -%endif -%endif - -%files -%dir %{gem_instdir} -%license %{gem_instdir}/License.txt -%doc %{gem_instdir}/*.md -%{_bindir}/autospec2 -%{_bindir}/rspec2 -%{gem_instdir}/exe/ -%{gem_instdir}/lib/ -%exclude %{gem_cache} -%{gem_spec} - -%files doc -%{gem_docdir} -%{gem_instdir}/features/ -%exclude %{gem_instdir}/spec/ - -%changelog -* Fri Aug 11 2023 yaoxin - 2.14.8-3 -- Fix rubygem-expression_parser test failure caused by ruby upgrade to 3.2.2 - -* Mon Sep 7 2020 liyanan - 2.14.8-2 -- fix build fail - -* Mon Aug 24 2020 huangyangke - 2.14.8-1 -- package init diff --git a/rubygem-rspec2-core.yaml b/rubygem-rspec2-core.yaml deleted file mode 100644 index a7b118b605279f0e0071fec44da76808d226b768..0000000000000000000000000000000000000000 --- a/rubygem-rspec2-core.yaml +++ /dev/null @@ -1,4 +0,0 @@ -version_control: github -src_repo: rspec/rspec-core -tag_prefix: "^v" -separator: "."