Skip to content

Commit cc865b7

Browse files
committed
repo.contents is updated to support current api, browser stubs removed from package.json
1 parent 1ad6f3b commit cc865b7

File tree

2 files changed

+10
-59
lines changed

2 files changed

+10
-59
lines changed

github.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,8 +361,8 @@
361361
// Get contents
362362
// --------
363363

364-
this.contents = function(branch, path, cb) {
365-
_request("GET", repoPath + "/contents?ref=" + branch, { path: path }, cb);
364+
this.contents = function(ref, path, cb) {
365+
_request("GET", repoPath + "/contents/"+path, { ref: ref }, cb);
366366
};
367367

368368
// Fork repository

package.json

Lines changed: 8 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -36,63 +36,14 @@
3636
"testling": {
3737
"files": "test/*_test.js",
3838
"browsers": [
39-
"iexplore/10.0",
40-
"iexplore/9.0",
41-
"chrome/6.0",
42-
"chrome/7.0",
43-
"chrome/8.0",
44-
"chrome/9.0",
45-
"chrome/10.0",
46-
"chrome/11.0",
47-
"chrome/12.0",
48-
"chrome/13.0",
49-
"chrome/14.0",
50-
"chrome/15.0",
51-
"chrome/16.0",
52-
"chrome/17.0",
53-
"chrome/18.0",
54-
"chrome/19.0",
55-
"chrome/20.0",
56-
"chrome/21.0",
57-
"chrome/22.0",
58-
"chrome/23.0",
59-
"chrome/24.0",
60-
"chrome/25.0",
61-
"firefox/3.0",
62-
"firefox/3.5",
63-
"firefox/3.6",
64-
"firefox/4.0",
65-
"firefox/5.0",
66-
"firefox/6.0",
67-
"firefox/7.0",
68-
"firefox/8.0",
69-
"firefox/9.0",
70-
"firefox/10.0",
71-
"firefox/11.0",
72-
"firefox/12.0",
73-
"firefox/13.0",
74-
"firefox/14.0",
75-
"firefox/15.0",
76-
"firefox/16.0",
77-
"firefox/17.0",
78-
"firefox/18.0",
79-
"firefox/19.0",
80-
"opera/10.0",
81-
"opera/10.5",
82-
"opera/11.0",
83-
"opera/11.5",
84-
"opera/11.6",
85-
"opera/12.0",
86-
"safari/4.0",
87-
"safari/5.0.5",
88-
"safari/5.1",
89-
"firefox/nightly",
90-
"opera/next",
91-
"chrome/canary",
92-
"iphone/6.0",
93-
"ipad/6.0",
94-
"safari/6.0",
95-
"android-browser/4.2"
39+
"iexplore/9.0..latest",
40+
"chrome/18.0..latest",
41+
"firefox/15.0..latest",
42+
"opera/11.0..latest",
43+
"safari/5.0.5..latest",
44+
"iphone/6.0..latest",
45+
"ipad/6.0..latest",
46+
"android-browser/4.2..latest"
9647
],
9748
"harness": "mocha"
9849
}

0 commit comments

Comments
 (0)