Skip to content
This repository has been archived by the owner on Jun 23, 2019. It is now read-only.

Commit

Permalink
Merge pull request #10 from refractproject/pksunkara/minim-14
Browse files Browse the repository at this point in the history
Upgrade to Minim 0.14.0 and Release 0.1.4
  • Loading branch information
smizell committed Apr 28, 2016
2 parents 8fe4e84 + dd915ca commit 50feee8
Show file tree
Hide file tree
Showing 10 changed files with 354 additions and 115 deletions.
4 changes: 1 addition & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
language: node_js
sudo: false
node_js:
- '6'
- '4'
- '3'
- '2'
- '1'
- '0.12'
- '0.10'
script:
Expand Down
4 changes: 4 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 0.1.4 - 2016-04-28

- Upgrade minim peerDependency version to 0.14.0

# 0.1.3 - 2016-01-14

- Move minim to devDependency and update it to 0.13.0
Expand Down
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ import apiDescription from 'minim-api-description';
const namespace = minim.namespace()
.use(apiDescription);

// Convert from Compact Refract
let compactRefract = ['category', {'class': ['api'], title: 'My API'}, {}, []];
let api = namespace.fromCompactRefract(compactRefract);

// Initialize elements directly
const Category = namespace.getElementClass('category');
let category = new Category();
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "minim-api-description",
"version": "0.1.3",
"version": "0.1.4",
"description": "Minim API Description Namespace",
"main": "./lib/api-description.js",
"repository": {
Expand All @@ -22,7 +22,7 @@
"devDependencies": {
"chai": "^3.2.0",
"coveralls": "^2.11.2",
"minim": "^0.13.0",
"minim": "^0.14.0",
"peasant": "^0.5.2"
},
"author": "Apiary.io <[email protected]>",
Expand Down
1 change: 0 additions & 1 deletion src/elements/category.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ export default function(namespace) {
constructor() {
super(...arguments);
this.element = 'category';
this._attributeElementKeys = ['meta'];
}

get resourceGroups() {
Expand Down
12 changes: 0 additions & 12 deletions src/elements/data-structure.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,11 @@ export default function(namespace) {
return refract;
}

toCompactRefract() {
const compactRefract = super.toCompactRefract();
compactRefract[3] = compactRefract[3].toCompactRefract();
return compactRefract;
}

fromRefract(doc) {
super.fromRefract(doc);
this.content = namespace.fromRefract(doc.content);
return this;
}

fromCompactRefract(tuple) {
super.fromCompactRefract(tuple);
this.content = namespace.fromCompactRefract(tuple[3]);
return this;
}
}

namespace.register('dataStructure', DataStructure);
Expand Down
1 change: 0 additions & 1 deletion src/elements/http-message-payload.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ export default function(namespace) {
class HttpMessagePayload extends ArrayElement {
constructor() {
super(...arguments);
this._attributeElementKeys = ['headers'];
}

get headers() {
Expand Down
1 change: 0 additions & 1 deletion src/elements/resource.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ export default function(namespace) {
super(...arguments);

this.element = 'resource';
this._attributeElementKeys = ['hrefVariables'];
}

get href() {
Expand Down
1 change: 0 additions & 1 deletion src/elements/transition.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ export default function(namespace) {
super(...arguments);

this.element = 'transition';
this._attributeElementKeys = ['hrefVariables', 'data'];
}

get method() {
Expand Down
Loading

0 comments on commit 50feee8

Please sign in to comment.