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
require 'rubygems' | |
require 'yaml' | |
# A demonstration of YAML anchors, references and handling of nested values | |
# For more info, see: | |
# http://atechie.net/2009/07/merging-hashes-in-yaml-conf-files/ | |
stooges = YAML::load( File.read('stooges.yml') ) | |
# => { | |
# "default" => { |
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
#!/bin/bash | |
MOCHA=node_modules/.bin/mocha | |
ISTANBUL=node_modules/.bin/istanbul | |
COVERALLS=node_modules/coveralls/bin/coveralls.js | |
# test files must start with "test*.js" | |
TESTS=$(shell find test/ -name "test*.js" -not -path "*service/*") | |
SERVICETEST=$(shell find test/service/ -name "test*.js" ) | |
test: | |
$(MOCHA) -R spec $(TESTS) | |
test-service: |
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
Show hidden characters
{ | |
"env": { | |
"node": true | |
}, | |
"globals":{ | |
"anyglobal":true | |
}, | |
"extends": "eslint:recommended", | |
"rules": { | |
"accessor-pairs": "error", |