Skip to content

Commit

Permalink
Merge branch 'release/1.0.0' into releases
Browse files Browse the repository at this point in the history
  • Loading branch information
Johnny Estilles committed May 27, 2015
2 parents 1c8f54f + 9c92488 commit a3e5cb2
Show file tree
Hide file tree
Showing 32 changed files with 1,570 additions and 1,357 deletions.
1 change: 0 additions & 1 deletion .coveralls.yml

This file was deleted.

95 changes: 95 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
env:
node: true
mocha: true

# enable ECMAScript features
ecmaFeatures:
blockBindings: true
templateStrings: true
octalLiterals: true
binaryLiterals: true
generators: true

rules:
# Possible Errors
# list: https://github.com/eslint/eslint/tree/master/docs/rules#possible-errors
## check debugger sentence
no-debugger: 2
## check duplicate arguments
no-dupe-args: 2
## check duplicate object keys
no-dupe-keys: 2
## check duplicate switch-case
no-duplicate-case: 2
## disallow assignment of exceptional params
no-ex-assign: 2
## disallow use of reserved words as keys like enum, class
no-reserved-keys: 2
## disallow unreachable code
no-unreachable: 2
## require valid typeof compared string like typeof foo === 'strnig'
valid-typeof: 2

# Best Practices
# list: https://github.com/eslint/eslint/tree/master/docs/rules#best-practices
## require falls through comment on switch-case
no-fallthrough: 2

# Stylistic Issues
# list: https://github.com/eslint/eslint/tree/master/docs/rules#stylistic-issues
## use single quote, we can use double quote when escape chars
quotes:
- 2
- "single"
- "avoid-escape"
## 2 space indentation
indent:
- 2
- 2
## add space after comma
## set to 'warn' because of https://github.com/eslint/eslint/issues/2408
comma-spacing: 1
## put semi-colon
semi: 2
## require spaces operator like var sum = 1 + 1;
space-infix-ops: 2
## require spaces return, throw, case
space-return-throw-case: 2
## require parens for Constructor
new-parens: 2
## max 80 length
max-len:
- 2
- 80
- 2
## allow underscoe dangle because we use `lodash`
## https://github.com/eslint/eslint/blob/master/docs/rules/no-underscore-dangle.md
no-underscore-dangle: 0

# Strict Mode
# list: https://github.com/eslint/eslint/tree/master/docs/rules#strict-mode
## 'use strict' on top
strict:
- 2
- "global"

# Global scoped method and vars
globals:
DTRACE_HTTP_CLIENT_REQUEST: true
LTTNG_HTTP_CLIENT_REQUEST: true
COUNTER_HTTP_CLIENT_REQUEST: true
DTRACE_HTTP_CLIENT_RESPONSE: true
LTTNG_HTTP_CLIENT_RESPONSE: true
COUNTER_HTTP_CLIENT_RESPONSE: true
DTRACE_HTTP_SERVER_REQUEST: true
LTTNG_HTTP_SERVER_REQUEST: true
COUNTER_HTTP_SERVER_REQUEST: true
DTRACE_HTTP_SERVER_RESPONSE: true
LTTNG_HTTP_SERVER_RESPONSE: true
COUNTER_HTTP_SERVER_RESPONSE: true
DTRACE_NET_STREAM_END: true
LTTNG_NET_STREAM_END: true
COUNTER_NET_SERVER_CONNECTION_CLOSE: true
DTRACE_NET_SERVER_CONNECTION: true
LTTNG_NET_SERVER_CONNECTION: true
COUNTER_NET_SERVER_CONNECTION: true
15 changes: 15 additions & 0 deletions .istanbul.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
reporting:
print: summary
reports:
- lcov
- html
dir: ./coverage
report-config:
dir: './coverage'
lcovonly:
- file: lcov.info
text:
- file: null
- maxCols: 0
text-summary:
- file: null
29 changes: 0 additions & 29 deletions .jscsrc

This file was deleted.

