Accepting request 297789 from devel:languages:perl:autoupdate

automatic update

OBS-URL: https://build.opensuse.org/request/show/297789
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Dancer-Plugin-Database?expand=0&rev=9
This commit is contained in:
Stephan Kulow
2015-04-17 17:31:54 +00:00
committed by Git OBS Bridge
parent 229bffc91d
commit e34f594cd8
6 changed files with 214 additions and 33 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a8e41a969df7e197639030ab672715397cd38b87fd47ee2a855bdc21019254c8
size 13708

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:69db2450e1eef5f6efe46e93465e7372b457ee53f125fb6c6177c59740db6c31
size 19253

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:84a32808ffab15074a39875addccdd2b663c71bd272689f1926ecd65e17b6915
size 19961

20
cpanspec.yml Normal file
View File

@@ -0,0 +1,20 @@
---
#description_paragraphs: 3
#no_testing: broken upstream
#sources:
# - source1
# - source2
#patches:
# foo.patch: -p1
# bar.patch:
#preamble: |-
# BuildRequires: gcc-c++
#post_prep: |-
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
#post_install: |-
# sed on %{name}.files
#license: SUSE-NonFree
#skip_noarch: 1
#custom_build: -
#./Build build flags=%{?_smp_mflags} --myflag

View File

