-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #216 from telefonicaid/unstable
Version 1.8 Release
- Loading branch information
Showing
122 changed files
with
12,640 additions
and
1,785 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Set default behaviour, in case users don't have core.autocrlf set. | ||
* text=auto | ||
|
||
# Explicitly declare text files we want to always be normalized and converted | ||
# to native line endings on checkout. | ||
*.js text | ||
*.json | ||
*.yml | ||
README.md | ||
|
||
# Denote all files that are truly binary and should not be modified. | ||
*.png binary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.idea | ||
*.log | ||
node_modules | ||
coverage | ||
report | ||
*.crt | ||
*.csr | ||
*.key | ||
*.key.org | ||
*.rdb | ||
test/acceptance/config.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"quotmark": "single", | ||
"bitwise": true, | ||
"indent": 2, | ||
"camelcase": true, | ||
"strict": true, | ||
"trailing": true, | ||
"curly": true, | ||
"eqeqeq": true, | ||
"immed": true, | ||
"latedef": true, | ||
"newcap": true, | ||
"noempty": true, | ||
"unused": false, | ||
"noarg": true, | ||
"sub": true, | ||
"undef": true, | ||
"maxdepth": 4, | ||
"maxlen": 120, | ||
"node": true, | ||
"white": false, | ||
"globals": { | ||
"describe":true, | ||
"it": true, | ||
"expect": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
language: node_js | ||
|
||
node_js: | ||
- "0.8" | ||
- "0.10" | ||
|
||
branches: | ||
only: | ||
- unstable | ||
- master | ||
|
||
services: | ||
- mongodb | ||
- redis-server | ||
|
||
install: | ||
- npm install | ||
|
||
before_script: | ||
- cd ./utils | ||
- openssl genrsa -des3 -passout pass:test1234 -out server.key 1024 | ||
- openssl req -new -key server.key -batch -passin pass:test1234 -out server.csr | ||
- cp server.key server.key.org | ||
- openssl rsa -in server.key.org -passin pass:test1234 -out server.key | ||
- openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt | ||
- cd .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
'use strict'; | ||
var shell = require('shelljs'); | ||
|
||
module.exports = function (grunt) { | ||
|
||
// Project configuration. | ||
grunt.initConfig({ | ||
pkgFile: 'package.json', | ||
pkg: grunt.file.readJSON('package.json'), | ||
jshint: { | ||
options: { | ||
jshintrc: '.jshintrc' | ||
}, | ||
gruntfile: { | ||
src: 'Gruntfile.js' | ||
}, | ||
lib: { | ||
src: ['lib/**/*.js'] | ||
}, | ||
test: { | ||
src: ['test/e2e/*Test.js', 'test/component/*Test.js'] | ||
} | ||
}, | ||
watch: { | ||
gruntfile: { | ||
files: '<%= jshint.gruntfile.src %>', | ||
tasks: ['jshint:gruntfile'] | ||
}, | ||
lib: { | ||
files: '<%= jshint.lib.src %>', | ||
tasks: ['jshint:lib', 'test'] | ||
}, | ||
test: { | ||
files: '<%= jshint.test.src %>', | ||
tasks: ['jshint:test', 'test'] | ||
} | ||
}, | ||
|
||
'mocha-hack': { | ||
test : { | ||
options: { | ||
ui: 'bdd', | ||
reporter: 'spec', | ||
ignoreLeaks: true | ||
}, | ||
src: [ | ||
'mocha-globals.js', | ||
'test/e2e/*Test.js', | ||
'test/component/*Test.js' | ||
] | ||
}, | ||
check : { | ||
options: { | ||
ui: 'bdd', | ||
reporter: 'spec', | ||
ignoreLeaks: true | ||
}, | ||
src: [ | ||
'mocha-globals.js', | ||
'test/e2e/*Check.js', | ||
'test/e2e/*Test.js', | ||
'test/component/*Check.js', | ||
'test/component/*Test.js' | ||
] | ||
} | ||
}, | ||
|
||
exec: { | ||
doxfoundation: { | ||
cmd: 'node ./node_modules/.bin/dox-foundation --source lib --target doc' | ||
} | ||
}, | ||
|
||
plato: { | ||
options: { | ||
jshint: grunt.file.readJSON('.jshintrc') | ||
}, | ||
lib: { | ||
files: { | ||
'report': '<%= jshint.lib.src %>' | ||
} | ||
} | ||
}, | ||
|
||
env : { | ||
options : { | ||
//Shared Options Hash | ||
}, | ||
dev : { | ||
RUSH_CONFIG_FILE : 'lib/configTest.js' | ||
} | ||
} | ||
|
||
}); | ||
|
||
// These plugins provide necessary tasks. | ||
grunt.loadNpmTasks('grunt-contrib-jshint'); | ||
grunt.loadNpmTasks('grunt-contrib-watch'); | ||
grunt.loadNpmTasks('grunt-mocha-hack'); | ||
grunt.loadNpmTasks('grunt-exec'); | ||
grunt.loadNpmTasks('grunt-plato'); | ||
grunt.loadNpmTasks('grunt-env'); | ||
|
||
grunt.loadTasks('tools/tasks'); | ||
|
||
grunt.registerTask('test', ['env', 'mocha-hack:test']); | ||
|
||
grunt.registerTask('check', ['env', 'mocha-hack:check']); | ||
|
||
grunt.registerTask('testAll', ['env', 'mocha-hack:check']); | ||
|
||
grunt.registerTask('init-dev-env', ['hook:pre-commit']); | ||
|
||
grunt.registerTask('generate-report',function(){ | ||
var generateData = './node_modules/.bin/istanbul cover --root lib/ -- grunt test'; | ||
var generateReport = './node_modules/.bin/istanbul report --root coverage/ cobertura'; | ||
shell.exec(generateData, {silent : false}); | ||
shell.exec(generateReport, {silent : false}); | ||
}); | ||
|
||
grunt.registerTask('coverage', ['env', 'generate-report']); | ||
|
||
|
||
grunt.registerTask('complexity', ['plato']); | ||
|
||
grunt.registerTask('doc', ['exec:doxfoundation']); | ||
|
||
// Default task. | ||
grunt.registerTask('default', ['jshint', 'test']); | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Rush [![Build Status](https://travis-ci.org/telefonicaid/Rush.png)](https://travis-ci.org/telefonicaid/Rush) [![Dependency Status](https://david-dm.org/telefonicaid/Rush.png)](https://david-dm.org/telefonicaid/Rush) | ||
=== | ||
* Would you like to make effortless Async HTTP request? | ||
* Do yo want to track the state of your relayed requests? | ||
* Add automatic retransmissions/retries of your request? | ||
* Do you need callbacks when your request is finished? | ||
* Keep an historic record of custom information related to the request? | ||
|
||
Rush implements an scalable mechanism to provide such functionality, with minor client impact (Header stamping HTTP API). | ||
|
||
|
||
**Rush has been developed using:** | ||
|
||
[![WebStorm](http://www.jetbrains.com/webstorm/documentation/webstorm_banners/webstorm1/webstorm210x60_white.gif)](http://www.jetbrains.com/webstorm/) | ||
|
||
Ask us for your OpenSource License | ||
|
||
Still interested?, visit our [WIKI and DOCS](https://github.com/telefonicaid/Rush/wiki) section. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env node | ||
|
||
var consumer = require('../lib/consumer'); | ||
consumer.start(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env node | ||
|
||
var listener = require('../lib/listener'); | ||
listener.start(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
############################ Acceptance Config file####################################### | ||
|
||
# Configuration for the acceptance test script execution | ||
# Test suite defines the scope of the tests. Values available are: all, comp, int, e2e | ||
#test_suite=e2e | ||
test_suite=acceptance | ||
|
||
# Environment defines if the tests will be executed locally or remotely. Values available are: local or other value that will be | ||
# mapped to the settings file name | ||
#environment=local | ||
environment=aws |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
############################ Alarm Config file####################################### | ||
|
||
# Configuration for the alarm test script execution | ||
|
||
CERT_PATH=../utils/server.crt | ||
KEY_PATH=../utils/server.key | ||
|
||
MONGO_HOST=localhost | ||
REDIS_HOST=localhost | ||
|
||
MONGO_PORT=27017 | ||
REDIS_PORT=6379 | ||
RUSH_PORT=5001 | ||
|
||
#Default values | ||
REDIS_PATH="/usr/local/bin/redis-server" | ||
MONGO_PATH="/usr/bin/mongod" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
//Copyright 2012 Telefonica Investigación y Desarrollo, S.A.U | ||
// | ||
//This file is part of RUSH. | ||
// | ||
// RUSH is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public | ||
// License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later | ||
// version. | ||
// RUSH is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty | ||
// of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU Affero General Public License along with RUSH | ||
// . If not, seehttp://www.gnu.org/licenses/. | ||
// | ||
//For those usages not covered by the GNU Affero General Public License please contact with::[email protected] | ||
|
||
var path = require('path'), | ||
envFile = process.env.RUSH_CONFIG_FILE, | ||
configFile = './configBase.js'; | ||
|
||
if (envFile) { | ||
configFile = path.resolve('.', envFile); | ||
} | ||
|
||
module.exports = require(configFile); |
Oops, something went wrong.