openSUSE Commits
Threads by month
- ----- 2025 -----
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2008 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2007 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2006 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
June 2015
- 1 participants
- 1239 discussions
Hello community,
here is the log from the commit of package mate-terminal for openSUSE:Factory checked in at 2015-06-30 10:18:37
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/mate-terminal (Old)
and /work/SRC/openSUSE:Factory/.mate-terminal.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "mate-terminal"
Changes:
--------
--- /work/SRC/openSUSE:Factory/mate-terminal/mate-terminal.changes 2014-10-05 20:33:15.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.mate-terminal.new/mate-terminal.changes 2015-06-30 10:18:40.000000000 +0200
@@ -1,0 +2,22 @@
+Sun May 10 11:53:19 UTC 2015 - sor.alexei(a)meowr.ru
+
+- Update to 1.10.0 (changes since 1.9.1):
+ * [mate-terminal.wrapper] Support double quoted commands.
+ * Correct indentation.
+ * Update translations.
+- Spec cleanup.
+
+-------------------------------------------------------------------
+Thu Jan 22 17:28:20 UTC 2015 - p.drouand(a)gmail.com
+
+- Update to version 1.9.1 (unstable)
+ * Bug fixes release
+
+-------------------------------------------------------------------
+Thu Dec 11 14:47:08 UTC 2014 - p.drouand(a)gmail.com
+
+- Update to version 1.9.0 (unstable)
+ + Add dependency on libmate-desktop to use common functions
+- Add make requirement on pkgconfig(mate-desktop-2.0); new dependency
+
+-------------------------------------------------------------------
Old:
----
mate-terminal-1.8.1.tar.xz
New:
----
mate-terminal-1.10.0.tar.xz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ mate-terminal.spec ++++++
--- /var/tmp/diff_new_pack.XsGt8Q/_old 2015-06-30 10:18:40.000000000 +0200
+++ /var/tmp/diff_new_pack.XsGt8Q/_new 2015-06-30 10:18:40.000000000 +0200
@@ -1,6 +1,7 @@
-# spec file for mate-terminal
#
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# spec file for package mate-terminal
+#
+# 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
@@ -12,37 +13,39 @@
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
+#
+%define _version 1.10
Name: mate-terminal
-Version: 1.8.1
+Version: 1.10.0
Release: 0
-License: GPL-3.0+
Summary: MATE Desktop system tools
-Url: http://mate-desktop.org
+License: GPL-3.0+
Group: System/GUI/Other
-Source: http://pub.mate-desktop.org/releases/1.8/%{name}-%{version}.tar.xz
-Requires: gsettings-backend-dconf
-Recommends: %{name}-lang
-%glib2_gsettings_schema_requires
-
-BuildRequires: mate-common
+Url: http://mate-desktop.org
+Source: http://pub.mate-desktop.org/releases/%{_version}/%{name}-%{version}.tar.xz
BuildRequires: libxml2-python
-BuildRequires: pkgconfig(dconf)
+BuildRequires: mate-common
+BuildRequires: update-desktop-files
+BuildRequires: yelp-tools
BuildRequires: pkgconfig(dbus-glib-1)
+BuildRequires: pkgconfig(dconf)
BuildRequires: pkgconfig(gladeui-2.0)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gtk+-2.0)
+BuildRequires: pkgconfig(mate-desktop-2.0) >= 1.9.0
BuildRequires: pkgconfig(sm)
BuildRequires: pkgconfig(vte)
-BuildRequires: update-desktop-files
-BuildRequires: yelp-tools
+Requires: gsettings-backend-dconf
+Recommends: %{name}-lang = %{version}
+%glib2_gsettings_schema_requires
%description
-MATE Terminal is a terminal emulation application that you can use to
-perform the following actions:
- - Access a UNIX shell in the MATE environment.
- - Run any application that is designed to run on VT102, VT220, and
+MATE Terminal is a terminal emulation application that you can use
+to perform the following actions:
+ * Access a UNIX shell in the MATE environment.
+ * Run any application that is designed to run on VT102, VT220, and
xterm terminals.
%lang_package
@@ -55,35 +58,37 @@
make %{?_smp_mflags}
%install
-%makeinstall
+%make_install
%find_lang %{name} %{?no_lang_C}
%suse_update_desktop_file %{name}
-if [ -d %{buildroot}%{_datadir}/MateConf ]; then
- rm -rf %{buildroot}%{_datadir}/MateConf
+if [ -d %{buildroot}%{_datadir}/MateConf/ ]; then
+ rm -rf %{buildroot}%{_datadir}/MateConf/
fi
-# axe out scrollkeeper stuff
-rm -rf %{buildroot}/var
+# Axe out scrollkeeper stuff.
+rm -rf %{buildroot}%{_localstatedir}/
%post
-%glib2_gsettings_schema_postun
%desktop_database_post
+%glib2_gsettings_schema_postun
%postun
-%glib2_gsettings_schema_postun
%desktop_database_postun
+%glib2_gsettings_schema_postun
%files
%defattr(-,root,root)
%doc ChangeLog README COPYING
%{_bindir}/%{name}
%{_bindir}/%{name}.wrapper
-%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}/
%{_datadir}/glib-2.0/schemas/*.xml
+%{_datadir}/applications/%{name}.desktop
+%dir %{_datadir}/appdata/
+%{_datadir}/appdata/%{name}.appdata.xml
+%{_mandir}/man?/%{name}.?%{?ext_man}
%{_datadir}/help/C/%{name}
-%{_mandir}/man1/%{name}.1.gz
%files lang -f %{name}.lang
-%defattr(-,root,root,-)
+%defattr(-,root,root)
%changelog
++++++ mate-terminal-1.8.1.tar.xz -> mate-terminal-1.10.0.tar.xz ++++++
++++ 107142 lines of diff (skipped)
1
0
Hello community,
here is the log from the commit of package libmatekbd for openSUSE:Factory checked in at 2015-06-30 10:18:35
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libmatekbd (Old)
and /work/SRC/openSUSE:Factory/.libmatekbd.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libmatekbd"
Changes:
--------
--- /work/SRC/openSUSE:Factory/libmatekbd/libmatekbd.changes 2014-03-22 18:01:19.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.libmatekbd.new/libmatekbd.changes 2015-06-30 10:18:38.000000000 +0200
@@ -1,0 +2,26 @@
+Tue Apr 14 16:50:00 UTC 2015 - p.drouand(a)gmail.com
+
+- Update to version 1.10.0
+ * bugfixes release
+
+-------------------------------------------------------------------
+Mon Mar 23 15:41:27 UTC 2015 - p.drouand(a)gmail.com
+
+- Update to version 1.9.90 (unstable)
+ * bugfixes release
+
+-------------------------------------------------------------------
+Tue Jan 13 14:22:52 UTC 2015 - p.drouand(a)gmail.com
+
+- Update to version 1.9.2 (unstable)
+ + fix possible dereference of NULL pointer
+ + fix UI load in GTK+3 build
+ + update translations
+
+-------------------------------------------------------------------
+Sun Jul 13 15:40:54 UTC 2014 - p.drouand(a)gmail.com
+
+- Update to version 1.9.1 (unstable)
+ + bugfix release
+
+-------------------------------------------------------------------
Old:
----
libmatekbd-1.8.0.tar.xz
New:
----
libmatekbd-1.10.0.tar.xz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ libmatekbd.spec ++++++
--- /var/tmp/diff_new_pack.kJr5B8/_old 2015-06-30 10:18:39.000000000 +0200
+++ /var/tmp/diff_new_pack.kJr5B8/_new 2015-06-30 10:18:39.000000000 +0200
@@ -1,7 +1,7 @@
#
-# spec file for libmatekbd
+# spec file for package libmatekbd
#
-# Copyright (c) 2014 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
@@ -13,59 +13,57 @@
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
+#
+%define lname libmatekbd1
Name: libmatekbd
-%define _name libmatekbd1
-Version: 1.8.0
+Version: 1.10.0
Release: 0
-License: LGPL-2.1+
Summary: MATE Desktop keyboard configuration libraries
-Url: https://mate-desktop.org/
+License: LGPL-2.1+
Group: System/GUI/Other
-Source0: http://pub.mate-desktop.org/releases/1.8/%{name}-%{version}.tar.xz
-%glib2_gsettings_schema_requires
-
-BuildRequires: mate-common
-BuildRequires: pkgconfig(gdk-2.0)
+Url: https://mate-desktop.org/
+Source0: http://pub.mate-desktop.org/releases/1.10/%{name}-%{version}.tar.xz
+BuildRequires: mate-common >= 1.9.0
+BuildRequires: update-desktop-files
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(libxklavier)
-BuildRequires: update-desktop-files
+%glib2_gsettings_schema_requires
%description
-This package provides libmatekdb, an API to manage the keyboard in MATE
-Desktop applications.
+This package provides libmatekdb, an API to manage the keyboard in
+MATE Desktop applications.
%package -n matekbd-common
Summary: MATE Desktop keyboard configuration common files
Group: System/GUI/Other
%description -n matekbd-common
-This package provides libmatekdb, an API to manage the keyboard in MATE
-Desktop applications.
-
+This package provides libmatekdb, an API to manage the keyboard in
+MATE Desktop applications.
%package devel
Summary: MATE Desktop keyboard configuration development files
Group: Development/Libraries/Other
-Requires: %{_name} = %{version}
+Requires: %{lname} = %{version}
Requires: matekbd-common = %{version}
%description devel
-This package provides libmatekdb, an API to manage the keyboard in MATE
-Desktop applications.
+This package provides libmatekdb, an API to manage the keyboard in
+MATE Desktop applications.
-%package -n %{_name}
+%package -n %{lname}
Summary: MATE Desktop keyboard configuration shared libraries
Group: System/Libraries
-Provides: %{name} = %{version}
Requires: matekbd-common
-Recommends: %{name}-lang
+Recommends: %{name}-lang = %{version}
+Provides: %{name} = %{version}
-%description -n %{_name}
-This package provides libmatekdb, an API to manage the keyboard in MATE
-Desktop applications.
+%description -n %{lname}
+This package provides libmatekdb, an API to manage the keyboard in
+MATE Desktop applications.
%lang_package
@@ -77,42 +75,42 @@
make %{?_smp_mflags}
%install
-%makeinstall
+%make_install
%find_lang %{name} %{?no_lang_C}
-find %{buildroot}%{_libdir} -type f -name "*.la" -delete -print
-if [ -d %{buildroot}%{_datadir}/MateConf ]; then
- rm -rf %{buildroot}%{_datadir}/MateConf
+find %{buildroot} -type f -name "*.la" -delete -print
+
+if [ -d %{buildroot}%{_datadir}/MateConf/ ]; then
+ rm -rf %{buildroot}%{_datadir}/MateConf/
fi
%post -n matekbd-common
%glib2_gsettings_schema_post
-%post -n %{_name} -p /sbin/ldconfig
+%post -n %{lname} -p /sbin/ldconfig
%postun -n matekbd-common
%glib2_gsettings_schema_postun
-%postun -n %{_name} -p /sbin/ldconfig
+%postun -n %{lname} -p /sbin/ldconfig
-%files -n %{_name}
-%defattr(-,root,root,-)
-%doc AUTHORS COPYING
+%files -n %{lname}
+%defattr(-,root,root)
+%doc AUTHORS ChangeLog COPYING
%{_libdir}/*.so.*
%files -n matekbd-common
-%defattr(-,root,root,-)
-%dir %{_datadir}/libmatekbd
+%defattr(-,root,root)
%{_datadir}/glib-2.0/schemas/*.xml
-%{_datadir}/libmatekbd/ui/
+%{_datadir}/libmatekbd/
%files devel
-%defattr(-,root,root,-)
-%doc ChangeLog
+%defattr(-,root,root)
+%doc AUTHORS ChangeLog COPYING
%{_includedir}/%{name}/
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%files lang -f %{name}.lang
-%defattr(-,root,root,-)
+%defattr(-,root,root)
%changelog
++++++ libmatekbd-1.8.0.tar.xz -> libmatekbd-1.10.0.tar.xz ++++++
++++ 5691 lines of diff (skipped)
1
0
Hello community,
here is the log from the commit of package libfakekey for openSUSE:Factory checked in at 2015-06-30 10:18:33
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libfakekey (Old)
and /work/SRC/openSUSE:Factory/.libfakekey.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libfakekey"
Changes:
--------
--- /work/SRC/openSUSE:Factory/libfakekey/libfakekey.changes 2013-12-18 19:20:21.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.libfakekey.new/libfakekey.changes 2015-06-30 10:18:37.000000000 +0200
@@ -0,0 +1,6 @@
+-------------------------------------------------------------------
+Tue May 5 13:47:23 UTC 2015 - sor.alexei(a)meowr.ru
+
+- Spec cleanup.
+
+-------------------------------------------------------------------
@@ -14 +19,0 @@
-
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ libfakekey.spec ++++++
--- /var/tmp/diff_new_pack.xlrbWc/_old 2015-06-30 10:18:38.000000000 +0200
+++ /var/tmp/diff_new_pack.xlrbWc/_new 2015-06-30 10:18:38.000000000 +0200
@@ -1,6 +1,7 @@
-# spec file for libfakekey
#
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# spec file for package libfakekey
+#
+# 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
@@ -12,44 +13,43 @@
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
+#
+
+%define lname libfakekey0
Name: libfakekey
-%define _name libfakekey0
Version: 0.1
Release: 0
Summary: Library for converting characters to X key-presses
-Group: System/GUI/Other
License: LGPL-2.1+
-Url: http://projects.o-hand.com/matchbox/
-Source0: http://downloads.yoctoproject.org/releases/matchbox/libfakekey/0.1/%{name}-…
-
-# PATCH-FIX-OPENSUSE 0001-add-return.patch nmo.marques(a)gmail.com
-# add missing return
+Group: System/GUI/Other
+Url: https://yoctoproject.org/tools-resources/projects/matchbox
+Source: http://downloads.yoctoproject.org/releases/matchbox/%{name}/%{version}/%{na…
+# PATCH-FIX-UPSTREAM 0001-add-return.patch nmo.marques(a)gmail.com -- Add missing return.
Patch0: 0001-add-return.patch
-
-BuildRequires: pkgconfig
+BuildRequires: pkg-config
BuildRequires: pkgconfig(xtst)
%description
libfakekey is a simple library for converting UTF-8 characters into
'fake' X key-presses.
-%package -n %{_name}
+%package -n %{lname}
Summary: Library for converting characters to X key-presses
Group: System/Libraries
-%description -n %{_name}
+%description -n %{lname}
libfakekey is a simple library for converting UTF-8 characters into
'fake' X key-presses.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries/Other
-Requires: %{_name} = %{version}-%{release}
+Requires: %{lname} = %{version}
%description devel
-The %{name}-devel package contains libraries and header files for
-developing applications that use %{name}.
+The libfakekey-devel package contains libraries and header files for
+developing applications that use libfakekey.
%prep
%setup -q
@@ -60,20 +60,20 @@
make %{?_smp_mflags} AM_LDFLAGS=-lX11
%install
-make install DESTDIR=$RPM_BUILD_ROOT
-rm -f $RPM_BUILD_ROOT%{_libdir}/libfakekey.la
+%make_install
+find %{buildroot} -type f -name "*.la" -delete -print
-%post -n %{_name} -p /sbin/ldconfig
+%post -n %{lname} -p /sbin/ldconfig
-%postun -n %{_name} -p /sbin/ldconfig
+%postun -n %{lname} -p /sbin/ldconfig
-%files -n %{_name}
-%defattr(-,root,root,-)
+%files -n %{lname}
+%defattr(-,root,root)
%doc COPYING
%{_libdir}/libfakekey.so.*
%files devel
-%defattr(-,root,root,-)
+%defattr(-,root,root)
%{_includedir}/fakekey/
%{_libdir}/libfakekey.so
%{_libdir}/pkgconfig/libfakekey.pc
1
0
Hello community,
here is the log from the commit of package epiphany for openSUSE:Factory checked in at 2015-06-30 10:18:28
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/epiphany (Old)
and /work/SRC/openSUSE:Factory/.epiphany.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "epiphany"
Changes:
--------
--- /work/SRC/openSUSE:Factory/epiphany/epiphany.changes 2015-05-18 21:50:27.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.epiphany.new/epiphany.changes 2015-06-30 10:18:35.000000000 +0200
@@ -1,0 +2,8 @@
+Sat Jun 27 13:02:39 UTC 2015 - zaitor(a)opensuse.org
+
+- Update to version 3.16.2:
+ + Fix regressions in the form filler (bgo#750842).
+ + Other code fixes and minor improvements.
+ + Updated translations.
+
+-------------------------------------------------------------------
Old:
----
epiphany-3.16.1.tar.xz
New:
----
epiphany-3.16.2.tar.xz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ epiphany.spec ++++++
--- /var/tmp/diff_new_pack.kQmiZD/_old 2015-06-30 10:18:36.000000000 +0200
+++ /var/tmp/diff_new_pack.kQmiZD/_new 2015-06-30 10:18:36.000000000 +0200
@@ -17,7 +17,7 @@
Name: epiphany
-Version: 3.16.1
+Version: 3.16.2
Release: 0
%define _base_version 3.16
Summary: GNOME Web Browser
++++++ epiphany-3.16.1.tar.xz -> epiphany-3.16.2.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/epiphany-3.16.1/ChangeLog new/epiphany-3.16.2/ChangeLog
--- old/epiphany-3.16.1/ChangeLog 2015-05-12 15:17:13.000000000 +0200
+++ new/epiphany-3.16.2/ChangeLog 2015-06-23 16:28:51.000000000 +0200
@@ -1,3 +1,89 @@
+commit dc4db9278bdcd2a6a951bce14fa3454cb7907788
+Author: Claudio Saavedra <csaavedra(a)igalia.com>
+Date: Tue Jun 23 17:27:55 2015 +0300
+
+ [release] 3.16.2
+
+ NEWS | 8 ++++++++
+ configure.ac | 2 +-
+ 2 files changed, 9 insertions(+), 1 deletion(-)
+
+commit 5bbb4bd994fab4d7b9083907e4b5f8335dcfb2b9
+Author: Claudio Saavedra <csaavedra(a)igalia.com>
+Date: Fri Jun 12 15:10:59 2015 +0300
+
+ web-extension: fix color of form filler popup
+
+ Style context calls were missing setting the state previously
+ as required by GtkStyleContext.
+
+ https://bugzilla.gnome.org/show_bug.cgi?id=750842
+
+ embed/web-extension/ephy-web-extension.c | 8 ++++++++
+ 1 file changed, 8 insertions(+)
+
+commit 643b0da823577fc41ea00163b3fe30635db7886c
+Author: Claudio Saavedra <csaavedra(a)igalia.com>
+Date: Fri Jun 12 14:26:15 2015 +0300
+
+ web-extension: use proper number format for position dom properties
+
+ DOM bindings use double, not long. This fixes the form filler
+ popup not showing up. Use the proper DOM bindings API instead
+ of g_object_get() to avoid this happening again.
+
+ https://bugzilla.gnome.org/show_bug.cgi?id=750842
+
+ embed/web-extension/ephy-web-extension.c | 11 ++++++-----
+ lib/ephy-web-dom-utils.c | 26 +++++++++++---------------
+ lib/ephy-web-dom-utils.h | 9 +++++----
+ 3 files changed, 22 insertions(+), 24 deletions(-)
+
+commit 2196b1b306aab96255ba2414619be6b106340668
+Author: Claudio Saavedra <csaavedra(a)igalia.com>
+Date: Tue Jun 16 13:38:17 2015 +0300
+
+ web-extension: plug leaked string
+
+ embed/web-extension/ephy-web-extension.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+commit ad6a013a8cae56597254a7581a4120434a2d3f3b
+Author: Benjamin Steinwender <b(a)stbe.at>
+Date: Sat Jun 20 06:30:22 2015 +0000
+
+ Updated German translation
+
+ help/de/de.po | 10 +++++-----
+ 1 file changed, 5 insertions(+), 5 deletions(-)
+
+commit 43dd857bdda51113a357cde89556e157d61003b2
+Author: Akom Chotiphantawanon <knight2000(a)gmail.com>
+Date: Fri May 22 16:25:01 2015 +0700
+
+ Updated Thai translation
+
+ po/th.po | 344 ++++++++++++++++++++++++++++++++++-----------------------------
+ 1 file changed, 187 insertions(+), 157 deletions(-)
+
+commit 4d765786766630ad2190f95324a6c485de84268d
+Author: Jordi Mas <jmas(a)softcatala.org>
+Date: Thu May 21 22:00:08 2015 +0200
+
+ Fixes to Catalan translation
+
+ po/ca.po | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+commit 6c43baa5d0c4651bd317c14dfa9bec9229861e47
+Author: Kalev Lember <kalevlember(a)gmail.com>
+Date: Tue May 12 16:14:21 2015 +0200
+
+ Fix a syntax error in Esperanto translation
+
+ po/eo.po | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
commit 6f0f6ed4adee3410af39243d4d36e8ae039c9f00
Author: Claudio Saavedra <claudio(a)patanjali.localdomain>
Date: Tue May 12 16:16:23 2015 +0300
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/epiphany-3.16.1/NEWS new/epiphany-3.16.2/NEWS
--- old/epiphany-3.16.1/NEWS 2015-05-12 15:13:27.000000000 +0200
+++ new/epiphany-3.16.2/NEWS 2015-06-23 16:27:33.000000000 +0200
@@ -1,4 +1,12 @@
===============
+Epiphany 3.16.2
+===============
+
+ - Fix regressions in the form filler (#750842)
+ - Other code fixes and minor improvements.
+ - Updated translations.
+
+===============
Epiphany 3.16.1
===============
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/epiphany-3.16.1/configure new/epiphany-3.16.2/configure
--- old/epiphany-3.16.1/configure 2015-05-12 15:14:33.000000000 +0200
+++ new/epiphany-3.16.2/configure 2015-06-23 16:28:18.000000000 +0200
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69 for GNOME Web Browser 3.16.1.
+# Generated by GNU Autoconf 2.69 for GNOME Web Browser 3.16.2.
#
# Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=epiphany>.
#
@@ -591,8 +591,8 @@
# Identity of this package.
PACKAGE_NAME='GNOME Web Browser'
PACKAGE_TARNAME='epiphany'
-PACKAGE_VERSION='3.16.1'
-PACKAGE_STRING='GNOME Web Browser 3.16.1'
+PACKAGE_VERSION='3.16.2'
+PACKAGE_STRING='GNOME Web Browser 3.16.2'
PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=epiphany'
PACKAGE_URL=''
@@ -1428,7 +1428,7 @@
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures GNOME Web Browser 3.16.1 to adapt to many kinds of systems.
+\`configure' configures GNOME Web Browser 3.16.2 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1498,7 +1498,7 @@
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of GNOME Web Browser 3.16.1:";;
+ short | recursive ) echo "Configuration of GNOME Web Browser 3.16.2:";;
esac
cat <<\_ACEOF
@@ -1636,7 +1636,7 @@
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-GNOME Web Browser configure 3.16.1
+GNOME Web Browser configure 3.16.2
generated by GNU Autoconf 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
@@ -2059,7 +2059,7 @@
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by GNOME Web Browser $as_me 3.16.1, which was
+It was created by GNOME Web Browser $as_me 3.16.2, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ $0 $@
@@ -2426,7 +2426,7 @@
EPIPHANY_MINOR_VERSION=16
-EPIPHANY_MICRO_VERSION=1
+EPIPHANY_MICRO_VERSION=2
am__api_version='1.14'
@@ -2944,7 +2944,7 @@
# Define the identity of the package.
PACKAGE='epiphany'
- VERSION='3.16.1'
+ VERSION='3.16.2'
cat >>confdefs.h <<_ACEOF
@@ -16861,7 +16861,7 @@
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by GNOME Web Browser $as_me 3.16.1, which was
+This file was extended by GNOME Web Browser $as_me 3.16.2, which was
generated by GNU Autoconf 2.69. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -16927,7 +16927,7 @@
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
-GNOME Web Browser config.status 3.16.1
+GNOME Web Browser config.status 3.16.2
configured by $0, generated by GNU Autoconf 2.69,
with options \\"\$ac_cs_config\\"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/epiphany-3.16.1/configure.ac new/epiphany-3.16.2/configure.ac
--- old/epiphany-3.16.1/configure.ac 2015-05-12 15:12:23.000000000 +0200
+++ new/epiphany-3.16.2/configure.ac 2015-06-23 16:27:41.000000000 +0200
@@ -17,7 +17,7 @@
m4_define([epiphany_version_major],[3])
m4_define([epiphany_version_minor],[16])
-m4_define([epiphany_version_micro],[1])
+m4_define([epiphany_version_micro],[2])
m4_define([epiphany_version],[epiphany_version_major.epiphany_version_minor.epiphany_version_micro])
AC_INIT([GNOME Web Browser],[epiphany_version],[http://bugzilla.gnome.org/enter_bug.cgi?produc…]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/epiphany-3.16.1/embed/web-extension/ephy-web-extension.c new/epiphany-3.16.2/embed/web-extension/ephy-web-extension.c
--- old/epiphany-3.16.1/embed/web-extension/ephy-web-extension.c 2015-04-08 16:28:12.000000000 +0200
+++ new/epiphany-3.16.2/embed/web-extension/ephy-web-extension.c 2015-06-23 15:04:49.000000000 +0200
@@ -513,6 +513,8 @@
get_selected_bgcolor (void)
{
GdkRGBA color;
+ gtk_style_context_set_state (get_entry_style_context (),
+ GTK_STATE_FLAG_SELECTED);
gtk_style_context_get_background_color (get_entry_style_context (),
GTK_STATE_FLAG_SELECTED,
&color);
@@ -523,6 +525,8 @@
get_selected_fgcolor (void)
{
GdkRGBA color;
+ gtk_style_context_set_state (get_entry_style_context (),
+ GTK_STATE_FLAG_SELECTED);
gtk_style_context_get_color (get_entry_style_context (),
GTK_STATE_FLAG_SELECTED,
&color);
@@ -533,6 +537,8 @@
get_bgcolor (void)
{
GdkRGBA color;
+ gtk_style_context_set_state (get_entry_style_context (),
+ GTK_STATE_FLAG_NORMAL);
gtk_style_context_get_background_color (get_entry_style_context (),
GTK_STATE_FLAG_NORMAL,
&color);
@@ -543,6 +549,8 @@
get_fgcolor (void)
{
GdkRGBA color;
+ gtk_style_context_set_state (get_entry_style_context (),
+ GTK_STATE_FLAG_NORMAL);
gtk_style_context_get_color (get_entry_style_context (),
GTK_STATE_FLAG_NORMAL,
&color);
@@ -598,16 +606,17 @@
GSList *iter;
GSList *auth_data_list;
gboolean username_node_ever_edited;
- long x, y;
- long input_width;
+ double x, y;
+ double input_width;
char *style_attribute;
- const char* username;
+ char* username;
g_object_get (username_node,
"value", &username,
- "offset-width", &input_width,
NULL);
+ input_width = webkit_dom_element_get_offset_width (WEBKIT_DOM_ELEMENT (username_node));
+
main_div = webkit_dom_document_create_element (document, "div", NULL);
webkit_dom_element_set_attribute (main_div, "id", "ephy-user-choices-container", NULL);
@@ -618,13 +627,13 @@
*/
style_attribute = g_strdup_printf ("position: absolute; z-index: 2147483647;"
"cursor: default;"
- "width: %ldpx;"
+ "width: %lfpx;"
"background-color: white;"
"box-shadow: 5px 5px 5px black;"
"border-top: 0;"
"border-radius: 8px;"
"-webkit-user-modify: read-only ! important;"
- "left: %ldpx; top: %ldpx;",
+ "left: %lfpx; top: %lfpx;",
input_width, x, y);
webkit_dom_element_set_attribute (main_div, "style", style_attribute, NULL);
@@ -700,6 +709,7 @@
NULL);
}
+ g_free (username);
body = WEBKIT_DOM_NODE (webkit_dom_document_get_body (document));
webkit_dom_node_append_child (WEBKIT_DOM_NODE (body),
WEBKIT_DOM_NODE (main_div),
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/epiphany-3.16.1/help/de/de.po new/epiphany-3.16.2/help/de/de.po
--- old/epiphany-3.16.1/help/de/de.po 2015-04-08 16:28:12.000000000 +0200
+++ new/epiphany-3.16.2/help/de/de.po 2015-06-23 14:02:09.000000000 +0200
@@ -7,16 +7,16 @@
msgid ""
msgstr ""
"Project-Id-Version: epiphany master\n"
-"POT-Creation-Date: 2015-03-10 18:09+0000\n"
-"PO-Revision-Date: 2015-03-10 21:12+0100\n"
-"Last-Translator: Christian Kirbach <christian.kirbach(a)gmail.com>\n"
+"POT-Creation-Date: 2015-06-20 03:41+0000\n"
+"PO-Revision-Date: 2015-06-20 08:29+0100\n"
+"Last-Translator: Benjamin Steinwender <b(a)stbe.at>\n"
"Language-Team: German <gnome-de(a)gnome.org>\n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-"X-Generator: Poedit 1.7.4\n"
+"X-Generator: Poedit 1.7.5\n"
#. Put one translator per line, in the form NAME <EMAIL>, YEAR1, YEAR2
msgctxt "_"
@@ -1698,7 +1698,7 @@
#. (itstool) path: info/desc
#: C/pref-do-not-track.page:24
-msgid "How do I tell websites that I do not want them to monitor my online activites?"
+msgid "How do I tell websites that I do not want them to monitor my online activities?"
msgstr "Wie gebe ich Internet-Seiten bekannt, dass diese nicht meine Aktivitäten überwachen sollen?"
#. (itstool) path: page/title
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/epiphany-3.16.1/help/de/pref-do-not-track.page new/epiphany-3.16.2/help/de/pref-do-not-track.page
--- old/epiphany-3.16.1/help/de/pref-do-not-track.page 2015-04-08 16:28:32.000000000 +0200
+++ new/epiphany-3.16.2/help/de/pref-do-not-track.page 2015-06-23 14:02:30.000000000 +0200
@@ -19,8 +19,7 @@
<include xmlns="http://www.w3.org/2001/XInclude" href="legal.xml"/>
- <desc>How do I tell websites that I do not want them to monitor my online
- activities?</desc>
+ <desc>Wie gebe ich Internet-Seiten bekannt, dass diese nicht meine Aktivitäten überwachen sollen?</desc>
<mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
<mal:name>Christian Kirbach</mal:name>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/epiphany-3.16.1/lib/ephy-web-dom-utils.c new/epiphany-3.16.2/lib/ephy-web-dom-utils.c
--- old/epiphany-3.16.1/lib/ephy-web-dom-utils.c 2015-04-08 16:28:12.000000000 +0200
+++ new/epiphany-3.16.2/lib/ephy-web-dom-utils.c 2015-06-23 14:38:16.000000000 +0200
@@ -442,18 +442,16 @@
**/
void
ephy_web_dom_utils_get_absolute_position_for_element (WebKitDOMElement *element,
- glong *x,
- glong *y)
+ double *x,
+ double *y)
{
WebKitDOMElement *parent;
- long offset_top, offset_left;
- long parent_x, parent_y;
+ double offset_top, offset_left;
+ double parent_x, parent_y;
- g_object_get (element,
- "offset-left", &offset_left,
- "offset-top", &offset_top,
- "offset-parent", &parent,
- NULL);
+ offset_top = webkit_dom_element_get_offset_top (element);
+ offset_left = webkit_dom_element_get_offset_left (element);
+ parent = webkit_dom_element_get_offset_parent (element);
*x = offset_left;
*y = offset_top;
@@ -479,16 +477,14 @@
**/
void
ephy_web_dom_utils_get_absolute_bottom_for_element (WebKitDOMElement *element,
- long *x,
- long *y)
+ double *x,
+ double *y)
{
- long offset_height;
+ double offset_height;
ephy_web_dom_utils_get_absolute_position_for_element (element, x, y);
- g_object_get (element,
- "offset-height", &offset_height,
- NULL);
+ offset_height = webkit_dom_element_get_offset_height (element);
*y += offset_height;
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/epiphany-3.16.1/lib/ephy-web-dom-utils.h new/epiphany-3.16.2/lib/ephy-web-dom-utils.h
--- old/epiphany-3.16.1/lib/ephy-web-dom-utils.h 2015-04-08 16:28:12.000000000 +0200
+++ new/epiphany-3.16.2/lib/ephy-web-dom-utils.h 2015-06-23 14:46:39.000000000 +0200
@@ -42,12 +42,13 @@
WebKitDOMNode **password);
void ephy_web_dom_utils_get_absolute_bottom_for_element (WebKitDOMElement *element,
- long *x,
- long *y);
+ double *x,
+ double *y);
void ephy_web_dom_utils_get_absolute_position_for_element(WebKitDOMElement *element,
- long *x,
- long *y);
+ double *x,
+ double *y);
+
G_END_DECLS
#endif
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/epiphany-3.16.1/po/ca.po new/epiphany-3.16.2/po/ca.po
--- old/epiphany-3.16.1/po/ca.po 2015-04-25 11:40:44.000000000 +0200
+++ new/epiphany-3.16.2/po/ca.po 2015-06-02 10:55:15.000000000 +0200
@@ -167,7 +167,7 @@
#: ../data/org.gnome.epiphany.gschema.xml.h:20
msgid "Whether to store and prefill passwords in websites."
-msgstr "Si es desen i es s'emplenen les contrasenyes als llocs web."
+msgstr "Si es desen i s'emplenen les contrasenyes als llocs web."
#: ../data/org.gnome.epiphany.gschema.xml.h:21
msgid "Automatically manage offline status with NetworkManager"
@@ -496,7 +496,7 @@
#: ../embed/ephy-about-handler.c:143
msgid "Plugins are disabled in the preferences"
-msgstr "El connectors estan inhabilitats a les preferències"
+msgstr "Els connectors estan inhabilitats a les preferències"
#: ../embed/ephy-about-handler.c:156
msgid "Enabled"
@@ -2725,7 +2725,7 @@
#: ../src/popup-commands.c:243
msgid "Save Media As"
-msgstr "Anomena i desa el media"
+msgstr "Anomena i desa el medi"
#. Translators: the first %s is the language name, and the
#. * second %s is the locale name. Example:
@@ -2817,7 +2817,7 @@
#: ../src/window-commands.c:755
#, c-format
msgid "The application '%s' is ready to be used"
-msgstr "L'aplicació «%s» ja és a punt per fer-se servir"
+msgstr "L'aplicació «%s» ja està a punt per fer-se servir"
#: ../src/window-commands.c:758
#, c-format
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/epiphany-3.16.1/po/eo.po new/epiphany-3.16.2/po/eo.po
--- old/epiphany-3.16.1/po/eo.po 2015-04-25 11:40:44.000000000 +0200
+++ new/epiphany-3.16.2/po/eo.po 2015-06-02 10:55:15.000000000 +0200
@@ -94,7 +94,7 @@
#: ../data/epiphany.desktop.in.in.h:5
msgid "web;browser;internet;"
-msgstr "reto;foliumilo;interreto"
+msgstr "reto;foliumilo;interreto;"
#: ../data/epiphany.desktop.in.in.h:6
#| msgid "New _Incognito Window"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/epiphany-3.16.1/po/th.po new/epiphany-3.16.2/po/th.po
--- old/epiphany-3.16.1/po/th.po 2015-04-08 16:28:12.000000000 +0200
+++ new/epiphany-3.16.2/po/th.po 2015-06-02 10:55:15.000000000 +0200
@@ -1,17 +1,17 @@
# Thai translation for epiphany.
-# Copyright (C) 2004-2014 Free Software Foundation, Inc.
+# Copyright (C) 2004-2015 Free Software Foundation, Inc.
# This file is distributed under the same license as the epiphany package.
# Isriya Paireepairit <isriyapaireepairit(a)hotmail.com>, 2004.
# Theppitak Karoonboonyanan <thep(a)linux.thai.net>, 2005-2012.
-# Akom Chotiphantawanon <knight2000(a)gmail.com>, 2014.
+# Akom Chotiphantawanon <knight2000(a)gmail.com>, 2014-2015.
#
msgid ""
msgstr ""
"Project-Id-Version: epiphany.th\n"
"Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?"
"product=epiphany&keywords=I18N+L10N&component=general\n"
-"POT-Creation-Date: 2014-12-01 16:53+0000\n"
-"PO-Revision-Date: 2014-12-08 14:27+0700\n"
+"POT-Creation-Date: 2015-04-25 03:42+0000\n"
+"PO-Revision-Date: 2015-05-22 16:19+0700\n"
"Last-Translator: Akom Chotiphantawanon <knight2000(a)gmail.com>\n"
"Language-Team: Thai <thai-l10n(a)googlegroups.com>\n"
"Language: th\n"
@@ -19,6 +19,7 @@
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"
+"X-Generator: Gtranslator 2.91.6\n"
#: ../data/default-bookmarks.rdf.in.h:1
msgid "Search the web"
@@ -73,7 +74,7 @@
#: ../data/epiphany.desktop.in.in.h:1 ../embed/ephy-about-handler.c:292
#: ../embed/ephy-about-handler.c:323 ../src/ephy-main.c:67
-#: ../src/ephy-main.c:314 ../src/ephy-main.c:472 ../src/window-commands.c:1519
+#: ../src/ephy-main.c:314 ../src/ephy-main.c:470 ../src/window-commands.c:1519
msgid "Web"
msgstr "เว็บ"
@@ -93,6 +94,10 @@
msgid "web;browser;internet;"
msgstr "เว็บ;เบราว์เซอร์;อินเทอร์เน็ต;"
+#: ../data/epiphany.desktop.in.in.h:6
+msgid "New Incognito Window"
+msgstr "หน้าต่างใหม่ไม่เปิดเผยตัว"
+
#: ../data/org.gnome.epiphany.gschema.xml.h:1
msgid "Browse with caret"
msgstr "ดูเว็บโดยมีเคอร์เซอร์"
@@ -344,39 +349,31 @@
msgstr "รหัสอักขระปริยาย ใช้ได้เฉพาะค่าที่ WebKitGTK+ รู้จักเท่านั้น"
#: ../data/org.gnome.epiphany.gschema.xml.h:57
-msgid "Size of disk cache"
-msgstr "เนื้อที่ของแคชบนดิสก์"
-
-#: ../data/org.gnome.epiphany.gschema.xml.h:58
-msgid "Size of disk cache, in MB."
-msgstr "เนื้อที่ของแคชบนดิสก์ เป็น MB"
-
-#: ../data/org.gnome.epiphany.gschema.xml.h:59
-#: ../src/resources/prefs-dialog.ui.h:40
+#: ../src/resources/prefs-dialog.ui.h:39
msgid "Languages"
msgstr "ภาษา"
-#: ../data/org.gnome.epiphany.gschema.xml.h:60
+#: ../data/org.gnome.epiphany.gschema.xml.h:58
msgid "Preferred languages, two letter codes."
msgstr "ภาษาที่เลือก (รหัสอักษรสองตัว)"
-#: ../data/org.gnome.epiphany.gschema.xml.h:61
+#: ../data/org.gnome.epiphany.gschema.xml.h:59
msgid "Cookie accept"
msgstr "การยอมรับคุกกี้"
-#: ../data/org.gnome.epiphany.gschema.xml.h:62
+#: ../data/org.gnome.epiphany.gschema.xml.h:60
msgid ""
-"Where to accept cookies from. Possible values are \"anywhere\", \"current "
-"site\" and \"nowhere\"."
+"Where to accept cookies from. Possible values are \"always\", \"no-third-"
+"party\" and \"never\"."
msgstr ""
-"จะรับคุกกี้จากแหล่งไหน ค่าที่เป็นไปได้คือ \"anywhere\" (ทุกแหล่ง), \"current site"
-"\" (ไซต์ปัจจุบัน) และ \"nowhere\" (ไม่รับ)"
+"จะรับคุกกี้จากแหล่งไหน ค่าที่เป็นไปได้คือ \"always\" (รับเสมอ), \"no-third-party"
+"\" (ไม่รับบุคคลที่สาม) และ \"never\" (ไม่รับเลย)"
-#: ../data/org.gnome.epiphany.gschema.xml.h:63
+#: ../data/org.gnome.epiphany.gschema.xml.h:61
msgid "Image animation mode"
msgstr "โหมดของภาพเคลื่อนไหว"
-#: ../data/org.gnome.epiphany.gschema.xml.h:64
+#: ../data/org.gnome.epiphany.gschema.xml.h:62
msgid ""
"How to present animated images. Possible values are \"normal\", \"once\" and "
"\"disabled\"."
@@ -384,44 +381,44 @@
"จะแสดงภาพเคลื่อนไหวอย่างไร ค่าที่เป็นไปได้คือ \"normal\" (ปกติ), \"once\" (รอบเดียว) "
"และ \"disabled\" (ปิด)"
-#: ../data/org.gnome.epiphany.gschema.xml.h:65
+#: ../data/org.gnome.epiphany.gschema.xml.h:63
msgid "Allow popups"
msgstr "อนุญาตให้ผุดหน้าต่าง"
-#: ../data/org.gnome.epiphany.gschema.xml.h:66
+#: ../data/org.gnome.epiphany.gschema.xml.h:64
msgid ""
"Allow sites to open new windows using JavaScript (if JavaScript is enabled)."
msgstr "อนุญาตให้เว็บไซต์เปิดหน้าต่างใหม่ด้วยจาวาสคริปต์ (ถ้าเปิดใช้จาวาสคริปต์)"
-#: ../data/org.gnome.epiphany.gschema.xml.h:67
+#: ../data/org.gnome.epiphany.gschema.xml.h:65
msgid "Enable Plugins"
msgstr "เปิดใช้ปลั๊กอิน"
-#: ../data/org.gnome.epiphany.gschema.xml.h:68
+#: ../data/org.gnome.epiphany.gschema.xml.h:66
msgid "Enable JavaScript"
msgstr "ใช้จาวาสคริปต์"
-#: ../data/org.gnome.epiphany.gschema.xml.h:69
+#: ../data/org.gnome.epiphany.gschema.xml.h:67
msgid "Enable WebGL"
msgstr "เปิดใช้ WebGL"
-#: ../data/org.gnome.epiphany.gschema.xml.h:70
+#: ../data/org.gnome.epiphany.gschema.xml.h:68
msgid "Whether to enable support for WebGL contexts."
msgstr "กำหนดว่าจะเปิดใช้การรองรับ WebGL หรือไม่"
-#: ../data/org.gnome.epiphany.gschema.xml.h:71
+#: ../data/org.gnome.epiphany.gschema.xml.h:69
msgid "Enable WebAudio"
msgstr "เปิดใช้ WebAudio"
-#: ../data/org.gnome.epiphany.gschema.xml.h:72
+#: ../data/org.gnome.epiphany.gschema.xml.h:70
msgid "Whether to enable support for WebAudio."
msgstr "กำหนดว่าจะเปิดใช้การรองรับ WebAudio หรือไม่"
-#: ../data/org.gnome.epiphany.gschema.xml.h:73
+#: ../data/org.gnome.epiphany.gschema.xml.h:71
msgid "Do Not Track"
msgstr "ไม่ต้องติดตามการเชื่อมต่อ"
-#: ../data/org.gnome.epiphany.gschema.xml.h:74
+#: ../data/org.gnome.epiphany.gschema.xml.h:72
msgid ""
"Whether to tell websites that we do not wish to be tracked. Please note that "
"web pages are not forced to follow this setting."
@@ -429,21 +426,21 @@
"กำหนดว่าจะแจ้งเว็บไซต์ว่าเราไม่ต้องการถูกติดตามการเชื่อมต่อหรือไม่ พึงระลึกว่าเว็บต่างๆ "
"ไม่จำเป็นต้องทำตามค่าตั้งนี้"
-#: ../data/org.gnome.epiphany.gschema.xml.h:75
+#: ../data/org.gnome.epiphany.gschema.xml.h:73
msgid "Enable Adblock"
msgstr "เปิดใช้ Adblock"
-#: ../data/org.gnome.epiphany.gschema.xml.h:76
+#: ../data/org.gnome.epiphany.gschema.xml.h:74
msgid ""
"Whether to block the embedded advertisements that web pages might want to "
"show."
msgstr "กำหนดว่าจะปิดกั้นโฆษณาที่ฝังอยู่ในหน้าเว็บต่างๆ หรือไม่"
-#: ../data/org.gnome.epiphany.gschema.xml.h:77
+#: ../data/org.gnome.epiphany.gschema.xml.h:75
msgid "The downloads folder"
msgstr "โฟลเดอร์เก็บแฟ้มดาวน์โหลด"
-#: ../data/org.gnome.epiphany.gschema.xml.h:78
+#: ../data/org.gnome.epiphany.gschema.xml.h:76
msgid ""
"The path of the folder where to download files to; or \"Downloads\" to use "
"the default downloads folder, or \"Desktop\" to use the desktop folder."
@@ -451,11 +448,11 @@
"พาธของโฟลเดอร์ที่จะเก็บแฟ้มดาวน์โหลด หรือใช้ค่า \"Downloads\" "
"เพื่อใช้โฟลเดอร์ดาวน์โหลดปริยาย หรือ \"Desktop\" เพื่อเก็บลงบนพื้นโต๊ะ"
-#: ../data/org.gnome.epiphany.gschema.xml.h:79
+#: ../data/org.gnome.epiphany.gschema.xml.h:77
msgid "Whether to show the title column in the bookmarks window."
msgstr "กำหนดว่าจะแสดงคอลัมน์หัวเรื่องในหน้าต่างที่คั่นหน้าหรือไม่"
-#: ../data/org.gnome.epiphany.gschema.xml.h:80
+#: ../data/org.gnome.epiphany.gschema.xml.h:78
msgid "Whether to show the address column in the bookmarks window."
msgstr "กำหนดว่าจะแสดงคอลัมน์ที่อยู่เว็บในหน้าต่างที่คั่นหน้าหรือไม่"
@@ -550,11 +547,18 @@
#: ../embed/ephy-about-handler.c:555
msgid ""
-"Incognito mode will not hide your activity from your employer, your Internet "
-"Service Provider, your government, or the websites that you visit."
+"Incognito mode hides your activity only from people using this computer."
+msgstr "โหมดไม่เผยตัวจะซ่อนกิจกรรมของคุณจากบุคคลที่ใช้คอมพิวเตอร์นี้เท่านั้น"
+
+#: ../embed/ephy-about-handler.c:557
+msgid ""
+"It will not hide your activity from your employer if you are at work. Your "
+"internet service provider, your government, other governments, the websites "
+"that you visit, and advertisers on these websites may still be tracking you."
msgstr ""
-"โหมดไม่เปิดเผยตัวจะไม่ได้ซ่อนกิจกรรมของคุณจากนายจ้างของคุณ, ผู้ให้บริการอินเทอร์เน็ตของคุณ, "
-"รัฐบาลของคุณ, หรือเว็บไซต์ที่คุณเข้าเยี่ยมชม"
+"แต่จะไม่ได้ซ่อนกิจกรรมของคุณจากนายจ้างของคุณถ้าคุณอยู่ที่ทำงาน ผู้ให้บริการอินเทอร์เน็ตของคุณ, "
+"รัฐบาลของคุณ, รัฐบาลประเทศอื่น, เว็บไซต์ที่คุณเข้าเยี่ยมชม, "
+"และผู้ลงโฆษณาในเว็บไซต์เหล่านี้อาจจะยังติดตามคุณอยู่"
#. characters
#: ../embed/ephy-embed.c:51
@@ -924,9 +928,13 @@
msgid "Find next occurrence of the search string"
msgstr "หาข้อความเดิมต่อไป"
-#: ../embed/ephy-web-view.c:492 ../src/window-commands.c:330
-msgid "Save"
-msgstr "บันทึก"
+#: ../embed/ephy-web-view.c:492 ../lib/ephy-file-chooser.c:194
+msgid "_Save"
+msgstr "_บันทึก"
+
+#: ../embed/ephy-web-view.c:493
+msgid "_Don’t Save"
+msgstr "ไ_ม่บันทึก"
#. Translators: The %s the hostname where this is happening.
#. * Example: mail.google.com.
@@ -936,37 +944,44 @@
msgid "Do you want to save your password for “%s”?"
msgstr "คุณต้องการบันทึกรหัสผ่านของคุณสำหรับ “%s” หรือไม่?"
-#: ../embed/ephy-web-view.c:1415
+#: ../embed/ephy-web-view.c:1416
msgid "Deny"
msgstr "ปฏิเสธ"
-#: ../embed/ephy-web-view.c:1416
+#: ../embed/ephy-web-view.c:1417
msgid "Allow"
msgstr "อนุญาต"
-#: ../embed/ephy-web-view.c:1426
+#. Translators: Geolocation policy for a specific site.
+#: ../embed/ephy-web-view.c:1429
#, c-format
msgid "The page at <b>%s</b> wants to know your location."
msgstr "หน้าเว็บ <b>%s</b> ต้องการทราบพิกัดตำแหน่งของคุณ"
+#. Translators: Notification policy for a specific site.
+#: ../embed/ephy-web-view.c:1433
+#, c-format
+msgid "The page at <b>%s</b> wants to show desktop notifications."
+msgstr "หน้าเว็บ <b>%s</b> ต้องการแสดงการแจ้งเหตุบนเดสก์ท็อป"
+
#. translators: %s here is the address of the web page
-#: ../embed/ephy-web-view.c:1510
+#: ../embed/ephy-web-view.c:1519
#, c-format
msgid "Loading “%s”…"
msgstr "กำลังเรียก “%s”…"
-#: ../embed/ephy-web-view.c:1512
+#: ../embed/ephy-web-view.c:1521
msgid "Loading…"
msgstr "กำลังเรียก…"
#. Possible error message when a site presents a bad certificate.
-#: ../embed/ephy-web-view.c:1734
+#: ../embed/ephy-web-view.c:1743
msgid ""
"This website presented identification that belongs to a different website."
msgstr "เว็บไซต์นี้แสดงการระบุตัวตนที่เป็นของเว็บไซต์ที่ต่างออกไป"
#. Possible error message when a site presents a bad certificate.
-#: ../embed/ephy-web-view.c:1739
+#: ../embed/ephy-web-view.c:1748
msgid ""
"This website’s identification is too old to trust. Check the date on your "
"computer’s calendar."
@@ -974,32 +989,32 @@
"การระบุตัวตนของเว็บไซต์นี้เก่าเกินกว่าจะเชื่อถือได้ กรุณาตรวจสอบวันที่ในปฏิทินของคอมพิวเตอร์ของคุณ"
#. Possible error message when a site presents a bad certificate.
-#: ../embed/ephy-web-view.c:1744
+#: ../embed/ephy-web-view.c:1753
msgid "This website’s identification was not issued by a trusted organization."
msgstr "การระบุตัวตนของเว็บไซต์นี้ไม่ได้ออกโดยองค์กรที่เชื่อถือได้"
#. Possible error message when a site presents a bad certificate.
-#: ../embed/ephy-web-view.c:1749
+#: ../embed/ephy-web-view.c:1758
msgid ""
"This website’s identification could not be processed. It may be corrupted."
msgstr "การระบุตัวตนของเว็บไซต์นี้ไม่สามารถประมวลผลได้ ข้อมูลตัวตนอาจจะเสียหาย"
#. Possible error message when a site presents a bad certificate.
-#: ../embed/ephy-web-view.c:1754
+#: ../embed/ephy-web-view.c:1763
msgid ""
"This website’s identification has been revoked by the trusted organization "
"that issued it."
msgstr "การระบุตัวตนของเว็บไซต์นี้ได้ถูกเพิกถอนโดยองค์กรที่เชื่อถือได้"
#. Possible error message when a site presents a bad certificate.
-#: ../embed/ephy-web-view.c:1759
+#: ../embed/ephy-web-view.c:1768
msgid ""
"This website’s identification cannot be trusted because it uses very weak "
"encryption."
msgstr "การระบุตัวตนของเว็บไซต์นี้ไม่อาจเชื่อถือได้ เพราะใช้วิธีเข้ารหัสลับที่หละหลวมมาก"
#. Possible error message when a site presents a bad certificate.
-#: ../embed/ephy-web-view.c:1764
+#: ../embed/ephy-web-view.c:1773
msgid ""
"This website’s identification is only valid for future dates. Check the date "
"on your computer’s calendar."
@@ -1008,13 +1023,13 @@
"กรุณาตรวจสอบวันที่ในปฏิทินของคอมพิวเตอร์ของคุณ"
#. Message when a site's TLS certificate is invalid. %s is the site's hostname.
-#: ../embed/ephy-web-view.c:1800
+#: ../embed/ephy-web-view.c:1809
#, c-format
msgid "This might not be the real %s."
msgstr "นี่อาจไม่ใช่ %s ที่แท้จริง"
#. Message when a site's TLS certificate is invalid.
-#: ../embed/ephy-web-view.c:1805
+#: ../embed/ephy-web-view.c:1814
msgid ""
"When you try to connect securely, websites present identification to prove "
"that your connection has not been maliciously intercepted. There is "
@@ -1025,7 +1040,7 @@
"มีบางอย่างผิดปกติเกี่ยวกับการระบุตัวตนของเว็บไซต์นี้:"
#. Message when a site's TLS certificate is invalid.
-#: ../embed/ephy-web-view.c:1811
+#: ../embed/ephy-web-view.c:1820
msgid ""
"A third party may have hijacked your connection. You should continue only if "
"you know there is a good reason why this website does not use trusted "
@@ -1035,27 +1050,27 @@
"คุณควรจะเชื่อมต่อต่อไปก็ต่อเมื่อคุณรู้ว่ามีเหตุผลที่ดีที่เว็บไซต์นี้ไม่ได้ใช้การระบุตัวตนที่เชื่อถือได้เท่านั้น"
#. Good advice from Firefox; displays when a site's TLS certificate is invalid.
-#: ../embed/ephy-web-view.c:1815
+#: ../embed/ephy-web-view.c:1824
msgid ""
"Legitimate banks, stores, and other public sites will not ask you to do this."
msgstr "ธนาคาร ร้านค้า และเว็บไซต์สาธารณะอื่นๆ ที่ถูกต้องตามกฎหมายจะไม่ขอให้คุณทำเช่นนี้"
-#: ../embed/ephy-web-view.c:1856
+#: ../embed/ephy-web-view.c:1865
msgid "None specified"
msgstr "ไม่ระบุ"
#. Page title when a site cannot be loaded. %s is the site's hostname.
-#: ../embed/ephy-web-view.c:1869 ../embed/ephy-web-view.c:1884
-#: ../embed/ephy-web-view.c:1904
+#: ../embed/ephy-web-view.c:1878 ../embed/ephy-web-view.c:1893
+#: ../embed/ephy-web-view.c:1913
#, c-format
msgid "Problem loading “%s”"
msgstr "เกิดปัญหาขณะเรียก “%s”"
-#: ../embed/ephy-web-view.c:1871
+#: ../embed/ephy-web-view.c:1880
msgid "Oops! Unable to display this website."
msgstr "โอ๊ะ! ไม่สามารถแสดงเว็บไซต์นี้ได้"
-#: ../embed/ephy-web-view.c:1872
+#: ../embed/ephy-web-view.c:1881
#, c-format
msgid ""
"<p>The site at “%s” seems to be unavailable. The precise error was:</"
@@ -1067,15 +1082,15 @@
"p><p>เว็บไซต์อาจปิดตัวชั่วคราวหรือย้ายไปยังที่ใหม่ "
"คุณอาจต้องการตรวจสอบการเชื่อมต่ออินเทอร์เน็ตของคุณด้วย</p>"
-#: ../embed/ephy-web-view.c:1880
+#: ../embed/ephy-web-view.c:1889
msgid "Try again"
msgstr "ลองใหม่"
-#: ../embed/ephy-web-view.c:1886
+#: ../embed/ephy-web-view.c:1895
msgid "Oops! There may be a problem."
msgstr "โอ๊ะ! อาจจะมีปัญหา"
-#: ../embed/ephy-web-view.c:1887
+#: ../embed/ephy-web-view.c:1896
#, c-format
msgid ""
"<p>This site may have caused Web to close unexpectedly.</p><p>If this "
@@ -1085,41 +1100,41 @@
"<p>เว็บไซต์นี้อาจทำให้เว็บเบราว์เซอร์ปิดตัวกะทันหัน</p><p>ถ้าเกิดเหตุการณ์นี้อีกครั้ง "
"ก็กรุณารายงานปัญหาไปยังนักพัฒนา <strong>%s</strong></p>"
-#: ../embed/ephy-web-view.c:1892 ../embed/ephy-web-view.c:1899
+#: ../embed/ephy-web-view.c:1901 ../embed/ephy-web-view.c:1908
msgid "Reload Anyway"
msgstr "โหลดซ้ำต่อไป"
-#: ../embed/ephy-web-view.c:1896
+#: ../embed/ephy-web-view.c:1905
#, c-format
msgid "Problem displaying “%s”"
msgstr "เกิดปัญหาขณะแสดง “%s”"
-#: ../embed/ephy-web-view.c:1897
+#: ../embed/ephy-web-view.c:1906
msgid "Oops!"
msgstr "โอ๊ะ!"
-#: ../embed/ephy-web-view.c:1898
+#: ../embed/ephy-web-view.c:1907
msgid ""
"Something went wrong while displaying this page. Please reload or visit a "
"different page to continue."
msgstr "มีบางอย่างผิดพลาดขณะแสดงหน้านี้ กรุณาโหลดซ้ำหรือเยี่ยมชมหน้าอื่นต่อไป"
#. Title of error page when a website's TLS certificate is invalid.
-#: ../embed/ephy-web-view.c:1906
+#: ../embed/ephy-web-view.c:1915
msgid "Look out!"
msgstr "ระวัง!"
#. Button on error page when a website's TLS certificate is invalid.
-#: ../embed/ephy-web-view.c:1909
+#: ../embed/ephy-web-view.c:1918
msgid "Load Anyway"
msgstr "โหลดต่อไป"
-#: ../embed/ephy-web-view.c:2809
+#: ../embed/ephy-web-view.c:2819
msgid "_OK"
msgstr "_ตกลง"
#: ../lib/ephy-file-chooser.c:184 ../lib/ephy-file-chooser.c:193
-#: ../src/bookmarks/ephy-bookmark-properties.c:428
+#: ../src/bookmarks/ephy-bookmark-properties.c:432
#: ../src/bookmarks/ephy-bookmarks-editor.c:819
#: ../src/resources/clear-data-dialog.ui.h:3
#: ../src/resources/prefs-lang-dialog.ui.h:2 ../src/window-commands.c:809
@@ -1130,23 +1145,19 @@
msgid "_Open"
msgstr "_เปิด"
-#: ../lib/ephy-file-chooser.c:194
-msgid "_Save"
-msgstr "_บันทึก"
-
#: ../lib/ephy-file-chooser.c:209
msgid "All supported types"
msgstr "ทุกชนิดที่รองรับ"
-#: ../lib/ephy-file-chooser.c:221
+#: ../lib/ephy-file-chooser.c:223
msgid "Web pages"
msgstr "หน้าเว็บ"
-#: ../lib/ephy-file-chooser.c:230
+#: ../lib/ephy-file-chooser.c:234
msgid "Images"
msgstr "รูปภาพ"
-#: ../lib/ephy-file-chooser.c:238 ../src/bookmarks/ephy-bookmarks-editor.c:637
+#: ../lib/ephy-file-chooser.c:242 ../src/bookmarks/ephy-bookmarks-editor.c:637
msgid "All files"
msgstr "ทุกชนิด"
@@ -1462,7 +1473,7 @@
msgid "Cancel"
msgstr "ยกเลิก"
-#: ../lib/widgets/ephy-download-widget.c:372 ../src/ephy-window.c:1120
+#: ../lib/widgets/ephy-download-widget.c:372 ../src/ephy-window.c:1121
#: ../src/window-commands.c:275
msgid "Open"
msgstr "เปิด"
@@ -1479,8 +1490,7 @@
#. * standard items in the GtkEntry context menu (Cut, Copy, Paste, Delete,
#. * Select All, Input Methods and Insert Unicode control character.)
#.
-#: ../lib/widgets/ephy-location-entry.c:606
-#: ../src/resources/prefs-dialog.ui.h:36 ../src/ephy-history-window.c:263
+#: ../lib/widgets/ephy-location-entry.c:606 ../src/ephy-history-window.c:263
msgid "Cl_ear"
msgstr "_ล้าง"
@@ -1505,29 +1515,33 @@
msgid_plural "%d bookmarks are similar"
msgstr[0] "ที่คั่นหน้า %d รายการคล้ายกัน"
-#: ../src/bookmarks/ephy-bookmark-properties.c:234
+#: ../src/bookmarks/ephy-bookmark-properties.c:235
+msgid "Add Bookmark"
+msgstr "เพิ่มที่คั่นหน้า"
+
+#: ../src/bookmarks/ephy-bookmark-properties.c:237
#, c-format
msgid "“%s” Properties"
msgstr "คุณสมบัติของ “%s”"
-#: ../src/bookmarks/ephy-bookmark-properties.c:358
+#: ../src/bookmarks/ephy-bookmark-properties.c:362
msgid "_Title:"
msgstr "_ชื่อ:"
-#: ../src/bookmarks/ephy-bookmark-properties.c:375
+#: ../src/bookmarks/ephy-bookmark-properties.c:379
msgid "A_ddress:"
msgstr "_ที่อยู่:"
-#: ../src/bookmarks/ephy-bookmark-properties.c:387
+#: ../src/bookmarks/ephy-bookmark-properties.c:391
msgid "T_opics:"
msgstr "ห_มวด:"
-#: ../src/bookmarks/ephy-bookmark-properties.c:410
+#: ../src/bookmarks/ephy-bookmark-properties.c:414
msgid "Sho_w all topics"
msgstr "แสด_งทุกหมวด"
-#: ../src/bookmarks/ephy-bookmark-properties.c:431
-#: ../src/resources/prefs-dialog.ui.h:41
+#: ../src/bookmarks/ephy-bookmark-properties.c:435
+#: ../src/resources/prefs-dialog.ui.h:40
#: ../src/resources/prefs-lang-dialog.ui.h:3
msgid "_Add"
msgstr "เ_พิ่ม"
@@ -1964,6 +1978,22 @@
msgid "Delete the selected cookies"
msgstr "ลบคุกกี้ที่เลือก"
+#: ../src/resources/encoding-dialog.ui.h:1
+msgid "Text Encoding"
+msgstr "รหัสอักขระ"
+
+#: ../src/resources/encoding-dialog.ui.h:2 ../src/ephy-encoding-menu.c:327
+msgid "_Automatic"
+msgstr "อัตโ_นมัติ"
+
+#: ../src/resources/encoding-dialog.ui.h:3 ../src/ephy-encoding-menu.c:328
+msgid "Use the encoding specified by the document"
+msgstr "ใช้รหัสอักขระที่ระบุในเอกสาร"
+
+#: ../src/resources/encoding-dialog.ui.h:4
+msgid "_Use a different encoding:"
+msgstr "ใ_ช้รหัสอักขระอื่น:"
+
#. File actions.
#: ../src/resources/epiphany-application-menu.ui.h:1 ../src/ephy-window.c:98
msgid "_New Window"
@@ -1994,22 +2024,6 @@
msgid "_Quit"
msgstr "_ออก"
-#: ../src/resources/epiphany.ui.h:1
-msgid "Text Encoding"
-msgstr "รหัสอักขระ"
-
-#: ../src/resources/epiphany.ui.h:2 ../src/ephy-encoding-menu.c:327
-msgid "_Automatic"
-msgstr "อัตโ_นมัติ"
-
-#: ../src/resources/epiphany.ui.h:3 ../src/ephy-encoding-menu.c:328
-msgid "Use the encoding specified by the document"
-msgstr "ใช้รหัสอักขระที่ระบุในเอกสาร"
-
-#: ../src/resources/epiphany.ui.h:4
-msgid "_Use a different encoding:"
-msgstr "ใ_ช้รหัสอักขระอื่น:"
-
#: ../src/resources/history-dialog.ui.h:1
msgid "History"
msgstr "ประวัติ"
@@ -2156,8 +2170,8 @@
msgstr "แบบอักษรและรูปลักษณ์"
#: ../src/resources/prefs-dialog.ui.h:22
-msgid "Manage _Cookies"
-msgstr "จัดการคุก_กี้"
+msgid "Manage _Cookies…"
+msgstr "จัดการคุก_กี้…"
#: ../src/resources/prefs-dialog.ui.h:23
msgid "_Always accept"
@@ -2185,58 +2199,58 @@
msgstr "แ_จ้งเว็บไซต์ว่าฉันไม่ต้องการถูกติดตามการเชื่อมต่อ"
#: ../src/resources/prefs-dialog.ui.h:31
-msgid "Manage _Passwords"
-msgstr "จัดการร_หัสผ่าน"
+msgid "Manage _Passwords…"
+msgstr "จัดการร_หัสผ่าน…"
#: ../src/resources/prefs-dialog.ui.h:32
msgid "_Remember passwords"
msgstr "จำรหัส_ผ่านต่างๆ"
#: ../src/resources/prefs-dialog.ui.h:33
-msgid "Temporary Files"
-msgstr "แฟ้มชั่วคราว"
+msgid "Stored Data"
+msgstr "ข้อมูลที่ถูกเก็บไว้"
#: ../src/resources/prefs-dialog.ui.h:34
-msgid "_Disk space:"
-msgstr "เนื้อ_ที่บนดิสก์:"
+msgid "You can clear stored personal data."
+msgstr "คุณสามารถล้างข้อมูลส่วนตัวที่ถูกเก็บไว้ได้"
#: ../src/resources/prefs-dialog.ui.h:35
-msgid "MB"
-msgstr "MB"
+msgid "Cl_ear Personal Data…"
+msgstr "_ล้างข้อมูลส่วนตัว…"
-#: ../src/resources/prefs-dialog.ui.h:37
+#: ../src/resources/prefs-dialog.ui.h:36
msgid "Privacy"
msgstr "ความเป็นส่วนตัว"
-#: ../src/resources/prefs-dialog.ui.h:38 ../src/ephy-encoding-dialog.c:379
+#: ../src/resources/prefs-dialog.ui.h:37 ../src/ephy-encoding-dialog.c:379
msgid "Encodings"
msgstr "รหัสอักขระ"
-#: ../src/resources/prefs-dialog.ui.h:39
+#: ../src/resources/prefs-dialog.ui.h:38
msgid "De_fault:"
msgstr "ค่า_ปริยาย:"
-#: ../src/resources/prefs-dialog.ui.h:42
+#: ../src/resources/prefs-dialog.ui.h:41
msgid "_Remove"
msgstr "ล_บ"
-#: ../src/resources/prefs-dialog.ui.h:43
+#: ../src/resources/prefs-dialog.ui.h:42
msgid "_Up"
msgstr "_ขึ้น"
-#: ../src/resources/prefs-dialog.ui.h:44
+#: ../src/resources/prefs-dialog.ui.h:43
msgid "_Down"
msgstr "_ลง"
-#: ../src/resources/prefs-dialog.ui.h:45
+#: ../src/resources/prefs-dialog.ui.h:44
msgid "Spell checking"
msgstr "การตรวจตัวสะกด"
-#: ../src/resources/prefs-dialog.ui.h:46
+#: ../src/resources/prefs-dialog.ui.h:45
msgid "_Enable spell checking"
msgstr "เปิดใ_ช้การตรวจตัวสะกด"
-#: ../src/resources/prefs-dialog.ui.h:47 ../src/prefs-dialog.c:840
+#: ../src/resources/prefs-dialog.ui.h:46 ../src/prefs-dialog.c:840
msgid "Language"
msgstr "ภาษา"
@@ -2355,7 +2369,7 @@
msgid "Web options"
msgstr "ตัวเลือกของโปรแกรมดูเว็บ"
-#: ../src/ephy-notebook.c:602
+#: ../src/ephy-notebook.c:615
msgid "Close tab"
msgstr "ปิดแท็บ"
@@ -2554,77 +2568,77 @@
msgid "_Copy Audio Address"
msgstr "_คัดลอกที่อยู่เสียง"
-#: ../src/ephy-window.c:466
+#: ../src/ephy-window.c:467
msgid "There are unsubmitted changes to form elements"
msgstr "มีการเปลี่ยนแปลงในช่องข้อมูลแบบฟอร์มที่ยังไม่ส่ง"
-#: ../src/ephy-window.c:467
+#: ../src/ephy-window.c:468
msgid "If you close the document anyway, you will lose that information."
msgstr "ถ้าคุณปิดเอกสาร คุณจะเสียข้อมูลเหล่านี้"
-#: ../src/ephy-window.c:469
+#: ../src/ephy-window.c:470
msgid "Close _Document"
msgstr "ปิ_ดเอกสาร"
-#: ../src/ephy-window.c:484
+#: ../src/ephy-window.c:485
msgid "There are ongoing downloads in this window"
msgstr "ยังมีรายการดาวน์โหลดในหน้าต่างนี้ที่ดำเนินการอยู่"
-#: ../src/ephy-window.c:485
+#: ../src/ephy-window.c:486
msgid "If you close this window, the downloads will be cancelled"
msgstr "ถ้าคุณปิดหน้าต่างนี้ รายการดาวน์โหลดดังกล่าวจะถูกยกเลิก"
-#: ../src/ephy-window.c:486
+#: ../src/ephy-window.c:487
msgid "Close window and cancel downloads"
msgstr "ปิดหน้าต่างและยกเลิกการดาวน์โหลด"
-#: ../src/ephy-window.c:1122
+#: ../src/ephy-window.c:1123
msgid "Save As"
msgstr "บันทึกเป็น"
-#: ../src/ephy-window.c:1124
+#: ../src/ephy-window.c:1125
msgid "Save As Application"
msgstr "บันทึกเป็นโปรแกรมเว็บ"
-#: ../src/ephy-window.c:1126
+#: ../src/ephy-window.c:1127
msgid "Print"
msgstr "พิมพ์"
-#: ../src/ephy-window.c:1128
+#: ../src/ephy-window.c:1129
msgid "Bookmark"
msgstr "ที่คั่นหน้า"
-#: ../src/ephy-window.c:1130
+#: ../src/ephy-window.c:1131
msgid "Find"
msgstr "ค้นหา"
#. Translators: This refers to text size
-#: ../src/ephy-window.c:1139
+#: ../src/ephy-window.c:1140
msgid "Larger"
msgstr "ใหญ่ขึ้น"
#. Translators: This refers to text size
-#: ../src/ephy-window.c:1142
+#: ../src/ephy-window.c:1143
msgid "Smaller"
msgstr "เล็กลง"
-#: ../src/ephy-window.c:1164
+#: ../src/ephy-window.c:1165
msgid "Back"
msgstr "ย้อนกลับ"
-#: ../src/ephy-window.c:1176
+#: ../src/ephy-window.c:1177
msgid "Forward"
msgstr "ต่อไป"
-#: ../src/ephy-window.c:1188
+#: ../src/ephy-window.c:1189
msgid "Zoom"
msgstr "ย่อ-ขยาย"
-#: ../src/ephy-window.c:1197
+#: ../src/ephy-window.c:1198
msgid "New _Tab"
msgstr "เปิดแ_ท็บใหม่"
-#: ../src/ephy-window.c:1205
+#: ../src/ephy-window.c:1206
msgid "Go to most visited"
msgstr "ไปยังหน้าที่ไปบ่อย"
@@ -2678,33 +2692,37 @@
#. * you chose in the gschema, but with & instead of &
#. * If the match is not exact, there will be a spurious, ugly
#. * entry in the preferences combo, so please test this.
-#: ../src/prefs-dialog.c:1023
+#: ../src/prefs-dialog.c:1024
#, c-format
msgid "https://duckduckgo.com/?q=%s&t=epiphany"
msgstr "https://duckduckgo.com/?q=%s&t=epiphany&kl=th-th&kad=th_TH"
#. Search engine option in the preferences dialog
-#: ../src/prefs-dialog.c:1025
+#: ../src/prefs-dialog.c:1026
msgid "Google"
msgstr "Google"
#. For the preferences dialog. Consider a regional variant, like google.co.uk
-#: ../src/prefs-dialog.c:1027
+#: ../src/prefs-dialog.c:1029
#, c-format
msgid "https://google.com/search?q=%s"
msgstr "https://google.co.th/search?q=%s"
#. Search engine option in the preferences dialog
-#: ../src/prefs-dialog.c:1029
+#: ../src/prefs-dialog.c:1031
msgid "Bing"
msgstr "Bing"
#. For the preferences dialog. Consider a regional variant, like uk.bing.com
-#: ../src/prefs-dialog.c:1031
+#: ../src/prefs-dialog.c:1034
#, c-format
msgid "https://www.bing.com/search?q=%s"
msgstr "https://www.bing.com/search?q=%s"
+#: ../src/window-commands.c:330
+msgid "Save"
+msgstr "บันทึก"
+
#: ../src/window-commands.c:710
#, c-format
msgid "A web application named '%s' already exists. Do you want to replace it?"
@@ -2803,6 +2821,21 @@
msgid "_Enable"
msgstr "เ_ปิดใช้"
+#~ msgid "Size of disk cache"
+#~ msgstr "เนื้อที่ของแคชบนดิสก์"
+
+#~ msgid "Size of disk cache, in MB."
+#~ msgstr "เนื้อที่ของแคชบนดิสก์ เป็น MB"
+
+#~ msgid "Temporary Files"
+#~ msgstr "แฟ้มชั่วคราว"
+
+#~ msgid "_Disk space:"
+#~ msgstr "เนื้อ_ที่บนดิสก์:"
+
+#~ msgid "MB"
+#~ msgstr "MB"
+
#~ msgid "http://www.google.com"
#~ msgstr "http://www.google.co.th"
@@ -4266,9 +4299,6 @@
#~ msgid "_Abort Script"
#~ msgstr "เ_ลิกทำสคริปต์"
-#~ msgid "Don't Save"
-#~ msgstr "ไ_ม่บันทึก"
-
#~ msgid "Text files"
#~ msgstr "แฟ้มข้อความ"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/epiphany-3.16.1/src/ephy-shell-search-provider-generated.c new/epiphany-3.16.2/src/ephy-shell-search-provider-generated.c
--- old/epiphany-3.16.1/src/ephy-shell-search-provider-generated.c 2015-04-08 16:28:40.000000000 +0200
+++ new/epiphany-3.16.2/src/ephy-shell-search-provider-generated.c 2015-06-23 14:02:39.000000000 +0200
@@ -1,5 +1,5 @@
/*
- * Generated by gdbus-codegen 2.44.0. DO NOT EDIT.
+ * Generated by gdbus-codegen 2.45.2. DO NOT EDIT.
*
* The license of this code is the same as for the source it was derived from.
*/
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/epiphany-3.16.1/src/ephy-shell-search-provider-generated.h new/epiphany-3.16.2/src/ephy-shell-search-provider-generated.h
--- old/epiphany-3.16.1/src/ephy-shell-search-provider-generated.h 2015-04-08 16:28:40.000000000 +0200
+++ new/epiphany-3.16.2/src/ephy-shell-search-provider-generated.h 2015-06-23 14:02:39.000000000 +0200
@@ -1,5 +1,5 @@
/*
- * Generated by gdbus-codegen 2.44.0. DO NOT EDIT.
+ * Generated by gdbus-codegen 2.45.2. DO NOT EDIT.
*
* The license of this code is the same as for the source it was derived from.
*/
1
0
Hello community,
here is the log from the commit of package sdcc for openSUSE:Factory checked in at 2015-06-30 10:18:26
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/sdcc (Old)
and /work/SRC/openSUSE:Factory/.sdcc.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "sdcc"
Changes:
--------
--- /work/SRC/openSUSE:Factory/sdcc/sdcc.changes 2014-12-03 22:49:22.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.sdcc.new/sdcc.changes 2015-06-30 10:18:33.000000000 +0200
@@ -1,0 +2,16 @@
+Fri Jun 26 05:33:39 UTC 2015 - dmitry_r(a)opensuse.org
+
+- Update to version 3.5.0
+ * Changed default language dialect from --std-sdcc89 to --std-sdcc99
+ * Reorganized and updated manual
+ * Reduced memory consumption (most noticeable for high --max-allocs-per-node)
+ * Faster compilation for stm8 (most noticeable for high --max-allocs-per-node)
+ * atoll() function for conversion of strings to long long
+ * __z88dk_fastcall and __z88dk_callee calling conventions for more
+ efficient function calls and better compability with z88dk
+ * --lospre-unsafe-read renamed to --allow-unsafe-read
+- Drop obsolete
+ * sdcc-remove-strndup.patch
+ * sdcc-libiberty.patch
+
+-------------------------------------------------------------------
Old:
----
sdcc-libiberty.patch
sdcc-remove-strndup.patch
sdcc-src-3.4.0.tar.bz2
New:
----
sdcc-src-3.5.0.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ sdcc.spec ++++++
--- /var/tmp/diff_new_pack.wKCWIY/_old 2015-06-30 10:18:34.000000000 +0200
+++ /var/tmp/diff_new_pack.wKCWIY/_new 2015-06-30 10:18:34.000000000 +0200
@@ -1,7 +1,7 @@
#
# spec file for package sdcc
#
-# Copyright (c) 2014 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
@@ -17,7 +17,7 @@
Name: sdcc
-Version: 3.4.0
+Version: 3.5.0
Release: 0
Summary: Small Device C Compiler
License: GPL-2.0+ and GPL-3.0+
@@ -25,8 +25,6 @@
Url: http://sdcc.sourceforge.net/
Source: http://downloads.sourceforge.net/%{name}/%{name}-src-%{version}.tar.bz2
Source1: %{name}-rpmlintrc
-Patch0: %{name}-remove-strndup.patch
-Patch1: %{name}-libiberty.patch
BuildRequires: bison
BuildRequires: boost-devel
BuildRequires: fdupes
@@ -37,6 +35,20 @@
BuildRequires: gputils
BuildRequires: libstdc++-devel
BuildRequires: libtool
+BuildRequires: ncurses-devel
+BuildRequires: python-devel
+# documentation
+%if 0%{?suse_version} >= 1320
+BuildRequires: latex2html
+BuildRequires: lyx
+BuildRequires: makeinfo
+BuildRequires: texlive-babel-english
+BuildRequires: texlive-dvipdfmx
+BuildRequires: texlive-fancyhdr
+BuildRequires: texlive-latex
+BuildRequires: texlive-makeindex
+BuildRequires: texlive-ulem
+%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@@ -76,21 +88,20 @@
%prep
%setup -q
-%if 0%{?suse_version} > 1320
-%patch0 -p 1 -b .strndup
-%endif
-%patch1 -p 1 -b .libiberty
-# bnc#889723
rm support/regression/tests/bug3304184.c
%build
CFLAGS="%{optflags} -fno-strict-aliasing" \
-%configure --prefix=%{_prefix} --docdir=%{_docdir}/sdcc
+%configure \
+ --docdir=%{_docdir}/sdcc \
+ %if 0%{?suse_version} >= 1320
+ --enable-doc
+ %endif
make %{?_smp_mflags}
%install
-make DESTDIR=%{buildroot} install
+%make_install
# install documentation
mkdir -p %{buildroot}%{_docdir}/%{name}/sdas
@@ -148,5 +159,8 @@
%dir %{_docdir}/%{name}
%{_docdir}/%{name}/ucsim
%{_docdir}/%{name}/sdas
+%if 0%{?suse_version} >= 1320
+%{_docdir}/%{name}/sdccman.pdf
+%endif
%changelog
++++++ sdcc-src-3.4.0.tar.bz2 -> sdcc-src-3.5.0.tar.bz2 ++++++
/work/SRC/openSUSE:Factory/sdcc/sdcc-src-3.4.0.tar.bz2 /work/SRC/openSUSE:Factory/.sdcc.new/sdcc-src-3.5.0.tar.bz2 differ: char 11, line 1
1
0
Hello community,
here is the log from the commit of package perl-Class-Load for openSUSE:Factory checked in at 2015-06-30 10:18:24
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Class-Load (Old)
and /work/SRC/openSUSE:Factory/.perl-Class-Load.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Class-Load"
Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-Class-Load/perl-Class-Load.changes 2015-04-18 10:40:11.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.perl-Class-Load.new/perl-Class-Load.changes 2015-06-30 10:18:32.000000000 +0200
@@ -1,0 +2,9 @@
+Sat Jun 27 08:25:44 UTC 2015 - coolo(a)suse.com
+
+- updated to 0.23
+ see /usr/share/doc/packages/perl-Class-Load/Changes
+
+ 0.23 2015-06-25
+ - remove use of namespace::clean
+
+-------------------------------------------------------------------
Old:
----
Class-Load-0.22.tar.gz
New:
----
Class-Load-0.23.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-Class-Load.spec ++++++
--- /var/tmp/diff_new_pack.sZlZgK/_old 2015-06-30 10:18:33.000000000 +0200
+++ /var/tmp/diff_new_pack.sZlZgK/_new 2015-06-30 10:18:33.000000000 +0200
@@ -17,7 +17,7 @@
Name: perl-Class-Load
-Version: 0.22
+Version: 0.23
Release: 0
%define cpan_name Class-Load
Summary: Working (Require "Class::Name") and More
@@ -31,7 +31,6 @@
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Data::OptList)
-BuildRequires: perl(Module::Build::Tiny) >= 0.037
BuildRequires: perl(Module::Implementation) >= 0.04
BuildRequires: perl(Module::Runtime) >= 0.012
BuildRequires: perl(Package::Stash) >= 0.14
@@ -39,14 +38,12 @@
BuildRequires: perl(Test::More) >= 0.88
BuildRequires: perl(Test::Requires)
BuildRequires: perl(Try::Tiny)
-BuildRequires: perl(namespace::clean)
BuildRequires: perl(version)
Requires: perl(Data::OptList)
Requires: perl(Module::Implementation) >= 0.04
Requires: perl(Module::Runtime) >= 0.012
Requires: perl(Package::Stash) >= 0.14
Requires: perl(Try::Tiny)
-Requires: perl(namespace::clean)
%{perl_requires}
%description
@@ -67,14 +64,15 @@
%setup -q -n %{cpan_name}-%{version}
%build
-%{__perl} Build.PL --installdirs=vendor
-./Build build --flags=%{?_smp_mflags}
+%{__perl} Makefile.PL INSTALLDIRS=vendor
+%{__make} %{?_smp_mflags}
%check
-./Build test
+%{__make} test
%install
-./Build install --destdir=%{buildroot} --create_packlist=0
+%perl_make_install
+%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
++++++ Class-Load-0.22.tar.gz -> Class-Load-0.23.tar.gz ++++++
++++ 3008 lines of diff (skipped)
1
0
Hello community,
here is the log from the commit of package edgar for openSUSE:Factory checked in at 2015-06-30 10:18:21
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/edgar (Old)
and /work/SRC/openSUSE:Factory/.edgar.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "edgar"
Changes:
--------
--- /work/SRC/openSUSE:Factory/edgar/edgar.changes 2015-03-23 12:19:12.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.edgar.new/edgar.changes 2015-06-30 10:18:29.000000000 +0200
@@ -1,0 +2,11 @@
+Sat Jun 27 17:38:09 UTC 2015 - nemysis(a)gmx.ch
+
+- Update to 1.21, announce message:
+
+ * Updated German and Slovak translations
+
+ The game's source has also been moved from Sourceforge to GitHub.
+
+- Change Source0 Web URL
+
+-------------------------------------------------------------------
Old:
----
edgar-1.20-1.tar.gz
New:
----
edgar-1.21.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ edgar.spec ++++++
--- /var/tmp/diff_new_pack.FqOw7J/_old 2015-06-30 10:18:32.000000000 +0200
+++ /var/tmp/diff_new_pack.FqOw7J/_new 2015-06-30 10:18:32.000000000 +0200
@@ -17,13 +17,13 @@
Name: edgar
-Version: 1.20
+Version: 1.21
Release: 0
Summary: 2D platform game with a persistent world
License: GPL-2.0
Group: Amusements/Games/Action/Arcade
Url: http://www.parallelrealities.co.uk/p/legend-of-edgar.html
-Source0: http://sourceforge.net/projects/legendof%{name}/files/%{version}/%{name}-%{…
+Source0: https://github.com/riksweeney/%{name}/archive/%{version}.tar.gz#/%{name}-%{…
%if 0%{?suse_version}
BuildRequires: fdupes
BuildRequires: hicolor-icon-theme
++++++ edgar-1.20-1.tar.gz -> edgar-1.21.tar.gz ++++++
/work/SRC/openSUSE:Factory/edgar/edgar-1.20-1.tar.gz /work/SRC/openSUSE:Factory/.edgar.new/edgar-1.21.tar.gz differ: char 5, line 1
1
0
Hello community,
here is the log from the commit of package perl-Devel-Confess for openSUSE:Factory checked in at 2015-06-30 10:18:20
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Devel-Confess (Old)
and /work/SRC/openSUSE:Factory/.perl-Devel-Confess.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Devel-Confess"
Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-Devel-Confess/perl-Devel-Confess.changes 2015-04-18 10:40:16.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.perl-Devel-Confess.new/perl-Devel-Confess.changes 2015-06-30 10:18:23.000000000 +0200
@@ -1,0 +2,16 @@
+Sat Jun 27 08:29:54 UTC 2015 - coolo(a)suse.com
+
+- updated to 0.008000
+ see /usr/share/doc/packages/perl-Devel-Confess/Changes
+
+ 0.008000 - 2015-06-26
+ - if dump option is used, bare references and objects without stringify
+ overloads will be dumpered when being output to the screen
+ - stack trace properly attached to bare references are rethrown and will be
+ output to the screen
+ - avoid Test::More in threads test to limit code run as much as possible
+ - other test cleanups
+ - fix DEBUGGING detection in newer perls
+ - protect tests against DEVEL_CONFESS_OPTIONS set in environment
+
+-------------------------------------------------------------------
Old:
----
Devel-Confess-0.007012.tar.gz
New:
----
Devel-Confess-0.008000.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-Devel-Confess.spec ++++++
--- /var/tmp/diff_new_pack.vWgjBa/_old 2015-06-30 10:18:24.000000000 +0200
+++ /var/tmp/diff_new_pack.vWgjBa/_new 2015-06-30 10:18:24.000000000 +0200
@@ -17,7 +17,7 @@
Name: perl-Devel-Confess
-Version: 0.007012
+Version: 0.008000
Release: 0
%define cpan_name Devel-Confess
Summary: Include stack traces on all warnings and errors
@@ -43,13 +43,13 @@
will also be made to include stack traces.
# it works for explicit die's and warn's
- $ perl -MDevel::Confess -e 'sub f { die "arghh" }; sub g { f }; g'
+ $ perl -d:Confess -e 'sub f { die "arghh" }; sub g { f }; g'
arghh at -e line 1.
main::f() called at -e line 1
main::g() called at -e line 1
# it works for interpreter-thrown failures
- $ perl -MDevel::Confess -w -e 'sub f { $a = shift; @a = @$a };' \
+ $ perl -d:Confess -w -e 'sub f { $a = shift; @a = @$a };' \
-e 'sub g { f(undef) }; g'
Use of uninitialized value $a in array dereference at -e line 1.
main::f(undef) called at -e line 2
++++++ Devel-Confess-0.007012.tar.gz -> Devel-Confess-0.008000.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Devel-Confess-0.007012/Changes new/Devel-Confess-0.008000/Changes
--- old/Devel-Confess-0.007012/Changes 2015-03-30 22:56:43.000000000 +0200
+++ new/Devel-Confess-0.008000/Changes 2015-06-26 08:53:47.000000000 +0200
@@ -1,5 +1,15 @@
Release history for Devel-Confess
+0.008000 - 2015-06-26
+ - if dump option is used, bare references and objects without stringify
+ overloads will be dumpered when being output to the screen
+ - stack trace properly attached to bare references are rethrown and will be
+ output to the screen
+ - avoid Test::More in threads test to limit code run as much as possible
+ - other test cleanups
+ - fix DEBUGGING detection in newer perls
+ - protect tests against DEVEL_CONFESS_OPTIONS set in environment
+
0.007012 - 2015-03-30
- avoid re-throwing errors during END on debugging perls
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Devel-Confess-0.007012/MANIFEST new/Devel-Confess-0.008000/MANIFEST
--- old/Devel-Confess-0.007012/MANIFEST 2015-03-30 22:57:07.000000000 +0200
+++ new/Devel-Confess-0.008000/MANIFEST 2015-06-26 08:54:08.000000000 +0200
@@ -14,6 +14,7 @@
t/global-destruct.t
t/leak.t
t/lib/capture.pm
+t/lib/test.pm
t/lib/threads_check.pm
t/names.t
t/safe.t
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Devel-Confess-0.007012/META.json new/Devel-Confess-0.008000/META.json
--- old/Devel-Confess-0.007012/META.json 2015-03-30 22:57:07.000000000 +0200
+++ new/Devel-Confess-0.008000/META.json 2015-06-26 08:54:08.000000000 +0200
@@ -4,7 +4,7 @@
"haarg - Graham Knop (cpan:HAARG) <haarg(a)haarg.org>"
],
"dynamic_config" : 0,
- "generated_by" : "ExtUtils::MakeMaker version 7.04, CPAN::Meta::Converter version 2.143240",
+ "generated_by" : "ExtUtils::MakeMaker version 7.0401, CPAN::Meta::Converter version 2.150001",
"license" : [
"perl_5"
],
@@ -65,5 +65,5 @@
"web" : "https://github.com/haarg/Devel-Confess"
}
},
- "version" : "0.007012"
+ "version" : "0.008000"
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Devel-Confess-0.007012/META.yml new/Devel-Confess-0.008000/META.yml
--- old/Devel-Confess-0.007012/META.yml 2015-03-30 22:57:07.000000000 +0200
+++ new/Devel-Confess-0.008000/META.yml 2015-06-26 08:54:08.000000000 +0200
@@ -8,7 +8,7 @@
configure_requires:
ExtUtils::MakeMaker: '0'
dynamic_config: 0
-generated_by: 'ExtUtils::MakeMaker version 7.04, CPAN::Meta::Converter version 2.143240'
+generated_by: 'ExtUtils::MakeMaker version 7.0401, CPAN::Meta::Converter version 2.150001'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -26,4 +26,4 @@
bugtracker: https://rt.cpan.org/Public/Dist/Display.html?Name=Devel-Confess
license: http://dev.perl.org/licenses/
repository: git://github.com/haarg/Devel-Confess
-version: '0.007012'
+version: '0.008000'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Devel-Confess-0.007012/README new/Devel-Confess-0.008000/README
--- old/Devel-Confess-0.007012/README 2015-03-30 22:57:07.000000000 +0200
+++ new/Devel-Confess-0.008000/README 2015-06-26 08:54:08.000000000 +0200
@@ -5,11 +5,11 @@
Use on the command line:
# Make every warning and error include a full stack trace
- perl -MDevel::Confess script.pl
-
- # equivalent short form
perl -d:Confess script.pl
+ # Also usable as a module
+ perl -MDevel::Confess script.pl
+
# display warnings in yellow and errors in red
perl -d:Confess=color script.pl
@@ -37,13 +37,13 @@
to include stack traces.
# it works for explicit die's and warn's
- $ perl -MDevel::Confess -e 'sub f { die "arghh" }; sub g { f }; g'
+ $ perl -d:Confess -e 'sub f { die "arghh" }; sub g { f }; g'
arghh at -e line 1.
main::f() called at -e line 1
main::g() called at -e line 1
# it works for interpreter-thrown failures
- $ perl -MDevel::Confess -w -e 'sub f { $a = shift; @a = @$a };' \
+ $ perl -d:Confess -w -e 'sub f { $a = shift; @a = @$a };' \
-e 'sub g { f(undef) }; g'
Use of uninitialized value $a in array dereference at -e line 1.
main::f(undef) called at -e line 2
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Devel-Confess-0.007012/lib/Devel/Confess/Builtin.pm new/Devel-Confess-0.008000/lib/Devel/Confess/Builtin.pm
--- old/Devel-Confess-0.007012/lib/Devel/Confess/Builtin.pm 2015-03-30 22:56:34.000000000 +0200
+++ new/Devel-Confess-0.008000/lib/Devel/Confess/Builtin.pm 2015-06-26 08:53:20.000000000 +0200
@@ -3,7 +3,7 @@
use warnings FATAL => 'all';
no warnings 'once';
-our $VERSION = '0.007012';
+our $VERSION = '0.008000';
$VERSION = eval $VERSION;
use Devel::Confess::_Util ();
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Devel-Confess-0.007012/lib/Devel/Confess/_Util.pm new/Devel-Confess-0.008000/lib/Devel/Confess/_Util.pm
--- old/Devel-Confess-0.007012/lib/Devel/Confess/_Util.pm 2015-03-30 20:53:22.000000000 +0200
+++ new/Devel-Confess-0.008000/lib/Devel/Confess/_Util.pm 2015-06-26 08:08:53.000000000 +0200
@@ -6,7 +6,7 @@
use base 'Exporter';
-our @EXPORT = qw(blessed refaddr weaken longmess _str_val _in_END);
+our @EXPORT = qw(blessed refaddr weaken longmess _str_val _in_END _can_stringify);
use Carp ();
use Carp::Heavy ();
@@ -88,9 +88,9 @@
};
} || eval q{
sub {
- my $class = blessed($_[0]);
+ my $class = &blessed;
return "$_[0]" unless defined $class;
- return sprintf("%s=%s(0x%x)", &blessed, &reftype, &refaddr);
+ return sprintf("%s=%s(0x%x)", $class, &reftype, &refaddr);
};
};
@@ -151,4 +151,30 @@
}
}
+if ($] < 5.008) {
+ eval q{
+ sub _can_stringify () {
+ my $i = 0;
+ while (my @caller = caller($i++)) {
+ if ($caller[3] eq '(eval)') {
+ return 0;
+ }
+ elsif ($caller[7]) {
+ return 0;
+ }
+ }
+ return 1;
+ }
+ 1;
+ } or die $@;
+}
+else {
+ eval q{
+ sub _can_stringify () {
+ defined $^S && !$^S;
+ }
+ 1;
+ } or die $@;
+}
+
1;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Devel-Confess-0.007012/lib/Devel/Confess.pm new/Devel-Confess-0.008000/lib/Devel/Confess.pm
--- old/Devel-Confess-0.007012/lib/Devel/Confess.pm 2015-03-30 22:56:34.000000000 +0200
+++ new/Devel-Confess-0.008000/lib/Devel/Confess.pm 2015-06-26 08:53:20.000000000 +0200
@@ -16,12 +16,12 @@
use warnings;
no warnings 'once';
-our $VERSION = '0.007012';
+our $VERSION = '0.008000';
$VERSION = eval $VERSION;
use Carp ();
use Symbol ();
-use Devel::Confess::_Util qw(blessed refaddr weaken longmess _str_val _in_END);
+use Devel::Confess::_Util qw(blessed refaddr weaken longmess _str_val _in_END _can_stringify);
use Config ();
BEGIN {
*_can = \&UNIVERSAL::can;
@@ -32,11 +32,12 @@
= ($] > 5.008009 && $] <= 5.010000) ? sub () { 1 } : sub () { 0 };
*_BROKEN_SIG_DELETE
= ($] < 5.008008) ? sub () { 1 } : sub () { 0 };
- my $debugging = defined &Config::non_bincompat_options
- ? (Config::non_bincompat_options() =~ /\bDEBUGGING\b/)
- : ($Config::Config{ccflags} =~ /-DDEBUGGING\b/);
*_DEBUGGING
- = $debugging ? sub () { 1 } : sub () { 0 };
+ = (
+ defined &Config::non_bincompat_options
+ ? (grep $_ eq 'DEBUGGING', Config::non_bincompat_options())
+ : ($Config::Config{ccflags} =~ /-DDEBUGGING\b/)
+ ) ? sub () { 1 } : sub () { 0 };
}
$Carp::Internal{+__PACKAGE__}++;
@@ -155,6 +156,7 @@
my $sig = $_[0];
return undef
if !defined $sig;
+ local $@;
return $sig
if ref $sig && eval { \&{$sig} };
return undef
@@ -168,11 +170,12 @@
sub _warn {
local $SIG{__WARN__};
my @convert = _convert(@_);
- if (my $warn = _find_sig($OLD_SIG{__WARN__})) {
- $warn->(join('', @convert));
+ if (my $sig = _find_sig($OLD_SIG{__WARN__})) {
+ $sig->(ref $convert[0] ? $convert[0] : join('', @convert));
}
else {
- _colorize(\@convert, 33) if $OPTIONS{color};
+ @convert = _ex_as_strings(@convert);
+ @convert = _colorize(33, @convert) if $OPTIONS{color};
warn @convert;
}
}
@@ -180,32 +183,29 @@
local $SIG{__DIE__};
my @convert = _convert(@_);
if (my $sig = _find_sig($OLD_SIG{__DIE__})) {
- $sig->(join('', @convert));
+ $sig->(ref $convert[0] ? $convert[0] : join('', @convert));
}
- _colorize(\@convert, 31) if $OPTIONS{color} && !$^S;
+ @convert = _ex_as_strings(@convert) if _can_stringify;
+ @convert = _colorize(31, @convert) if $OPTIONS{color} && _can_stringify;
if (_DEBUGGING && _in_END) {
local $SIG{__WARN__};
warn @convert;
$! ||= 1;
return;
}
- die @convert;
+ die @convert unless ref $convert[0];
}
sub _colorize {
- my ($convert, $color) = @_;
+ my ($color, @convert) = @_;
if ($ENV{DEVEL_CONFESS_FORCE_COLOR} || -t *STDERR) {
- if (blessed $convert->[0]) {
- if ($convert->[0]->isa('Devel::Confess::_Attached')) {
- splice @$convert, 0, 1, _ex_as_strings($convert->[0]);
- }
- else {
- $convert->[0] =~ s/(.*)/\e[${color}m$1\e[m/;
- return;
- }
+ if (@convert == 1) {
+ $convert[0] = s/(.*)//;
+ unshift @convert, $1;
}
- $convert->[0] = "\e[${color}m$convert->[0]\e[m";
+ $convert[0] = "\e[${color}m$convert[0]\e[m";
}
+ return @convert;
}
sub _ref_formatter {
@@ -319,7 +319,7 @@
}
bless $ex, $newclass;
- $ex;
+ return $ex;
}
elsif (ref($ex = $_[0])) {
my $id = refaddr($ex);
@@ -330,7 +330,7 @@
$PACKAGES{$id} = undef;
$MESSAGES{$id} ||= $message;
- return ($^S ? @_ : ( @_, $message ));
+ return $ex;
}
elsif ((caller(1))[0] eq 'Carp') {
my $out = join('', @_);
@@ -359,13 +359,29 @@
sub _ex_as_strings {
my $ex = $_[0];
+ return @_
+ unless ref $ex;
my $id = refaddr($ex);
my $class = $PACKAGES{$id};
my $message = $MESSAGES{$id};
- my $newclass = ref $ex;
- bless $ex, $class;
- my $out = "$ex";
- bless $ex, $newclass;
+ my $out;
+ if (blessed $ex) {
+ my $newclass = ref $ex;
+ bless $ex, $class if $class;
+ if ($OPTIONS{dump} && !overload::OverloadedStringify($ex)) {
+ $out = _ref_formatter($ex);
+ }
+ else {
+ $out = "$ex";
+ }
+ bless $ex, $newclass if $class;
+ }
+ elsif ($OPTIONS{dump}) {
+ $out = _ref_formatter($ex);
+ }
+ else {
+ $out = "$ex";
+ }
return ($out, $message);
}
@@ -445,11 +461,11 @@
Use on the command line:
# Make every warning and error include a full stack trace
- perl -MDevel::Confess script.pl
-
- # equivalent short form
perl -d:Confess script.pl
+ # Also usable as a module
+ perl -MDevel::Confess script.pl
+
# display warnings in yellow and errors in red
perl -d:Confess=color script.pl
@@ -478,13 +494,13 @@
include stack traces.
# it works for explicit die's and warn's
- $ perl -MDevel::Confess -e 'sub f { die "arghh" }; sub g { f }; g'
+ $ perl -d:Confess -e 'sub f { die "arghh" }; sub g { f }; g'
arghh at -e line 1.
main::f() called at -e line 1
main::g() called at -e line 1
# it works for interpreter-thrown failures
- $ perl -MDevel::Confess -w -e 'sub f { $a = shift; @a = @$a };' \
+ $ perl -d:Confess -w -e 'sub f { $a = shift; @a = @$a };' \
-e 'sub g { f(undef) }; g'
Use of uninitialized value $a in array dereference at -e line 1.
main::f(undef) called at -e line 2
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Devel-Confess-0.007012/t/color.t new/Devel-Confess-0.008000/t/color.t
--- old/Devel-Confess-0.007012/t/color.t 2014-12-21 07:30:59.000000000 +0100
+++ new/Devel-Confess-0.008000/t/color.t 2015-06-26 06:28:49.000000000 +0200
@@ -1,7 +1,10 @@
use strict;
use warnings;
+BEGIN {
+ $ENV{DEVEL_CONFESS_OPTIONS} = '';
+}
use Test::More;
-use t::lib::capture;
+use t::lib::capture capture_color => ['-MDevel::Confess=color'];
if ($^O eq 'MSWin32') {
plan skip_all => 'color option requires Win32::Console::ANSI in Windows'
@@ -36,8 +39,7 @@
END_OUTPUT
{
- local @CAPTURE_OPTS = ('-MDevel::Confess=color');
- my $out = capture $code;
+ my $out = capture_color $code;
is $out, $expected, 'error message properly colorized';
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Devel-Confess-0.007012/t/confess.t new/Devel-Confess-0.008000/t/confess.t
--- old/Devel-Confess-0.007012/t/confess.t 2014-07-16 00:58:05.000000000 +0200
+++ new/Devel-Confess-0.008000/t/confess.t 2015-06-26 08:09:37.000000000 +0200
@@ -1,9 +1,10 @@
use strict;
use warnings;
-use Test::More tests => 20;
-use t::lib::capture;
-
-@CAPTURE_OPTS = ('-MDevel::Confess');
+BEGIN {
+ $ENV{DEVEL_CONFESS_OPTIONS} = '';
+}
+use Test::More tests => 32;
+use t::lib::capture capture => ['-MDevel::Confess'];
is capture <<'END_CODE', <<'END_OUTPUT', 'basic test';
package A;
@@ -96,7 +97,7 @@
main::bar() called at test-block.pl line 3
END_OUTPUT
- like capture <<"END_CODE", qr/${\<<'END_OUTPUT'}/, "$type with object";
+ like capture <<"END_CODE", qr/\A${\<<'END_OUTPUT'}\z/, "$type with object";
use Carp;
sub foo {
#line 1 test-block.pl
@@ -126,7 +127,56 @@
main::foo() called at test-block.pl line 2
END_OUTPUT
- like capture <<"END_CODE", qr/${\<<'END_OUTPUT'}/, "$type with non-object ref";
+ {
+ local $ENV{DEVEL_CONFESS_OPTIONS} = 'dump';
+
+ like capture <<"END_CODE", qr/\A${\<<'END_OUTPUT'}\z/, "$type with object + dump";
+use Carp;
+sub foo {
+#line 1 test-block.pl
+ $type bless {}, 'NoOverload';
+}
+#line 2 test-block.pl
+foo();
+END_CODE
+bless\( \{\}, 'NoOverload' \) at test-block\.pl line 1\.
+ main::foo\(\) called at test-block\.pl line 2
+END_OUTPUT
+
+ is capture <<"END_CODE", <<'END_OUTPUT', "$type with object with overload + dump";
+use Carp;
+{
+ package HasOverload;
+ use overload '""' => sub { "message" };
+}
+sub foo {
+#line 1 test-block.pl
+ $type bless {}, 'HasOverload';
+}
+#line 2 test-block.pl
+foo();
+END_CODE
+message at test-block.pl line 1.
+ main::foo() called at test-block.pl line 2
+END_OUTPUT
+ }
+
+
+ like capture <<"END_CODE", qr/\A${\<<'END_OUTPUT'}\z/, "$type with non-object ref";
+use Carp;
+sub foo {
+#line 1 test-block.pl
+ $type [1];
+}
+#line 2 test-block.pl
+foo();
+END_CODE
+ARRAY\(0x\w+\) at test-block\.pl line 1\.
+ main::foo\(\) called at test-block\.pl line 2
+END_OUTPUT
+
+ local $ENV{DEVEL_CONFESS_OPTIONS} = 'dump';
+ like capture <<"END_CODE", qr/\A${\<<'END_OUTPUT'}\z/, "$type with non-object ref + dump";
use Carp;
sub foo {
#line 1 test-block.pl
@@ -135,8 +185,25 @@
#line 2 test-block.pl
foo();
END_CODE
-^ARRAY\(0x\w+\) at test-block\.pl line 1\.
+\[1\] at test-block\.pl line 1\.
+ main::foo\(\) called at test-block\.pl line 2
+END_OUTPUT
+
+ like capture <<"END_CODE", qr/\A${\<<'END_OUTPUT'}\z/, "$type rethrowing non-object ref + dump";
+use Carp;
+sub foo {
+#line 1 test-block.pl
+ $type [1];
+}
+#line 2 test-block.pl
+eval { foo() };
+print STDERR \$@ . "\n";
+die;
+END_CODE
+ARRAY\(0x\w+\)
+\[1\] at test-block\.pl line 1\.
main::foo\(\) called at test-block\.pl line 2
+ eval \{...\} called at test-block.pl line 2
END_OUTPUT
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Devel-Confess-0.007012/t/devel.t new/Devel-Confess-0.008000/t/devel.t
--- old/Devel-Confess-0.007012/t/devel.t 2014-07-16 00:58:05.000000000 +0200
+++ new/Devel-Confess-0.008000/t/devel.t 2015-06-26 06:28:33.000000000 +0200
@@ -1,7 +1,13 @@
use strict;
use warnings;
+BEGIN {
+ $ENV{DEVEL_CONFESS_OPTIONS} = '';
+}
use Test::More tests => 2;
-use t::lib::capture;
+use t::lib::capture
+ capture_as_debugger => ['-d:Confess'],
+ capture_with_debugger => ['-d', '-MDevel::Confess'],
+;
use Cwd qw(cwd);
my $code = <<'END_CODE';
@@ -31,21 +37,18 @@
END_OUTPUT
{
- local @CAPTURE_OPTS = ('-d:Confess');
- my $out = capture $code;
+ my $out = capture_as_debugger $code;
$out =~ s/\A.*?^started\s+//ms;
is $out, $expected, 'Devel::Confess usable as a debugger';
}
{
- local @CAPTURE_OPTS = ('-d', '-MDevel::Confess');
-
local %ENV = %ENV;
delete $ENV{$_} for grep /^PERL5?DB/, keys %ENV;
delete $ENV{LOGDIR};
$ENV{HOME} = cwd;
$ENV{PERLDB_OPTS} = 'NonStop noTTY dieLevel=1';
- my $out = capture $code;
+ my $out = capture_with_debugger $code;
$out =~ s/\A.*?^started\s+//ms;
like $out, qr/^\Q$expected/, 'Devel::Confess usable with the debugger';
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Devel-Confess-0.007012/t/dump.t new/Devel-Confess-0.008000/t/dump.t
--- old/Devel-Confess-0.007012/t/dump.t 2014-07-16 00:58:05.000000000 +0200
+++ new/Devel-Confess-0.008000/t/dump.t 2015-06-26 06:28:45.000000000 +0200
@@ -1,5 +1,8 @@
use strict;
use warnings;
+BEGIN {
+ $ENV{DEVEL_CONFESS_OPTIONS} = '';
+}
use Carp ();
use Test::More defined &Carp::format_arg
? (tests => 5)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Devel-Confess-0.007012/t/end-debugging.t new/Devel-Confess-0.008000/t/end-debugging.t
--- old/Devel-Confess-0.007012/t/end-debugging.t 2015-03-30 20:53:22.000000000 +0200
+++ new/Devel-Confess-0.008000/t/end-debugging.t 2015-06-26 06:28:26.000000000 +0200
@@ -1,9 +1,10 @@
use strict;
use warnings;
+BEGIN {
+ $ENV{DEVEL_CONFESS_OPTIONS} = '';
+}
use Test::More tests => 1;
-use t::lib::capture;
-
-@CAPTURE_OPTS = ('-MDevel::Confess');
+use t::lib::capture capture => ['-MDevel::Confess'];
unlike capture <<"END_CODE", qr/Assertion failed/, "die in END";
sub error {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Devel-Confess-0.007012/t/global-destruct.t new/Devel-Confess-0.008000/t/global-destruct.t
--- old/Devel-Confess-0.007012/t/global-destruct.t 2015-01-19 19:35:20.000000000 +0100
+++ new/Devel-Confess-0.008000/t/global-destruct.t 2015-06-26 06:28:21.000000000 +0200
@@ -1,5 +1,8 @@
use strict;
use warnings;
+BEGIN {
+ $ENV{DEVEL_CONFESS_OPTIONS} = '';
+}
no warnings 'once';
use Devel::Confess;
use POSIX ();
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Devel-Confess-0.007012/t/leak.t new/Devel-Confess-0.008000/t/leak.t
--- old/Devel-Confess-0.007012/t/leak.t 2015-01-24 18:54:54.000000000 +0100
+++ new/Devel-Confess-0.008000/t/leak.t 2015-06-26 08:40:11.000000000 +0200
@@ -1,5 +1,8 @@
use strict;
use warnings;
+BEGIN {
+ $ENV{DEVEL_CONFESS_OPTIONS} = '';
+}
use Scalar::Util;
use Test::More
defined &Scalar::Util::weaken ? (tests => 4)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Devel-Confess-0.007012/t/lib/capture.pm new/Devel-Confess-0.008000/t/lib/capture.pm
--- old/Devel-Confess-0.007012/t/lib/capture.pm 2015-03-10 17:20:51.000000000 +0100
+++ new/Devel-Confess-0.008000/t/lib/capture.pm 2015-05-28 06:49:19.000000000 +0200
@@ -5,15 +5,27 @@
use File::Temp qw(tempfile);
use IPC::Open3;
use File::Spec;
-use base qw(Exporter);
-our @EXPORT = qw(capture *CAPTURE_OPTS);
-
-our @CAPTURE_OPTS;
my @PERL5OPTS = map "-I$_", @INC;
-sub capture ($) {
- my ($code) = @_;
+sub import {
+ my $class = shift;
+ my $target = caller;
+ my @args = @_ ? @_ : 'capture';
+ while (my $sub = shift @args) {
+ die "bad option: $sub"
+ if ref $sub;
+ my @opts;
+ @opts = @{ shift @args }
+ if ref $args[0];
+ my $export = sub ($) { _capture($_[0], @opts) };
+ no strict 'refs';
+ *{"${target}::${sub}"} = $export;
+ }
+}
+
+sub _capture {
+ my ($code, @opts) = @_;
my ($fh, $filename) = tempfile()
or die "can't open temp file: $!";
@@ -21,7 +33,7 @@
close $fh;
open my $in, '<', File::Spec->devnull or die "can't open null: $!";
- open3( $in, my $out, undef, $^X, @PERL5OPTS, @CAPTURE_OPTS, $filename)
+ open3( $in, my $out, undef, $^X, @PERL5OPTS, @opts, $filename)
or die "Couldn't open subprocess: $!\n";
my $output = do { local $/; <$out> };
close $in;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Devel-Confess-0.007012/t/lib/test.pm new/Devel-Confess-0.008000/t/lib/test.pm
--- old/Devel-Confess-0.007012/t/lib/test.pm 1970-01-01 01:00:00.000000000 +0100
+++ new/Devel-Confess-0.008000/t/lib/test.pm 2015-05-29 00:27:20.000000000 +0200
@@ -0,0 +1,61 @@
+package t::lib::test;
+use strict;
+use warnings;
+
+my $done;
+my $tests = 0;
+my $failed = 0;
+
+END {
+ die "done_testing not seen!"
+ if !$done;
+ $? ||= $failed;
+}
+
+sub is ($$;$) {
+ my ($got, $want, $message) = @_;
+
+ $_ = defined $_ ? qq{'$_'} : 'undef'
+ for $got, $want;
+
+ ok ($got eq $want, $message) or do {
+ s/\n/\n# /g
+ for $got, $want;
+ print STDERR "# Failed test" . ($message ? " '$message'" : '') . "\n";
+ print STDERR "# got: $got\n";
+ print STDERR "# expected: $want\n";
+ return !!0;
+ };
+}
+
+sub ok ($;$) {
+ my ($ok, $message) = @_;
+ $tests++;
+ if (!$ok) {
+ print 'not ';
+ $failed++;
+ }
+ print "ok $tests";
+ print " - $message"
+ if defined $message && length $message;
+ print "\n";
+ return $ok;
+}
+
+sub done_testing (;$) {
+ if (@_) {
+ die "tests done ($tests) doesn't match tests planned ($_[0])"
+ if $tests != $_[0];
+ }
+ $done = 1;
+ print "1..$tests\n";
+}
+
+sub import {
+ my $target = caller;
+ no strict 'refs';
+ *{"${target}::$_"} = \&$_
+ for qw(is ok done_testing);
+}
+
+1;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Devel-Confess-0.007012/t/names.t new/Devel-Confess-0.008000/t/names.t
--- old/Devel-Confess-0.007012/t/names.t 2015-01-28 21:01:49.000000000 +0100
+++ new/Devel-Confess-0.008000/t/names.t 2015-06-26 06:28:06.000000000 +0200
@@ -1,5 +1,8 @@
use strict;
use warnings;
+BEGIN {
+ $ENV{DEVEL_CONFESS_OPTIONS} = '';
+}
use Devel::Confess ();
use Test::More
Devel::Confess::_CAN_USE_INFORMATIVE_NAMES ? (tests => 2)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Devel-Confess-0.007012/t/safe.t new/Devel-Confess-0.008000/t/safe.t
--- old/Devel-Confess-0.007012/t/safe.t 2015-01-26 05:23:44.000000000 +0100
+++ new/Devel-Confess-0.008000/t/safe.t 2015-06-26 06:28:13.000000000 +0200
@@ -1,5 +1,8 @@
use strict;
use warnings;
+BEGIN {
+ $ENV{DEVEL_CONFESS_OPTIONS} = '';
+}
use Test::More tests => 3;
use Safe;
use Devel::Confess ();
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Devel-Confess-0.007012/t/sig.t new/Devel-Confess-0.008000/t/sig.t
--- old/Devel-Confess-0.007012/t/sig.t 2015-01-28 17:31:56.000000000 +0100
+++ new/Devel-Confess-0.008000/t/sig.t 2015-06-26 06:29:28.000000000 +0200
@@ -1,5 +1,8 @@
use strict;
use warnings;
+BEGIN {
+ $ENV{DEVEL_CONFESS_OPTIONS} = '';
+}
use Test::More tests => 12;
use t::lib::capture;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Devel-Confess-0.007012/t/source.t new/Devel-Confess-0.008000/t/source.t
--- old/Devel-Confess-0.007012/t/source.t 2014-07-16 00:58:05.000000000 +0200
+++ new/Devel-Confess-0.008000/t/source.t 2015-06-26 06:29:27.000000000 +0200
@@ -1,5 +1,8 @@
use strict;
use warnings;
+BEGIN {
+ $ENV{DEVEL_CONFESS_OPTIONS} = '';
+}
use Test::More tests => 3;
use Devel::Confess qw(source);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Devel-Confess-0.007012/t/threads.t new/Devel-Confess-0.008000/t/threads.t
--- old/Devel-Confess-0.007012/t/threads.t 2015-01-26 04:20:41.000000000 +0100
+++ new/Devel-Confess-0.008000/t/threads.t 2015-06-26 06:29:24.000000000 +0200
@@ -2,7 +2,12 @@
use threads;
use strict;
use warnings;
-use Test::More tests => 3;
+BEGIN {
+ $ENV{DEVEL_CONFESS_OPTIONS} = '';
+}
+
+use t::lib::test;
+
use Devel::Confess;
my $gone = 0;
@@ -60,3 +65,5 @@
ok $cleared,
'cloned exception cleans up namespace when destroyed';
+
+done_testing;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Devel-Confess-0.007012/xt/builtin.t new/Devel-Confess-0.008000/xt/builtin.t
--- old/Devel-Confess-0.007012/xt/builtin.t 2013-11-09 07:23:58.000000000 +0100
+++ new/Devel-Confess-0.008000/xt/builtin.t 2015-05-29 00:27:20.000000000 +0200
@@ -1,7 +1,10 @@
use strict;
use warnings;
use Test::More;
-use t::lib::capture;
+use t::lib::capture
+ 'capture',
+ capture_builtin => ['-MDevel::Confess::Builtin'],
+;
use Devel::Confess::Builtin ();
my @class = (
@@ -40,9 +43,7 @@
A::f();
}
END
- @CAPTURE_OPTS = ('-MDevel::Confess::Builtin');
- my $before = capture $code.'B::g();';
- @CAPTURE_OPTS = ();
+ my $before = capture_builtin $code.'B::g();';
my $after = capture $code.'require Devel::Confess::Builtin;Devel::Confess::Builtin->import(); B::g();';
like $before, qr/B::g/, "verbose when loaded before $class";
like $after, qr/B::g/, "verbose when loaded after $class";
1
0
Hello community,
here is the log from the commit of package perl-Exporter-Declare for openSUSE:Factory checked in at 2015-06-30 10:18:18
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Exporter-Declare (Old)
and /work/SRC/openSUSE:Factory/.perl-Exporter-Declare.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Exporter-Declare"
Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-Exporter-Declare/perl-Exporter-Declare.changes 2013-07-16 17:02:15.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.perl-Exporter-Declare.new/perl-Exporter-Declare.changes 2015-06-30 10:18:22.000000000 +0200
@@ -1,0 +2,6 @@
+Sat Jun 27 08:33:02 UTC 2015 - coolo(a)suse.com
+
+- updated to 0.114
+ see /usr/share/doc/packages/perl-Exporter-Declare/
+
+-------------------------------------------------------------------
Old:
----
Exporter-Declare-0.113.tar.gz
New:
----
Exporter-Declare-0.114.tar.gz
cpanspec.yml
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-Exporter-Declare.spec ++++++
--- /var/tmp/diff_new_pack.pDg0qU/_old 2015-06-30 10:18:23.000000000 +0200
+++ /var/tmp/diff_new_pack.pDg0qU/_new 2015-06-30 10:18:23.000000000 +0200
@@ -1,7 +1,7 @@
#
# spec file for package perl-Exporter-Declare
#
-# Copyright (c) 2013 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
@@ -17,34 +17,25 @@
Name: perl-Exporter-Declare
-Version: 0.113
+Version: 0.114
Release: 0
%define cpan_name Exporter-Declare
Summary: Exporting done right
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Exporter-Declare/
-Source: http://www.cpan.org/authors/id/E/EX/EXODIST/%{cpan_name}-%{version}.tar.gz
+Source0: http://www.cpan.org/authors/id/E/EX/EXODIST/%{cpan_name}-%{version}.tar.gz
+Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Fennec::Lite) >= 0.004
BuildRequires: perl(Meta::Builder) >= 0.003
-BuildRequires: perl(Module::Build) >= 0.40
-BuildRequires: perl(Test::Exception) >= 0.29
+BuildRequires: perl(Module::Build) >= 0.420000
+BuildRequires: perl(Test::Exception) >= 0.290000
BuildRequires: perl(Test::Simple) >= 0.88
BuildRequires: perl(aliased)
-#BuildRequires: perl(Exporter::Declare)
-#BuildRequires: perl(Exporter::Declare::Export)
-#BuildRequires: perl(Exporter::Declare::Export::Alias)
-#BuildRequires: perl(Exporter::Declare::Export::Generator)
-#BuildRequires: perl(Exporter::Declare::Export::Sub)
-#BuildRequires: perl(Exporter::Declare::Export::Variable)
-#BuildRequires: perl(Exporter::Declare::Magic)
-#BuildRequires: perl(Exporter::Declare::Meta)
-#BuildRequires: perl(Exporter::Declare::Specs)
-#BuildRequires: perl(InheritanceParent)
Requires: perl(Meta::Builder) >= 0.003
Requires: perl(aliased)
%{perl_requires}
@@ -72,6 +63,6 @@
%files -f %{name}.files
%defattr(-,root,root,755)
-%doc Changes README
+%doc README
%changelog
++++++ Exporter-Declare-0.113.tar.gz -> Exporter-Declare-0.114.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Exporter-Declare-0.113/Changes new/Exporter-Declare-0.114/Changes
--- old/Exporter-Declare-0.113/Changes 2013-06-07 05:35:24.000000000 +0200
+++ new/Exporter-Declare-0.114/Changes 1970-01-01 01:00:00.000000000 +0100
@@ -1,10 +0,0 @@
-WARNING: This file is very likely to get out of date, I almost never remeber to
-update it.
-
-0.111:
- * Fix broken inheritance, better fix for UNIVERAL::can sillyness
-
-0.110:
- * Fixed 'can() used as function' warning that sometimes happens
- * Fixed brocken magic.t unit test
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Exporter-Declare-0.113/MANIFEST new/Exporter-Declare-0.114/MANIFEST
--- old/Exporter-Declare-0.113/MANIFEST 2013-06-07 05:35:24.000000000 +0200
+++ new/Exporter-Declare-0.114/MANIFEST 2015-06-23 23:01:46.000000000 +0200
@@ -1,5 +1,4 @@
Build.PL
-Changes
lib/Exporter/Declare.pm
lib/Exporter/Declare/Export.pm
lib/Exporter/Declare/Export/Alias.pm
@@ -12,6 +11,7 @@
META.json
META.yml
README
+README.pod
t/Declare.t
t/Export.t
t/Generator.t
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Exporter-Declare-0.113/META.json new/Exporter-Declare-0.114/META.json
--- old/Exporter-Declare-0.113/META.json 2013-06-07 05:35:24.000000000 +0200
+++ new/Exporter-Declare-0.114/META.json 2015-06-23 23:01:46.000000000 +0200
@@ -4,7 +4,7 @@
"Chad Granum <exodist7(a)gmail.com>"
],
"dynamic_config" : 1,
- "generated_by" : "Module::Build version 0.4003, CPAN::Meta::Converter version 2.120921",
+ "generated_by" : "Module::Build version 0.4212",
"license" : [
"perl_5"
],
@@ -23,7 +23,7 @@
},
"configure" : {
"requires" : {
- "Module::Build" : "0.40"
+ "Module::Build" : "0.42"
}
},
"runtime" : {
@@ -39,35 +39,28 @@
"provides" : {
"Exporter::Declare" : {
"file" : "lib/Exporter/Declare.pm",
- "version" : "0.113"
+ "version" : "0.114"
},
"Exporter::Declare::Export" : {
- "file" : "lib/Exporter/Declare/Export.pm",
- "version" : 0
+ "file" : "lib/Exporter/Declare/Export.pm"
},
"Exporter::Declare::Export::Alias" : {
- "file" : "lib/Exporter/Declare/Export/Alias.pm",
- "version" : 0
+ "file" : "lib/Exporter/Declare/Export/Alias.pm"
},
"Exporter::Declare::Export::Generator" : {
- "file" : "lib/Exporter/Declare/Export/Generator.pm",
- "version" : 0
+ "file" : "lib/Exporter/Declare/Export/Generator.pm"
},
"Exporter::Declare::Export::Sub" : {
- "file" : "lib/Exporter/Declare/Export/Sub.pm",
- "version" : 0
+ "file" : "lib/Exporter/Declare/Export/Sub.pm"
},
"Exporter::Declare::Export::Variable" : {
- "file" : "lib/Exporter/Declare/Export/Variable.pm",
- "version" : 0
+ "file" : "lib/Exporter/Declare/Export/Variable.pm"
},
"Exporter::Declare::Meta" : {
- "file" : "lib/Exporter/Declare/Meta.pm",
- "version" : 0
+ "file" : "lib/Exporter/Declare/Meta.pm"
},
"Exporter::Declare::Specs" : {
- "file" : "lib/Exporter/Declare/Specs.pm",
- "version" : 0
+ "file" : "lib/Exporter/Declare/Specs.pm"
}
},
"release_status" : "stable",
@@ -83,5 +76,5 @@
"url" : "http://github.com/exodist/Exporter-Declare"
}
},
- "version" : "0.113"
+ "version" : "0.114"
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Exporter-Declare-0.113/META.yml new/Exporter-Declare-0.114/META.yml
--- old/Exporter-Declare-0.113/META.yml 2013-06-07 05:35:24.000000000 +0200
+++ new/Exporter-Declare-0.114/META.yml 2015-06-23 23:01:46.000000000 +0200
@@ -3,52 +3,45 @@
author:
- 'Chad Granum <exodist7(a)gmail.com>'
build_requires:
- Fennec::Lite: 0.004
- Test::Exception: 0.29
- Test::Simple: 0.88
+ Fennec::Lite: '0.004'
+ Test::Exception: '0.29'
+ Test::Simple: '0.88'
configure_requires:
- Module::Build: 0.40
+ Module::Build: '0.42'
dynamic_config: 1
-generated_by: 'Module::Build version 0.4003, CPAN::Meta::Converter version 2.120921'
+generated_by: 'Module::Build version 0.4212, CPAN::Meta::Converter version 2.150001'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
- version: 1.4
+ version: '1.4'
name: Exporter-Declare
provides:
Exporter::Declare:
file: lib/Exporter/Declare.pm
- version: 0.113
+ version: '0.114'
Exporter::Declare::Export:
file: lib/Exporter/Declare/Export.pm
- version: 0
Exporter::Declare::Export::Alias:
file: lib/Exporter/Declare/Export/Alias.pm
- version: 0
Exporter::Declare::Export::Generator:
file: lib/Exporter/Declare/Export/Generator.pm
- version: 0
Exporter::Declare::Export::Sub:
file: lib/Exporter/Declare/Export/Sub.pm
- version: 0
Exporter::Declare::Export::Variable:
file: lib/Exporter/Declare/Export/Variable.pm
- version: 0
Exporter::Declare::Meta:
file: lib/Exporter/Declare/Meta.pm
- version: 0
Exporter::Declare::Specs:
file: lib/Exporter/Declare/Specs.pm
- version: 0
requires:
- Carp: 0
- Meta::Builder: 0.003
- Scalar::Util: 0
- aliased: 0
+ Carp: '0'
+ Meta::Builder: '0.003'
+ Scalar::Util: '0'
+ aliased: '0'
perl: v5.8.0
resources:
bugtracker: http://github.com/exodist/Exporter-Declare/issues
homepage: http://open-exodus.net/projects/Exporter-Declare
license: http://dev.perl.org/licenses/
repository: http://github.com/exodist/Exporter-Declare
-version: 0.113
+version: '0.114'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Exporter-Declare-0.113/README new/Exporter-Declare-0.114/README
--- old/Exporter-Declare-0.113/README 2013-06-07 05:35:24.000000000 +0200
+++ new/Exporter-Declare-0.114/README 2015-06-23 23:01:46.000000000 +0200
@@ -1,195 +1,216 @@
NAME
+
Exporter::Declare - Exporting done right
DESCRIPTION
+
Exporter::Declare is a meta-driven exporting tool. Exporter::Declare
tries to adopt all the good features of other exporting tools, while
- throwing away horrible interfaces. Exporter::Declare also provides hooks
- that allow you to add options and arguments for import. Finally,
+ throwing away horrible interfaces. Exporter::Declare also provides
+ hooks that allow you to add options and arguments for import. Finally,
Exporter::Declare's meta-driven system allows for top-notch
introspection.
FEATURES
+
Declarative exporting (like Moose for exporting)
+
Meta-driven for introspection
+
Customizable import() method
+
Export groups (tags)
+
Export generators for subs and variables
+
Clear and concise OO API
+
Exports are blessed, allowing for more introspection
+
Import syntax based off of Sub::Exporter
+
Packages export aliases
SYNOPSIS
- EXPORTER
+
+ EXPORTER
+
package Some::Exporter;
use Exporter::Declare;
-
+
default_exports qw/ do_the_thing /;
exports qw/ subA subB $SCALAR @ARRAY %HASH /;
-
+
# Create a couple tags (import lists)
export_tag subs => qw/ subA subB do_the_thing /;
export_tag vars => qw/ $SCALAR @ARRAY %HASH /;
-
+
# These are simple boolean options, pass '-optionA' to enable it.
import_options qw/ optionA optionB /;
-
+
# These are options which slurp in the next argument as their value, pass
# '-optionC' => 'foo' to give it a value.
import_arguments qw/ optionC optionD /;
-
+
export anon_export => sub { ... };
export '@anon_var' => [...];
-
+
default_export a_default => sub { 'default!' }
-
+
our $X = "x";
default_export '$X';
-
+
my $iterator = 'a';
gen_export unique_class_id => sub {
my $current = $iterator++;
return sub { $current };
};
-
+
gen_default_export '$my_letter' => sub {
my $letter = $iterator++;
return \$letter;
};
-
+
# You can create a function to mangle the arguments before they are
# parsed into a Exporter::Declare::Spec object.
sub alter_import_args {
- my ($class, $args) = @_;
-
+ my ($class, $importer, $args) = @_;
+
# fiddle with args before importing routines are called
@$args = grep { !/^skip_/ } @$args
}
-
+
# There is no need to fiddle with import() or do any wrapping.
# the $specs data structure means you generally do not need to parse
# arguments yourself (but you can if you want using alter_import_args())
-
+
# Change the spec object before export occurs
sub before_import {
my $class = shift;
my ( $importer, $specs ) = @_;
-
+
if ($specs->config->{optionA}) {
# Modify $spec attributes accordingly
}
}
-
+
# Use spec object after export occurs
sub after_import {
my $class = shift;
my ( $importer, $specs ) = @_;
-
+
do_option_a() if $specs->config->{optionA};
-
+
do_option_c( $specs->config->{optionC} )
if $specs->config->{optionC};
-
+
print "-subs tag was used\n"
if $specs->config->{subs};
-
+
print "exported 'subA'\n"
if $specs->exports->{subA};
}
-
+
...
- IMPORTER
+ IMPORTER
+
package Some::Importer;
use Some::Exporter qw/ subA $SCALAR !%HASH /,
-default => { -prefix => 'my_' },
qw/ -optionA !-optionB /,
subB => { -as => 'sub_b' };
-
+
subA();
print $SCALAR;
sub_b();
my_do_the_thing();
-
+
...
IMPORT INTERFACE
- Importing from a package that uses Exporter::Declare will be familiar to
- anyone who has imported from modules before. Arguments are all assumed
- to be export names, unless prefixed with "-" or ":" In which case they
- may be a tag or an option. Exports without a sigil are assumed to be
- code exports, variable exports must be listed with their sigil.
- Items prefixed with the "!" symbol are forcfully excluded, regardless of
+ Importing from a package that uses Exporter::Declare will be familiar
+ to anyone who has imported from modules before. Arguments are all
+ assumed to be export names, unless prefixed with - or : In which case
+ they may be a tag or an option. Exports without a sigil are assumed to
+ be code exports, variable exports must be listed with their sigil.
+
+ Items prefixed with the ! symbol are forcefully excluded, regardless of
any listed item that may normally include them. Tags can also be
excluded, this will effectively exclude everything in the tag.
Tags are simply lists of exports, the exporting class may define any
number of tags. Exporter::Declare also has the concept of options, they
have the same syntax as tags. Options may be boolean or argument based.
- Boolean options are actually 3 value, undef, false "!", or true.
- Argument based options will grab the next value in the arguments list as
- their own, regardless of what type of value it is.
+ Boolean options are actually 3 value, undef, false !, or true. Argument
+ based options will grab the next value in the arguments list as their
+ own, regardless of what type of value it is.
When you use the module, or call import(), all the arguments are
transformed into an Exporter::Declare::Specs object. Arguments are
- parsed for you into a list of imports, and a configuration hash in which
- tags/options are keys. Tags are listed in the config hash as true,
- false, or undef depending on if they were included, negated, or
+ parsed for you into a list of imports, and a configuration hash in
+ which tags/options are keys. Tags are listed in the config hash as
+ true, false, or undef depending on if they were included, negated, or
unlisted. Boolean options will be treated in the same way as tags.
Options that take arguments will have the argument as their value.
- SELECTING ITEMS TO IMPORT
+ SELECTING ITEMS TO IMPORT
+
Exports can be subs, or package variables (scalar, hash, array). For
subs simply ask for the sub by name, you may optionally prefix the subs
- name with the sub sigil "&". For variables list the variable name along
- with its sigil "$, %, or @".
+ name with the sub sigil &. For variables list the variable name along
+ with its sigil $, %, or @.
use Some::Exporter qw/ somesub $somescalar %somehash @somearray /;
- TAGS
+ TAGS
+
Every exporter automatically has the following 3 tags, in addition they
may define any number of custom tags. Tags can be specified by their
- name prefixed by either "-" or ":".
+ name prefixed by either - or :.
-all
- This tag may be used to import everything the exporter provides.
+
+ This tag may be used to import everything the exporter provides.
-default
- This tag is used to import the default items exported. This will be
- used when no argument is provided to import.
- -alias
- Every package has an alias that it can export. This is the last
- segmant of the packages namespace. IE "My::Long::Package::Name::Foo"
- could export the "Foo()" function. These alias functionis simply
- return the full package name as a string, in this case
- 'My::Long::Package::Name::Foo'. This is similar to aliased.
+ This tag is used to import the default items exported. This will be
+ used when no argument is provided to import.
- The -alias tag is a shortcut so that you do not need to think about
- what the alias name would be when adding it to the import arguments.
+ -alias
- use My::Long::Package::Name::Foo -alias;
+ Every package has an alias that it can export. This is the last
+ segment of the packages namespace. IE My::Long::Package::Name::Foo
+ could export the Foo() function. These alias functions simply return
+ the full package name as a string, in this case
+ 'My::Long::Package::Name::Foo'. This is similar to aliased.
+
+ The -alias tag is a shortcut so that you do not need to think about
+ what the alias name would be when adding it to the import arguments.
+
+ use My::Long::Package::Name::Foo -alias;
+
+ my $foo = Foo()->new(...);
- my $foo = Foo()->new(...);
+ RENAMING IMPORTED ITEMS
- RENAMING IMPORTED ITEMS
You can prefix, suffix, or completely rename the items you import.
Whenever an item is followed by a hash in the import list, that hash
will be used for configuration. Configuration items always start with a
- dash "-".
+ dash -.
The 3 available configuration options that effect import names are
- "-prefix", "-suffix", and "-as". If "-as" is seen it will be used as is.
- If prefix or suffix are seen they will be attached to the original name
+ -prefix, -suffix, and -as. If -as is seen it will be used as is. If
+ prefix or suffix are seen they will be attached to the original name
(unless -as is present in which case they are ignored).
use Some::Exporter subA => { -as => 'DoThing' },
subB => { -prefix => 'my_', -suffix => '_ok' };
- The example above will import "subA()" under the name "DoThing()". It
- will also import "subB()" under the name "my_subB_ok()".
+ The example above will import subA() under the name DoThing(). It will
+ also import subB() under the name my_subB_ok().
You may als specify a prefix and/or suffix for tags. The following
example will import all the default exports with 'my_' prefixed to each
@@ -197,14 +218,16 @@
use Some::Exporter -default => { -prefix => 'my_' };
- OPTIONS
+ OPTIONS
+
Some exporters will recognise options. Options look just like tags, and
are specified the same way. What options do, and how they effect things
is exporter-dependant.
use Some::Exporter qw/ -optionA -optionB /;
- ARGUMENTS
+ ARGUMENTS
+
Some options require an argument. These options are just like other
tags/options except that the next item in the argument list is slurped
in as the option value.
@@ -214,7 +237,8 @@
Once again available options are exporter specific.
- PROVIDING ARGUMENTS FOR GENERATED ITEMS
+ PROVIDING ARGUMENTS FOR GENERATED ITEMS
+
Some items are generated at import time. These items may accept
arguments. There are 3 ways to provide arguments, and they may all be
mixed (though that is not recommended).
@@ -231,80 +255,102 @@
use Some::Exporter generated => { -as => 'my_gen', -args => [ 'arg1', ... ]};
- You can use all three at once, but this is really a bad idea, documented
- for completeness:
+ You can use all three at once, but this is really a bad idea,
+ documented for completeness:
use Some::Exporter generated => { -as => 'my_gen, key => 'value', -args => [ 'arg1', 'arg2' ]}
generated => [ 'arg3', 'arg4' ];
The example above will work fine, all the arguments will make it into
the generator. The only valid reason for this to work is that you may
- provide arguments such as "-prefix" to a tag that brings in generator(),
- while also desiring to give arguments to generator() independantly.
+ provide arguments such as -prefix to a tag that brings in generator(),
+ while also desiring to give arguments to generator() independently.
PRIMARY EXPORT API
+
With the exception of import(), all the following work equally well as
functions or class methods.
import( @args )
- The import() class method. This turns the @args list into an
- Exporter::Declare::Specs object.
+
+ The import() class method. This turns the @args list into an
+ Exporter::Declare::Specs object.
exports( @add_items )
- Add items to be exported.
+
+ Add items to be exported.
@list = exports()
- Retrieve list of exports.
+
+ Retrieve list of exports.
default_exports( @add_items )
- Add items to be exported, and add them to the -default tag.
+
+ Add items to be exported, and add them to the -default tag.
@list = default_exports()
- List of exports in the -default tag
+
+ List of exports in the -default tag
import_options(@add_items)
- Specify boolean options that should be accepted at import time.
+
+ Specify boolean options that should be accepted at import time.
import_arguments(@add_items)
- Specify options that should be accepted at import that take
- arguments.
+
+ Specify options that should be accepted at import that take
+ arguments.
export_tag( $name, @add_items );
- Define an export tag, or add items to an existing tag.
+
+ Define an export tag, or add items to an existing tag.
EXTENDED EXPORT API
- These all work fine in function or method form, however the syntax sugar
- will only work in function form.
+
+ These all work fine in function or method form, however the syntax
+ sugar will only work in function form.
reexport( $package )
- Make this exporter inherit all the exports and tags of $package.
- Works for Exporter::Declare or Exporter.pm based exporters.
- Re-Exporting of Sub::Exporter based classes is not currently
- supported.
+
+ Make this exporter inherit all the exports and tags of $package.
+ Works for Exporter::Declare or Exporter.pm based exporters.
+ Re-Exporting of Sub::Exporter based classes is not currently
+ supported.
export_to( $package, @args )
- Export to the specified class.
+
+ Export to the specified class.
export( $name )
+
export( $name, $ref )
- export is a keyword that lets you export any 1 item at a time. The
- item can be exported by name, or name + ref. When a ref is provided,
- the export is created, but there is no corresponding variable/sub in
- the packages namespace.
+
+ export is a keyword that lets you export any 1 item at a time. The
+ item can be exported by name, or name + ref. When a ref is provided,
+ the export is created, but there is no corresponding variable/sub in
+ the packages namespace.
default_export( $name )
+
default_export( $name, $ref )
+
gen_export( $name )
+
gen_export( $name, $ref )
+
gen_default_export( $name )
+
gen_default_export( $name, $ref )
- These all act just like export(), except that they add subrefs as
- generators, and/or add exports to the -default tag.
+
+ These all act just like export(), except that they add subrefs as
+ generators, and/or add exports to the -default tag.
MAGIC
+
Please use Exporter::Declare::Magic directly from now on.
- DEPRECATED USAGE OF MAGIC
+ DEPRECATED USAGE OF MAGIC
+
use Exporter::Declare '-magic';
This adds Devel::Declare magic to several functions. It also allows you
@@ -317,29 +363,33 @@
use Exporter::Declare -magic => [ '-default', '!export', -prefix => 'magic_' ];
INTERNAL API
+
Exporter/Declare.pm does not have much logic to speak of. Rather
Exporter::Declare is sugar on top of class meta data stored in
Exporter::Declare::Meta objects. Arguments are parsed via
- Exporter::Declare::Specs, and also turned into objects. Even exports are
- blessed references to the exported item itself, and handle the injection
- on their own (See Exporter::Declare::Export).
+ Exporter::Declare::Specs, and also turned into objects. Even exports
+ are blessed references to the exported item itself, and handle the
+ injection on their own (See Exporter::Declare::Export).
META CLASS
+
All exporters have a meta class, the only way to get the meta object is
- to call the exporter_meta() method on the class/object that is an
+ to call the export_meta() method on the class/object that is an
exporter. Any class that uses Exporter::Declare gets this method, and a
meta-object.
AUTHORS
+
Chad Granum exodist7(a)gmail.com
COPYRIGHT
+
Copyright (C) 2010 Chad Granum
Exporter-Declare is free software; Standard perl licence.
Exporter-Declare is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the license for
- more details.
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the license
+ for more details.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Exporter-Declare-0.113/README.pod new/Exporter-Declare-0.114/README.pod
--- old/Exporter-Declare-0.113/README.pod 1970-01-01 01:00:00.000000000 +0100
+++ new/Exporter-Declare-0.114/README.pod 2015-06-23 23:01:46.000000000 +0200
@@ -0,0 +1,401 @@
+=head1 NAME
+
+Exporter::Declare - Exporting done right
+
+=head1 DESCRIPTION
+
+Exporter::Declare is a meta-driven exporting tool. Exporter::Declare tries to
+adopt all the good features of other exporting tools, while throwing away
+horrible interfaces. Exporter::Declare also provides hooks that allow you to add
+options and arguments for import. Finally, Exporter::Declare's meta-driven
+system allows for top-notch introspection.
+
+=head1 FEATURES
+
+=over 4
+
+=item Declarative exporting (like L<Moose> for exporting)
+
+=item Meta-driven for introspection
+
+=item Customizable import() method
+
+=item Export groups (tags)
+
+=item Export generators for subs and variables
+
+=item Clear and concise OO API
+
+=item Exports are blessed, allowing for more introspection
+
+=item Import syntax based off of L<Sub::Exporter>
+
+=item Packages export aliases
+
+=back
+
+=head1 SYNOPSIS
+
+=head2 EXPORTER
+
+ package Some::Exporter;
+ use Exporter::Declare;
+
+ default_exports qw/ do_the_thing /;
+ exports qw/ subA subB $SCALAR @ARRAY %HASH /;
+
+ # Create a couple tags (import lists)
+ export_tag subs => qw/ subA subB do_the_thing /;
+ export_tag vars => qw/ $SCALAR @ARRAY %HASH /;
+
+ # These are simple boolean options, pass '-optionA' to enable it.
+ import_options qw/ optionA optionB /;
+
+ # These are options which slurp in the next argument as their value, pass
+ # '-optionC' => 'foo' to give it a value.
+ import_arguments qw/ optionC optionD /;
+
+ export anon_export => sub { ... };
+ export '@anon_var' => [...];
+
+ default_export a_default => sub { 'default!' }
+
+ our $X = "x";
+ default_export '$X';
+
+ my $iterator = 'a';
+ gen_export unique_class_id => sub {
+ my $current = $iterator++;
+ return sub { $current };
+ };
+
+ gen_default_export '$my_letter' => sub {
+ my $letter = $iterator++;
+ return \$letter;
+ };
+
+ # You can create a function to mangle the arguments before they are
+ # parsed into a Exporter::Declare::Spec object.
+ sub alter_import_args {
+ my ($class, $args) = @_;
+
+ # fiddle with args before importing routines are called
+ @$args = grep { !/^skip_/ } @$args
+ }
+
+ # There is no need to fiddle with import() or do any wrapping.
+ # the $specs data structure means you generally do not need to parse
+ # arguments yourself (but you can if you want using alter_import_args())
+
+ # Change the spec object before export occurs
+ sub before_import {
+ my $class = shift;
+ my ( $importer, $specs ) = @_;
+
+ if ($specs->config->{optionA}) {
+ # Modify $spec attributes accordingly
+ }
+ }
+
+ # Use spec object after export occurs
+ sub after_import {
+ my $class = shift;
+ my ( $importer, $specs ) = @_;
+
+ do_option_a() if $specs->config->{optionA};
+
+ do_option_c( $specs->config->{optionC} )
+ if $specs->config->{optionC};
+
+ print "-subs tag was used\n"
+ if $specs->config->{subs};
+
+ print "exported 'subA'\n"
+ if $specs->exports->{subA};
+ }
+
+ ...
+
+=head2 IMPORTER
+
+ package Some::Importer;
+ use Some::Exporter qw/ subA $SCALAR !%HASH /,
+ -default => { -prefix => 'my_' },
+ qw/ -optionA !-optionB /,
+ subB => { -as => 'sub_b' };
+
+ subA();
+ print $SCALAR;
+ sub_b();
+ my_do_the_thing();
+
+ ...
+
+=head1 IMPORT INTERFACE
+
+Importing from a package that uses Exporter::Declare will be familiar to anyone
+who has imported from modules before. Arguments are all assumed to be export
+names, unless prefixed with C<-> or C<:> In which case they may be a tag or an
+option. Exports without a sigil are assumed to be code exports, variable
+exports must be listed with their sigil.
+
+Items prefixed with the C<!> symbol are forcefully excluded, regardless of any
+listed item that may normally include them. Tags can also be excluded, this
+will effectively exclude everything in the tag.
+
+Tags are simply lists of exports, the exporting class may define any number of
+tags. Exporter::Declare also has the concept of options, they have the same
+syntax as tags. Options may be boolean or argument based. Boolean options are
+actually 3 value, undef, false C<!>, or true. Argument based options will grab
+the next value in the arguments list as their own, regardless of what type of
+value it is.
+
+When you use the module, or call import(), all the arguments are transformed
+into an L<Exporter::Declare::Specs> object. Arguments are parsed for you into a
+list of imports, and a configuration hash in which tags/options are keys. Tags
+are listed in the config hash as true, false, or undef depending on if they
+were included, negated, or unlisted. Boolean options will be treated in the
+same way as tags. Options that take arguments will have the argument as their
+value.
+
+=head2 SELECTING ITEMS TO IMPORT
+
+Exports can be subs, or package variables (scalar, hash, array). For subs
+simply ask for the sub by name, you may optionally prefix the subs name with
+the sub sigil C<&>. For variables list the variable name along with its sigil
+C<$, %, or @>.
+
+ use Some::Exporter qw/ somesub $somescalar %somehash @somearray /;
+
+=head2 TAGS
+
+Every exporter automatically has the following 3 tags, in addition they may
+define any number of custom tags. Tags can be specified by their name prefixed
+by either C<-> or C<:>.
+
+=over 4
+
+=item -all
+
+This tag may be used to import everything the exporter provides.
+
+=item -default
+
+This tag is used to import the default items exported. This will be used when
+no argument is provided to import.
+
+=item -alias
+
+Every package has an alias that it can export. This is the last segment of the
+packages namespace. IE C<My::Long::Package::Name::Foo> could export the C<Foo()>
+function. These alias functions simply return the full package name as a
+string, in this case C<'My::Long::Package::Name::Foo'>. This is similar to
+L<aliased>.
+
+The -alias tag is a shortcut so that you do not need to think about what the
+alias name would be when adding it to the import arguments.
+
+ use My::Long::Package::Name::Foo -alias;
+
+ my $foo = Foo()->new(...);
+
+=back
+
+=head2 RENAMING IMPORTED ITEMS
+
+You can prefix, suffix, or completely rename the items you import. Whenever an
+item is followed by a hash in the import list, that hash will be used for
+configuration. Configuration items always start with a dash C<->.
+
+The 3 available configuration options that effect import names are C<-prefix>,
+C<-suffix>, and C<-as>. If C<-as> is seen it will be used as is. If prefix or
+suffix are seen they will be attached to the original name (unless -as is
+present in which case they are ignored).
+
+ use Some::Exporter subA => { -as => 'DoThing' },
+ subB => { -prefix => 'my_', -suffix => '_ok' };
+
+The example above will import C<subA()> under the name C<DoThing()>. It will
+also import C<subB()> under the name C<my_subB_ok()>.
+
+You may als specify a prefix and/or suffix for tags. The following example will
+import all the default exports with 'my_' prefixed to each name.
+
+ use Some::Exporter -default => { -prefix => 'my_' };
+
+=head2 OPTIONS
+
+Some exporters will recognise options. Options look just like tags, and are
+specified the same way. What options do, and how they effect things is
+exporter-dependant.
+
+ use Some::Exporter qw/ -optionA -optionB /;
+
+=head2 ARGUMENTS
+
+Some options require an argument. These options are just like other
+tags/options except that the next item in the argument list is slurped in as
+the option value.
+
+ use Some::Exporter -ArgOption => 'Value, not an export',
+ -ArgTakesHash => { ... };
+
+Once again available options are exporter specific.
+
+=head2 PROVIDING ARGUMENTS FOR GENERATED ITEMS
+
+Some items are generated at import time. These items may accept arguments.
+There are 3 ways to provide arguments, and they may all be mixed (though that
+is not recommended).
+
+As a hash
+
+ use Some::Exporter generated => { key => 'val', ... };
+
+As an array
+
+ use Some::Exporter generated => [ 'Arg1', 'Arg2', ... ];
+
+As an array in a config hash
+
+ use Some::Exporter generated => { -as => 'my_gen', -args => [ 'arg1', ... ]};
+
+You can use all three at once, but this is really a bad idea, documented for completeness:
+
+ use Some::Exporter generated => { -as => 'my_gen, key => 'value', -args => [ 'arg1', 'arg2' ]}
+ generated => [ 'arg3', 'arg4' ];
+
+The example above will work fine, all the arguments will make it into the
+generator. The only valid reason for this to work is that you may provide
+arguments such as C<-prefix> to a tag that brings in generator(), while also
+desiring to give arguments to generator() independently.
+
+=head1 PRIMARY EXPORT API
+
+With the exception of import(), all the following work equally well as
+functions or class methods.
+
+=over 4
+
+=item import( @args )
+
+The import() class method. This turns the @args list into an
+L<Exporter::Declare::Specs> object.
+
+=item exports( @add_items )
+
+Add items to be exported.
+
+=item @list = exports()
+
+Retrieve list of exports.
+
+=item default_exports( @add_items )
+
+Add items to be exported, and add them to the -default tag.
+
+=item @list = default_exports()
+
+List of exports in the -default tag
+
+=item import_options(@add_items)
+
+Specify boolean options that should be accepted at import time.
+
+=item import_arguments(@add_items)
+
+Specify options that should be accepted at import that take arguments.
+
+=item export_tag( $name, @add_items );
+
+Define an export tag, or add items to an existing tag.
+
+=back
+
+=head1 EXTENDED EXPORT API
+
+These all work fine in function or method form, however the syntax sugar will
+only work in function form.
+
+=over 4
+
+=item reexport( $package )
+
+Make this exporter inherit all the exports and tags of $package. Works for
+Exporter::Declare or Exporter.pm based exporters. Re-Exporting of
+L<Sub::Exporter> based classes is not currently supported.
+
+=item export_to( $package, @args )
+
+Export to the specified class.
+
+=item export( $name )
+
+=item export( $name, $ref )
+
+export is a keyword that lets you export any 1 item at a time. The item can be
+exported by name, or name + ref. When a ref is provided, the export is created,
+but there is no corresponding variable/sub in the packages namespace.
+
+=item default_export( $name )
+
+=item default_export( $name, $ref )
+
+=item gen_export( $name )
+
+=item gen_export( $name, $ref )
+
+=item gen_default_export( $name )
+
+=item gen_default_export( $name, $ref )
+
+These all act just like export(), except that they add subrefs as generators,
+and/or add exports to the -default tag.
+
+=back
+
+=head1 MAGIC
+
+Please use L<Exporter::Declare::Magic> directly from now on.
+
+=head2 DEPRECATED USAGE OF MAGIC
+
+ use Exporter::Declare '-magic';
+
+This adds L<Devel::Declare> magic to several functions. It also allows you to
+easily create or use parsers on your own exports. See
+L<Exporter::Declare::Magic> for more details.
+
+You can also provide import arguments to L<Devel::Declare::Magic>
+
+ # Arguments to -magic must be in an arrayref, not a hashref.
+ use Exporter::Declare -magic => [ '-default', '!export', -prefix => 'magic_' ];
+
+=head1 INTERNAL API
+
+Exporter/Declare.pm does not have much logic to speak of. Rather
+Exporter::Declare is sugar on top of class meta data stored in
+L<Exporter::Declare::Meta> objects. Arguments are parsed via
+L<Exporter::Declare::Specs>, and also turned into objects. Even exports are
+blessed references to the exported item itself, and handle the injection on
+their own (See L<Exporter::Declare::Export>).
+
+=head1 META CLASS
+
+All exporters have a meta class, the only way to get the meta object is to call
+the exporter_meta() method on the class/object that is an exporter. Any class
+that uses Exporter::Declare gets this method, and a meta-object.
+
+=head1 AUTHORS
+
+Chad Granum L<exodist7(a)gmail.com>
+
+=head1 COPYRIGHT
+
+Copyright (C) 2010 Chad Granum
+
+Exporter-Declare is free software; Standard perl licence.
+
+Exporter-Declare is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE. See the license for more details.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Exporter-Declare-0.113/lib/Exporter/Declare/Meta.pm new/Exporter-Declare-0.114/lib/Exporter/Declare/Meta.pm
--- old/Exporter-Declare-0.113/lib/Exporter/Declare/Meta.pm 2013-06-07 05:35:24.000000000 +0200
+++ new/Exporter-Declare-0.114/lib/Exporter/Declare/Meta.pm 2015-06-23 23:01:46.000000000 +0200
@@ -52,7 +52,12 @@
$newmerge->{$item} = $value;
}
$self->default_hash_merge( $data, $metric, $action, $newmerge );
- }
+ },
+ list => sub {
+ my $self = shift;
+ my ($data) = @_;
+ return keys %$data;
+ },
);
hash_metric options => (
@@ -67,6 +72,11 @@
$self->default_hash_add( $data, $metric, $action, $item, 1 );
},
+ list => sub {
+ my $self = shift;
+ my ($data) = @_;
+ return keys %$data;
+ },
);
hash_metric arguments => (
@@ -88,7 +98,12 @@
delete $newmerge->{suffix};
delete $newmerge->{prefix};
$self->default_hash_merge( $data, $metric, $action, $newmerge );
- }
+ },
+ list => sub {
+ my $self = shift;
+ my ($data) = @_;
+ return keys %$data;
+ },
);
lists_metric export_tags => (
@@ -122,7 +137,12 @@
}
$self->default_list_merge( $data, $metric, $action, $newmerge );
- }
+ },
+ list => sub {
+ my $self = shift;
+ my ($data) = @_;
+ return keys %$data;
+ },
);
sub new {
@@ -219,7 +239,7 @@
=head1 NAME
-Exporter::Declare::Meta - The mata object which stoes meta-data for all
+Exporter::Declare::Meta - The meta object which stores meta-data for all
exporters.
=head1 DESCRIPTION
@@ -267,32 +287,38 @@
Add @items to the specified tag. Tag will be created if it does not already
exist. $name should be the tag name B<WITHOUT> -/: prefix.
+=item @list = $meta->export_tags_get( $name )
+
+Get the list of items associated with the specified tag. $name should be the
+tag name B<WITHOUT> -/: prefix.
+
+=item @list = $meta->export_tags_list()
+
+Get a list of all export tags.
+
=item $bool = $meta->is_tag( $name )
Check if a tag with the given name exists. $name should be the tag name
B<WITHOUT> -/: prefix.
-=item @list = $meta->get_tag( $name )
-
-Get the list of items associated with the specified tag. $name should be the
-tag name B<WITHOUT> -/: prefix.
-
-=item $meta->add_options( @names )
+=item $meta->options_add( $name )
Add import options by name. These will be boolean options that take no
arguments.
-=item $meta->add_arguments( @names )
+=item my @list = $meta->options_list()
+
+=item $meta->arguments_add( $name )
Add import options that slurp in the next argument as a value.
=item $bool = $meta->is_option( $name )
-Check if the specifed name is an option.
+Check if the specified name is an option.
=item $bool = $meta->is_argument( $name )
-Check if the specifed name is an option that takes an argument.
+Check if the specified name is an option that takes an argument.
=item $meta->add_parser( $name, sub { ... })
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Exporter-Declare-0.113/lib/Exporter/Declare/Specs.pm new/Exporter-Declare-0.114/lib/Exporter/Declare/Specs.pm
--- old/Exporter-Declare-0.113/lib/Exporter/Declare/Specs.pm 2013-06-07 05:35:24.000000000 +0200
+++ new/Exporter-Declare-0.114/lib/Exporter/Declare/Specs.pm 2015-06-23 23:01:46.000000000 +0200
@@ -216,7 +216,7 @@
=head1 DESCRIPTION
-Import arguments cna get complicated. All arguments are assumed to be exports
+Import arguments can get complicated. All arguments are assumed to be exports
unless they have a - or : prefix. The prefix may denote a tag, a boolean
option, or an option that takes the next argument as a value. In addition
almost all these can be negated with the ! prefix.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Exporter-Declare-0.113/lib/Exporter/Declare.pm new/Exporter-Declare-0.114/lib/Exporter/Declare.pm
--- old/Exporter-Declare-0.113/lib/Exporter/Declare.pm 2013-06-07 05:35:24.000000000 +0200
+++ new/Exporter-Declare-0.114/lib/Exporter/Declare.pm 2015-06-23 23:01:46.000000000 +0200
@@ -12,7 +12,7 @@
BEGIN { Meta->new(__PACKAGE__) }
-our $VERSION = '0.113';
+our $VERSION = '0.114';
our @CARP_NOT = qw/
Exporter::Declare
Exporter::Declare::Specs
@@ -332,7 +332,7 @@
# You can create a function to mangle the arguments before they are
# parsed into a Exporter::Declare::Spec object.
sub alter_import_args {
- my ($class, $args) = @_;
+ my ($class, $importer, $args) = @_;
# fiddle with args before importing routines are called
@$args = grep { !/^skip_/ } @$args
@@ -394,7 +394,7 @@
option. Exports without a sigil are assumed to be code exports, variable
exports must be listed with their sigil.
-Items prefixed with the C<!> symbol are forcfully excluded, regardless of any
+Items prefixed with the C<!> symbol are forcefully excluded, regardless of any
listed item that may normally include them. Tags can also be excluded, this
will effectively exclude everything in the tag.
@@ -441,9 +441,9 @@
=item -alias
-Every package has an alias that it can export. This is the last segmant of the
+Every package has an alias that it can export. This is the last segment of the
packages namespace. IE C<My::Long::Package::Name::Foo> could export the C<Foo()>
-function. These alias functionis simply return the full package name as a
+function. These alias functions simply return the full package name as a
string, in this case C<'My::Long::Package::Name::Foo'>. This is similar to
L<aliased>.
@@ -523,7 +523,7 @@
The example above will work fine, all the arguments will make it into the
generator. The only valid reason for this to work is that you may provide
arguments such as C<-prefix> to a tag that brings in generator(), while also
-desiring to give arguments to generator() independantly.
+desiring to give arguments to generator() independently.
=head1 PRIMARY EXPORT API
@@ -638,7 +638,7 @@
=head1 META CLASS
All exporters have a meta class, the only way to get the meta object is to call
-the exporter_meta() method on the class/object that is an exporter. Any class
+the export_meta() method on the class/object that is an exporter. Any class
that uses Exporter::Declare gets this method, and a meta-object.
=head1 AUTHORS
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Exporter-Declare-0.113/t/Meta.t new/Exporter-Declare-0.114/t/Meta.t
--- old/Exporter-Declare-0.113/t/Meta.t 2013-06-07 05:35:24.000000000 +0200
+++ new/Exporter-Declare-0.114/t/Meta.t 2015-06-23 23:01:46.000000000 +0200
@@ -28,6 +28,26 @@
is_deeply( $meta->arguments, { suffix => 1, prefix => 1 }, "Got arguments list" );
};
+tests options => sub {
+ my $meta = $CLASS->new('FakeOptionPackage');
+ $meta->options_add($_) for qw/a b c/;
+ is_deeply(
+ [sort $meta->options_list],
+ [qw/a b c/],
+ "Got all options"
+ );
+};
+
+tests arguments => sub {
+ my $meta = $CLASS->new('FakeArgumentsPackage');
+ $meta->arguments_add($_) for qw/a b c/;
+ is_deeply(
+ [sort $meta->arguments_list],
+ [sort qw/a b c prefix suffix/],
+ "Got all arguments"
+ );
+};
+
tests tags => sub {
my $meta = $CLASS->new('FakeTagPackage');
is_deeply(
@@ -47,6 +67,17 @@
$meta->export_tags_push( 'default', qw/a b c d/ );
is_deeply( [$meta->export_tags_get('default')], [qw/a b c d/], "updated default" );
+
+ is_deeply(
+ [sort $meta->export_tags_list],
+ [sort
+ 'a',
+ 'alias',
+ 'all',
+ 'default'
+ ],
+ "Got list of all tags"
+ );
};
tests exports => sub {
@@ -116,6 +147,19 @@
throws_ok { $meta->exports_get( ':xxx' )}
qr/exports_get\(\) does not accept a tag as an argument/,
"Can't import whats not exported";
+
+ is_deeply(
+ [sort $meta->exports_list],
+ [sort
+ '$scalar',
+ '@array',
+ '%hash',
+ '&code_with_sigil',
+ '&FakeExportPackage',
+ '&code_no_sigil'
+ ],
+ "Got a list of all exports"
+ );
};
{
++++++ cpanspec.yml ++++++
---
#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
#custom_test: |-
#startserver && make test
#ignore_requires: Bizarre::Module
1
0
Hello community,
here is the log from the commit of package perl-MooX-Types-MooseLike for openSUSE:Factory checked in at 2015-06-30 10:18:16
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-MooX-Types-MooseLike (Old)
and /work/SRC/openSUSE:Factory/.perl-MooX-Types-MooseLike.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-MooX-Types-MooseLike"
Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-MooX-Types-MooseLike/perl-MooX-Types-MooseLike.changes 2015-04-15 16:26:20.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.perl-MooX-Types-MooseLike.new/perl-MooX-Types-MooseLike.changes 2015-06-30 10:18:17.000000000 +0200
@@ -1,0 +2,11 @@
+Sat Jun 27 08:44:06 UTC 2015 - coolo(a)suse.com
+
+- updated to 0.29
+ see /usr/share/doc/packages/perl-MooX-Types-MooseLike/Changes
+
+ 0.29 - 2015-06-26
+ - Add more Num tests (meAmdios)
+ - Improve POD (meAmidos)
+ - Add DISTNAME to MakeMaker args
+
+-------------------------------------------------------------------
Old:
----
MooX-Types-MooseLike-0.28.tar.gz
New:
----
MooX-Types-MooseLike-0.29.tar.gz
cpanspec.yml
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-MooX-Types-MooseLike.spec ++++++
--- /var/tmp/diff_new_pack.Rl0Ezx/_old 2015-06-30 10:18:17.000000000 +0200
+++ /var/tmp/diff_new_pack.Rl0Ezx/_new 2015-06-30 10:18:17.000000000 +0200
@@ -17,14 +17,15 @@
Name: perl-MooX-Types-MooseLike
-Version: 0.28
+Version: 0.29
Release: 0
%define cpan_name MooX-Types-MooseLike
-Summary: some Moosish types and a type builder
+Summary: Some Moosish Types and a Type Builder
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/MooX-Types-MooseLike/
-Source: http://www.cpan.org/authors/id/M/MA/MATEU/%{cpan_name}-%{version}.tar.gz
+Source0: http://www.cpan.org/authors/id/M/MA/MATEU/%{cpan_name}-%{version}.tar.gz
+Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
++++++ MooX-Types-MooseLike-0.28.tar.gz -> MooX-Types-MooseLike-0.29.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MooX-Types-MooseLike-0.28/Changes new/MooX-Types-MooseLike-0.29/Changes
--- old/MooX-Types-MooseLike-0.28/Changes 2015-02-27 20:28:11.000000000 +0100
+++ new/MooX-Types-MooseLike-0.29/Changes 2015-06-27 01:16:55.000000000 +0200
@@ -1,3 +1,8 @@
+0.29 - 2015-06-26
+ - Add more Num tests (meAmdios)
+ - Improve POD (meAmidos)
+ - Add DISTNAME to MakeMaker args
+
0.28 - 2015-02-27
- Refine POD (github.com/meAmidos)
- Bump version of Moo and Module::Runtime pre-reqs
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MooX-Types-MooseLike-0.28/META.json new/MooX-Types-MooseLike-0.29/META.json
--- old/MooX-Types-MooseLike-0.28/META.json 2015-02-27 20:28:27.000000000 +0100
+++ new/MooX-Types-MooseLike-0.29/META.json 2015-06-27 01:18:39.000000000 +0200
@@ -4,7 +4,7 @@
"mateu - Mateu X. Hunter (cpan:MATEU) <hunter(a)missoula.org>"
],
"dynamic_config" : 1,
- "generated_by" : "ExtUtils::MakeMaker version 6.66, CPAN::Meta::Converter version 2.133380",
+ "generated_by" : "ExtUtils::MakeMaker version 7.04, CPAN::Meta::Converter version 2.150001",
"license" : [
"perl_5"
],
@@ -12,7 +12,7 @@
"url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",
"version" : "2"
},
- "name" : "MooX::Types::MooseLike",
+ "name" : "MooX-Types-MooseLike",
"no_index" : {
"directory" : [
"t",
@@ -72,6 +72,6 @@
},
"x_IRC" : "irc://irc.perl.org/#web-simple"
},
- "version" : "0.28",
+ "version" : "0.29",
"x_authority" : "cpan:MATEU"
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MooX-Types-MooseLike-0.28/META.yml new/MooX-Types-MooseLike-0.29/META.yml
--- old/MooX-Types-MooseLike-0.28/META.yml 2015-02-27 20:28:27.000000000 +0100
+++ new/MooX-Types-MooseLike-0.29/META.yml 2015-06-27 01:18:39.000000000 +0200
@@ -3,30 +3,30 @@
author:
- 'mateu - Mateu X. Hunter (cpan:MATEU) <hunter(a)missoula.org>'
build_requires:
- Moo: 1.004002
- Test::Fatal: 0.003
- Test::More: 0.96
+ Moo: '1.004002'
+ Test::Fatal: '0.003'
+ Test::More: '0.96'
configure_requires:
- ExtUtils::MakeMaker: 0
+ ExtUtils::MakeMaker: '0'
dynamic_config: 1
-generated_by: 'ExtUtils::MakeMaker version 6.66, CPAN::Meta::Converter version 2.133380'
+generated_by: 'ExtUtils::MakeMaker version 7.04, CPAN::Meta::Converter version 2.150001'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
- version: 1.4
-name: MooX::Types::MooseLike
+ version: '1.4'
+name: MooX-Types-MooseLike
no_index:
directory:
- t
- inc
recommends:
- strictures: 2
+ strictures: '2'
requires:
- Module::Runtime: 0.014
+ Module::Runtime: '0.014'
resources:
IRC: irc://irc.perl.org/#web-simple
bugtracker: http://rt.cpan.org/NoAuth/Bugs.html?Dist=MooX-Types-MooseLike
license: http://dev.perl.org/licenses/
repository: https://github.com/mateu/MooX-Types-MooseLike.git
-version: 0.28
+version: '0.29'
x_authority: cpan:MATEU
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MooX-Types-MooseLike-0.28/Makefile.PL new/MooX-Types-MooseLike-0.29/Makefile.PL
--- old/MooX-Types-MooseLike-0.28/Makefile.PL 2015-02-27 20:04:23.000000000 +0100
+++ new/MooX-Types-MooseLike-0.29/Makefile.PL 2015-06-27 01:04:38.000000000 +0200
@@ -3,7 +3,7 @@
use 5.008001;
my %META = (
- name => 'MooX::Types::MooseLike',
+ name => 'MooX-Types-MooseLike',
license => 'perl_5',
prereqs => {
configure => { requires => {
@@ -55,7 +55,7 @@
x_authority => 'cpan:MATEU',
);
-my %MM_ARGS = ();
+my %MM_ARGS = ('DISTNAME' => 'MooX-Types-MooseLike');
## BOILERPLATE ###############################################################
require ExtUtils::MakeMaker;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MooX-Types-MooseLike-0.28/README new/MooX-Types-MooseLike-0.29/README
--- old/MooX-Types-MooseLike-0.28/README 2015-02-27 20:28:27.000000000 +0100
+++ new/MooX-Types-MooseLike-0.29/README 2015-06-27 01:18:39.000000000 +0200
@@ -51,16 +51,6 @@
source also provides an example of how to build base types, along with
both parameterizable and non-parameterizable.
-SEE ALSO
- MooX::Types::MooseLike::Numeric - an example of building subtypes.
-
- MooX::Types::SetObject - an example of building parameterized types.
-
- MooX::Types::MooseLike::Email, MooX::Types::MooseLike::DateTime
-
- Type::Tiny - another implementation of type constraints. Compatible with
- Moo, Moose and Mouse.
-
FUNCTIONS
register_types
register_types( types, package, moose_namespace )
@@ -74,10 +64,42 @@
name => 'MyType',
test => sub { check_the_value_somehow($_[0]) },
message => sub { "$_[0] is not the type we want!" },
- parameterizable => sub { ... }, # Optional
- inflate => sub { ... }, # Optional
+ subtype_of => 'SomeParentType', # Optional
+ from => 'Some::Parent::CoolTypes', # Optional
+ parameterizable => sub { ... }, # Optional
+ inflate => sub { ... }, # Optional
}
+ A type can be declared with a reference (*subtype_of*) to some
+ previously declared type. In this case the new type will inherit the
+ behaviour of the referenced type.
+
+ The referenced type can come either from the same package or from a
+ third party package:
+
+ MooX::Types::MooseLike::register_types([{
+ name => 'GreaterThan10',
+ subtype_of => 'Int',
+ from => 'MooX::Types::MooseLike::Base',
+ test => sub { $_[0] > 10 },
+ message => sub { 'not greater than 10' },
+ }], __PACKAGE__);
+
+ MooX::Types::MooseLike::register_types([{
+ name => 'Between10And20',
+ subtype_of => 'GreaterThan10',
+ from => __PACKAGE__,
+ test => sub { $_[0] < 20 },
+ message => sub { 'not an integer between 10 and 20' },
+ }], __PACKAGE__);
+
+ MooX::Types::MooseLike::register_types([{
+ name => 'Between10And30',
+ subtype_of => GreaterThan10(),
+ test => sub { $_[0] < 30 },
+ message => sub { 'not an integer between 10 and 30' },
+ }], __PACKAGE__);
+
exception_message
exception_message( value, part_of_the_exception_string )
@@ -99,6 +121,16 @@
Inflates the type to a Moose type. Requires Moose.
+SEE ALSO
+ MooX::Types::MooseLike::Numeric - an example of building subtypes.
+
+ MooX::Types::SetObject - an example of building parameterized types.
+
+ MooX::Types::MooseLike::Email, MooX::Types::MooseLike::DateTime
+
+ Type::Tiny - another implementation of type constraints. Compatible with
+ Moo, Moose and Mouse.
+
AUTHOR
mateu - Mateu X. Hunter (cpan:MATEU) <hunter(a)missoula.org>
@@ -116,6 +148,8 @@
Graham Knop (cpan:HAARG) <haarg(a)cpan.org>
+ Dmitry Matrosov (cpan:AMIDOS) <amidos(a)amidos.ru>
+
COPYRIGHT
Copyright (c) 2011-2015 the MooX::Types::MooseLike "AUTHOR" and
"CONTRIBUTORS" as listed above.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MooX-Types-MooseLike-0.28/lib/MooX/Types/MooseLike/Base.pm new/MooX-Types-MooseLike-0.29/lib/MooX/Types/MooseLike/Base.pm
--- old/MooX-Types-MooseLike-0.28/lib/MooX/Types/MooseLike/Base.pm 2015-02-27 20:10:19.000000000 +0100
+++ new/MooX-Types-MooseLike-0.29/lib/MooX/Types/MooseLike/Base.pm 2015-06-27 00:54:56.000000000 +0200
@@ -7,7 +7,7 @@
use Exporter 5.57 'import';
our @EXPORT_OK = ();
-our $VERSION = 0.28;
+our $VERSION = 0.29;
# These types act like those found in Moose::Util::TypeConstraints.
# Generally speaking, the same test is used.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MooX-Types-MooseLike-0.28/lib/MooX/Types/MooseLike.pm new/MooX-Types-MooseLike-0.29/lib/MooX/Types/MooseLike.pm
--- old/MooX-Types-MooseLike-0.28/lib/MooX/Types/MooseLike.pm 2015-02-27 20:09:38.000000000 +0100
+++ new/MooX-Types-MooseLike-0.29/lib/MooX/Types/MooseLike.pm 2015-06-27 00:54:45.000000000 +0200
@@ -8,7 +8,7 @@
use Carp qw(confess croak);
use List::Util qw(first);
-our $VERSION = '0.28';
+our $VERSION = '0.29';
sub register_types {
my ($type_definitions, $into, $moose_namespace) = @_;
@@ -213,16 +213,6 @@
See L<MooX::Types::MooseLike::Base> for a list of available base types.
Its source also provides an example of how to build base types, along with both parameterizable and non-parameterizable.
-=head1 SEE ALSO
-
-L<MooX::Types::MooseLike::Numeric> - an example of building subtypes.
-
-L<MooX::Types::SetObject> - an example of building parameterized types.
-
-L<MooX::Types::MooseLike::Email>, L<MooX::Types::MooseLike::DateTime>
-
-L<Type::Tiny> - another implementation of type constraints. Compatible with L<Moo>, L<Moose> and L<Mouse>.
-
=head1 FUNCTIONS
=head2 register_types
@@ -235,10 +225,39 @@
name => 'MyType',
test => sub { check_the_value_somehow($_[0]) },
message => sub { "$_[0] is not the type we want!" },
- parameterizable => sub { ... }, # Optional
- inflate => sub { ... }, # Optional
+ subtype_of => 'SomeParentType', # Optional
+ from => 'Some::Parent::CoolTypes', # Optional
+ parameterizable => sub { ... }, # Optional
+ inflate => sub { ... }, # Optional
}
+A type can be declared with a reference (I<subtype_of>) to some previously declared type. In this case the new type will inherit the behaviour of the referenced type.
+
+The referenced type can come either from the same package or from a third party package:
+
+ MooX::Types::MooseLike::register_types([{
+ name => 'GreaterThan10',
+ subtype_of => 'Int',
+ from => 'MooX::Types::MooseLike::Base',
+ test => sub { $_[0] > 10 },
+ message => sub { 'not greater than 10' },
+ }], __PACKAGE__);
+
+ MooX::Types::MooseLike::register_types([{
+ name => 'Between10And20',
+ subtype_of => 'GreaterThan10',
+ from => __PACKAGE__,
+ test => sub { $_[0] < 20 },
+ message => sub { 'not an integer between 10 and 20' },
+ }], __PACKAGE__);
+
+ MooX::Types::MooseLike::register_types([{
+ name => 'Between10And30',
+ subtype_of => GreaterThan10(),
+ test => sub { $_[0] < 30 },
+ message => sub { 'not an integer between 10 and 30' },
+ }], __PACKAGE__);
+
=head2 exception_message
B<exception_message( value, part_of_the_exception_string )>
@@ -261,6 +280,16 @@
Inflates the type to a Moose type. Requires Moose.
+=head1 SEE ALSO
+
+L<MooX::Types::MooseLike::Numeric> - an example of building subtypes.
+
+L<MooX::Types::SetObject> - an example of building parameterized types.
+
+L<MooX::Types::MooseLike::Email>, L<MooX::Types::MooseLike::DateTime>
+
+L<Type::Tiny> - another implementation of type constraints. Compatible with L<Moo>, L<Moose> and L<Mouse>.
+
=head1 AUTHOR
mateu - Mateu X. Hunter (cpan:MATEU) <hunter(a)missoula.org>
@@ -279,6 +308,8 @@
Graham Knop (cpan:HAARG) <haarg(a)cpan.org>
+Dmitry Matrosov (cpan:AMIDOS) <amidos(a)amidos.ru>
+
=head1 COPYRIGHT
Copyright (c) 2011-2015 the MooX::Types::MooseLike L</AUTHOR> and
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MooX-Types-MooseLike-0.28/t/basic.t new/MooX-Types-MooseLike-0.29/t/basic.t
--- old/MooX-Types-MooseLike-0.28/t/basic.t 2014-08-19 00:54:15.000000000 +0200
+++ new/MooX-Types-MooseLike-0.29/t/basic.t 2015-05-20 18:05:53.000000000 +0200
@@ -160,8 +160,19 @@
);
# Test Num
-ok(MooX::Types::MooseLike::Test->new(a_number => 0), 'Num zero');
-ok(MooX::Types::MooseLike::Test->new(a_number => 3.14), 'Num');
+ok(MooX::Types::MooseLike::Test->new(a_number => 0), 'Num: zero');
+ok(MooX::Types::MooseLike::Test->new(a_number => "+3"), 'Num string: positive int');
+ok(MooX::Types::MooseLike::Test->new(a_number => "-5"), 'Num string: negative int');
+ok(MooX::Types::MooseLike::Test->new(a_number => 123), 'Num: positive int');
+ok(MooX::Types::MooseLike::Test->new(a_number => 3.14), 'Num: positive decimal');
+ok(MooX::Types::MooseLike::Test->new(a_number => -5.26), 'Num: negative decimal');
+ok(MooX::Types::MooseLike::Test->new(a_number => "+3.14"), 'Num string: positive decimal');
+ok(MooX::Types::MooseLike::Test->new(a_number => ".14"), 'Num string: positive decimal, short form');
+ok(MooX::Types::MooseLike::Test->new(a_number => "-.14"), 'Num string: negative decimal, short form');
+ok(MooX::Types::MooseLike::Test->new(a_number => "1E1"), 'Num string: E');
+ok(MooX::Types::MooseLike::Test->new(a_number => ".5e+123"), 'Num string: E');
+ok(MooX::Types::MooseLike::Test->new(a_number => "12.5e-2"), 'Num string: E');
+ok(MooX::Types::MooseLike::Test->new(a_number => "0123"), 'Num string: octal int');
like(
exception { MooX::Types::MooseLike::Test->new(a_number => undef) },
qr/undef is not a number/,
@@ -177,6 +188,16 @@
qr/is not a number/,
'a non number is an exception when we want a number'
);
+like(
+ exception { MooX::Types::MooseLike::Test->new(a_number => "0b1110011") },
+ qr/is not a number/,
+ 'binary integer string is an exception when we want a number'
+ );
+like(
+ exception { MooX::Types::MooseLike::Test->new(a_number => "0x1234") },
+ qr/is not a number/,
+ 'hexadecimal integer string is an exception when we want a number'
+ );
# Test Int
ok(MooX::Types::MooseLike::Test->new(an_integer => -1), 'Int');
++++++ cpanspec.yml ++++++
---
#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
#custom_test: |-
#startserver && make test
#ignore_requires: Bizarre::Module
1
0