Skip to content

Commit ff06c1c

Browse files
committed
Merge pull request #217 from jmdobry/feature-$http-fallback
Added a fallback to using $http if js-data-http isn't loaded.
2 parents 09962e9 + ccf043c commit ff06c1c

29 files changed

+3772
-100
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ before_script:
99
- export DISPLAY=:99.0
1010
- sh -e /etc/init.d/xvfb start
1111
script:
12-
- grunt build
12+
- grunt test
1313
- grunt coveralls || true

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
###### Other
77
- #199 - Re-implement bindOne & bindAll in js-data-angular (they're missing from js-data)
88
- #200 - Need to properly trigger digest where angular-data would have before
9+
- Added DSHttpAdapter fallback that uses $http if js-data-http isn't loaded
910

1011
##### 1.0.0 - 04 October 2014
1112

Gruntfile.js

+42-8
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ module.exports = function (grunt) {
3535
main: {
3636
options: {
3737
banner: '/**\n' +
38-
'* @author Jason Dobry <[email protected]>\n' +
39-
'* @file js-data-angular.min.js\n' +
40-
'* @version <%= pkg.version %> - Homepage <https://www.js-data.io/js-data-angular/>\n' +
41-
'* @copyright (c) 2014 Jason Dobry <https://github.com/jmdobry/>\n' +
42-
'* @license MIT <https://github.com/js-data/js-data-angular/blob/master/LICENSE>\n' +
43-
'*\n' +
44-
'* @overview Angular wrapper for js-data.\n' +
45-
'*/\n'
38+
'* @author Jason Dobry <[email protected]>\n' +
39+
'* @file js-data-angular.min.js\n' +
40+
'* @version <%= pkg.version %> - Homepage <https://www.js-data.io/js-data-angular/>\n' +
41+
'* @copyright (c) 2014 Jason Dobry <https://github.com/jmdobry/>\n' +
42+
'* @license MIT <https://github.com/js-data/js-data-angular/blob/master/LICENSE>\n' +
43+
'*\n' +
44+
'* @overview Angular wrapper for js-data.\n' +
45+
'*/\n'
4646
},
4747
files: {
4848
'dist/js-data-angular.min.js': ['dist/js-data-angular.js']
@@ -63,6 +63,39 @@ module.exports = function (grunt) {
6363
'dist/js-data-angular.js': ['src/index.js']
6464
}
6565
}
66+
},
67+
karma: {
68+
options: {
69+
configFile: './karma.conf.js'
70+
},
71+
dev: {
72+
browsers: ['Chrome'],
73+
autoWatch: true,
74+
singleRun: false,
75+
reporters: ['spec'],
76+
preprocessors: {}
77+
},
78+
min: {
79+
browsers: ['Firefox', 'PhantomJS'],
80+
options: {
81+
files: [
82+
'bower_components/angular-1.3.2/angular.js',
83+
'bower_components/angular-mocks-1.3.2/angular-mocks.js',
84+
'bower_components/js-data/dist/js-data.js',
85+
'dist/js-data-angular.min.js',
86+
'karma.start.js',
87+
'test/**/*.js'
88+
]
89+
}
90+
},
91+
ci: {
92+
browsers: ['Firefox', 'PhantomJS']
93+
}
94+
},
95+
coveralls: {
96+
options: {
97+
coverage_dir: 'coverage'
98+
}
6699
}
67100
});
68101

@@ -101,4 +134,5 @@ module.exports = function (grunt) {
101134
]);
102135
grunt.registerTask('go', ['build', 'watch:dist']);
103136
grunt.registerTask('default', ['build']);
137+
grunt.registerTask('test', ['build', 'karma:min']);
104138
};

bower.json

+17-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"author": "Jason Dobry",
33
"name": "js-data-angular",
4-
"description": "Angular wrapper for js-data.",
5-
"version": "2.0.0-alpha.1-0",
4+
"description": "Angular wrapper for js-data (originally angular-data).",
5+
"version": "2.0.0-alpha.2-0",
66
"homepage": "http://www.js-data.io/js-data-angular",
77
"repository": {
88
"type": "git",
9-
"url": "git://github.com/js-data/js-data-angular.git"
9+
"url": "https://github.com/js-data/js-data-angular.git"
1010
},
1111
"main": "./dist/js-data-angular.min.js",
1212
"ignore": [
@@ -18,7 +18,20 @@
1818
"node_modules/",
1919
"package.json"
2020
],
21+
"devDependencies": {
22+
"angular-1.1.5": "angular-unstable#1.1.5",
23+
"angular-1.2.16": "angular#1.2.16",
24+
"angular-1.2.25": "angular#1.2.25",
25+
"angular-1.3.2": "angular#1.3.2",
26+
"angular-mocks-1.1.5": "angular-mocks-unstable#1.1.5",
27+
"angular-mocks-1.2.16": "angular-mocks#1.2.16",
28+
"angular-mocks-1.2.25": "angular-mocks#1.2.25",
29+
"angular-mocks-1.3.2": "angular-mocks#1.3.2"
30+
},
2131
"dependencies": {
22-
"js-data": "~0.4.x"
32+
"js-data": "~1.0.x"
33+
},
34+
"resolutions": {
35+
"angular": "1.3.2"
2336
}
2437
}

0 commit comments

Comments
 (0)