8
0

Accepting request 178049 from home:coolo:update-perl

update

OBS-URL: https://build.opensuse.org/request/show/178049
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-HTML-FormHandler?expand=0&rev=15
This commit is contained in:
Stephan Kulow
2013-06-09 14:08:58 +00:00
committed by Git OBS Bridge
parent a94fc98a0b
commit ec3101d01b
4 changed files with 97 additions and 21 deletions

View File

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

View File

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

View File

@@ -1,3 +1,44 @@
-------------------------------------------------------------------
Wed Jun 5 07:14:12 UTC 2013 - coolo@suse.com
- updated to 0.40025
Add skip in t/setup_form_config.t unless YAML::Syck (Config::Any)
0.40024 Tue May 7, 2013
Add 'no_option_validation' flag to select field.
Remove HtmlArea field. (Has always been broken, and there were complaints about
not prereqing HTML::Tidy, which I won't do due to difficulty of installing)
Change 'use' of GD::SecurityImage to a 'require'. (Will not prereq this one either.)
0.40023 Tue Apr 30, 2013
Add Brazilian Portuguese translation file
Fix bug in process of re-loading repeatables without primary keys after db update
Add TextCSV field for multiple values in a text field (useful with js libraries)
0.40022 Mon Mar 18, 2013
Remove 'writeonly' flag from Display field, because fix to not pull
values from an item/init_object with that flag meant that values were not
being applied to Display fields, when people were relying on that.
Switch to using github issues instead of RT
0.40021 Mon Mar 4, 2013
Don't validate disabled fields
check for existence of field in match_when before getting $field->fif,
improve error message
add type_attr to Select field; update t/render/ff.t to use it
cleanup select field options_method building
0.40020 Sun Feb 20, 2013
More support for repeatable javascript:
Tweak Bootsrap wrapper to check do_wrapper instead of do_label when rendering
'controls' div
Reminder: It's always a good idea to make your own set of of widgets so that
updates don't throw off your rendering. This change was hardly noticeable
in the FH testcases, but it's possible you were relying on the old behavior
for CSS.
Add 'controls_div' to Simple wrapper.
Add RmElement example field.
-------------------------------------------------------------------
Wed Feb 15 12:05:40 UTC 2012 - coolo@suse.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-HTML-FormHandler
#
# Copyright (c) 2012 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-HTML-FormHandler
Version: 0.36003
Version: 0.40025
Release: 0
%define cpan_name HTML-FormHandler
Summary: HTML forms using Moose
@@ -30,18 +30,22 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Class::Load) >= 0.06
BuildRequires: perl(Data::Clone)
BuildRequires: perl(DateTime)
BuildRequires: perl(DateTime::Format::Strptime)
BuildRequires: perl(Email::Valid)
BuildRequires: perl(File::ShareDir)
BuildRequires: perl(File::ShareDir::Install) >= 0.03
BuildRequires: perl(HTML::TreeBuilder) >= 3.23
BuildRequires: perl(JSON)
BuildRequires: perl(Moose) >= 2.0007
BuildRequires: perl(MooseX::Getopt) >= 0.16
BuildRequires: perl(MooseX::Types) >= 0.20
BuildRequires: perl(MooseX::Types::Common)
BuildRequires: perl(MooseX::Types::LoadableClass) >= 0.006
BuildRequires: perl(PadWalker)
BuildRequires: perl(Sub::Exporter)
BuildRequires: perl(Sub::Name)
BuildRequires: perl(Test::Differences)
BuildRequires: perl(Test::Exception)
BuildRequires: perl(Test::Memory::Cycle) >= 1.04
@@ -53,8 +57,11 @@ BuildRequires: perl(namespace::autoclean) >= 0.09
#BuildRequires: perl(Catalyst::Controller)
#BuildRequires: perl(Catalyst::Runtime) >= 5.80
#BuildRequires: perl(Class::MOP)
#BuildRequires: perl(Clone)
#BuildRequires: perl(Config::Any)
#BuildRequires: perl(Data::FormValidator::Constraints)
#BuildRequires: perl(Data::UUID)
#BuildRequires: perl(Devel::Cycle)
#BuildRequires: perl(Form::AddressRole)
#BuildRequires: perl(Form::NoExtForm)
#BuildRequires: perl(Form::PersonRole)
@@ -63,25 +70,28 @@ BuildRequires: perl(namespace::autoclean) >= 0.09
#BuildRequires: perl(Hello::Form::Page)
#BuildRequires: perl(HTML::FormHandler)
#BuildRequires: perl(HTML::FormHandler::Base)
#BuildRequires: perl(HTML::FormHandler::Blocks)
#BuildRequires: perl(HTML::FormHandler::BuildFields)
#BuildRequires: perl(HTML::FormHandler::Field)
#BuildRequires: perl(HTML::FormHandler::Field::Checkbox)
#BuildRequires: perl(HTML::FormHandler::Field::Compound)
#BuildRequires: perl(HTML::FormHandler::Field::Date)
#BuildRequires: perl(HTML::FormHandler::Field::DateTime)
#BuildRequires: perl(HTML::FormHandler::Field::Display)
#BuildRequires: perl(HTML::FormHandler::Field::Integer)
#BuildRequires: perl(HTML::FormHandler::Field::IntRange)
#BuildRequires: perl(HTML::FormHandler::Field::NoValue)
#BuildRequires: perl(HTML::FormHandler::Field::PrimaryKey)
#BuildRequires: perl(HTML::FormHandler::Field::Repeatable)
#BuildRequires: perl(HTML::FormHandler::Field::Repeatable::Instance)
#BuildRequires: perl(HTML::FormHandler::Field::Result)
#BuildRequires: perl(HTML::FormHandler::Fields)
#BuildRequires: perl(HTML::FormHandler::Field::Select)
#BuildRequires: perl(HTML::FormHandler::Field::Text)
#BuildRequires: perl(HTML::FormHandler::Field::TextArea)
#BuildRequires: perl(HTML::FormHandler::Foo)
#BuildRequires: perl(HTML::FormHandler::I18N)
#BuildRequires: perl(HTML::FormHandler::InitResult)
#BuildRequires: perl(HTML::FormHandler::Merge)
#BuildRequires: perl(HTML::FormHandler::Meta::Role)
#BuildRequires: perl(HTML::FormHandler::Model)
#BuildRequires: perl(HTML::FormHandler::Model::CDBI)
@@ -90,12 +100,15 @@ BuildRequires: perl(namespace::autoclean) >= 0.09
#BuildRequires: perl(HTML::FormHandler::Moose::Role)
#BuildRequires: perl(HTML::FormHandler::Page)
#BuildRequires: perl(HTML::FormHandler::Pages)
#BuildRequires: perl(HTML::FormHandler::Render::FFTheme)
#BuildRequires: perl(HTML::FormHandler::Render::RepeatableJs)
#BuildRequires: perl(HTML::FormHandler::Render::Simple)
#BuildRequires: perl(HTML::FormHandler::Render::Table)
#BuildRequires: perl(HTML::FormHandler::Render::Util)
#BuildRequires: perl(HTML::FormHandler::Render::WithTT)
#BuildRequires: perl(HTML::FormHandler::Result)
#BuildRequires: perl(HTML::FormHandler::Result::Role)
#BuildRequires: perl(HTML::FormHandler::Test)
#BuildRequires: perl(HTML::FormHandler::TraitFor::Captcha)
#BuildRequires: perl(HTML::FormHandler::TraitFor::I18N)
#BuildRequires: perl(HTML::FormHandler::TraitFor::Types)
@@ -103,46 +116,66 @@ BuildRequires: perl(namespace::autoclean) >= 0.09
#BuildRequires: perl(HTML::FormHandler::Types)
#BuildRequires: perl(HTML::FormHandler::Validate)
#BuildRequires: perl(HTML::FormHandler::Widget::ApplyRole)
#BuildRequires: perl(HTML::FormHandler::Widget::Block)
#BuildRequires: perl(HTML::FormHandler::Widget::Field::Compound)
#BuildRequires: perl(HTML::FormHandler::Widget::Field::Role::SelectedOption)
#BuildRequires: perl(HTML::FormHandler::Widget::Form::Role::HTMLAttributes)
#BuildRequires: perl(HTML::FormHandler::Widget::Form::Simple)
#BuildRequires: perl(HTML::FormHandler::Widget::Theme::Bootstrap)
#BuildRequires: perl(HTML::FormHandler::Widget::Theme::BootstrapFormMessages)
#BuildRequires: perl(HTML::FormHandler::Widget::Wrapper::Base)
#BuildRequires: perl(HTML::FormHandler::Wizard)
#BuildRequires: perl(HTML::Tidy)
#BuildRequires: perl(HTTP::Date)
#BuildRequires: perl(Moose::Exporter)
#BuildRequires: perl(Moose::Role)
#BuildRequires: perl(Moose::Util::MetaRole)
#BuildRequires: perl(Moose::Util::TypeConstraints)
#BuildRequires: perl(MooseX::Types::Moose)
#BuildRequires: perl(MyApp::Form::Basic::Theme)
#BuildRequires: perl(MyApp::Form::Component::Actions)
#BuildRequires: perl(MyApp::Form::Controls::Theme)
#BuildRequires: perl(MyApp::Form::CtrlStates::Theme)
#BuildRequires: perl(MyApp::Form::InLine::Theme)
#BuildRequires: perl(MyApp::Form::Nested::View)
#BuildRequires: perl(MyApp::Form::Role::Factors)
#BuildRequires: perl(MyApp::Form::Search::Theme)
#BuildRequires: perl(MyApp::Form::Theme::Basic)
#BuildRequires: perl(MyApp::I18N::abc_de)
#BuildRequires: perl(Template)
#BuildRequires: perl(Test::ExtForm)
#BuildRequires: perl(Test::Form::Base)
#BuildRequires: perl(Test::Form::Fields)
#BuildRequires: perl(Test::Form::Role::Employee)
#BuildRequires: perl(Test::Form::Role::Office)
#BuildRequires: perl(Test::Form::Role::RepOffice)
#BuildRequires: perl(Test::Form::Theme)
#BuildRequires: perl(Test::Render)
Requires: perl(aliased)
#BuildRequires: perl(YAML::Syck)
Requires: perl(Class::Load) >= 0.06
Requires: perl(Data::Clone)
Requires: perl(DateTime)
Requires: perl(DateTime::Format::Strptime)
Requires: perl(Email::Valid)
Requires: perl(File::ShareDir)
Requires: perl(HTML::TreeBuilder) >= 3.23
Requires: perl(JSON)
Requires: perl(Moose) >= 2.0007
Requires: perl(MooseX::Getopt) >= 0.16
Requires: perl(MooseX::Types) >= 0.20
Requires: perl(MooseX::Types::Common)
Requires: perl(MooseX::Types::LoadableClass) >= 0.006
Requires: perl(namespace::autoclean) >= 0.09
Requires: perl(Sub::Exporter)
Requires: perl(Sub::Name)
Requires: perl(Try::Tiny)
Requires: perl(aliased)
Requires: perl(namespace::autoclean) >= 0.09
%{perl_requires}
%description
*** Although documentation in this file provides some overview, it is
mainly intended for API documentation. See the
HTML::FormHandler::Manual::Intro manpage for a more detailed introduction.
HTML::FormHandler::Manual::Intro manpage for an introduction, with links to
other documentation.
HTML::FormHandler maintains a clean separation between form construction
and form rendering. It allows you to define your forms and fields in a
@@ -158,17 +191,18 @@ One of its goals is to keep the controller/application program interface as
simple as possible, and to minimize the duplication of code. In most cases,
interfacing your controller to your form is only a few lines of code.
With FormHandler you'll never spend hours trying to figure out how to make
a simple HTML change that would take one minute by hand. Because you CAN do
it by hand. Or you can automate HTML generation as much as you want, with
template widgets or pure Perl rendering classes, and stay completely in
control of what, where, and how much is done automatically. You can define
custom renderers and display your rendered forms however you want.
With FormHandler you shouldn't have to spend hours trying to figure out how
to make a simple HTML change that would take one minute by hand. Because
you _can_ do it by hand. Or you can automate HTML generation as much as you
want, with template widgets or pure Perl rendering classes, and stay
completely in control of what, where, and how much is done automatically.
You can define custom renderers and display your rendered forms however you
want.
You can split the pieces of your forms up into logical parts and compose
complete forms from FormHandler classes, roles, fields, collections of
validations, transformations and Moose type constraints. You can write
custom methods to process forms, add any attribute you like, use Moose
custom methods to process forms, add any attribute you like, and use Moose
method modifiers. FormHandler forms are Perl classes, so there's a lot of
flexibility in what you can do.
@@ -179,9 +213,9 @@ all-in-one solutions like the HTML::FormHandler::Render::Simple manpage and
the HTML::FormHandler::Render::Table manpage that contain methods for
rendering field widget classes, and the the HTML::FormHandler::Widget
manpage roles, which are more atomic roles which are automatically applied
to fields and form if a 'render' method does not already exist. See the
HTML::FormHandler::Manual::Rendering manpage for more details. (And you can
easily use hand-build forms - FormHandler doesn't care.)
to fields and form. See the HTML::FormHandler::Manual::Rendering manpage
for more details. (And you can easily use hand-built forms - FormHandler
doesn't care.)
The typical application for FormHandler would be in a Catalyst,
DBIx::Class, Template Toolkit web application, but use is not limited to
@@ -192,6 +226,7 @@ the HTML::FormHandler::Manual manpage.
%prep
%setup -q -n %{cpan_name}-%{version}
find . -type f -print0 | xargs -0 chmod 644
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
@@ -207,6 +242,6 @@ the HTML::FormHandler::Manual manpage.
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes LICENSE README TODO util xt
%doc Changes LICENSE README TODO util
%changelog