Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package bat-extras for openSUSE:Factory 
checked in at 2024-02-16 21:42:03
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/bat-extras (Old)
 and      /work/SRC/openSUSE:Factory/.bat-extras.new.1815 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "bat-extras"

Fri Feb 16 21:42:03 2024 rev:6 rq:1146961 version:2024.02.12

Changes:
--------
--- /work/SRC/openSUSE:Factory/bat-extras/bat-extras.changes    2023-09-20 
13:34:38.042348412 +0200
+++ /work/SRC/openSUSE:Factory/.bat-extras.new.1815/bat-extras.changes  
2024-02-16 21:42:09.673279352 +0100
@@ -1,0 +2,10 @@
+Thu Feb 15 20:07:12 UTC 2024 - Jan-Luca Kiok <opensuse-packa...@jlk.one>
+
+- Update to version 2024.02.12
+  * batman: Fix BAT_PAGER causing infinite recursion
+  * batgrep: Add support for ripgrep-all
+  * batman: Remove '-u' flag when calling sed
+  * batman: Remove dependency on col program
+  * Add Elixir mix format support
+
+-------------------------------------------------------------------

Old:
----
  v2023.09.19.tar.gz

New:
----
  v2024.02.12.tar.gz

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

Other differences:
------------------
++++++ bat-extras.spec ++++++
--- /var/tmp/diff_new_pack.5hFslT/_old  2024-02-16 21:42:10.125295661 +0100
+++ /var/tmp/diff_new_pack.5hFslT/_new  2024-02-16 21:42:10.125295661 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package bat-extras
 #
-# Copyright (c) 2023 SUSE LLC
+# Copyright (c) 2024 SUSE LLC
 #
 # 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:           bat-extras
-Version:        2023.09.19
+Version:        2024.02.12
 Release:        0
 Summary:        Extra scripts for bat
 License:        MIT

++++++ v2023.09.19.tar.gz -> v2024.02.12.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/bat-extras-2023.09.19/.github/actions/install-dependencies/action.yaml 
new/bat-extras-2024.02.12/.github/actions/install-dependencies/action.yaml
--- old/bat-extras-2023.09.19/.github/actions/install-dependencies/action.yaml  
2023-09-19 19:57:28.000000000 +0200
+++ new/bat-extras-2024.02.12/.github/actions/install-dependencies/action.yaml  
2024-02-13 00:35:00.000000000 +0100
@@ -67,7 +67,7 @@
       uses: dsaltares/fetch-gh-release-asset@master
       if:   ${{ env.ACT || inputs.test == 'true' }}
       with:
-        file: "ripgrep_[0-9\\.]+_amd64.deb"
+        file: "ripgrep_[0-9\\.-]+_amd64.deb"
         repo: "BurntSushi/ripgrep"
         # version: "${{ inputs.version_ripgrep || "latest" }}"
         regex: true
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/bat-extras-2023.09.19/.github/workflows/release.yaml 
new/bat-extras-2024.02.12/.github/workflows/release.yaml
--- old/bat-extras-2023.09.19/.github/workflows/release.yaml    2023-09-19 
19:57:28.000000000 +0200
+++ new/bat-extras-2024.02.12/.github/workflows/release.yaml    2024-02-13 
00:35:00.000000000 +0100
@@ -1,6 +1,5 @@
 name: Release
 on:
-  release: {}
   push:
     tags: ['*']
 
@@ -34,10 +33,11 @@
           output_title="Release: $(date '+%Y-%m-%d')"
 
           bash "${{ github.workspace 
}}/.github/actions/build/create-release-notes.sh" | tee "${output_file}"
-          echo "::set-output name=file::${output_file}"
-          echo "::set-output name=title::${output_title}"
+          echo "file=${output_file}"   >> "$GITHUB_OUTPUT"
+          echo "title=${output_title}" >> "$GITHUB_OUTPUT"
 
       - name: Create release
+        if: ${{ !env.ACT }}
         uses: ncipollo/release-action@v1
         with:
           artifacts: "bat-extras-*.zip"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/bat-extras-2023.09.19/README.md 
