Skip to content

Commit

Permalink
Adding version number to namespace and updating version to 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
timrwood committed Oct 18, 2011
1 parent 04b788a commit a0c5b6e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ var JSHINT_CONFIG = {
var LANG_MINIFY = "fr it pt".split(" ");
var LANG_TEST = "en fr it pt".split(" ");
var LANG_PREFIX = "var moment;if (typeof window === 'undefined') {moment = require('../moment.js');module = QUnit.module;}";
var VERSION = '1.0.0';
var VERSION = '1.0.1';
var MINIFY_COMMENT = '/* Moment.js | version : ' + VERSION + ' | author : Tim Wood | license : MIT */\n';


Expand Down
6 changes: 5 additions & 1 deletion moment.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// (c) 2011 Tim Wood
// Moment.js is freely distributable under the terms of the MIT license.
//
// Version 1.0.0
// Version 1.0.1

(function (Date, undefined) {

Expand All @@ -13,6 +13,7 @@
hasModule = (typeof module !== 'undefined'),
paramsToParse = 'months|monthsShort|weekdays|weekdaysShort|relativeTime|ordinal'.split('|'),
i,
VERSION = "1.0.1",
shortcuts = 'Month|Date|Hours|Minutes|Seconds'.split('|');

// left zero fill a number
Expand Down Expand Up @@ -316,6 +317,9 @@
return new Moment(date);
};

// version number
moment.version = VERSION;

// language switching and caching
moment.lang = function (key, values) {
var i, param, req;
Expand Down
4 changes: 2 additions & 2 deletions moment.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "moment",
"version": "1.0.0",
"version": "1.0.1",
"description": "Moment.js is a javascript date library that helps create, manipulate, and format dates without extending the `Date` prototype.",
"homepage": "https://github.com/timrwood/moment",
"author": "Tim Wood <washwithcare@gmail.com> (http://timwoodcreates.com/)",
Expand Down

0 comments on commit a0c5b6e

Please sign in to comment.