Skip to content

Instantly share code, notes, and snippets.

@regis-leray
regis-leray / release-git-script
Last active March 25, 2023 20:50
Release script using git and maven release plugin. Based on the "successful git branch model" and https://gist.github.com/searls/1043970 Its also managed the hotfix feature
#!/bin/bash
# How to perform a release with git & maven following the git flow conventions
# ----------------------------------------------------------------------------
# Finding the next version: you can see the next version by looking at the
# version element in "pom.xml" and lopping off "-SNAPSHOT". To illustrate,
# if the pom's version read "0.0.2-SNAPSHOT", the following instructions would
# perform the release for version "0.0.2" and increment the development version
# of each project to "0.0.3-SNAPSHOT".
#
@regis-leray
regis-leray / gist:755127
Created December 26, 2010 00:40
jquery-ujs + add back :submit, :with features
/*
* jquery-ujs
*
* add back the features ":submit",":with" features (link_to_remote) in the UJS
* manage this features by adding this with the HTML 5 attributes
* :with => data-with
* :submit => data-submit
*
* follow same behaviour http://apidock.com/rails/ActionView/Helpers/PrototypeHelper/link_to_remote
*