8
0

- updated to 0.19

- The 0.17 release broke compatibility with pre-2.0 versions of Moose.
 - A small internal tweak which prevents the MooseX::ClassCompositor tests from
   failing.
 - Added a small optimization for an immutable constructor when used with Moose
   2.00+. The list of valid attributes is only generated once, rather than each
   time the constructor is run. Reported by Chip Salzenberg. RT #73664.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-MooseX-StrictConstructor?expand=0&rev=10
This commit is contained in:
Stephan Kulow
2013-07-27 13:00:52 +00:00
committed by Git OBS Bridge
parent 9fdad060ee
commit 1977c9b55c
4 changed files with 29 additions and 12 deletions

View File

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

View File

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

View File

@@ -1,3 +1,14 @@
-------------------------------------------------------------------
Sat Jul 27 11:58:34 UTC 2013 - coolo@suse.com
- updated to 0.19
- The 0.17 release broke compatibility with pre-2.0 versions of Moose.
- A small internal tweak which prevents the MooseX::ClassCompositor tests from
failing.
- Added a small optimization for an immutable constructor when used with Moose
2.00+. The list of valid attributes is only generated once, rather than each
time the constructor is run. Reported by Chip Salzenberg. RT #73664.
-------------------------------------------------------------------
Sat Apr 30 00:08:51 UTC 2011 - pascal.bleser@opensuse.org

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-MooseX-StrictConstructor
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
Name: perl-MooseX-StrictConstructor
Version: 0.16
Version: 0.19
Release: 0
%define cpan_name MooseX-StrictConstructor
Summary: Make your object constructors blow up on unknown attributes
@@ -29,19 +29,30 @@ BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Moose) >= 0.94
BuildRequires: perl(Moose::Exporter)
BuildRequires: perl(Moose::Role)
BuildRequires: perl(Moose::Util::MetaRole)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::Moose)
BuildRequires: perl(Test::More) >= 0.88
BuildRequires: perl(namespace::autoclean)
#BuildRequires: perl(MooseX::StrictConstructor)
#BuildRequires: perl(MooseX::StrictConstructor::Trait::Class)
#BuildRequires: perl(MooseX::StrictConstructor::Trait::Method::Constructor)
#BuildRequires: perl(Standard)
#BuildRequires: perl(Stricter)
Requires: perl(Moose) >= 0.94
Requires: perl(Moose::Exporter)
Requires: perl(Moose::Role)
Requires: perl(Moose::Util::MetaRole)
Requires: perl(namespace::autoclean)
%{perl_requires}
%description
Simply loading this module makes your constructors "strict". If your
constructor is called with an attribute init argument that your class does
not declare, then it calls 'Moose-'throw_error()>. This is a great way to
not declare, then it calls 'Moose->throw_error()'. This is a great way to
catch small typos.
%prep
@@ -51,19 +62,14 @@ catch small typos.
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%if 0%{?suse_version} == 0 || 0%{?suse_version} >= 1120
%check
%{__make} test
%endif
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%clean
%{__rm} -rf %{buildroot}
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes LICENSE README