Comparing version 1.15.0 to 1.16.0
1.16.0 / 2014-05-09 | ||
================== | ||
* fixed; dropped "+" when 0 passed as vertical roll amt #267 [dwtkns](https://github.com/dwtkns) | ||
* added; highlight-style support #272 [fdecampredon](https://github.com/fdecampredon) | ||
1.15.0 / 2014-05-03 | ||
@@ -3,0 +9,0 @@ =================== |
@@ -1,2 +0,1 @@ | ||
/** | ||
@@ -964,4 +963,4 @@ * Dependencies | ||
proto.roll = function roll (x, y) { | ||
x = ((x = parseInt(x, 10) || 0) > 0 ? "+" : "") + x; | ||
y = ((y = parseInt(y, 10) || 0) > 0 ? "+" : "") + y; | ||
x = ((x = parseInt(x, 10) || 0) >= 0 ? "+" : "") + x; | ||
y = ((y = parseInt(y, 10) || 0) >= 0 ? "+" : "") + y; | ||
return this.out("-roll", x+y); | ||
@@ -968,0 +967,0 @@ } |
@@ -41,6 +41,9 @@ // compare | ||
: ' '; | ||
var highlightStyleOption = options.highlightStyle | ||
? ' -highlight-style ' + options.highlightStyle + ' ' | ||
: ' '; | ||
var diffFilename = utils.escape(options.file); | ||
// For IM, filename is the last argument. For GM it's `-file <filename>` | ||
var diffOpt = isImageMagick ? diffFilename : ('-file ' + diffFilename); | ||
execCmd += highlightColorOption + ' ' + diffOpt; | ||
execCmd += highlightColorOption + highlightStyleOption + ' ' + diffOpt; | ||
} | ||
@@ -47,0 +50,0 @@ |
{ | ||
"name": "gm", | ||
"description": "GraphicsMagick and ImageMagick for node.js", | ||
"version": "1.15.0", | ||
"version": "1.16.0", | ||
"author": "Aaron Heckmann <aaron.heckmann+github@gmail.com>", | ||
@@ -49,2 +49,2 @@ "keywords": [ | ||
} | ||
} | ||
} |
THIS REPOSITORY NEEDS A MAINTAINER. IF YOU'RE INTERESTED IN MAINTAING THIS MODULE, PLEASE LET US KNOW! | ||
# gm v1.14.2 [](https://travis-ci.org/aheckmann/gm) | ||
# gm v1.15.0 [](https://travis-ci.org/aheckmann/gm) | ||
GraphicsMagick and ImageMagick for node | ||
## Getting started | ||
First download and install [GraphicsMagick](http://www.graphicsmagick.org/) or [ImageMagick](http://www.imagemagick.org/). In Mac OS X, you can simply use [Homebrew](http://mxcl.github.io/homebrew/) and do: | ||
brew install imagemagick | ||
brew install graphicsmagick | ||
If you want WebP support with ImageMagick, you must add the WebP option: | ||
brew install imagemagick --with-webp | ||
then either use npm: | ||
npm install gm | ||
or clone the repo: | ||
git clone git://github.com/aheckmann/gm.git | ||
## Basic Usage | ||
@@ -236,20 +255,2 @@ | ||
## Getting started | ||
First download and install [GraphicsMagick](http://www.graphicsmagick.org/) or [ImageMagick](http://www.imagemagick.org/). In Mac OS X, you can simply use [Homebrew](http://mxcl.github.io/homebrew/) and do: | ||
brew install imagemagick | ||
brew install graphicsmagick | ||
If you want WebP support with ImageMagick, you must add the WebP option: | ||
brew install imagemagick --with-webp | ||
then either use npm: | ||
npm install gm | ||
or clone the repo: | ||
git clone git://github.com/aheckmann/gm.git | ||
## Platform differences | ||
@@ -256,0 +257,0 @@ |
103085
1905
561