...
 
Commits (2)
cache:
key: "$CI_JOB_NAME"
untracked: true
paths:
- node_modules/
before_script:
- npm install
.test_template: &npm_test
script:
- npm run lint
- npm test
test:node6:
image: node:6
<<: *npm_test
test:node8:
image: node:8
<<: *npm_test
test:node10:
image: node:10
<<: *npm_test
language: node_js
node_js:
- "7"
- "6"
script:
- npm run lint
- npm test
# Change log
## 0.2.2
### Other changes
* project: migrate to gitlab (2da1a20)
## 0.2.1
* fix: prevent undefined reference when no previous versions exist (b228acd)
......
# FxHey!
[![Package status](https://img.shields.io/npm/v/fxhey.svg?style=flat-square)](https://www.npmjs.com/package/fxhey)
[![Build status](https://img.shields.io/travis/philbooth/FxHey.svg?style=flat-square)](https://travis-ci.org/philbooth/FxHey)
[![License](https://img.shields.io/github/license/philbooth/fxhey.svg?style=flat-square)](https://opensource.org/licenses/MIT)
[![Build status](https://gitlab.com/philbooth/FxHey/badges/master/pipeline.svg)](https://gitlab.com/philbooth/FxHey/pipelines)
[![Package status](https://img.shields.io/npm/v/fxhey.svg)](https://www.npmjs.com/package/fxhey)
[![Downloads](https://img.shields.io/npm/dm/fxhey.svg)](https://www.npmjs.com/package/fxhey)
[![License](https://img.shields.io/npm/l/fxhey.svg)](https://opensource.org/licenses/MIT)
Live train announcements for [Firefox Accounts](https://accounts.firefox.com/).
......
......@@ -7,7 +7,7 @@ const pkg = require('./package.json')
const DEFAULT_RATE = 1000 * 60 * 60
const MINIMUM_RATE = DEFAULT_RATE / 2
const DEFAULT_USER_AGENT = `FxHey/${pkg.version} (https://github.com/philbooth/fxhey)`
const DEFAULT_USER_AGENT = `FxHey/${pkg.version} (https://gitlab.com/philbooth/fxhey)`
const REPO_MATCH = /mozilla\/fxa(?:-[a-z]+){2}(?:-private)?/
const SERVERS = [
{ name: 'content', url: 'https://accounts.firefox.com/ver.json' },
......
{
"name": "fxhey",
"version": "0.2.1",
"version": "0.2.2",
"license": "MIT",
"description": "FxHey! Live train announcements for Firefox Accounts.",
"keywords": [
......@@ -25,22 +25,22 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/philbooth/FxHey.git"
"url": "git+https://gitlab.com/philbooth/FxHey.git"
},
"homepage": "https://github.com/philbooth/FxHey#readme",
"homepage": "https://gitlab.com/philbooth/FxHey#readme",
"bugs": {
"url": "https://github.com/philbooth/FxHey/issues"
"url": "https://gitlab.com/philbooth/FxHey/issues"
},
"dependencies": {
"check-types": "^7.1.5",
"got": "^6.7.1"
},
"devDependencies": {
"chai": "^3.5.0",
"chai": "^4.1.2",
"eslint": "^3.19.0",
"mocha": "^3.2.0",
"please-release-me": "^1.0.3",
"proxyquire": "^1.7.11",
"sinon": "^2.1.0"
"mocha": "^5.2.0",
"please-release-me": "^2.0.2",
"proxyquire": "^2.0.1",
"sinon": "^6.0.0"
}
}
......@@ -169,7 +169,7 @@ suite('unit tests:', () => {
setup(done => {
now = Date.now()
sinon.stub(Date, 'now', () => now)
sinon.stub(Date, 'now').callsFake(() => now)
afterCallback = done
callback = sinon.spy(() => afterCallback())
version.version = '0.81.5'
......@@ -204,7 +204,7 @@ suite('unit tests:', () => {
assert.deepEqual(args[1], {
json: true,
headers: {
'User-Agent': `FxHey/${pkg.version} (https://github.com/philbooth/fxhey)`
'User-Agent': `FxHey/${pkg.version} (https://gitlab.com/philbooth/fxhey)`
}
})
assert.equal(got.args[1][0], 'https://api.accounts.firefox.com/__version__')
......@@ -327,7 +327,7 @@ suite('unit tests:', () => {
setup(done => {
now = Date.now()
sinon.stub(Date, 'now', () => now)
sinon.stub(Date, 'now').callsFake(() => now)
callback = sinon.spy(done)
version.version = '1.82.0'
fxhey(callback, {
......@@ -375,7 +375,7 @@ suite('unit tests:', () => {
setup(done => {
now = Date.now()
sinon.stub(Date, 'now', () => now)
sinon.stub(Date, 'now').callsFake(() => now)
callback = sinon.spy(done)
version.version = '1.82.0'
fxhey(callback, {
......@@ -420,7 +420,7 @@ suite('unit tests:', () => {
setup(() => {
now = Date.now()
sinon.stub(Date, 'now', () => now)
sinon.stub(Date, 'now').callsFake(() => now)
callback = sinon.spy()
version.version = '1.81.0'
fxhey(callback, {
......@@ -455,7 +455,7 @@ suite('unit tests:', () => {
setup(done => {
now = Date.now()
sinon.stub(Date, 'now', () => now)
sinon.stub(Date, 'now').callsFake(() => now)
callback = sinon.spy(done)
version.version = '1.82.0'
fxhey(callback, {
......