64 changes: 0 additions & 64 deletions .jshintrc

This file was deleted.

22 changes: 17 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,26 @@
language: node_js
node_js:
- "0.12"
- "0.10"
- "0.12"

notifications:
email:
- "johnny.estilles@agentia.asia"
email:
- johnny.estilles@agentia.asia

addons:
code_climate:
repo_token: 636ae2cc82f862714a33f273378aa1699e355c78ee10353e288efc2c59386d60

before_install:
- npm install -g eslint
- npm install -g codeclimate-test-reporter

before_script:
- npm run lint

after_script:
- "NODE_ENV=test istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"
after_script:
- npm run cover
- codeclimate < ./coverage/lcov.info

branches:
only:
Expand Down
60 changes: 42 additions & 18 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,27 @@
# Agentia-Semaphore
# ![agentia-semaphore][logo-url]

## v1.0.0 / 2015-05-27

* added; started using semantic versioning
* added; logo
* updated; replaced coveralls with codeclimate
* updated; dependency to `sinon@1.14.1`
* updated; dependency to `mocha@2.2.5`
* updated; dependency to `istanbul@0.3.14`
* updated; dependency to `chai@2.3.0`
* updated; dependency to `request@2.55.0`
* updated; dependency to `moment-timezone@0.3.1`
* udpated; replaced `underscore@1.8.2` with `lodash@3.9.3`
* updated; replaced `jscs` & `jshint` with `eslint`
* removed; gulp tasks in favor of npm scripts

## v0.1.3-v0.1.7 / 2015-03-05

* updated; renamed project `agentia-semaphore`
* added; dependency `querystring@0.2.0`
* fixed; github urls
* fixed; lint errors
* added; whitelist travis-ci branches

## v0.1.2 / 2015-03-05

Expand All @@ -12,23 +35,22 @@
* added; test for lib/sms.js
* achieved 100% coverage
* updated; refactored lib/requestOptions
* added; development dependency "sinon" version 1.12.2
* added; development dependency "sinon-chai" version 2.7.0
* added; development dependency "coveralls": version 2.11.2
* added; development dependency "istanbul" version 0.3.7
* added; development dependency "jscs" version 1.11.3
* added; development dependency "gulp-jscs" version 1.4.0
* updated; dependency "moment-timezone" to 0.3.0
* updated; dependency "request" to 2.53.0
* updated; dependency "underscore" to 1.8.2
* updated; development dependency
* updated; development dependency "chai" to 2.1.0
* updated; development dependency "gulp" to 3.8.11
* updated; development dependency "gulp-coverage" to 0.3.34
* updated; development dependency "gulp-jshint" to 1.9.2
* updated; development dependency "gulp-mocha" to 2.0.0
* updated; development dependency "jshint" to 2.6.3
* updated; development dependency "mocha" to 2.1.0
* added; development dependency `sinon@1.12.2`
* added; development dependency `sinon-chai@2.7.0`
* added; development dependency `coveralls@2.11.2`
* added; development dependency `istanbul@0.3.7`
* added; development dependency `jscs@1.11.3`
* added; development dependency `gulp-jscs@1.4.0`
* updated; dependency to `moment-timezone@0.3.0`
* updated; dependency to `request@2.53.0`
* updated; dependency to `underscore@1.8.2`
* updated; development dependency to `chai@2.1.0`
* updated; development dependency to `gulp@3.8.11`
* updated; development dependency to `gulp-coverage@0.3.34`
* updated; development dependency to `gulp-jshint@1.9.2`
* updated; development dependency to `gulp-mocha@2.0.0`
* updated; development dependency to `jshint@2.6.3`
* updated; development dependency to `mocha@2.1.0`

## v0.1.1 / 2014-08-02

Expand All @@ -44,3 +66,5 @@
* added; unit tests for SemaphoreJS core functionality
* added; examples for each of api function
* added; initial api documenation

[logo-url]: media/logo.png
Loading

0 comments on commit a3e5cb2

Please sign in to comment.