Skip to content

Commit e8b3962

Browse files
committed
Merge pull request #31 from jmdobry/0.7.0
0.7.0
2 parents b48c9b9 + 7224f18 commit e8b3962

File tree

57 files changed

+3148
-1109
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+3148
-1109
lines changed

.npmignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.*
2+
bower.json
3+
*.iml
4+
.idea/
5+
test/
6+
coverage/
7+
bower_components/
8+
karma*
9+
guide/
10+
doc/

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
##### 0.7.0 - 24 February 2014
2+
3+
###### Breaking API changes
4+
- `DS.eject(resourceName, id)` can now only eject individual items
5+
6+
###### Backwards API changes
7+
- #34 - Added `DS.ejectAll(resourceName, params)`
8+
- #33 - Added `DS.destroyAll(resourceName, params[, options])`
9+
- #35 - Add options for asynchronous getter methods to return data without putting it into the data store
10+
111
##### 0.6.0 - 17 January 2014
212

313
Added pluggable filters for the "where" clause of a query. Angular-data's "query language" will remain small and simple.

Gruntfile.js

Lines changed: 90 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,12 @@ module.exports = function (grunt) {
1111
require('load-grunt-tasks')(grunt);
1212
require('time-grunt')(grunt);
1313

14+
var dev = process.cwd().indexOf('/home/codetrain/angular-data') === -1,
15+
pkg = grunt.file.readJSON('package.json');
16+
1417
// Project configuration.
1518
grunt.initConfig({
16-
pkg: grunt.file.readJSON('package.json'),
19+
pkg: pkg,
1720
clean: {
1821
coverage: ['coverage/'],
1922
dist: ['dist/'],
@@ -70,13 +73,13 @@ module.exports = function (grunt) {
7073
files: {
7174
'dist/angular-data.js': ['src/index.js']
7275
},
73-
// TODO: There's got to be a better way to consume observe-js without it polluting the global space
7476
options: {
7577
alias: [
76-
'lib/observe-js.js:observejs',
78+
'lib/observe-js/observe-js.js:observejs',
7779
'src/errors/index.js:errors',
7880
'src/utils/index.js:utils'
7981
],
82+
// TODO: There's got to be a better way to consume observe-js without it polluting the global space
8083
postBundleCB: function (err, src, next) {
8184
if (err) {
8285
next(err);
@@ -170,6 +173,13 @@ module.exports = function (grunt) {
170173
dest: 'doc/resources/img/',
171174
flatten: true
172175
},
176+
chart: {
177+
expand: true,
178+
cwd: 'guide/',
179+
src: 'chart.png',
180+
dest: 'doc/resources/img/',
181+
flatten: true
182+
},
173183
cream_dust: {
174184
expand: true,
175185
cwd: 'guide/',
@@ -186,9 +196,15 @@ module.exports = function (grunt) {
186196
groupIcon: 'icon-book',
187197
sections: [
188198
{
189-
id: 'overview',
190-
title: 'Overview',
191-
docs: ['guide/overview/'],
199+
id: 'angular-data',
200+
title: 'angular-data',
201+
docs: [
202+
'guide/angular-data/index.doc',
203+
'guide/angular-data/overview.doc',
204+
'guide/angular-data/resources.doc',
205+
'guide/angular-data/synchronous.doc',
206+
'guide/angular-data/asynchronous.doc'
207+
],
192208
rank: {
193209
index: 1,
194210
overview: 2,
@@ -198,14 +214,45 @@ module.exports = function (grunt) {
198214
}
199215
},
200216
{
201-
id: 'resource',
217+
id: 'angular-cache',
218+
title: 'angular-cache',
219+
docs: ['guide/angular-cache/'],
220+
rank: {
221+
index: 1,
222+
basics: 2,
223+
configure: 3,
224+
http: 4,
225+
storage: 5
226+
}
227+
},
228+
{
229+
id: 'angular-data-resource',
202230
title: 'Defining Resources',
203-
docs: ['guide/resource/'],
231+
docs: ['guide/angular-data/resource/'],
204232
rank: {
205233
index: 1,
206234
overview: 2,
207235
basic: 3,
208-
advanced: 4
236+
advanced: 4,
237+
lifecycle: 5
238+
}
239+
},
240+
{
241+
id: 'angular-data-queries',
242+
title: 'Queries',
243+
docs: ['guide/angular-data/queries/'],
244+
rank: {
245+
index: 1,
246+
overview: 2
247+
}
248+
},
249+
{
250+
id: 'angular-data-adapters',
251+
title: 'Adapters',
252+
docs: ['guide/angular-data/adapters/'],
253+
rank: {
254+
index: 1,
255+
overview: 2
209256
}
210257
}
211258
]
@@ -217,12 +264,20 @@ module.exports = function (grunt) {
217264
showSource: true,
218265
sections: [
219266
{
220-
id: 'api',
267+
id: 'angular-data',
221268
title: 'angular-data',
222269
scripts: [
223270
'src/'
224271
],
225272
docs: ['guide/api']
273+
},
274+
{
275+
id: 'angular-cache',
276+
title: 'angular-cache',
277+
scripts: [
278+
'bower_components/angular-cache/dist/angular-cache.js'
279+
],
280+
docs: ['guide/api']
226281
}
227282
]
228283
}
@@ -232,13 +287,36 @@ module.exports = function (grunt) {
232287
showAngularDocs: false,
233288
docular_partial_home: 'guide/home.html',
234289
docular_partial_navigation: 'guide/nav.html',
235-
docular_partial_footer: 'guide/footer.html'
290+
docular_partial_footer: 'guide/footer.html'//,
291+
// analytics: {
292+
// account: 'UA-46792694-5',
293+
// domainName: 'angular-cache.codetrain.io'
294+
// },
295+
// discussions: {
296+
// shortName: 'angular-data',
297+
// url: 'http://angular-cache.codetrain.io',
298+
// dev: dev
299+
// }
236300
}
237301
});
238302

303+
grunt.registerTask('version', function (filePath) {
304+
var file = grunt.file.read(filePath);
305+
306+
file = file.replace(/<%= pkg\.version %>/gi, pkg.version);
307+
308+
grunt.file.write(filePath, file);
309+
});
310+
239311
grunt.registerTask('test', ['clean:coverage', 'karma:dev']);
240312
grunt.registerTask('doc', ['clean:doc', 'docular', 'concat', 'copy', 'clean:afterDoc', 'uglify:scripts']);
241-
grunt.registerTask('build', ['clean:dist', 'jshint', 'browserify', 'uglify:main']);
313+
grunt.registerTask('build', [
314+
'clean',
315+
'jshint',
316+
'browserify',
317+
'version:dist/angular-data.js',
318+
'uglify:main'
319+
]);
242320
grunt.registerTask('default', ['build']);
243321

244322
// Used by TravisCI

bower.json

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"author": "Jason Dobry",
33
"name": "angular-data",
44
"description": "Data store for Angular.js.",
5-
"version": "0.6.0",
5+
"version": "0.7.0",
66
"homepage": "http://jmdobry.github.io/angular-data/",
77
"repository": {
88
"type": "git",
@@ -11,22 +11,24 @@
1111
"main": "./dist/angular-data.min.js",
1212
"ignore": [
1313
".idea/",
14-
".bowerrc",
14+
".*",
1515
"*.iml",
1616
"src/",
17+
"lib/",
1718
"doc/",
1819
"guide/",
1920
"coverage/",
20-
".jshintrc",
2121
"Gruntfile.js",
2222
"node_modules/",
2323
"test/",
24+
"package.json",
2425
"karma.conf.js",
25-
".gitignore",
26-
".travis.yml"
26+
"karma.start.js"
2727
],
2828
"devDependencies": {
29-
"angular": "~1.2.8",
30-
"angular-mocks": "~1.2.8"
29+
"angular": "~1.2.13",
30+
"angular-mocks": "~1.2.13",
31+
"angular-cache": "~3.0.0-beta.1",
32+
"observe-js": "~0.2.0"
3133
}
3234
}

0 commit comments

Comments
 (0)