Skip to content

Commit

Permalink
~ ci;
Browse files Browse the repository at this point in the history
  • Loading branch information
Spown committed Oct 24, 2017
1 parent 9b98552 commit 3a7042d
Show file tree
Hide file tree
Showing 10 changed files with 2,620 additions and 119 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@ language: node_js
node_js:
- 0.10
- 0.12
- iojs
- 4
- 5
- 6
- 7
- 8
- iojs
branches:
only:
- master
Expand Down
3 changes: 1 addition & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@ environment:
matrix:
- nodejs_version: "0.10"
- nodejs_version: "0.12"
- nodejs_version: "iojs"
- nodejs_version: "4"
- nodejs_version: "5"
- nodejs_version: "6"
- nodejs_version: "7"
- nodejs_version: "8"
- nodejs_version: "iojs"
branches:
only:
- master
Expand Down
11 changes: 5 additions & 6 deletions i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @link https://github.com/mashpie/i18n-node
* @license http://opensource.org/licenses/MIT
*
* @version 0.8.3
* @version 0.8.4
*/

'use strict';
Expand Down Expand Up @@ -72,8 +72,8 @@ module.exports = (function () {
i18n.version = pkg.version;

i18n.disableReload = function disableReload() {
if (fsWatcher && fsWatcher.closed === false) {
fsWatcher.close();
if (fsWatcher) {
return fsWatcher.close();
}
};

Expand Down Expand Up @@ -182,8 +182,7 @@ module.exports = (function () {
fsWatcher.on('all', function (event, filePath) {
var fileName = upath.basename(filePath),
localeFromFile = guessLocaleFromFile(fileName);
//console.log(' fsWatcher.on', event, fileName);
if (event === 'change' && localeFromFile && opt.locales.indexOf(localeFromFile) > -1) {
if (event === 'change' && localeFromFile && ~opt.locales.indexOf(localeFromFile)) {
logDebug('Auto reloading locale file "' + fileName + '".');
read(localeFromFile);
}
Expand Down Expand Up @@ -1194,7 +1193,7 @@ module.exports = (function () {
return filepathJS;
}
} catch (e) {
logDebug('will use ' + filepath);
//logDebug('will use ' + filepath);
}
return filepath;
};
Expand Down
Loading

0 comments on commit 3a7042d

Please sign in to comment.