uber-ruby 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -6
- data/lib/uber/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a8866e2f3a8c74e73cfda4a46343907b425d4b82
|
4
|
+
data.tar.gz: 3d85f87c54001e2ea560f38eff5d3b4b798091ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91e44a3617b586a97339842a742512ea22e2e1ecb399eb0d8774e90a9044158f64f18caee6898dd2be8a769f208aee16a9ee442da708b9df3db7666617278879
|
7
|
+
data.tar.gz: cbd1f1c0d8f6831e86ec7c69f3e44891358cf05d8c84f7d760d0913b9827aea2003b44a3b62af41c9339a99f3a039846aecff74d4e92e44ee81ec90d479670c6
|
data/README.md
CHANGED
@@ -86,7 +86,7 @@ client.history
|
|
86
86
|
client = Uber::Client.new do |config|
|
87
87
|
config.client_id = "YOUR_CLIENT_ID"
|
88
88
|
config.client_secret = "YOUR_CLIENT_SECRET"
|
89
|
-
config.
|
89
|
+
config.bearer_token = "USER_ACCESS_TOKEN"
|
90
90
|
end
|
91
91
|
|
92
92
|
client.trip_request(product_id: product_id, start_latitude: start_lat, start_longitude: start_lng, end_latitude: end_lat, end_longitude: end_lng)
|
@@ -98,7 +98,7 @@ client.trip_request(product_id: product_id, start_latitude: start_lat, start_lon
|
|
98
98
|
client = Uber::Client.new do |config|
|
99
99
|
config.client_id = "YOUR_CLIENT_ID"
|
100
100
|
config.client_secret = "YOUR_CLIENT_SECRET"
|
101
|
-
config.
|
101
|
+
config.bearer_token = "USER_ACCESS_TOKEN"
|
102
102
|
end
|
103
103
|
|
104
104
|
# Only available in sandbox environment
|
@@ -115,7 +115,7 @@ client.trip_request(product_id: product_id, start_latitude: start_lat, start_lon
|
|
115
115
|
client = Uber::Client.new do |config|
|
116
116
|
config.client_id = "YOUR_CLIENT_ID"
|
117
117
|
config.client_secret = "YOUR_CLIENT_SECRET"
|
118
|
-
config.
|
118
|
+
config.bearer_token = "USER_ACCESS_TOKEN"
|
119
119
|
end
|
120
120
|
|
121
121
|
# Only available in sandbox environment
|
@@ -132,7 +132,7 @@ client.trip_request(product_id: product_id, start_latitude: start_lat, start_lon
|
|
132
132
|
client = Uber::Client.new do |config|
|
133
133
|
config.client_id = "YOUR_CLIENT_ID"
|
134
134
|
config.client_secret = "YOUR_CLIENT_SECRET"
|
135
|
-
config.
|
135
|
+
config.bearer_token = "USER_ACCESS_TOKEN"
|
136
136
|
end
|
137
137
|
|
138
138
|
# Only available in sandbox environment
|
@@ -148,7 +148,7 @@ client.trip_update('request_id', 'accepted')
|
|
148
148
|
client = Uber::Client.new do |config|
|
149
149
|
config.client_id = "YOUR_CLIENT_ID"
|
150
150
|
config.client_secret = "YOUR_CLIENT_SECRET"
|
151
|
-
config.
|
151
|
+
config.bearer_token = "USER_ACCESS_TOKEN"
|
152
152
|
end
|
153
153
|
|
154
154
|
client.trip_details 'request_id'
|
@@ -160,7 +160,7 @@ client.trip_details 'request_id'
|
|
160
160
|
client = Uber::Client.new do |config|
|
161
161
|
config.client_id = "YOUR_CLIENT_ID"
|
162
162
|
config.client_secret = "YOUR_CLIENT_SECRET"
|
163
|
-
config.
|
163
|
+
config.bearer_token = "USER_ACCESS_TOKEN"
|
164
164
|
end
|
165
165
|
|
166
166
|
client.trip_cancel 'request_id'
|
data/lib/uber/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uber-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dingding Ye
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-06-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|