Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package twilio-utils for openSUSE:Factory 
checked in at 2023-04-19 17:42:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/twilio-utils (Old)
 and      /work/SRC/openSUSE:Factory/.twilio-utils.new.2023 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "twilio-utils"

Wed Apr 19 17:42:52 2023 rev:11 rq:1080201 version:1.2.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/twilio-utils/twilio-utils.changes        
2021-06-11 00:19:44.473428203 +0200
+++ /work/SRC/openSUSE:Factory/.twilio-utils.new.2023/twilio-utils.changes      
2023-04-19 17:42:54.828171507 +0200
@@ -1,0 +2,10 @@
+Tue Apr 11 21:13:40 UTC 2023 - Archie Cobbs <[email protected]>
+
+- Upgrade to release 1.2.2
+  + Fixed bug in twils(1) where "--to" was acting like "--from"
+  + Restricted twimsg page size to no more than limit, if any
+  + Allow twils(1) "--minDate" and "--maxDate" to have time of day.
+  + Added twils(1) "--verbose" flag.
+  + Fixed bug with twimsg '-S' flag
+
+-------------------------------------------------------------------

Old:
----
  twilio-utils-1.2.1.tar.gz

New:
----
  twilio-utils-1.2.2.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ twilio-utils.spec ++++++
--- /var/tmp/diff_new_pack.k0djRk/_old  2023-04-19 17:42:55.428174993 +0200
+++ /var/tmp/diff_new_pack.k0djRk/_new  2023-04-19 17:42:55.436175040 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package twilio-utils
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 # Copyright 2013 Archie L. Cobbs <[email protected]>
 #
 # All modifications and additions to the file contributed by third parties
@@ -22,7 +22,7 @@
 %define defaultconf %{_sysconfdir}/twilio.conf
 
 Name:           twilio-utils
-Version:        1.2.1
+Version:        1.2.2
 Release:        0
 Summary:        Command line utilities for Twilio users
 License:        Apache-2.0
@@ -34,11 +34,11 @@
 BuildRequires:  gcc
 BuildRequires:  libxslt-tools
 BuildRequires:  make
-BuildRequires:  php
+BuildRequires:  php-cli
 BuildRequires:  xmlstarlet
 Requires:       curl >= 7.18
 Requires:       libxslt-tools
-Requires:       php
+Requires:       php-cli
 Requires:       xmlstarlet
 %if %suse_version < 1320
 BuildRequires:  util-linux

++++++ twilio-utils-1.2.1.tar.gz -> twilio-utils-1.2.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/twilio-utils-1.2.1/CHANGES 
new/twilio-utils-1.2.2/CHANGES
--- old/twilio-utils-1.2.1/CHANGES      2021-06-03 18:36:33.000000000 +0200
+++ new/twilio-utils-1.2.2/CHANGES      2023-04-11 23:09:02.000000000 +0200
@@ -1,3 +1,11 @@
+Version 1.2.2 Released April 11, 2023
+
+    - Fixed bug in twils(1) where "--to" was acting like "--from"
+    - Restricted twimsg page size to no more than limit, if any
+    - Allow twils(1) "--minDate" and "--maxDate" to have time of day.
+    - Added twils(1) "--verbose" flag.
+    - Fixed bug with twimsg '-S' flag
+
 Version 1.2.1 Released June 3, 2021
 
     - Avoid "normalization" of numbers already in E.164 format
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/twilio-utils-1.2.1/configure 
new/twilio-utils-1.2.2/configure
--- old/twilio-utils-1.2.1/configure    2021-06-03 18:37:30.000000000 +0200
+++ new/twilio-utils-1.2.2/configure    2023-04-11 23:12:58.000000000 +0200
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69 for twilio-utils - Command line utilities for 
Twilio users 1.2.1.
+# Generated by GNU Autoconf 2.69 for twilio-utils - Command line utilities for 
Twilio users 1.2.2.
 #
 # Report bugs to <https://github.com/archiecobbs/twilio-utils>.
 #
