Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
0f7bec647b
!12 Update to version 5.3.0
From: @wang--ge 
Reviewed-by: @lyn1001 
Signed-off-by: @lyn1001
2023-11-16 09:23:50 +00:00
wang--ge
dddcc8b513 update to version 5.3.0 2023-11-16 16:17:56 +08:00
openeuler-ci-bot
301df621c6
!11 升级rubygem-shoulda-matchers以修复ruby升级导致的rubygem-shoulda-matchers编译失败问题
From: @wu-leilei 
Reviewed-by: @small_leek 
Signed-off-by: @small_leek
2023-01-29 00:49:03 +00:00
wu-leilei
482ef90c14 update to 5.1.0 2023-01-17 14:54:09 +08:00
openeuler-ci-bot
d8f3196046
!8 Package upgrade
From: @lyn1001 
Reviewed-by: @small_leek 
Signed-off-by: @small_leek
2022-06-30 06:32:03 +00:00
lyn1001
0115a8caa3 package upgrade 2022-06-29 19:01:30 +08:00
openeuler-ci-bot
0282e4c06a
!5 [sync] PR-3: fix build error
From: @openeuler-sync-bot 
Reviewed-by: @shinwell_hu 
Signed-off-by: @shinwell_hu
2022-03-30 08:36:28 +00:00
lyn1001
12a0fa8580 fix build error
(cherry picked from commit 1a218eab759e825f9253a9d5d4b181c3771dbe54)
2022-03-04 16:50:15 +08:00
openeuler-ci-bot
6da6bdc517 !1 Package init
Merge pull request !1 from lyn/master
2020-09-01 16:55:40 +08:00
lyn1001
2556d57cbc package init 2020-08-28 14:20:55 +08:00
3 changed files with 120 additions and 0 deletions

View File

@ -0,0 +1,120 @@
%global gem_name shoulda-matchers
Name: rubygem-%{gem_name}
Version: 5.3.0
Release: 1
Summary: Making tests easy on the fingers and eyes
License: MIT
URL: https://github.com/thoughtbot/shoulda-matchers
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
# git clone https://github.com/thoughtbot/shoulda-matchers.git && cd shoulda-matchers
# git archive -v -o shoulda-matchers-5.3.0-specs.tar.gz v5.3.0 spec/
Source1: %{gem_name}-%{version}-specs.tar.gz
BuildRequires: ruby(release) rubygems-devel ruby rubygem(bcrypt) rubygem(jbuilder)
BuildRequires: rubygem(puma) rubygem(rails) rubygem(rails-controller-testing) rubygem(rspec) rubygem(rspec-rails)
BuildRequires: rubygem(shoulda-context) rubygem(spring) rubygem(sqlite3)
BuildArch: noarch
%description
shoulda-matchers provides Test::Unit- and RSpec-compatible one-liners that
test common Rails functionality. These tests would otherwise be much longer,
more complex, and error-prone.
%package doc
Summary: Documentation for %{name}
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
%description doc
Documentation for %{name}.
%prep
%setup -q -n %{gem_name}-%{version} -b 1
%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}
ln -s %{_builddir}/spec spec
cat << GF > Gemfile
source 'https://rubygems.org'
gem 'actiontext'
gem 'bcrypt'
gem 'rails'
gem 'rails-controller-testing'
gem 'rspec'
gem 'rspec-rails'
gem 'sqlite3'
gem 'spring'
GF
sed -i "/require 'pry/ s/^/#/" spec/spec_helper.rb
sed -i "/current_bundle/ s/^/#/" \
spec/acceptance_spec_helper.rb \
spec/support/unit/load_environment.rb
sed -i "/CurrentBundle/ s/^/#/" \
spec/acceptance_spec_helper.rb \
spec/support/unit/load_environment.rb
sed -i '/def rails_new_command/,/^ end$/ {
/rails new/ s/"$/ --skip-git --skip-asset-pipeline&/
}' \
spec/support/unit/rails_application.rb
sed -i '/def rails_new_command/,/^ end$/ {
/rails new/ s/"$/ --skip-git --skip-asset-pipeline&/
}' \
spec/support/acceptance/helpers/step_helpers.rb
sed -i '/def load_file/,/end/ s/::load_file/::unsafe_load_file/' spec/support/tests/database_configuration.rb
bundle exec rspec spec/unit
sed -i "/add_gem 'spring-commands-rspec'/ s/^/#/" spec/support/acceptance/helpers/step_helpers.rb
sed -i "/updating_bundle do |bundle|/a \\
bundle.add_gem 'spring'" spec/support/acceptance/helpers/step_helpers.rb
sed -i "/updating_bundle do |bundle|/a \\
bundle.remove_gem 'capybara'" spec/support/acceptance/helpers/step_helpers.rb
sed -i "/updating_bundle do |bundle|/a \\
bundle.remove_gem 'selenium-webdriver'" spec/support/acceptance/helpers/step_helpers.rb
sed -i "/updating_bundle do |bundle|/a \\
bundle.remove_gem 'debug'" spec/support/acceptance/helpers/step_helpers.rb
bundle exec rspec spec/acceptance
popd
%files
%dir %{gem_instdir}
%license %{gem_instdir}/LICENSE
%{gem_libdir}
%exclude %{gem_cache}
%{gem_spec}
%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/README.md
%doc %{gem_instdir}/docs
%{gem_instdir}/shoulda-matchers.gemspec
%changelog
* Thu Nov 16 2023 Ge Wang <wang__ge@126.com> - 5.3.0-1
- update to 5.3.0
* Tue Jan 17 2023 wulei <wulei80@h-partners.com> - 5.1.0-1
- update to 5.1.0
* Wed Jun 29 2022 liyanan <liyanan32@h-partners.com> - 4.5.1-1
- Upgrade to version 4.5.1
* Thu Mar 3 2022 liyanan <liyanan32@huawei.com> - 3.1.2-2
- fix build error
* Mon Aug 10 2020 yanan li <liyanan032@huawei.com> - 3.1.2-1
- Package init

Binary file not shown.

BIN
shoulda-matchers-5.3.0.gem Normal file

Binary file not shown.