Permalink
Browse files

bump version number for fix

  • Loading branch information...
1 parent 31ed43a commit faafa12ddecf8c43fd6724d3c4d666c0a6a9bb7d @josscrowcroft committed Jan 28, 2012
Showing with 14 additions and 15 deletions.
  1. +3 −3 money.js
  2. +2 −2 money.min.js
  3. +1 −1 package.json
  4. +8 −9 readme.md
View
6 money.js
@@ -1,5 +1,5 @@
/*!
- * money.js / fx() v0.1.2
+ * money.js / fx() v0.1.3
* Copyright 2011, Joss Crowcroft
*
* JavaScript library for realtime currency conversion and exchange rate calculation.
@@ -18,7 +18,7 @@
};
// Current version.
- fx.version = '0.1.2';
+ fx.version = '0.1.3';
/* --- Setup --- */
@@ -35,7 +35,7 @@
// Default exchange rate base currency (eg "USD"), which all the exchange rates are relative to
fx.base = fxSetup.base;
-
+
// Default from / to currencies for conversion via fx.convert():
fx.settings = {
from : fxSetup.from || fx.base,
View
4 money.min.js
@@ -1,2 +1,2 @@
-/* money.js 0.1.2, MIT license, josscrowcroft.github.com/money.js */
-(function(g,j){var b=function(a){return new i(a)};b.version="0.1.2";var c=g.fxSetup||{rates:{},base:""};b.rates=c.rates;b.base=c.base;b.settings={from:c.from||b.base,to:c.to||b.base};var h=b.convert=function(a,e){if("object"===typeof a&&a.length){for(var d=0;d<a.length;d++)a[d]=h(a[d],e);return a}e=e||{};if(!e.from)e.from=b.settings.from;if(!e.to)e.to=b.settings.to;var d=e.to,c=e.from,f=b.rates;f[b.base]=1;if(!f[d]||!f[c])throw"fx error";d=c===b.base?f[d]:d===b.base?1/f[c]:f[d]*(1/f[c]);return a*d},i=function(a){"string"===typeof a?(this._v=parseFloat(a.replace(/[^0-9-.]/g,"")),this._fx=a.replace(/([^A-Za-z])/g,"")):this._v=a},c=b.prototype=i.prototype;c.convert=function(){var a=Array.prototype.slice.call(arguments);a.unshift(this._v);return h.apply(b,a)};c.from=function(a){a=b(h(this._v,{from:a,to:b.base}));a._fx=b.base;return a};c.to=function(a){return h(this._v,{from:this._fx?this._fx:b.settings.from,to:a})};if("undefined"!==typeof exports){if("undefined"!==typeof module&&module.exports)exports=module.exports=b;exports.fx=fx}else"function"===typeof define&&define.amd?define([],function(){return b}):(b.noConflict=function(a){return function(){g.fx=a;b.noConflict=j;return b}}(g.fx),g.fx=b)})(this);
+/* money.js 0.1.3, MIT license, josscrowcroft.github.com/money.js */
+(function(g,j){var b=function(a){return new i(a)};b.version="0.1.3";var c=g.fxSetup||{rates:{},base:""};b.rates=c.rates;b.base=c.base;b.settings={from:c.from||b.base,to:c.to||b.base};var h=b.convert=function(a,e){if("object"===typeof a&&a.length){for(var d=0;d<a.length;d++)a[d]=h(a[d],e);return a}e=e||{};if(!e.from)e.from=b.settings.from;if(!e.to)e.to=b.settings.to;var d=e.to,c=e.from,f=b.rates;f[b.base]=1;if(!f[d]||!f[c])throw"fx error";d=c===b.base?f[d]:d===b.base?1/f[c]:f[d]*(1/f[c]);return a*d},i=function(a){"string"===typeof a?(this._v=parseFloat(a.replace(/[^0-9-.]/g,"")),this._fx=a.replace(/([^A-Za-z])/g,"")):this._v=a},c=b.prototype=i.prototype;c.convert=function(){var a=Array.prototype.slice.call(arguments);a.unshift(this._v);return h.apply(b,a)};c.from=function(a){a=b(h(this._v,{from:a,to:b.base}));a._fx=b.base;return a};c.to=function(a){return h(this._v,{from:this._fx?this._fx:b.settings.from,to:a})};if("undefined"!==typeof exports){if("undefined"!==typeof module&&module.exports)exports=module.exports=b;exports.fx=fx}else"function"===typeof define&&define.amd?define([],function(){return b}):(b.noConflict=function(a){return function(){g.fx=a;b.noConflict=j;return b}}(g.fx),g.fx=b)})(this);
View
2 package.json
@@ -8,5 +8,5 @@
"dependencies" : {},
"repository" : {"type": "git", "url": "git://github.com/josscrowcroft/money.js.git"},
"main" : "money.js",
- "version" : "0.1.2"
+ "version" : "0.1.3"
}
View
17 readme.md
@@ -27,18 +27,17 @@ Visit **[josscrowcroft.github.com/money.js](http://josscrowcroft.github.com/mone
## Changelog
-### 0.1.2
-* Strengthened up module definition similar to accounting.js
+** 0.1.3** - Fix typo in nodeJS module definition
-### 0.1.1
-* Add fallback in case base rate is not in rates object (e.g. `"USD": 1`) to avoid errors.
+** 0.1.2** - Strengthened up module definition similar to accounting.js
-### 0.1.0
-* Unexciting version number bump. Oh yeah and it has a license now.
+** 0.1.1** - Add fallback in case base rate is not in rates object (e.g. `"USD": 1`) to avoid errors.
+
+** 0.1.0** - Unexciting version number bump. Oh yeah and it has a license now.
+
+** 0.0.2**
-### 0.0.2
* Adds basic parsing to `fx()`, so that you can pass a formatted string, like so: `fx("$1.99 HKD").to("GBP")`
* Some cleanup and improved comments and docs
-### 0.0.1
-* First release
+** 0.0.1** - First release

0 comments on commit faafa12

Please sign in to comment.