@@ -580,8 +580,8 @@
 # Identity of this package.
 PACKAGE_NAME='twilio-utils - Command line utilities for Twilio users'
 PACKAGE_TARNAME='twilio-utils'
-PACKAGE_VERSION='1.2.1'
-PACKAGE_STRING='twilio-utils - Command line utilities for Twilio users 1.2.1'
+PACKAGE_VERSION='1.2.2'
+PACKAGE_STRING='twilio-utils - Command line utilities for Twilio users 1.2.2'
 PACKAGE_BUGREPORT='https://github.com/archiecobbs/twilio-utils'
 PACKAGE_URL=''
 
@@ -1282,7 +1282,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 twilio-utils - Command line utilities for Twilio users 
1.2.1 to adapt to many kinds of systems.
+\`configure' configures twilio-utils - Command line utilities for Twilio users 
1.2.2 to adapt to many kinds of systems.
 
 Usage: $0 [OPTION]... [VAR=VALUE]...
 
@@ -1348,7 +1348,7 @@
 
 if test -n "$ac_init_help"; then
   case $ac_init_help in
-     short | recursive ) echo "Configuration of twilio-utils - Command line 
utilities for Twilio users 1.2.1:";;
+     short | recursive ) echo "Configuration of twilio-utils - Command line 
utilities for Twilio users 1.2.2:";;
    esac
   cat <<\_ACEOF
 
@@ -1440,7 +1440,7 @@
 test -n "$ac_init_help" && exit $ac_status
 if $ac_init_version; then
   cat <<\_ACEOF
-twilio-utils - Command line utilities for Twilio users configure 1.2.1
+twilio-utils - Command line utilities for Twilio users configure 1.2.2
 generated by GNU Autoconf 2.69
 
 Copyright (C) 2012 Free Software Foundation, Inc.
@@ -1742,7 +1742,7 @@
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
-It was created by twilio-utils - Command line utilities for Twilio users 
$as_me 1.2.1, which was
+It was created by twilio-utils - Command line utilities for Twilio users 
$as_me 1.2.2, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   $ $0 $@
@@ -2605,7 +2605,7 @@
 
 # Define the identity of the package.
  PACKAGE='twilio-utils'
- VERSION='1.2.1'
+ VERSION='1.2.2'
 
 
 cat >>confdefs.h <<_ACEOF
@@ -5431,7 +5431,7 @@
 # report actual input values of CONFIG_FILES etc. instead of their
 # values after options handling.
 ac_log="
-This file was extended by twilio-utils - Command line utilities for Twilio 
users $as_me 1.2.1, which was
+This file was extended by twilio-utils - Command line utilities for Twilio 
users $as_me 1.2.2, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   CONFIG_FILES    = $CONFIG_FILES
@@ -5497,7 +5497,7 @@
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; 
s/[\\""\`\$]/\\\\&/g'`"
 ac_cs_version="\\
-twilio-utils - Command line utilities for Twilio users config.status 1.2.1
+twilio-utils - Command line utilities for Twilio users config.status 1.2.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/twilio-utils-1.2.1/configure.ac 
new/twilio-utils-1.2.2/configure.ac
--- old/twilio-utils-1.2.1/configure.ac 2021-06-03 18:36:40.000000000 +0200
+++ new/twilio-utils-1.2.2/configure.ac 2023-04-11 23:09:10.000000000 +0200
@@ -16,7 +16,7 @@
 # under the License.
 #
 
