Plugin Directory

Changeset 3447674


Ignore:
Timestamp:
01/27/2026 09:29:10 AM (2 months ago)
Author:
valentingrenier
Message:

Version 1.1.2 - Patch release

  • Added support for all block types
Location:
simple-block-animations/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • simple-block-animations/trunk/bin/deploy-to-svn.sh

    r3447666 r3447674  
    142142echo "---"
    143143echo ""
     144
     145# Function to update changelog in readme.txt
     146update_readme_changelog() {
     147    local readme_file="$1"
     148    local version="$2"
     149    local changelog="$3"
     150   
     151    if [ ! -f "$readme_file" ]; then
     152        echo "⚠️  readme.txt not found, skipping changelog update"
     153        return
     154    fi
     155   
     156    # Check if changelog section exists
     157    if ! grep -q "== Changelog ==" "$readme_file"; then
     158        echo "⚠️  Changelog section not found in readme.txt"
     159        return
     160    fi
     161   
     162    # Format the changelog entry
     163    local changelog_entry="= $version =\n"
     164   
     165    # Process each line of the commit message
     166    while IFS= read -r line; do
     167        # If line doesn't start with * or -, add it
     168        if [[ "$line" =~ ^[*-] ]]; then
     169            changelog_entry+="$line\n"
     170        else
     171            # Add * prefix if not empty
     172            if [ -n "$line" ]; then
     173                changelog_entry+="* $line\n"
     174            fi
     175        fi
     176    done <<< "$changelog"
     177   
     178    # Create a temporary file
     179    local temp_file=$(mktemp)
     180   
     181    # Insert new changelog entry after "== Changelog =="
     182    awk -v entry="$changelog_entry" '
     183        /^== Changelog ==/ {
     184            print $0
     185            print ""
     186            printf "%s", entry
     187            print ""
     188            next
     189        }
     190        { print }
     191    ' "$readme_file" > "$temp_file"
     192   
     193    # Replace original file
     194    mv "$temp_file" "$readme_file"
     195   
     196    echo "✅ Updated Changelog section in readme.txt"
     197}
     198
     199# Update readme.txt with changelog
     200if [ -f "$PLUGIN_DIR/readme.txt" ]; then
     201    update_readme_changelog "$PLUGIN_DIR/readme.txt" "$VERSION" "$COMMIT_MESSAGE"
     202fi
    144203
    145204# Build the project
  • simple-block-animations/trunk/readme.txt

    r3447666 r3447674  
    55Tested up to: 6.9
    66Requires PHP: 7.4
    7 Stable tag: 1.2.0
     7Stable tag: 1.1.2
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    7171== Changelog ==
    7272
     73= 1.1.2 =
     74- Added support for all block types
     75
     76
     77= 1.1.1 =
     78* Update to version 1.1.1
     79
     80
    7381= 1.0.0 =
    7482* Initial release
  • simple-block-animations/trunk/simple-block-animations.php

    r3447666 r3447674  
    55 * Plugin URI: https://github.com/valentin-grenier/simple-animations-for-gutenberg
    66 * Description: Easily add animations to your Gutenberg blocks without coding.
    7  * Version: 1.2.0
     7 * Version: 1.1.2
    88 * Requires at least:
    99 * Requires PHP:
     
    2222}
    2323
    24 define( 'SIMPBLAN_VERSION', '1.2.0' );
     24define( 'SIMPBLAN_VERSION', '1.1.2' );
    2525define( 'SIMPBLAN_PATH', plugin_dir_path( __FILE__ ) );
    2626define( 'SIMPBLAN_URL', plugin_dir_url( __FILE__ ) );
Note: See TracChangeset for help on using the changeset viewer.