Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Commit c279c1e

Browse files
authored
Merge pull request #68 from jaebradley/greenkeeper/initial
Update dependencies to enable Greenkeeper 🌴
2 parents 9ee566c + 2f8549a commit c279c1e

File tree

5 files changed

+935
-514
lines changed

5 files changed

+935
-514
lines changed

README.md

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
# Uber CLI
2-
[![Coverage Status](https://coveralls.io/repos/github/jaebradley/uber-cli/badge.svg?branch=master)](https://coveralls.io/github/jaebradley/uber-cli?branch=master)
3-
[![Build Status](https://travis-ci.org/jaebradley/uber-cli.svg?branch=master)](https://travis-ci.org/jaebradley/uber-cli)
4-
[![npm version](https://badge.fury.io/js/uber-cli.svg)](https://badge.fury.io/js/uber-cli)
52

6-
[![NPM](https://nodei.co/npm/uber-cli.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/uber-cli/)
3+
[![Greenkeeper badge](https://badges.greenkeeper.io/jaebradley/uber-cli.svg)](https://greenkeeper.io/)
4+
[![Build Status](https://travis-ci.org/jaebradley/uber-cli.svg?branch=master)](https://travis-ci.org/jaebradley/uber-cli)
5+
[![codecov](https://codecov.io/gh/jaebradley/uber-cli/branch/master/graph/badge.svg)](https://codecov.io/gh/jaebradley/uber-cli)
6+
[![npm](https://img.shields.io/npm/v/uber-cli.svg)](https://www.npmjs.com/package/uber-cli)
7+
[![npm](https://img.shields.io/npm/dt/uber-cli.svg)](https://www.npmjs.com/package/uber-cli)
78

89
## Introduction
10+
911
Clearly, I'm a lazy person (just look at what this tool does - it helps me
1012
figure out if I should order *a car to pick me up and drive me to where I want to go*).
1113

@@ -18,24 +20,30 @@ I think we can all agree that it would be much more efficient to simply be disap
1820
before I open my phone at all.
1921

2022
## Install via NPM
21-
```
23+
24+
```bash
2225
npm install uber-cli -g
2326
```
2427

2528
## Usage
2629

2730
### Get Time-To-Pickup Estimates
28-
```
31+
32+
```bash
2933
uber time 'pickup address here'
3034
```
35+
3136
![alt_text](http://imgur.com/9k16YDl.png)
3237

3338
### Get Price Estimates
34-
```
39+
40+
```bash
3541
uber price -s 'start address' -e 'end address'
3642
```
43+
3744
![alt_text](http://imgur.com/2QLJCSw.png)
3845

3946
## A Note On Address Identification
47+
4048
So the [Uber API identifies time](https://developer.uber.com/docs/riders/references/api/v1.2/estimates-time-get) and price estimates based on a coordinate and not an address. In order to support those
4149
that don't know their exact coordinates at any given time, I'm using the [Google Maps Geocoding API](https://developers.google.com/maps/documentation/geocoding/intro) to identify coordinates based on an input address.

__mocks__/uber-estimates-client.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const getExpectedTimeOfArrival = jest.fn(() => ({
1+
const getArrivalTimes = jest.fn(() => ({
22
times: [
33
{
44
localized_display_name: 'first localized display name',
@@ -35,14 +35,14 @@ const getPrices = jest.fn(() => ({
3535
}));
3636

3737
const constructor = jest.fn(() => ({
38-
getExpectedTimeOfArrival,
38+
getArrivalTimes,
3939
getPrices,
4040
}));
4141

4242
const UberEstimatesClient = constructor;
4343

4444
export default UberEstimatesClient;
4545
export {
46-
getExpectedTimeOfArrival,
46+
getArrivalTimes,
4747
getPrices,
4848
};

0 commit comments

Comments
 (0)