-AC_INIT([twilio-utils - Command line utilities for Twilio users], [1.2.1], 
[https://github.com/archiecobbs/twilio-utils], [twilio-utils])
+AC_INIT([twilio-utils - Command line utilities for Twilio users], [1.2.2], 
[https://github.com/archiecobbs/twilio-utils], [twilio-utils])
 AC_CONFIG_AUX_DIR(scripts)
 AM_INIT_AUTOMAKE
 dnl AM_MAINTAINER_MODE
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/twilio-utils-1.2.1/twils new/twilio-utils-1.2.2/twils
--- old/twilio-utils-1.2.1/twils        2021-06-03 18:37:48.000000000 +0200
+++ new/twilio-utils-1.2.2/twils        2023-04-11 23:13:02.000000000 +0200
@@ -35,6 +35,7 @@
     echo "    -P                Ask for auth token from the terminal" 1>&2
     echo "    -p auth-token     Specify auth token (default read AUTH_TOKEN 
from config file)" 1>&2
     echo "    -u account-sid    Specify Account SID (default read ACCOUNT_SID 
from config file)" 1>&2
+    echo "    --verbose         Increase verbosity" 1>&2
     echo "Number, date, page, and limit options are only valid with the first 
form." 1>&2
 }
 
@@ -64,6 +65,7 @@
 OVERRIDE_AUTH_TOKEN=""
 CURL_FLAGS=""
 LIMIT=""
+VERBOSITY="0"
 RAW="false"
 while [ ${#} -gt 0 ]; do
     case "$1" in
@@ -125,6 +127,10 @@
             OVERRIDE_ACCOUNT_SID="${1}"
             shift
             ;;
+        -v|--verbose)
+            shift
+            VERBOSITY=$(( "${VERBOSITY}" + 1 ))
+            ;;
         -h|--help)
             usage
             exit
@@ -197,11 +203,11 @@
 TO_NUMBER=`normalize "${TO_NUMBER}"`
 
 # Sanity check stuff
-if [ -n "${MIN_DATE}" ] && ! [[ "${MIN_DATE}" =~ ^[0-9]{4}-[0-9]{2}-[0-9]{2}$ 
]]; then
+if [ -n "${MIN_DATE}" ] && ! [[ "${MIN_DATE}" =~ 
^[0-9]{4}-[0-9]{2}-[0-9]{2}(T[0-9]{2}:[0-9]{2}:[0-9]{2}Z)?$ ]]; then
     echo "${NAME}: invalid minimum date \"${MIN_DATE}\"" 1>&2
     exit 1
 fi
-if [ -n "${MAX_DATE}" ] && ! [[ "${MAX_DATE}" =~ ^[0-9]{4}-[0-9]{2}-[0-9]{2}$ 
]]; then
+if [ -n "${MAX_DATE}" ] && ! [[ "${MAX_DATE}" =~ 
^[0-9]{4}-[0-9]{2}-[0-9]{2}(T[0-9]{2}:[0-9]{2}:[0-9]{2}Z)?$ ]]; then
     echo "${NAME}: invalid maximum date \"${MAX_DATE}\"" 1>&2
     exit 1
 fi
@@ -226,6 +232,11 @@
     exit 1
 fi
 
+# There's no point in having the page size be larger than the limit
+if [ -n "${LIMIT}" -a "${PAGE_SIZE}" -gt "${LIMIT}" ]; then
+    PAGE_SIZE="${LIMIT}"
+fi
+
 # Create temporary files for message response and error
 RESPONSE_FILE=`mktemp -q /tmp/${NAME}.XXXXXX`
 if [ $? -ne 0 ]; then
@@ -248,7 +259,7 @@
         PARAMS="${PARAMS}&From=${FROM_NUMBER}"
     fi
     if [ -n "${TO_NUMBER}" ]; then
-        PARAMS="${PARAMS}&From=${TO_NUMBER}"
+        PARAMS="${PARAMS}&To=${TO_NUMBER}"
     fi
     if [ -n "${MIN_DATE}" ]; then
         PARAMS="${PARAMS}&DateSent%3E=${MIN_DATE}"
@@ -266,6 +277,14 @@
 while true; do
 
     # Read next page of results
+    if [ "${VERBOSITY}" -gt 0 ]; then
+        echo "${CURL}" --silent \
+          --user "${ACCOUNT_SID}:****" \
+          --output "${RESPONSE_FILE}" \
+          ${CURL_FLAGS} \
+          "${URL}" 1>&2
+
+    fi
     "${CURL}" --silent \
       --user "${ACCOUNT_SID}:${AUTH_TOKEN}" \
       --output "${RESPONSE_FILE}" \
@@ -329,7 +348,7 @@
             echo '<?xml version="1.0" encoding="UTF-8"?>'
             echo '<Messages>'
         fi
-        "${XSLTPROC}" --stringparam limit "${LIMIT}" "${RAW_RESULT_XSL}" 
"${RESPONSE_FILE}" | grep -vE '^</?Messages>'
+        "${XSLTPROC}" --stringparam limit "${LIMIT}" "${RAW_RESULT_XSL}" 
"${RESPONSE_FILE}" | grep -vE '^</?Messages/?>' || true
     fi
 
     # Update limit
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/twilio-utils-1.2.1/twils.1.in 
new/twilio-utils-1.2.2/twils.1.in
--- old/twilio-utils-1.2.1/twils.1.in   2021-03-29 18:01:59.000000000 +0200
+++ new/twilio-utils-1.2.2/twils.1.in   2021-11-22 22:26:27.000000000 +0100
@@ -81,10 +81,14 @@
 Restrict to messages sent to the specified phone number (must be in E.164 
format) or 5 or 6 digit short code.
 .It Fl \-minDate
 Restrict to messages sent on or after the specified date, which must be in the 
form
-.Pa YYY-MM-DD .
+.Pa YYYY-MM-DD
+or
+.Pa YYYY-MM-DDTHH:MM:SSZ .
 .It Fl \-maxDate
 Restrict to messages sent on or before the specified date, which must be in 
the form
-.Pa YYY-MM-DD .
+.Pa YYYY-MM-DD
+or
+.Pa YYYY-MM-DDTHH:MM:SSZ .
 .It Fl \-limit
 Return at most
 .Ar num
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/twilio-utils-1.2.1/twils.in 
new/twilio-utils-1.2.2/twils.in
--- old/twilio-utils-1.2.1/twils.in     2021-03-29 18:04:48.000000000 +0200
+++ new/twilio-utils-1.2.2/twils.in     2021-11-22 22:29:24.000000000 +0100
@@ -35,6 +35,7 @@
     echo "    -P                Ask for auth token from the terminal" 1>&2
     echo "    -p auth-token     Specify auth token (default read AUTH_TOKEN 
from config file)" 1>&2
     echo "    -u account-sid    Specify Account SID (default read ACCOUNT_SID 