new/bat-extras-2024.02.12/README.md
--- old/bat-extras-2023.09.19/README.md 2023-09-19 19:57:28.000000000 +0200
+++ new/bat-extras-2024.02.12/README.md 2024-02-13 00:35:00.000000000 +0100
@@ -53,11 +53,21 @@
 If you would prefer to only install the specific scripts you need, you can use 
the `eth-p/software` tap to install individual scripts: `brew install 
eth-p/software/bat-extras-[SCRIPT]`
 
 
+### MacPorts
+
+The `bat-extras` scripts can also be installed via 
[MacPorts](https://www.macports.org) on macOS:
+
+```bash
+sudo port install bat-extras
+```
+
+Port info [here](https://ports.macports.org/port/bat-extras/).
+
 ### Pacman 
 
-`bat-extras` is [officially 
available](https://archlinux.org/packages/community/any/bat-extras/) on the 
Arch community repository!
+`bat-extras` is [officially 
available](https://archlinux.org/packages/extra/any/bat-extras/) on the Arch 
extra repository!
 
-If you have the community repository enabled, you can install `bat-extras` by 
running:
+If you have the extra repository enabled, you can install `bat-extras` by 
running:
 
 ```bash
 pacman -S bat-extras
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/bat-extras-2023.09.19/doc/batgrep.md 
new/bat-extras-2024.02.12/doc/batgrep.md
--- old/bat-extras-2023.09.19/doc/batgrep.md    2023-09-19 19:57:28.000000000 
+0200
+++ new/bat-extras-2024.02.12/doc/batgrep.md    2024-02-13 00:35:00.000000000 
+0100
@@ -31,7 +31,8 @@
 |       | `--paging=["never"/"always"]`| Enable/disable paging.                
                     |
 |       | `--pager=[PAGER]`            | Specify the pager to use.             
                       |
 |       | `--terminal-width=[COLS]`    | Generate output for the specified 
terminal width.            |
-|       | `--no-separator`             | Disable printing separator between 
files                     |
+|       | `--no-separator`             | Disable printing separator between 
files.                    |
+|       | `--rga`                      | Use `ripgrep-all` instead of 
`ripgrep`.                      |
 
 The following options are passed directly to ripgrep, and are not handled by 
this script.
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/bat-extras-2023.09.19/doc/prettybat.md 
new/bat-extras-2024.02.12/doc/prettybat.md
--- old/bat-extras-2023.09.19/doc/prettybat.md  2023-09-19 19:57:28.000000000 
+0200
+++ new/bat-extras-2024.02.12/doc/prettybat.md  2024-02-13 00:35:00.000000000 
+0100
@@ -21,22 +21,23 @@
 
 ## Languages
 
-| Language             | Formatter                                             
      |
-| -------------------- | 
----------------------------------------------------------- |
-| JavaScript (JS, JSX) | [prettier](https://prettier.io/)                      
      |
-| TypeScript (TS, TSX) | [prettier](https://prettier.io/)                      
      |
-| CSS, SCSS, SASS      | [prettier](https://prettier.io/)                      
      |
-| Markdown             | [prettier](https://prettier.io/)                      
      |
-| JSON                 | [prettier](https://prettier.io/)                      
      |
-| YAML                 | [prettier](https://prettier.io/)                      
      |
-| HTML                 | [prettier](https://prettier.io/)                      
      |
-| SVG                  | [prettier](https://prettier.io/)                      
      |
-| Rust                 | [rustfmt](https://github.com/rust-lang/rustfmt)       
      |
-| Bash                 | [shfmt](https://github.com/mvdan/sh)                  
      |
-| C                    | 
[ClangFormat](https://clang.llvm.org/docs/ClangFormat.html) |
-| C++                  | 
[ClangFormat](https://clang.llvm.org/docs/ClangFormat.html) |
-| Objective-C          | 
[ClangFormat](https://clang.llvm.org/docs/ClangFormat.html) |
-| Python               | [black](https://black.readthedocs.io/)                
      |
+| Language             | Formatter                                             
          |
+| -------------------- | 
--------------------------------------------------------------- |
+| JavaScript (JS, JSX) | [prettier](https://prettier.io/)                      
          |
+| TypeScript (TS, TSX) | [prettier](https://prettier.io/)                      
          |
+| CSS, SCSS, SASS      | [prettier](https://prettier.io/)                      
          |
+| Markdown             | [prettier](https://prettier.io/)                      
          |
+| JSON                 | [prettier](https://prettier.io/)                      
          |
+| YAML                 | [prettier](https://prettier.io/)                      
          |
+| HTML                 | [prettier](https://prettier.io/)                      
          |
+| SVG                  | [prettier](https://prettier.io/)                      
          |
+| Rust                 | [rustfmt](https://github.com/rust-lang/rustfmt)       
          |
+| Bash                 | [shfmt](https://github.com/mvdan/sh)                  
          |
+| C                    | 
[ClangFormat](https://clang.llvm.org/docs/ClangFormat.html)     |
+| C++                  | 
[ClangFormat](https://clang.llvm.org/docs/ClangFormat.html)     |
+| Objective-C          | 
[ClangFormat](https://clang.llvm.org/docs/ClangFormat.html)     |
+| Python               | [black](https://black.readthedocs.io/)                
          |
+| Elixir               | [mix 
format](https://hexdocs.pm/mix/main/Mix.Tasks.Format.html) |
 
 
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/bat-extras-2023.09.19/src/batgrep.sh 
new/bat-extras-2024.02.12/src/batgrep.sh
--- old/bat-extras-2023.09.19/src/batgrep.sh    2023-09-19 19:57:28.000000000 
+0200
+++ new/bat-extras-2024.02.12/src/batgrep.sh    2024-02-13 00:35:00.000000000 
+0100
@@ -97,7 +97,10 @@
           Generate output for the specified terminal width.
 
       --no-separator:
-          Disable printing separator between files
+          Disable printing separator between files.
+
+      --rga:
+          Use ripgrep-all instead of ripgrep.
 
 Options passed directly to ripgrep:
   -F, --fixed-strings
@@ -141,6 +144,7 @@
 # -----------------------------------------------------------------------------
 # Options:
 # -----------------------------------------------------------------------------
+RIPGREP="$EXECUTABLE_RIPGREP"
 RG_ARGS=()
 BAT_ARGS=()
 PATTERN=""
@@ -252,6 +256,14 @@
        -p | --search-pattern) OPT_SEARCH_PATTERN=true ;;
        --no-search-pattern)   OPT_SEARCH_PATTERN=false ;;
        --no-separator)        OPT_NO_SEPARATOR=true ;;
+       --rga) {
+               if ! rga --version | grep 'ripgrep-all' &>/dev/null; then
+                       printc "%{RED}%s: option '--rga' requires ripgrep-all 
to be installed%{CLEAR}\n" "$PROGRAM" 1>&2
+                       exit 1
+               fi
+
+               RIPGREP='rga'
+       };;
 
        # Option forwarding
        --rg:*) {
@@ -377,10 +389,10 @@
                )
                
                if "$READ_FROM_STDIN"; then
-                       "$EXECUTABLE_RIPGREP" "${COMMON_RG_ARGS[@]}" <<< 
"$STDIN_DATA"
+                       "$RIPGREP" "${COMMON_RG_ARGS[@]}" <<< "$STDIN_DATA"
                        return $?
                else
-                       "$EXECUTABLE_RIPGREP" "${COMMON_RG_ARGS[@]}"
+                       "$RIPGREP" "${COMMON_RG_ARGS[@]}"
                        return $?
                fi
        }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/bat-extras-2023.09.19/src/batman.sh 
new/bat-extras-2024.02.12/src/batman.sh
--- old/bat-extras-2023.09.19/src/batman.sh     2023-09-19 19:57:28.000000000 
+0200
+++ new/bat-extras-2024.02.12/src/batman.sh     2024-02-13 00:35:00.000000000 
+0100
@@ -9,7 +9,6 @@
 SELF_NC="${BASH_SOURCE:-$0}"
 SELF="$(cd "$(dirname "${SELF_NC}")" && cd "$(dirname "$(readlink "${SELF_NC}" 
|| echo ".")")" && pwd)/$(basename "$(readlink "${SELF_NC}" || echo 
"${SELF_NC}")")"
 LIB="$(cd "$(dirname "${SELF_NC}")" && cd "$(dirname "$(readlink "${SELF_NC}" 
|| echo ".")")/../lib" && pwd)"
-if [[ -n "${MANPAGER}" ]]; then BAT_PAGER="$MANPAGER"; fi
 source "${LIB}/constants.sh"
 source "${LIB}/pager.sh"
 source "${LIB}/print.sh"
@@ -48,7 +47,8 @@
 
 if [[ "${BATMAN_IS_BEING_MANPAGER:-}" = "yes" ]]; then
        print_manpage() {
-               col -bx | "$EXECUTABLE_BAT" --language=man "${BAT_ARGS[@]}"
+               sed -e 's/\x1B\[[0-9;]*m//g; s/.\x08//g' \
+                       | "$EXECUTABLE_BAT" --language=man "${BAT_ARGS[@]}"
                exit $?
        }
 
@@ -64,6 +64,7 @@
 fi
 
 # -----------------------------------------------------------------------------
+if [[ -n "${MANPAGER}" ]]; then BAT_PAGER="$MANPAGER"; fi
 export MANPAGER="env BATMAN_IS_BEING_MANPAGER=yes bash $(printf "%q " "$SELF" 
"${FORWARDED_ARGS[@]}")"
 export MANROFFOPT='-c'
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/bat-extras-2023.09.19/src/prettybat.sh 
new/bat-extras-2024.02.12/src/prettybat.sh
--- old/bat-extras-2023.09.19/src/prettybat.sh  2023-09-19 19:57:28.000000000 
+0200
+++ new/bat-extras-2024.02.12/src/prettybat.sh  2024-02-13 00:35:00.000000000 
+0100
@@ -22,7 +22,7 @@
 # Formatters:
 # -----------------------------------------------------------------------------
 
-FORMATTERS=("prettier" "rustfmt" "shfmt" "clangformat" "black")
+FORMATTERS=("prettier" "rustfmt" "shfmt" "clangformat" "black", "mix_format")
 
 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 
@@ -118,6 +118,26 @@
        return $?
 }
 
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+formatter_mix_format_supports() {
+       case "$1" in
+               .ex | \
+               .exs | \
+               .eex | \
+               .heex)
+               return 0
+               ;;
+       esac
+
+       return 1
+}
+
+formatter_mix_format_process() {
+       mix format
+       return $?
+}
+
 # -----------------------------------------------------------------------------
 # Functions:
 # -----------------------------------------------------------------------------
@@ -145,6 +165,8 @@
        rust | rs)                  ext=".rs" ;;
        graphql | gql)              ext=".graphql" ;;
        python | py)                ext=".py" ;;
+       elixir | ex)                ext=".ex" ;;
+       exs)                        ext=".exs" ;;
        esac
 
        echo "$ext"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/bat-extras-2023.09.19/test/snapshot/batgrep/test_help.stdout.snapshot 
new/bat-extras-2024.02.12/test/snapshot/batgrep/test_help.stdout.snapshot
--- old/bat-extras-2023.09.19/test/snapshot/batgrep/test_help.stdout.snapshot   
2023-09-19 19:57:28.000000000 +0200
+++ new/bat-extras-2024.02.12/test/snapshot/batgrep/test_help.stdout.snapshot   
2024-02-13 00:35:00.000000000 +0100
@@ -63,7 +63,10 @@
           Generate output for the specified terminal width.
 
       --no-separator:
-          Disable printing separator between files
+          Disable printing separator between files.
+
+      --rga:
+          Use ripgrep-all instead of ripgrep.
 
 Options passed directly to ripgrep:
   -F, --fixed-strings
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/bat-extras-2023.09.19/version.txt 
new/bat-extras-2024.02.12/version.txt
--- old/bat-extras-2023.09.19/version.txt       2023-09-19 19:57:28.000000000 
+0200
+++ new/bat-extras-2024.02.12/version.txt       2024-02-13 00:35:00.000000000 
+0100
@@ -1 +1 @@
-2023.09.19
+2024.02.12

Reply via email to