forked from pool/perl-Web-Machine
Compare commits
10 Commits
c7f48ccb78
...
c11cd77886
Author | SHA256 | Date | |
---|---|---|---|
c11cd77886 | |||
a7db7e8e0c | |||
|
22dee21f5f | ||
5f5af7f5d9 | |||
3b7a65ba9a | |||
|
054da99a74 | ||
3770dbd919 | |||
|
f8ef306c87 | ||
e04cf16fa1 | |||
|
f194baffed |
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:86819fe642393951b4116f3a019332b5a08912686e206944be05d25fd8311907
|
||||
size 54904
|
3
Web-Machine-0.17.tar.gz
Normal file
3
Web-Machine-0.17.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f139d2b3114c549e91847daaab8b75cb699e57daf5bbf0dbd13293f33fe5e22a
|
||||
size 73528
|
23
cpanspec.yml
Normal file
23
cpanspec.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
---
|
||||
#description_paragraphs: 3
|
||||
#no_testing: broken upstream
|
||||
#sources:
|
||||
# - source1
|
||||
# - source2
|
||||
patches:
|
||||
fix-tests-2036.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
|
||||
#custom_test: |-
|
||||
#startserver && make test
|
||||
#ignore_requires: Bizarre::Module
|
67
fix-tests-2036.patch
Normal file
67
fix-tests-2036.patch
Normal file
@@ -0,0 +1,67 @@
|
||||
Index: Web-Machine-0.17/t/010-resource-tests.t
|
||||
===================================================================
|
||||
--- Web-Machine-0.17.orig/t/010-resource-tests.t
|
||||
+++ Web-Machine-0.17/t/010-resource-tests.t
|
||||
@@ -530,54 +530,54 @@ my @tests = (
|
||||
# M20 via L15,M16
|
||||
{
|
||||
resource => 'M20',
|
||||
- request => { REQUEST_METHOD => 'DELETE', HTTP_IF_NONE_MATCH => '0xDEADPORK', HTTP_IF_MODIFIED_SINCE => '18 Mar 2036 15:49:00 GMT' },
|
||||
+ request => { REQUEST_METHOD => 'DELETE', HTTP_IF_NONE_MATCH => '0xDEADPORK', HTTP_IF_MODIFIED_SINCE => '18 Mar 2936 15:49:00 GMT' },
|
||||
response => [ 202, [ 'Content-Encoding' => 'gzip', 'Content-Type' => 'text/plain' ], [] ],
|
||||
trace => 'b13,b12,b11,b10,b9,b8,b7,b6,b5,b4,b3,c3,d4,e5,f6,g7,g8,h10,i12,i13,k13,l13,l14,l15,m16,m20,m20b'
|
||||
},
|
||||
{
|
||||
resource => 'M20b',
|
||||
- request => { REQUEST_METHOD => 'DELETE', HTTP_IF_NONE_MATCH => '0xDEADPORK', HTTP_IF_MODIFIED_SINCE => '18 Mar 2036 15:49:00 GMT' },
|
||||
+ request => { REQUEST_METHOD => 'DELETE', HTTP_IF_NONE_MATCH => '0xDEADPORK', HTTP_IF_MODIFIED_SINCE => '18 Mar 2936 15:49:00 GMT' },
|
||||
response => [ 500, [ 'Content-Encoding' => 'gzip', 'Content-Type' => 'text/plain' ], ['Internal Server Error'] ],
|
||||
trace => 'b13,b12,b11,b10,b9,b8,b7,b6,b5,b4,b3,c3,d4,e5,f6,g7,g8,h10,i12,i13,k13,l13,l14,l15,m16,m20'
|
||||
},
|
||||
# O20
|
||||
{
|
||||
resource => 'O20c',
|
||||
- request => { REQUEST_METHOD => 'DELETE', HTTP_IF_NONE_MATCH => '0xDEADPORK', HTTP_IF_MODIFIED_SINCE => '18 Mar 2036 15:49:00 GMT' },
|
||||
+ request => { REQUEST_METHOD => 'DELETE', HTTP_IF_NONE_MATCH => '0xDEADPORK', HTTP_IF_MODIFIED_SINCE => '18 Mar 2936 15:49:00 GMT' },
|
||||
response => [ 204, [ 'Content-Encoding' => 'gzip', 'Content-Type' => 'text/plain' ], [] ],
|
||||
trace => 'b13,b12,b11,b10,b9,b8,b7,b6,b5,b4,b3,c3,d4,e5,f6,g7,g8,h10,i12,i13,k13,l13,l14,l15,m16,m20,m20b,o20'
|
||||
},
|
||||
# O18
|
||||
{
|
||||
resource => 'O18c',
|
||||
- request => { REQUEST_METHOD => 'DELETE', HTTP_IF_NONE_MATCH => '0xDEADPORK', HTTP_IF_MODIFIED_SINCE => '18 Mar 2036 15:49:00 GMT' },
|
||||
+ request => { REQUEST_METHOD => 'DELETE', HTTP_IF_NONE_MATCH => '0xDEADPORK', HTTP_IF_MODIFIED_SINCE => '18 Mar 2936 15:49:00 GMT' },
|
||||
response => [ 200, [ 'Content-Encoding' => 'gzip', 'Content-Type' => 'text/plain' ], [ 'HELLO WORLD' ] ],
|
||||
trace => 'b13,b12,b11,b10,b9,b8,b7,b6,b5,b4,b3,c3,d4,e5,f6,g7,g8,h10,i12,i13,k13,l13,l14,l15,m16,m20,m20b,o20,o18,o18b'
|
||||
},
|
||||
# N11
|
||||
{
|
||||
resource => 'N11h',
|
||||
- request => { REQUEST_METHOD => 'POST', HTTP_IF_NONE_MATCH => '0xDEADPORK', HTTP_IF_MODIFIED_SINCE => '18 Mar 2036 15:49:00 GMT' },
|
||||
+ request => { REQUEST_METHOD => 'POST', HTTP_IF_NONE_MATCH => '0xDEADPORK', HTTP_IF_MODIFIED_SINCE => '18 Mar 2936 15:49:00 GMT' },
|
||||
response => [ 303, [ 'Location' => '/foo/bar', 'Content-Encoding' => 'gzip', 'Content-Type' => 'text/plain' ], [] ],
|
||||
trace => 'b13,b12,b11,b10,b9,b8,b7,b6,b5,b4,b3,c3,d4,e5,f6,g7,g8,h10,i12,i13,k13,l13,l14,l15,m16,n16,n11'
|
||||
},
|
||||
# O14
|
||||
{
|
||||
resource => 'O14',
|
||||
- request => { REQUEST_METHOD => 'PUT', HTTP_IF_NONE_MATCH => '0xDEADPORK', HTTP_IF_MODIFIED_SINCE => '18 Mar 2036 15:49:00 GMT' },
|
||||
+ request => { REQUEST_METHOD => 'PUT', HTTP_IF_NONE_MATCH => '0xDEADPORK', HTTP_IF_MODIFIED_SINCE => '18 Mar 2936 15:49:00 GMT' },
|
||||
response => [ 409, [ 'Content-Type' => 'text/plain' ], ['Conflict'] ],
|
||||
trace => 'b13,b12,b11,b10,b9,b8,b7,b6,b5,b4,b3,c3,d4,e5,f6,g7,g8,h10,i12,i13,k13,l13,l14,l15,m16,n16,o16,o14'
|
||||
},
|
||||
{
|
||||
resource => 'O14b',
|
||||
- request => { REQUEST_METHOD => 'PUT', CONTENT_TYPE => 'text/plain', HTTP_IF_NONE_MATCH => '0xDEADPORK', HTTP_IF_MODIFIED_SINCE => '18 Mar 2036 15:49:00 GMT' },
|
||||
+ request => { REQUEST_METHOD => 'PUT', CONTENT_TYPE => 'text/plain', HTTP_IF_NONE_MATCH => '0xDEADPORK', HTTP_IF_MODIFIED_SINCE => '18 Mar 2936 15:49:00 GMT' },
|
||||
response => [ 500, [ 'Content-Type' => 'text/plain' ], ['Internal Server Error'] ],
|
||||
trace => 'b13,b12,b11,b10,b9,b8,b7,b6,b5,b4,b3,c3,d4,e5,f6,g7,g8,h10,i12,i13,k13,l13,l14,l15,m16,n16,o16,o14'
|
||||
},
|
||||
# P11
|
||||
{
|
||||
resource => 'P11e',
|
||||
- request => { REQUEST_METHOD => 'PUT', CONTENT_TYPE => 'text/plain', HTTP_IF_NONE_MATCH => '0xDEADPORK', HTTP_IF_MODIFIED_SINCE => '18 Mar 2036 15:49:00 GMT' },
|
||||
+ request => { REQUEST_METHOD => 'PUT', CONTENT_TYPE => 'text/plain', HTTP_IF_NONE_MATCH => '0xDEADPORK', HTTP_IF_MODIFIED_SINCE => '18 Mar 2936 15:49:00 GMT' },
|
||||
response => [ 201, [ 'Location' => '/foo/bar', 'Content-Type' => 'text/plain' ], [] ],
|
||||
trace => 'b13,b12,b11,b10,b9,b8,b7,b6,b5,b4,b3,c3,d4,e5,f6,g7,g8,h10,i12,i13,k13,l13,l14,l15,m16,n16,o16,o14,p11'
|
||||
},
|
@@ -1,3 +1,47 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 4 15:40:43 UTC 2024 - pgajdos@suse.com
|
||||
|
||||
- Use %autosetup macro. Allows to eliminate the usage of deprecated
|
||||
%patchN
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 29 02:59:34 UTC 2021 - Bernhard Wiedemann <bwiedemann@suse.com>
|
||||
|
||||
- Add fix-tests-2036.patch to make tests pass after 2036 (boo#1102840)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jun 24 06:47:48 UTC 2016 - coolo@suse.com
|
||||
|
||||
- updated to 0.17
|
||||
see /usr/share/doc/packages/perl-Web-Machine/Changes
|
||||
|
||||
0.17 2016-06-23
|
||||
|
||||
* Fixed bind_path() from Web::Machine::Util to handle path parts which
|
||||
evaluated to false, like "/user/0". Patch by Stevan Little. GH #34.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 7 09:32:11 UTC 2015 - coolo@suse.com
|
||||
|
||||
- updated to 0.16
|
||||
see /usr/share/doc/packages/perl-Web-Machine/Changes
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 21 08:28:04 UTC 2014 - ncutler@suse.com
|
||||
|
||||
- include JSON::XS in BuildRequires so tests are not skipped during
|
||||
build
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 21 07:59:59 UTC 2014 - ncutler@suse.com
|
||||
|
||||
- upstream changes 0.15:
|
||||
- The Web::Machine class now accepts an addition parameter,
|
||||
request_class. This allows you to use a custom subclass of
|
||||
Plack::Request. (Mike Raynham)
|
||||
- Documented the request and response methods in Web::Machine::Resource.
|
||||
Requested by Olaf Alders.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun May 25 17:19:57 UTC 2014 - ncutler@suse.com
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package perl-Web-Machine
|
||||
#
|
||||
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2016 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
|
||||
@@ -17,14 +17,16 @@
|
||||
|
||||
|
||||
Name: perl-Web-Machine
|
||||
Version: 0.14
|
||||
Version: 0.17
|
||||
Release: 0
|
||||
%define cpan_name Web-Machine
|
||||
Summary: A Perl port of Webmachine
|
||||
Summary: Perl port of Webmachine
|
||||
License: Artistic-1.0 or GPL-1.0+
|
||||
Group: Development/Libraries/Perl
|
||||
Url: http://search.cpan.org/dist/Web-Machine/
|
||||
Source: Web-Machine-0.14.tar.gz
|
||||
Source0: http://www.cpan.org/authors/id/D/DR/DROLSKY/%{cpan_name}-%{version}.tar.gz
|
||||
Source1: cpanspec.yml
|
||||
Patch0: fix-tests-2036.patch
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
@@ -47,23 +49,10 @@ BuildRequires: perl(Plack::Test)
|
||||
BuildRequires: perl(Plack::Util)
|
||||
BuildRequires: perl(Sub::Exporter)
|
||||
BuildRequires: perl(Test::FailWarnings)
|
||||
BuildRequires: perl(Test::Fatal) >= 0.003
|
||||
BuildRequires: perl(Test::More) >= 0.88
|
||||
BuildRequires: perl(Test::Fatal)
|
||||
BuildRequires: perl(Test::More) >= 0.96
|
||||
BuildRequires: perl(Try::Tiny)
|
||||
BuildRequires: perl(parent)
|
||||
#BuildRequires: perl(GD::Simple)
|
||||
#BuildRequires: perl(JSON::XS)
|
||||
#BuildRequires: perl(My::Resource::Test022::Base)
|
||||
#BuildRequires: perl(Path::Class)
|
||||
#BuildRequires: perl(Test::TCP)
|
||||
#BuildRequires: perl(Web::Machine)
|
||||
#BuildRequires: perl(Web::Machine::FSM)
|
||||
#BuildRequires: perl(Web::Machine::FSM::States)
|
||||
#BuildRequires: perl(Web::Machine::I18N)
|
||||
#BuildRequires: perl(Web::Machine::Resource)
|
||||
#BuildRequires: perl(Web::Machine::Util)
|
||||
#BuildRequires: perl(Web::Machine::Util::BodyEncoding)
|
||||
#BuildRequires: perl(Web::Machine::Util::ContentNegotiation)
|
||||
Requires: perl(HTTP::Headers::ActionPack) >= 0.07
|
||||
Requires: perl(HTTP::Status)
|
||||
Requires: perl(Hash::MultiValue)
|
||||
@@ -88,25 +77,27 @@ etc.
|
||||
Each resource is a state machine, and each request for a resource is
|
||||
handled by running the request through that state machine.
|
||||
|
||||
'Web::Machine' is built on top of the Plack manpage, but it handles the
|
||||
full request and response cycle.
|
||||
'Web::Machine' is built on top of Plack, but it handles the full request
|
||||
and response cycle.
|
||||
|
||||
See the Web::Machine::Manual manpage for more details on using
|
||||
'Web::Machine' in general, and how 'Web::Machine' and the Plack manpage
|
||||
interact.
|
||||
See Web::Machine::Manual for more details on using 'Web::Machine' in
|
||||
general, and how 'Web::Machine' and Plack interact.
|
||||
|
||||
This is a port of https://github.com/basho/webmachine, actually it is much
|
||||
closer to the the Ruby
|
||||
version|https://github.com/seancribbs/webmachine-ruby manpage, with a
|
||||
little bit of https://github.com/tautologistics/nodemachine and even some
|
||||
of https://github.com/benoitc/pywebmachine thrown in for good measure.
|
||||
This is a port of at https://github.com/basho/webmachine, actually it is
|
||||
much closer to the Ruby
|
||||
version|https://github.com/seancribbs/webmachine-ruby, with a little bit of
|
||||
at https://github.com/tautologistics/nodemachine and even some of at
|
||||
https://github.com/benoitc/pywebmachine thrown in for good measure.
|
||||
|
||||
You can learn a bit about Web::Machine's history from the slides for my the
|
||||
You can learn a bit about Web::Machine's history from the slides for my
|
||||
2012 YAPC::NA
|
||||
talk|https://speakerdeck.com/stevan_little/rest-from-the-trenches manpage.
|
||||
talk|https://speakerdeck.com/stevan_little/rest-from-the-trenches.
|
||||
|
||||
To learn more about Webmachine, take a look at the links in the SEE ALSO
|
||||
section.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
%autosetup -p1 -n %{cpan_name}-%{version}
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
@@ -122,6 +113,7 @@ talk|https://speakerdeck.com/stevan_little/rest-from-the-trenches manpage.
|
||||
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc Changes examples LICENSE README README.md weaver.ini
|
||||
%doc Changes CONTRIBUTING.md examples README.md
|
||||
%license LICENSE
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user