from config file)" 1>&2
+    echo "    --verbose         Increase verbosity" 1>&2
     echo "Number, date, page, and limit options are only valid with the first 
form." 1>&2
 }
 
@@ -64,6 +65,7 @@
 OVERRIDE_AUTH_TOKEN=""
 CURL_FLAGS=""
 LIMIT=""
+VERBOSITY="0"
 RAW="false"
 while [ ${#} -gt 0 ]; do
     case "$1" in
@@ -125,6 +127,10 @@
             OVERRIDE_ACCOUNT_SID="${1}"
             shift
             ;;
+        -v|--verbose)
+            shift
+            VERBOSITY=$(( "${VERBOSITY}" + 1 ))
+            ;;
         -h|--help)
             usage
             exit
@@ -197,11 +203,11 @@
 TO_NUMBER=`normalize "${TO_NUMBER}"`
 
 # Sanity check stuff
-if [ -n "${MIN_DATE}" ] && ! [[ "${MIN_DATE}" =~ ^[0-9]{4}-[0-9]{2}-[0-9]{2}$ 
]]; then
+if [ -n "${MIN_DATE}" ] && ! [[ "${MIN_DATE}" =~ 
^[0-9]{4}-[0-9]{2}-[0-9]{2}(T[0-9]{2}:[0-9]{2}:[0-9]{2}Z)?$ ]]; then
     echo "${NAME}: invalid minimum date \"${MIN_DATE}\"" 1>&2
     exit 1
 fi
-if [ -n "${MAX_DATE}" ] && ! [[ "${MAX_DATE}" =~ ^[0-9]{4}-[0-9]{2}-[0-9]{2}$ 
]]; then
+if [ -n "${MAX_DATE}" ] && ! [[ "${MAX_DATE}" =~ 
^[0-9]{4}-[0-9]{2}-[0-9]{2}(T[0-9]{2}:[0-9]{2}:[0-9]{2}Z)?$ ]]; then
     echo "${NAME}: invalid maximum date \"${MAX_DATE}\"" 1>&2
     exit 1
 fi
