!5 fix build error
From: @lyn1001 Reviewed-by: @small_leek Signed-off-by: @small_leek
This commit is contained in:
commit
a308ca6d4d
@ -0,0 +1,19 @@
|
||||
diff -Nur a/test/helper.rb b/test/helper.rb
|
||||
--- a/test/helper.rb 2016-04-29 08:08:27.000000000 +0800
|
||||
+++ b/test/helper.rb 2022-03-01 16:01:56.363475931 +0800
|
||||
@@ -106,7 +106,6 @@
|
||||
t.string :name
|
||||
t.integer :age
|
||||
t.binary :avatar
|
||||
- t.datetime :created_at
|
||||
t.boolean :awesome
|
||||
t.string :preferences
|
||||
t.integer :alternative_id
|
||||
@@ -119,7 +118,6 @@
|
||||
t.string :name
|
||||
t.integer :age
|
||||
t.binary :avatar
|
||||
- t.datetime :created_at
|
||||
t.boolean :awesome
|
||||
t.string :preferences
|
||||
t.integer :alternative_id
|
||||
@ -1,14 +1,16 @@
|
||||
%global gem_name activemodel-serializers-xml
|
||||
Name: rubygem-%{gem_name}
|
||||
Version: 1.0.1
|
||||
Release: 1
|
||||
Release: 2
|
||||
Summary: XML serialization for Active Model objects and Active Record models
|
||||
License: MIT
|
||||
URL: http://github.com/rails/activemodel-serializers-xml
|
||||
Source0: https://rubygems.org/gems/activemodel-serializers-xml-1.0.1.gem
|
||||
Source1: http://github.com/rails/activemodel-serializers-xml/archive/v1.0.1.tar.gz
|
||||
# https://github.com/rails/activemodel-serializers-xml/pull/18
|
||||
Patch0: rubygem-activemodel-serializers-xml-1.0.1-timestamps-creates-created_at-field.patch
|
||||
BuildRequires: ruby(release) rubygems-devel ruby rubygem(activesupport) rubygem(activerecord)
|
||||
BuildRequires: rubygem(builder) rubygem(sqlite3)
|
||||
BuildRequires: rubygem(builder) rubygem(sqlite3) rubygem(rexml)
|
||||
BuildArch: noarch
|
||||
%description
|
||||
XML serialization for your Active Model objects and Active Record models -
|
||||
@ -39,6 +41,7 @@ cp -a .%{gem_dir}/* \
|
||||
pushd .%{gem_instdir}
|
||||
tar xzvf %{SOURCE1}
|
||||
cd %{gem_name}-%{version}
|
||||
patch -p1< %_sourcedir/rubygem-activemodel-serializers-xml-1.0.1-timestamps-creates-created_at-field.patch
|
||||
sed -i "s/ActiveModel::TestCase/ActiveSupport::TestCase/" test/active_model/xml_serialization_test.rb
|
||||
ruby -Itest -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
|
||||
popd
|
||||
@ -60,5 +63,8 @@ popd
|
||||
%exclude %{gem_instdir}/activemodel-serializers-xml.gemspec
|
||||
|
||||
%changelog
|
||||
* Thu Mar 3 2022 liyanan <liyanan32@huawei.com> - 1.0.1-2
|
||||
- fix build error
|
||||
|
||||
* Wed Aug 12 2020 chengzihan <chengzihan2@huawei.com> - 1.0.1-1
|
||||
- Package init
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user