From 09756d73098fbecb07e2f3a2d8d296350c586982 Mon Sep 17 00:00:00 2001 From: zhongjin Date: Sat, 22 Sep 2018 00:11:56 +0800 Subject: [PATCH] new --- .travis.yml | 2 +- README.md | 10 +++++----- admin/blockly.js | 2 +- appveyor.yml | 2 +- io-package.json | 24 ++++++++++++------------ lib/utils.js | 4 ++-- main.js | 2 +- package.json | 12 ++++++------ test/lib/setup.js | 2 +- test/testPackageFiles.js | 6 +++--- 10 files changed, 33 insertions(+), 33 deletions(-) diff --git a/.travis.yml b/.travis.yml index 69b8d9d..e58b02a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,7 +12,7 @@ before_script: - 'if [[ $NPMVERSION == 5 ]]; then npm install -g npm@5; fi' - npm -v - npm install winston@2.3.1 - - 'npm install https://github.com/ioBroker/ioBroker.js-controller/tarball/master --production' + - 'npm install https://github.com/yunkong2/yunkong2.js-controller/tarball/master --production' env: - CXX=g++-4.8 addons: diff --git a/README.md b/README.md index 11db7a0..d27c2b2 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,14 @@ ![Logo](admin/pushover.png) -# ioBroker pushover Adapter +# yunkong2 pushover Adapter ============== -[![NPM version](http://img.shields.io/npm/v/iobroker.pushover.svg)](https://www.npmjs.com/package/iobroker.pushover) -[![Downloads](https://img.shields.io/npm/dm/iobroker.pushover.svg)](https://www.npmjs.com/package/iobroker.pushover) +[![NPM version](http://img.shields.io/npm/v/yunkong2.pushover.svg)](https://www.npmjs.com/package/yunkong2.pushover) +[![Downloads](https://img.shields.io/npm/dm/yunkong2.pushover.svg)](https://www.npmjs.com/package/yunkong2.pushover) -[![NPM](https://nodei.co/npm/iobroker.pushover.png?downloads=true)](https://nodei.co/npm/iobroker.pushover/) +[![NPM](https://nodei.co/npm/yunkong2.pushover.png?downloads=true)](https://nodei.co/npm/yunkong2.pushover/) -Send pushover notifications from ioBroker. +Send pushover notifications from yunkong2. ## Configuration First of all it is required an account on pushover. diff --git a/admin/blockly.js b/admin/blockly.js index 5fc7673..19ddfe0 100644 --- a/admin/blockly.js +++ b/admin/blockly.js @@ -52,7 +52,7 @@ Blockly.Words['pushover_log_error'] = {'en': 'error', Blockly.Words['pushover_anyInstance'] = {'en': 'all instances', 'de': 'Alle Instanzen', 'ru': 'На все драйвера'}; Blockly.Words['pushover_tooltip'] = {'en': 'Send message to pushover', 'de': 'Sende eine Meldung über Telegram', 'ru': 'Послать сообщение через Pushover'}; -Blockly.Words['pushover_help'] = {'en': 'https://github.com/ioBroker/ioBroker.pushover/blob/master/README.md', 'de': 'https://github.com/ioBroker/ioBroker.pushover/blob/master/README.md', 'ru': 'https://github.com/ioBroker/ioBroker.pushover/blob/master/README.md'}; +Blockly.Words['pushover_help'] = {'en': 'https://github.com/yunkong2/yunkong2.pushover/blob/master/README.md', 'de': 'https://github.com/yunkong2/yunkong2.pushover/blob/master/README.md', 'ru': 'https://github.com/yunkong2/yunkong2.pushover/blob/master/README.md'}; Blockly.Sendto.blocks['pushover'] = '' diff --git a/appveyor.yml b/appveyor.yml index 84ca0a9..bb429a7 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -16,7 +16,7 @@ install: - ps: npm --version - npm install - npm install winston@2.3.1 - - 'npm install https://github.com/ioBroker/ioBroker.js-controller/tarball/master --production' + - 'npm install https://github.com/yunkong2/yunkong2.js-controller/tarball/master --production' test_script: - echo %cd% - node --version diff --git a/io-package.json b/io-package.json index ca99381..124ae3d 100644 --- a/io-package.json +++ b/io-package.json @@ -42,15 +42,15 @@ }, "title": "Pushover", "desc": { - "en": "This adapter allows to send pushover notifications from ioBroker", - "de": "Dieser Adapter ermöglicht das Senden von Pushover-Benachrichtigungen von ioBroker", - "ru": "Этот адаптер позволяет отправлять pushover-уведомления от ioBroker", - "pt": "Este adaptador permite enviar notificações pushover do ioBroker", - "nl": "Met deze adapter kunt u pushover-meldingen van ioBroker verzenden", - "fr": "Cet adaptateur permet d'envoyer des notifications de transfert depuis ioBroker", - "it": "Questo adattatore consente di inviare notifiche pushover da ioBroker", - "es": "Este adaptador permite enviar notificaciones fáciles de ioBroker", - "pl": "Ten adapter umożliwia wysyłanie powiadomień push z programu ioBroker" + "en": "This adapter allows to send pushover notifications from yunkong2", + "de": "Dieser Adapter ermöglicht das Senden von Pushover-Benachrichtigungen von yunkong2", + "ru": "Этот адаптер позволяет отправлять pushover-уведомления от yunkong2", + "pt": "Este adaptador permite enviar notificações pushover do yunkong2", + "nl": "Met deze adapter kunt u pushover-meldingen van yunkong2 verzenden", + "fr": "Cet adaptateur permet d'envoyer des notifications de transfert depuis yunkong2", + "it": "Questo adattatore consente di inviare notifiche pushover da yunkong2", + "es": "Este adaptador permite enviar notificaciones fáciles de yunkong2", + "pl": "Ten adapter umożliwia wysyłanie powiadomień push z programu yunkong2" }, "authors": [ "bluefox " @@ -66,7 +66,7 @@ "messagebox": true, "materialize": true, "subscribe": "messagebox", - "readme": "https://github.com/ioBroker/ioBroker.pushover/blob/master/README.md", + "readme": "https://github.com/yunkong2/yunkong2.pushover/blob/master/README.md", "wakeup": true, "enabled": true, "icon": "pushover.png", @@ -75,14 +75,14 @@ "pushover", "message" ], - "extIcon": "https://raw.githubusercontent.com/ioBroker/ioBroker.pushover/master/admin/pushover.png", + "extIcon": "https://git.spacen.net/yunkong2/yunkong2.pushover/raw/master/admin/pushover.png", "type": "messaging", "blockly": true }, "native": { "user": "xxxxx", "token": "xxxxx", - "title": "ioBroker", + "title": "yunkong2", "sound": "", "priority": 0 }, diff --git a/lib/utils.js b/lib/utils.js index c8a0eb7..6af37ff 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -27,8 +27,8 @@ let appName; function getControllerDir(isInstall) { // Find the js-controller location const possibilities = [ - 'iobroker.js-controller', - 'ioBroker.js-controller', + 'yunkong2.js-controller', + 'yunkong2.js-controller', ]; /** @type {string} */ let controllerPath; diff --git a/main.js b/main.js index 057973e..1aefdec 100644 --- a/main.js +++ b/main.js @@ -1,6 +1,6 @@ /** * - * ioBroker pushover Adapter + * yunkong2 pushover Adapter * * (c) 2014-2018 bluefox * diff --git a/package.json b/package.json index db01752..3233a72 100644 --- a/package.json +++ b/package.json @@ -1,21 +1,21 @@ { - "name": "iobroker.pushover", - "description": "This adapter allows to send pushover notifications from ioBroker", + "name": "yunkong2.pushover", + "description": "This adapter allows to send pushover notifications from yunkong2", "version": "1.1.0", "author": "bluefox ", "contributors": [ "bluefox " ], - "homepage": "https://github.com/ioBroker/ioBroker.pushover", + "homepage": "https://github.com/yunkong2/yunkong2.pushover", "license": "MIT", "keywords": [ - "ioBroker", + "yunkong2", "pushover", "home automation" ], "repository": { "type": "git", - "url": "https://github.com/ioBroker/ioBroker.pushover" + "url": "https://github.com/yunkong2/yunkong2.pushover" }, "dependencies": { "pushover-notifications": "^1.0.0" @@ -26,7 +26,7 @@ "chai": "^4.1.2" }, "bugs": { - "url": "https://github.com/ioBroker/ioBroker.pushover/issues" + "url": "https://github.com/yunkong2/yunkong2.pushover/issues" }, "main": "main.js", "scripts": { diff --git a/test/lib/setup.js b/test/lib/setup.js index 16857ed..09cc5f3 100644 --- a/test/lib/setup.js +++ b/test/lib/setup.js @@ -415,7 +415,7 @@ function clearControllerLog() { } function clearDB() { - var dirPath = rootDir + 'tmp/iobroker-data/sqlite'; + var dirPath = rootDir + 'tmp/yunkong2-data/sqlite'; var files; try { if (fs.existsSync(dirPath)) { diff --git a/test/testPackageFiles.js b/test/testPackageFiles.js index c600a60..d0759c0 100644 --- a/test/testPackageFiles.js +++ b/test/testPackageFiles.js @@ -52,12 +52,12 @@ describe('Test package.json and io-package.json', function() { console.log(); } if ( - ioPackage.common.title.indexOf('iobroker') !== -1 || - ioPackage.common.title.indexOf('ioBroker') !== -1 || + ioPackage.common.title.indexOf('yunkong2') !== -1 || + ioPackage.common.title.indexOf('yunkong2') !== -1 || ioPackage.common.title.indexOf('adapter') !== -1 || ioPackage.common.title.indexOf('Adapter') !== -1 ) { - console.log('WARNING: title contains Adapter or ioBroker. It is clear anyway, that it is adapter for ioBroker.'); + console.log('WARNING: title contains Adapter or yunkong2. It is clear anyway, that it is adapter for yunkong2.'); console.log(); }