Skip to content

Commit

Permalink
Fixed creation of resoruce class.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmdobry committed Jul 24, 2014
1 parent 7f4bba7 commit a9fec88
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 13 deletions.
11 changes: 7 additions & 4 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"author": "Jason Dobry",
"name": "angular-data-mocks",
"description": "A mock of angular-data for testing purposes.",
"version": "0.5.3",
"version": "0.5.4",
"homepage": "https://github.com/jmdobry/angular-data-mocks/",
"repository": {
"type": "git",
Expand All @@ -23,8 +23,11 @@
"karma.start.js"
],
"devDependencies": {
"angular": "~1.2.20",
"angular-mocks": "~1.2.20",
"angular-data": "~0.10.2"
"angular": "1.2.20",
"angular-mocks": "1.2.20",
"angular-data": "0.10.3"
},
"resolutions": {
"angular": "1.2.20"
}
}
8 changes: 4 additions & 4 deletions dist/angular-data-mocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* @author Jason Dobry <[email protected]>
* @file angular-data-mocks.js
* @version 0.5.3 - Homepage <https://github.com/jmdobry/angular-data-mocks>
* @version 0.5.4 - Homepage <https://github.com/jmdobry/angular-data-mocks>
* @copyright (c) 2014 Jason Dobry <https://github.com/jmdobry/>
* @license MIT <https://github.com/jmdobry/angular-data-mocks/blob/master/LICENSE>
*
Expand Down Expand Up @@ -1211,7 +1211,7 @@ function DSProvider() {
var def = DS.definitions[definition.name];

// Create the wrapper class for the new resource
def.class = definition.name[0].toUpperCase() + definition.name.substring(1);
def.class = DSUtils.pascalCase(definition.name);
eval('function ' + def.class + '() {}');
def[def.class] = eval(def.class);

Expand Down Expand Up @@ -1275,7 +1275,7 @@ module.exports = DSProvider;
* @description
* Fake angular-data implementation suitable for unit testing angular applications that use the `angular-data.DS` module.
*
* __Version:__ 0.5.3
* __Version:__ 0.5.4
*
* __angular-data-mocks requires SinonJS to be loaded in order to work.__
*
Expand Down Expand Up @@ -1460,7 +1460,7 @@ module.exports = DSProvider;
'angular-data.DSHttpAdapterMock',
'angular-data.DSLocalStorageAdapterMock'
])
.value('version', '0.5.3');
.value('version', '0.5.4');

})(window, window.angular);

Expand Down
Loading

0 comments on commit a9fec88

Please sign in to comment.