Suppress deprecated Fixnum warnings on Ruby 2.4.0.
This commit is contained in:
parent
28aacfbafd
commit
1b59849f44
|
@ -0,0 +1,13 @@
|
|||
diff --git a/lib/ffi/struct_layout_builder.rb b/lib/ffi/struct_layout_builder.rb
|
||||
index 918c790..ce80f67 100644
|
||||
--- a/lib/ffi/struct_layout_builder.rb
|
||||
+++ b/lib/ffi/struct_layout_builder.rb
|
||||
@@ -87,7 +87,7 @@ def union?
|
||||
# @return [0,1]
|
||||
#
|
||||
def packed=(packed)
|
||||
- if packed.is_a?(Fixnum)
|
||||
+ if packed.is_a?(Integer)
|
||||
@alignment = packed
|
||||
@packed = packed
|
||||
else
|
|
@ -2,13 +2,16 @@
|
|||
|
||||
Name: rubygem-%{gem_name}
|
||||
Version: 1.9.14
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
Summary: FFI Extensions for Ruby
|
||||
Group: Development/Languages
|
||||
|
||||
License: BSD
|
||||
URL: http://wiki.github.com/ffi/ffi
|
||||
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
||||
# Suppress deprecated Fixnum warnings on Ruby 2.4.0.
|
||||
# https://github.com/ffi/ffi/pull/557
|
||||
Patch0: rubygem-ffi-1.9.17-suppress-Fixnum-warning-ruby2.4.patch
|
||||
|
||||
BuildRequires: ruby(release)
|
||||
BuildRequires: rubygems-devel
|
||||
|
@ -39,6 +42,8 @@ gem unpack %{SOURCE0}
|
|||
|
||||
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
|
||||
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
# Create the gem as gem install only works on a gem file
|
||||
gem build %{gem_name}.gemspec
|
||||
|
@ -92,6 +97,9 @@ popd
|
|||
%{gem_instdir}/Rakefile
|
||||
|
||||
%changelog
|
||||
* Fri Feb 10 2017 Jun Aruga <jaruga@redhat.com> - 1.9.14-3
|
||||
- Suppress deprecated Fixnum warnings on Ruby 2.4.0.
|
||||
|
||||
* Tue Jan 10 2017 Vít Ondruch <vondruch@redhat.com> - 1.9.14-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.4
|
||||
|
||||
|
|
Loading…
Reference in New Issue