Skip to content

Commit

Permalink
Merge pull request #395 from rimiti/some-improvements
Browse files Browse the repository at this point in the history
Fixes CI, tests, coverage.
  • Loading branch information
mashpie authored Apr 16, 2019
2 parents 50c994e + 2e0d87a commit 83caab3
Show file tree
Hide file tree
Showing 7 changed files with 4,016 additions and 66 deletions.
10 changes: 3 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
language: node_js
node_js:
- 0.10
- 0.11
- 0.12
- 4
- 5
- iojs
- node
- lts/*
branches:
only:
- master
Expand All @@ -21,4 +17,4 @@ after_script:
- "cat ./coverage/lcov.info | CODECLIMATE_REPO_TOKEN=8f4183adc84cb07c9609004de2f43c60e2a54a09c89d99f055919267f5246409 codeclimate-test-reporter"
addons:
code_climate:
repo_token: 8f4183adc84cb07c9609004de2f43c60e2a54a09c89d99f055919267f5246409
repo_token: 8f4183adc84cb07c9609004de2f43c60e2a54a09c89d99f055919267f5246409
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
test:
mocha
mocha --exit

cover:
istanbul cover ./node_modules/mocha/bin/_mocha
Expand All @@ -14,4 +14,4 @@ examples:

all: test examples hint

.PHONY: test examples
.PHONY: test examples
34 changes: 2 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@ Stores language files in json files compatible to [webtranslateit](http://webtra
Adds new strings on-the-fly when first used in your app.
No extra parsing needed.

[![Linux/OSX Build][travis-image]][travis-url]
[![Windows Build][appveyor-image]][appveyor-url]
[![NPM version][npm-image]][npm-url]
[![Dependency Status][dependency-image]][dependency-url]
[![Travis][travis-image]][travis-url]
[![Test Coverage][coveralls-image]][coveralls-url]
[![NPM version][npm-image]][npm-url]
[![Known Vulnerabilities][snyk-image]][snyk-url]

## Install
Expand Down Expand Up @@ -993,42 +991,14 @@ i18n.configure({
* 0.1.0: added tests
* 0.0.1: start

## Licensed under MIT

Copyright (c) 2011-2016 Marcus Spiegel <marcus.spiegel@gmail.com>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

[npm-image]: https://badge.fury.io/js/i18n.svg
[npm-url]: https://www.npmjs.com/package/i18n

[travis-image]: https://travis-ci.org/mashpie/i18n-node.svg?branch=master
[travis-url]: https://travis-ci.org/mashpie/i18n-node

[appveyor-image]: https://ci.appveyor.com/api/projects/status/677snewuop7u5xtl?svg=true
[appveyor-url]: https://ci.appveyor.com/project/mashpie/i18n-node

[coveralls-image]: https://coveralls.io/repos/github/mashpie/i18n-node/badge.svg?branch=master
[coveralls-url]: https://coveralls.io/github/mashpie/i18n-node?branch=master

[dependency-image]: https://img.shields.io/gemnasium/mashpie/i18n-node.svg
[dependency-url]: https://gemnasium.com/mashpie/i18n-node

[snyk-image]: https://snyk.io/test/npm/i18n/badge.svg
[snyk-url]: https://snyk.io/test/npm/i18n
19 changes: 0 additions & 19 deletions appveyor.yml

This file was deleted.

2 changes: 1 addition & 1 deletion i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ module.exports = (function() {
locale === undefined &&
typeof this.locale === 'string'
) {
if (register && register.GLOBAL) {
if (register && register.global) {
targetLocale = '';
} else {
targetLocale = this.locale;
Expand Down
Loading

0 comments on commit 83caab3

Please sign in to comment.