fix build error
This commit is contained in:
commit
6f6815649e
@ -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
|
%global gem_name activemodel-serializers-xml
|
||||||
Name: rubygem-%{gem_name}
|
Name: rubygem-%{gem_name}
|
||||||
Version: 1.0.1
|
Version: 1.0.1
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: XML serialization for Active Model objects and Active Record models
|
Summary: XML serialization for Active Model objects and Active Record models
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: http://github.com/rails/activemodel-serializers-xml
|
URL: http://github.com/rails/activemodel-serializers-xml
|
||||||
Source0: https://rubygems.org/gems/activemodel-serializers-xml-1.0.1.gem
|
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
|
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: ruby(release) rubygems-devel ruby rubygem(activesupport) rubygem(activerecord)
|
||||||
BuildRequires: rubygem(builder) rubygem(sqlite3)
|
BuildRequires: rubygem(builder) rubygem(sqlite3) rubygem(rexml)
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%description
|
%description
|
||||||
XML serialization for your Active Model objects and Active Record models -
|
XML serialization for your Active Model objects and Active Record models -
|
||||||
@ -39,6 +41,7 @@ cp -a .%{gem_dir}/* \
|
|||||||
pushd .%{gem_instdir}
|
pushd .%{gem_instdir}
|
||||||
tar xzvf %{SOURCE1}
|
tar xzvf %{SOURCE1}
|
||||||
cd %{gem_name}-%{version}
|
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
|
sed -i "s/ActiveModel::TestCase/ActiveSupport::TestCase/" test/active_model/xml_serialization_test.rb
|
||||||
ruby -Itest -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
|
ruby -Itest -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
|
||||||
popd
|
popd
|
||||||
@ -60,5 +63,8 @@ popd
|
|||||||
%exclude %{gem_instdir}/activemodel-serializers-xml.gemspec
|
%exclude %{gem_instdir}/activemodel-serializers-xml.gemspec
|
||||||
|
|
||||||
%changelog
|
%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
|
* Wed Aug 12 2020 chengzihan <chengzihan2@huawei.com> - 1.0.1-1
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
version_control: github
|
version_control: github
|
||||||
src_repo: rails/activemodel-serializers-xml
|
src_repo: rails/activemodel-serializers-xml
|
||||||
tag_prefix: "v"
|
tag_prefix: "^v"
|
||||||
seperator: "."
|
seperator: "."
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user