Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6bd23fe

Browse filesBrowse files
committed
1.1.0
1 parent e03df80 commit 6bd23fe
Copy full SHA for 6bd23fe

File tree

Expand file treeCollapse file tree

3 files changed

+23
-4
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+23
-4
lines changed

‎HISTORY.md

Copy file name to clipboardExpand all lines: HISTORY.md
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11

2+
1.1.0 / 2014-04-06
3+
==================
4+
5+
- remote title-cased names of remotes
6+
- add bitbucket remote (@netpoetica)
7+
28
1.0.2 / 2014-04-02
39
==================
410

‎README.md

Copy file name to clipboardExpand all lines: README.md
+16-3Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,10 @@ Returns a group of remotes. `names` is a list of redefined remotes. Note that or
4646
The current remotes are:
4747

4848
- `remotes.github`
49+
- `remotes.bitbucket`
4950
- `remotes.local` - use downloaded components
5051

51-
The list of names can be found at `Remotes.remotes`. These are also aliased with their title-cased versions.
52+
The list of names can be found at `Remotes.remotes`.
5253

5354
Some options are:
5455

@@ -68,7 +69,9 @@ Returns the first remote with `<repo>@<ref>` from the list of remotes. You may o
6869

6970
Some remotes, such as GitHub, require authentication. We suggest you use [netrc](https://github.com/CamShaft/netrc).
7071

71-
For Github, you need to supply you username and password for the `api.github.com` host. You may also set the `GITHUB_USERNAME` and `GITHUB_PASSWORD` environmental variables.
72+
For Github, you need to supply you username and password for the `api.github.com` host.
73+
You may also set the `GITHUB_USERNAME` and `GITHUB_PASSWORD` environmental variables.
74+
Similarly, for BitBucket, you set `BITBUCKET_USERNAME` and `BITBUCKET_PASSWORD`.
7275

7376
## Using a Remote
7477

@@ -111,6 +114,14 @@ Return an object containing absolute URLs of where to download this repo's archi
111114
}
112115
```
113116

117+
## Remote Notes
118+
119+
- Only `master` is supported as the default branch.
120+
121+
### BitBucket
122+
123+
- Git trees are not supported, so please don't use globs in your `component.json`s!
124+
114125
## Creating your own Remote
115126

116127
You may create your own remote. See the [remotes](https://github.com/component/remotes.js/tree/master/lib/remotes/github.js) for implementation examples.
@@ -147,6 +158,8 @@ The following properties must be implemented. Note that if you want a remote to
147158
- `.file()`
148159
- `.archive()`
149160

161+
If a function is not supported, simply do not define it.
162+
For example, BitBucket does not support git trees, so `._tree()` is not defined.
150163

151164
## License
152165

@@ -170,4 +183,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
170183
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
171184
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
172185
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
173-
THE SOFTWARE.
186+
THE SOFTWARE.

‎package.json

Copy file name to clipboardExpand all lines: package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "remotes",
33
"description": "Normalize remote end points",
4-
"version": "1.0.2",
4+
"version": "1.1.0",
55
"author": {
66
"name": "Jonathan Ong",
77
"email": "me@jongleberry.com",

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.