Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
nicosommi committed Jul 1, 2015
2 parents e2a3ab2 + 381d9be commit f794071
Show file tree
Hide file tree
Showing 10 changed files with 8 additions and 49 deletions.
2 changes: 1 addition & 1 deletion es5/lib/response.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ var Response = (function () {
value: function value() {
var _this = this;

var statuses = require("./http.statuses.json");
var statuses = require("../../http.statuses.json");
if (Array.isArray(statuses)) {
statuses.forEach(function (status) {
_this[status.name] = function (data) {
Expand Down
2 changes: 1 addition & 1 deletion es5/spec/response.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ describe("Response(expressResponse)", function () {
describe("(dynamic functions)", function () {
//camel cased names from the w3c specification names
//http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
var statuses = require("../lib/http.statuses.json");
var statuses = require("../../http.statuses.json");

statuses.forEach(function (status) {
it("should load the " + status.name + " status as a member into the response", function () {
Expand Down
2 changes: 1 addition & 1 deletion es5/spec/router.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ describe("Router(...options)", function () {
it("should push every semanthic method through the formater middleware", function () {
//camel cased names from the w3c specification names
//http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
var statuses = require("../lib/http.statuses.json");
var statuses = require("../../http.statuses.json");
describe("(jsonapi-formatter middleware)", function () {
statuses.forEach(function (status) {
describe("response." + status.name + "()", function () {
Expand Down
42 changes: 0 additions & 42 deletions es6/lib/http.statuses.json

This file was deleted.

2 changes: 1 addition & 1 deletion es6/lib/response.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default class Response {
}

[loadDynamicMethods]() {
const statuses = require("./http.statuses.json");
const statuses = require("../../http.statuses.json");
if(Array.isArray(statuses)) {
statuses.forEach((status) => {
this[status.name] = (data) => {
Expand Down
2 changes: 1 addition & 1 deletion es6/spec/response.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ describe("Response(expressResponse)", () => {
describe("(dynamic functions)", () => {
//camel cased names from the w3c specification names
//http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
let statuses = require("../lib/http.statuses.json");
let statuses = require("../../http.statuses.json");

statuses.forEach((status) => {
it(`should load the ${status.name} status as a member into the response`, () => {
Expand Down
2 changes: 1 addition & 1 deletion es6/spec/router.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ describe("Router(...options)", () => {
it("should push every semanthic method through the formater middleware", () => {
//camel cased names from the w3c specification names
//http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
let statuses = require("../lib/http.statuses.json");
let statuses = require("../../http.statuses.json");
describe("(jsonapi-formatter middleware)", () => {
statuses.forEach((status) => {
describe(`response.${status.name}()`, () => {
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
module.exports = require("./es5/lib/router.js");
module.exports.httpStatuses = require("./http.statuses.json");
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "omnirouter",
"version": "0.1.0",
"version": "0.1.1",
"description": "ES6 Component for message routing.",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit f794071

Please sign in to comment.