@@ -1,3 +1,158 @@
-------------------------------------------------------------------
Fri Apr 17 16:55:18 UTC 2015 - coolo@suse.com
- updated to 2.10
see /usr/share/doc/packages/perl-Dancer-Plugin-Database/Changes
2.10 2014-10-13
[ ENHANCEMENTS ]
- Support dsn_extra option (Thanks to Michael J South)
2.09 2013-12-22
[ ENHANCEMENTS ]
- Tests for cached handle after reconnection
2.08 Sun Sep 1 13:52:52 WEST 2013
[ ENHANCEMENTS ]
- Add quick_count method (Thanks to Colin Ewen)
2.07 Tue Jul 30 18:59:30 WEST 2013
- Fix test with wrong base class (part 2)
2.06 Tue Jul 30 18:49:37 WEST 2013
- Fix test with wrong base class.
2.05 2013-07-29
- Remove code from module to share with Dancer2 plugin.
- Added dependency on Dancer::Plugin::Database::Core
2.04 2013-03-04
[ ENHANCEMENTS ]
- Allow 'sid' to be passed into DSN, for Oracle support.
2.03 2012-12-14
[ BUGFIX ]
- Remove left-over debugging warning (thanks to ofosos for reporting)
2.02 2012-12-07
[ ENHANCEMENTS ]
- If asked for default connection (no connection name given) but there
is no default connection configured, throw a more helpful error
message.
2.01 2012-09-18
[ BUGFIX ]
- Fix crashing bug when charset: UTF-8 is present - thanks to Hugh
Gallagher for reporting & providing fix in RT #79719.
Presumably the test suite doesn't set UTF-8, so this failure never
showed up in testing :(
2.00 2012-09-17
[ ENHANCEMENTS ]
- Support for Dancer 2
- Automatic quoting handles e.g. schema.table properly - GH #33,
thanks to mscolly for reporting
- Accept limit offset,count syntax too - GH #31, thanks to nicolasfranck
for reporting
- a value of 0 for connectivity_check_threshold now disables checking
entirely - thanks to knutov in GH #22
1.82 2012-06-28
[ BUGFIXES ]
- Fix for Debian RT #665221 :
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=665221 - avoid issues
if we get a hashref of settings occupying the same region of memory as a
previous hashref of settings which since went out of scope but which we
still have a handle laying around for.
1.81 2012-03-07
[ BUGFIXES ]
- Don't generate invalid SQL with certain uses of where and order_by
clauses together (PR-27, thanks to Michael Stapelberg (mstap))
1.80 2012-02-06
[ ENHANCEMENTS]
- New hooks 'database_error', 'database_connect_failed',
'database_connection_lost'
- New option 'handle_class' to allow the database handles to be
reblessed into an alternative class, allowing you to subclass
D::P::D::Handle if you want to extend it
All requested by Nick S. Knutov - thanks Nick!
1.70 2012-01-31
[ ENHANCEMENTS ]
- New `order_by`, `limit` and `columns` options for quick_select()
(Requested by bor in GH-20)
1.60 2011-12-29
[ ENHANCEMENTS ]
- Hook support, requested by mdom. Currently supports a
database_connected hook position; others may be added in future.
Happy New Year!
1.51 2011-11-17
[ BUGFIXES ]
- Handle "is" operator properly (particularly if negated) - Issue 15.
- Add =encoding utf8 to POD so contributor names render correctly on
search.cpan.org / metacpan.org
1.50 2011-10-18
All new features kindly contributed by Mark Allen (@mrallen1) - thanks!
- Much more flexible WHERE clauses - e.g. { foo => { like => 'bar'} }
- Ability to select only specific columns in quick_select()
- New quick_lookup() syntactic sugar method
1.42 2011-08-19
- Don't produce spurious messages about enabling UTF-8 support when
we have already done it (PR 9 from James Aitken (LoonyPandora))
1.41 2011-07-24
- support where clauses with undef values. (Alberto Simões)
1.40 2011-05-29
- Be fork/thread-safe - don't allow processes/threads to share handles.
Thanks to Matt S Trout for pointing this out on IRC - cheers mst.
- If we're given a pre-assembled DSN, extract the driver from it to
avoid a warning, and to allow auto UTF-8 to work.
Thanks to Matthew Vickers (mvickers) for bringing this up.
1.30 2011-05-23
- Allow passing an empty hashref for where clause to signify that no
where clause is desired (i.e. return all rows).
Requested by Carlos Sosa (gnusosa) - thanks!
-------------------------------------------------------------------
Fri Apr 17 16:55:17 UTC 2015 - coolo@suse.com
- updated to 1.50
see /usr/share/doc/packages/perl-Dancer-Plugin-Database/Changes
1.50 2011-10-18
All new features kindly contributed by Mark Allen (@mrallen1) - thanks!
- Much more flexible WHERE clauses - e.g. { foo => { like => 'bar'} }
- Ability to select only specific columns in quick_select()
- New quick_lookup() syntactic sugar method
1.42 2011-08-19
- Don't produce spurious messages about enabling UTF-8 support when
we have already done it (PR 9 from James Aitken (LoonyPandora))
1.41 2011-07-24
- support where clauses with undef values. (Alberto Simões)
1.40 2011-05-29
- Be fork/thread-safe - don't allow processes/threads to share handles.
Thanks to Matt S Trout for pointing this out on IRC - cheers mst.
- If we're given a pre-assembled DSN, extract the driver from it to
avoid a warning, and to allow auto UTF-8 to work.
Thanks to Matthew Vickers (mvickers) for bringing this up.
1.30 2011-05-23
- Allow passing an empty hashref for where clause to signify that no
where clause is desired (i.e. return all rows).
Requested by Carlos Sosa (gnusosa) - thanks!
-------------------------------------------------------------------
Wed May 11 14:46:15 UTC 2011 - dbahi@novell.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-Dancer-Plugin-Database (Version 0.08)
# spec file for package perl-Dancer-Plugin-Database
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -15,34 +15,50 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: perl-Dancer-Plugin-Database
Version: 2.10
Release: 0
%define cpan_name Dancer-Plugin-Database
Summary: Easy database connections for Dancer applications
Version: 1.24
Release: 1
License: GPL+ or Artistic
Summary: Easy Database Connections for Dancer Applications
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Dancer-Plugin-Database/
#Source: http://www.cpan.org/authors/id/B/BI/BIGPRESH/Dancer-Plugin-Database-%{version}.tar.gz
Source: %{cpan_name}-%{version}.tar.bz2
Source0: http://www.cpan.org/authors/id/A/AM/AMBS/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Dancer) >= 1.175
BuildRequires: perl(DBI)
BuildRequires: perl(DBD::SQLite)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::Pod::Coverage)
Requires: perl(Dancer) >= 1.175
Requires: perl(DBI)
BuildRequires: perl(Dancer) >= 1.3099
BuildRequires: perl(Dancer::Plugin::Database::Core) >= 0.08
Requires: perl(Dancer) >= 1.3099
Requires: perl(Dancer::Plugin::Database::Core) >= 0.08
%{perl_requires}
%description
Provides an easy way to obtain a connected DBI database handle by simply
calling the database keyword within your Dancer application.
calling the database keyword within your the Dancer manpage application
Returns a the Dancer::Plugin::Database::Core::Handle manpage object, which
is a subclass of the DBI manpage's 'DBI::db' connection handle object, so
it does everything you'd expect to do with DBI, but also adds a few
convenience methods. See the documentation for the
Dancer::Plugin::Database::Core::Handle manpage for full details of those.
Takes care of ensuring that the database handle is still connected and
valid. If the handle was last asked for more than
'connection_check_threshold' seconds ago, it will check that the connection
is still alive, using either the '$dbh->ping' method if the DBD driver
supports it, or performing a simple no-op query against the database if
not. If the connection has gone away, a new connection will be obtained and
returned. This avoids any problems for a long-running script where the
connection to the database might go away.
Care is taken that handles are not shared across processes/threads, so this
should be thread-safe with no issues with transactions etc. (Thanks to Matt
S Trout for pointing out the previous lack of thread safety. Inspiration
was drawn from DBIx::Connector.)
%prep
%setup -q -n %{cpan_name}-%{version}
@@ -56,18 +72,11 @@ calling the database keyword within your Dancer application.
%install
%perl_make_install
# do not perl_process_packlist (noarch)
# remove .packlist file
%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch
# remove perllocal.pod file
%{__rm} -rf $RPM_BUILD_ROOT%perl_archlib
%perl_process_packlist
%perl_gen_filelist
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%files -f %{name}.files
%defattr(-,root,root,-)
%defattr(-,root,root,755)
%doc Changes README
%changelog