Plugin Directory

Changeset 853485


Ignore:
Timestamp:
02/07/2014 10:55:37 PM (12 years ago)
Author:
presspay
Message:

Preparing for 2.1 release

Location:
press-pay/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • press-pay/trunk/bin/deploy.sh

    r848917 r853485  
    1212# Get some user input
    1313# Can't use the -i flag for read, since that doesn't work for bash 3
    14 read -e -p "1a) WordPress Repo Plugin Slug e.g. my-awesome-plugin: " PLUGINSLUG
     14read -e -p "1a) WordPress Repo Plugin Slug e.g. press-pay: " PLUGINSLUG
    1515echo
    1616
    1717# Set up some default values. Feel free to change these in your own script
    1818CURRENTDIR=`pwd`
    19 default_svnpath="/tmp/$PLUGINSLUG"
     19default_svnpath="/User/spinlock/WordPress/Subversion/$PLUGINSLUG"
    2020default_svnurl="http://plugins.svn.wordpress.org/$PLUGINSLUG"
    21 default_svnuser="GaryJ"
    22 default_plugindir="$CURRENTDIR/$PLUGINSLUG"
     21default_svnuser="presspay"
     22default_plugindir="$CURRENTDIR"
    2323default_mainfile="$PLUGINSLUG.php"
    2424
     
    7777echo "Versions match in readme.txt and $MAINFILE. Let's proceed..."
    7878
    79 # GaryJ: Ignore check for git tag, as git flow release finish creates this.
    80 #if git show-ref --tags --quiet --verify -- "refs/tags/$NEWVERSION1"
    81 #   then
    82 #       echo "Version $NEWVERSION1 already exists as git tag. Exiting....";
    83 #       exit 1;
    84 #   else
    85 #       echo "Git version does not exist. Let's proceed..."
    86 #fi
    87 
    8879echo "Changing to $GITPATH"
    8980cd $GITPATH
    90 # GaryJ: Commit message variable not needed . Hard coded for SVN trunk commit for consistency.
    91 #echo -e "Enter a commit message for this new version: \c"
    92 #read COMMITMSG
    93 # GaryJ: git flow release finish already covers this commit.
    94 #git commit -am "$COMMITMSG"
    9581
    96 # GaryJ: git flow release finish already covers this tag creation.
    97 #echo "Tagging new version in git"
    98 #git tag -a "$NEWVERSION1" -m "Tagging version $NEWVERSION1"
    99 
    100 echo "Pushing git master to origin, with tags"
    101 git push origin master
    102 git push origin master --tags
    103 
    104 echo
    105 echo "Creating local copy of SVN repo trunk ..."
    106 svn checkout $SVNURL/trunk $SVNPATH/trunk
     82echo
     83echo "Updating local copy of SVN repo trunk ..."
     84svn up $SVNPATH/trunk
    10785
    10886echo "Ignoring GitHub specific files"
     
    124102fi
    125103
    126 # Support for the /assets folder on the .org repo.
    127 echo "Moving assets"
    128 # Make the directory if it doesn't already exist
    129 mkdir $SVNPATH/assets/
    130 mv $SVNPATH/trunk/assets/* $SVNPATH/assets/
    131 svn add $SVNPATH/assets/
    132 svn delete $SVNPATH/trunk/assets
    133 
    134104echo "Changing directory to SVN and committing to trunk"
    135105cd $SVNPATH/trunk/
    136106# Delete all files that should not now be added.
    137 svn status | grep -v "^.[ \t]*\..*" | grep "^\!" | awk '{print $2}' | xargs svn del
     107# Skip this step to obfuscate the svn repo.
     108#svn status | grep -v "^.[ \t]*\..*" | grep "^\!" | awk '{print $2}' | xargs svn del
    138109# Add all new files that are not set to be ignored
    139110svn status | grep -v "^.[ \t]*\..*" | grep "^?" | awk '{print $2}' | xargs svn add
    140111svn commit --username=$SVNUSER -m "Preparing for $NEWVERSION1 release"
    141 
    142 echo "Updating WordPress plugin repo assets and committing"
    143 cd $SVNPATH/assets/
    144 # Add all new files that are not set to be ignored
    145 svn status | grep -v "^.[ \t]*\..*" | grep "^\!" | awk '{print $2}' | xargs svn del
    146 # Add all new files that are not set to be ignored
    147 svn status | grep -v "^.[ \t]*\..*" | grep "^?" | awk '{print $2}' | xargs svn add
    148 #svn commit --username=$SVNUSER -m "Updating assets"
    149112
    150113echo "Creating new SVN tag and committing it"
     
    154117#svn commit --username=$SVNUSER -m "Tagging version $NEWVERSION1"
    155118
    156 echo "Removing temporary directory $SVNPATH"
    157 cd $SVNPATH
    158 cd ..
    159 #rm -fr $SVNPATH/
    160 
    161119echo "*** FIN ***"
  • press-pay/trunk/press-pay.php

    r849016 r853485  
    33 * Plugin Name: PressPay
    44 * Plugin URI: http://atomicbroadcast.net/
    5  * Description: A plugin to easily turn any WordPress blog into a webstore.
     5 * Description: A plugin to easily turn any WordPress blog into a webstore. Click the "Connect with Stripe" button to configure your account then add a shortcode (ex: [presspay amount="2000" product_id="007" description="Wonder Widget"]) to any post or page.
    66 * Author: Andrew Dixon
    77 * Author URI: http://atomicbroadcast.net
    8  * Version: 2.0
     8 * Version: 2.1
    99 *****************************************************************************/
    1010/**********************************
  • press-pay/trunk/readme.txt

    r849016 r853485  
    55Requires at least: 3.0.1
    66Tested up to: 3.8.1
    7 Stable tag: 2.0
     7Stable tag: 2.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2828
    2929== Frequently Asked Questions ==
     30
     31= What parameters does the presspay shortcode support? =
     32
     33amount:      The price you will charge the client (in cents).
     34image:       A relative URL pointing to a square image of your brand or product. The recommended
     35             minimum size is 128x128px.
     36headline:    Name of the product (defaults to the blog title).
     37description: Description of the product (defaults to blog description).
     38product_id:  Unique identifier for the product (required if you add multiple payment buttons to
     39             a page.
     40
     41= Can I put more than one button on a page? =
     42
     43Yes. Just make sure that each shortcode has a unique product id.
     44Ex:
     45  [presspay amount="2000" product_id="1" description="stuff"]
     46  [presspay amount="3000" product_id="2" description="things"]
    3047
    3148= Do I need a Stripe account to use Press Pay? =
     
    5370== Changelog ==
    5471
    55 = 2.0=
     72= 2.1 =
     73Allow multiple buttons on a page. You must provide a product id for multiple buttons.
     74= 2.0 =
    5675Easier configuration with Stripe Connect.
    5776= 1.7 =
Note: See TracChangeset for help on using the changeset viewer.