Update to pg 1.20.0.

This commit is contained in:
Vít Ondruch 2017-05-29 13:09:55 +02:00
parent b4957d4774
commit 92e0fe8731
4 changed files with 13 additions and 33 deletions

1
.gitignore vendored
View File

@ -5,3 +5,4 @@
/pg-0.18.1.gem
/pg-0.18.2.gem
/pg-0.18.4.gem
/pg-0.20.0.gem

View File

@ -1,21 +0,0 @@
# HG changeset patch
# User Lars Kanis <lars@greiz-reinsdorf.de>
# Date 1484422186 -3600
# Node ID a446dfaf9d8f7f0223fb42184c1ad36e42b97b17
# Parent 6ebcebaad39ca2a2496bfd5912659f35d02b409f
Bignum,Fixnum and Integer are the same in Ruby-2.4.
Fixes #255 : https://bitbucket.org/ged/ruby-pg/issues/255
diff --git a/spec/pg/type_map_by_class_spec.rb b/spec/pg/type_map_by_class_spec.rb
--- a/spec/pg/type_map_by_class_spec.rb
+++ b/spec/pg/type_map_by_class_spec.rb
@@ -59,7 +59,7 @@
it "should retrieve particular conversions" do
expect( tm[Integer] ).to eq(binaryenc_int)
expect( tm[Float] ).to eq(textenc_float)
- expect( tm[Bignum] ).to be_nil
+ expect( tm[Range] ).to be_nil
expect( derived_tm[raise_class] ).to be_kind_of(Proc)
expect( derived_tm[Array] ).to eq(:array_type_map_for)
end

View File

@ -1,11 +1,10 @@
# Generated from pg-0.11.0.gem by gem2rpm -*- rpm-spec -*-
%global gem_name pg
Summary: A Ruby interface to the PostgreSQL RDBMS
Name: rubygem-%{gem_name}
Version: 0.18.4
Release: 4%{?dist}
Group: Development/Languages
Version: 0.20.0
Release: 1%{?dist}
Summary: A Ruby interface to the PostgreSQL RDBMS
# Upstream license clarification (https://bitbucket.org/ged/ruby-pg/issue/72/)
#
# The portions of the code that are BSD-licensed are licensed under
@ -17,39 +16,37 @@ Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
# Disable RPATH.
# https://bitbucket.org/ged/ruby-pg/issue/183
Patch0: rubygem-pg-0.17.1-remove-rpath.patch
# https://bitbucket.org/ged/ruby-pg/issues/255/ruby-24-test-failure
# https://bitbucket.org/ged/ruby-pg/commits/a446dfaf9d8f7f0223fb42184c1ad36e42b97b17/raw
Patch1: rubygem-pg-0.18.4-ruby24-integer-unification.patch
BuildRequires: ruby(release)
BuildRequires: rubygems-devel
BuildRequires: ruby-devel
# Compiler is required for build of gem binary extension.
# https://fedoraproject.org/wiki/Packaging:C_and_C++#BuildRequires_and_Requires
BuildRequires: gcc
BuildRequires: postgresql-server postgresql-devel
BuildRequires: rubygem(rspec)
%description
This is the extension library to access a PostgreSQL database from Ruby.
This library works with PostgreSQL 7.4 and later.
This library works with PostgreSQL 9.1 and later.
%package doc
Summary: Documentation for %{name}
Group: Documentation
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
%description doc
Documentation for %{name}.
%prep
gem unpack %{SOURCE0}
%setup -q -D -T -n %{gem_name}-%{version}
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
%patch0 -p1
%patch1 -p1
%build
# Create the gem as gem install only works on a gem file
@ -126,6 +123,9 @@ popd
%{gem_instdir}/spec
%changelog
* Mon May 29 2017 Vít Ondruch <vondruch@redhat.com> - 0.20.0-1
- Update to pg 1.20.0.
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.18.4-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

View File

@ -1 +1 @@
ac35f7c82ca7ca7b8dfd8533a238a83d pg-0.18.4.gem
SHA512 (pg-0.20.0.gem) = 8c7ef2e3b0cb43f42b4f96c5995cd9ff8b01a0d0fc1cfd24d1053e27fa6d16f4eb7008fcb5f86445ad000429898df0215f7ee89b4da9500ddc4df04f5f2a10e2