Skip to content

Commit

Permalink
upgrade fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
fahad19 committed Dec 8, 2015
1 parent 9dea3f5 commit 6de21ca
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 12 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -64,7 +64,7 @@ var SlugBehavior = require('firenze-behavior-slug');

// create your Database instance...

db.createCollectionClass({
db.createCollection({
behaviors: [
SlugBehavior
]
Expand All @@ -74,7 +74,7 @@ db.createCollectionClass({
If you want to pass extra configuration options:

```js
db.createCollectionClass({
db.createCollection({
behaviors: [
{
'class': SlugBehavior
Expand Down
4 changes: 2 additions & 2 deletions bower.json
@@ -1,7 +1,7 @@
{
"name": "firenze-behavior-slug",
"main": "dist/firenze-behavior-slug.min.js",
"version": "0.2.0",
"version": "0.3.1",
"homepage": "https://github.com/fahad19/firenze-behavior-slug",
"authors": [
"Fahad Ibnay Heylaal"
Expand All @@ -23,7 +23,7 @@
"tests"
],
"dependencies": {
"firenze": "^0.2.0",
"firenze": "^0.3.0",
"lodash": "^3.7.0"
}
}
4 changes: 2 additions & 2 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "firenze-behavior-slug",
"version": "0.3.0",
"version": "0.3.1",
"description": "Slug behavior for firenze.js ORM",
"main": "index.js",
"scripts": {
Expand Down Expand Up @@ -53,7 +53,7 @@
"docume": "^0.1.4",
"eslint": "^0.20.0",
"firenze": "~0.3.0",
"firenze-adapter-memory": "^0.2.0",
"firenze-adapter-mysql": "^0.3.0",
"istanbul": "^0.3.15",
"karma": "^0.12.36",
"karma-mocha": "^0.1.10",
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Expand Up @@ -42,7 +42,7 @@ let P = f.Promise;
//
// // create your Database instance...
//
// db.createCollectionClass({
// db.createCollection({
// behaviors: [
// SlugBehavior
// ]
Expand All @@ -52,7 +52,7 @@ let P = f.Promise;
// If you want to pass extra configuration options:
//
// ```js
// db.createCollectionClass({
// db.createCollection({
// behaviors: [
// {
// 'class': SlugBehavior
Expand Down
2 changes: 1 addition & 1 deletion src/test/collections/Posts.js
@@ -1,7 +1,7 @@
var SlugBehavior = require('../../');

module.exports = function (db) {
return db.createCollectionClass({
return db.createCollection({
table: 'posts',

alias: 'Post',
Expand Down
15 changes: 13 additions & 2 deletions src/test/config.js
@@ -1,5 +1,16 @@
var Memory = require('firenze-adapter-memory');
var MysqlAdapter = require('firenze-adapter-mysql');

module.exports = {
adapter: Memory
adapter: MysqlAdapter,

host: process.env.FIRENZE_DB_HOST || '127.0.0.1',
user: process.env.FIRENZE_DB_USER || 'root',
port: process.env.FIRENZE_DB_PORT || 3306,
password: process.env.FIRENZE_DB_PASS || '',
database: process.env.FIRENZE_DB || 'firenze',

pool: {
min: 0,
max: 5
}
};
2 changes: 1 addition & 1 deletion src/test/models/Post.js
Expand Up @@ -2,4 +2,4 @@
/* eslint-disable new-cap */
var f = require('firenze');

module.exports = f.createModelClass({});
module.exports = f.createModel({});

0 comments on commit 6de21ca

Please sign in to comment.