@@ -226,6 +232,11 @@
     exit 1
 fi
 
+# There's no point in having the page size be larger than the limit
+if [ -n "${LIMIT}" -a "${PAGE_SIZE}" -gt "${LIMIT}" ]; then
+    PAGE_SIZE="${LIMIT}"
+fi
+
 # Create temporary files for message response and error
 RESPONSE_FILE=`mktemp -q /tmp/${NAME}.XXXXXX`
 if [ $? -ne 0 ]; then
@@ -248,7 +259,7 @@
         PARAMS="${PARAMS}&From=${FROM_NUMBER}"
     fi
     if [ -n "${TO_NUMBER}" ]; then
-        PARAMS="${PARAMS}&From=${TO_NUMBER}"
+        PARAMS="${PARAMS}&To=${TO_NUMBER}"
     fi
     if [ -n "${MIN_DATE}" ]; then
         PARAMS="${PARAMS}&DateSent%3E=${MIN_DATE}"
@@ -266,6 +277,14 @@
 while true; do
 
     # Read next page of results
+    if [ "${VERBOSITY}" -gt 0 ]; then
+        echo "${CURL}" --silent \
+          --user "${ACCOUNT_SID}:****" \
+          --output "${RESPONSE_FILE}" \
+          ${CURL_FLAGS} \
+          "${URL}" 1>&2
+
+    fi
     "${CURL}" --silent \
       --user "${ACCOUNT_SID}:${AUTH_TOKEN}" \
       --output "${RESPONSE_FILE}" \
@@ -329,7 +348,7 @@
             echo '<?xml version="1.0" encoding="UTF-8"?>'
             echo '<Messages>'
         fi
-        "${XSLTPROC}" --stringparam limit "${LIMIT}" "${RAW_RESULT_XSL}" 
"${RESPONSE_FILE}" | grep -vE '^</?Messages>'
+        "${XSLTPROC}" --stringparam limit "${LIMIT}" "${RAW_RESULT_XSL}" 
"${RESPONSE_FILE}" | grep -vE '^</?Messages/?>' || true
     fi
 
     # Update limit
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/twilio-utils-1.2.1/twimsg 
new/twilio-utils-1.2.2/twimsg
--- old/twilio-utils-1.2.1/twimsg       2021-06-03 18:37:48.000000000 +0200
+++ new/twilio-utils-1.2.2/twimsg       2023-04-11 23:13:02.000000000 +0200
@@ -245,7 +245,7 @@
 fi
 
 # Apply XSLT to returned XML to get error message
-"${XSLTPROC}" "${RESULT_XSL}" "${RESPONSE_FILE}" > "${OUTPUT_FILE}" 2>&1
+"${XSLTPROC}" --stringparam lsop sids "${RESULT_XSL}" "${RESPONSE_FILE}" > 
"${OUTPUT_FILE}" 2>&1
 if [ $? -ne 0 ]; then
     echo -n "${NAME}: error parsing result:" 1>&2
     cat "${OUTPUT_FILE}" 1>&2
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/twilio-utils-1.2.1/twimsg.in 
new/twilio-utils-1.2.2/twimsg.in
--- old/twilio-utils-1.2.1/twimsg.in    2021-03-29 17:50:31.000000000 +0200
+++ new/twilio-utils-1.2.2/twimsg.in    2021-09-08 21:57:20.000000000 +0200
@@ -245,7 +245,7 @@
 fi
 
 # Apply XSLT to returned XML to get error message
-"${XSLTPROC}" "${RESULT_XSL}" "${RESPONSE_FILE}" > "${OUTPUT_FILE}" 2>&1
+"${XSLTPROC}" --stringparam lsop sids "${RESULT_XSL}" "${RESPONSE_FILE}" > 
"${OUTPUT_FILE}" 2>&1
 if [ $? -ne 0 ]; then
     echo -n "${NAME}: error parsing result:" 1>&2
     cat "${OUTPUT_FILE}" 1>&2

Reply via email to