mbta-realtime 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/VERSION +1 -1
- data/lib/mbta-realtime/client.rb +6 -1
- data/lib/mbta-realtime/version.rb +1 -1
- data/mbta-realtime.gemspec +3 -3
- 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: 8b0be0efe563e0c632bc4faa640b03dfe9055229
|
4
|
+
data.tar.gz: 133680e195cbb5aebab0983a116f9a6fb8faf158
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9a228a1af855ccf1e8ae6acca1f3f4497da277deef45d648b720286fb6a25a2d53e015f11fb98edd5a0e4f217a91567327f2bf132ddf913ab549f8950a4f585
|
7
|
+
data.tar.gz: adb8612fd872592d06e463ae681a322ee293650ffe92b9f4fac778f97b3f8570eb45452d06b0233ddc96f8ad430337d1465a57ea866dfea29002fb794d7afeb7
|
data/Gemfile.lock
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.2
|
data/lib/mbta-realtime/client.rb
CHANGED
@@ -31,7 +31,12 @@ module MBTARealtime
|
|
31
31
|
|
32
32
|
|
33
33
|
# Stops
|
34
|
-
|
34
|
+
|
35
|
+
|
36
|
+
def stop_name(stop_id)
|
37
|
+
self.class.get("/schedulebystop", url_opts({stop: stop_id})).to_h["stop_name"]
|
38
|
+
end
|
39
|
+
|
35
40
|
|
36
41
|
def stops_by_route(route_id)
|
37
42
|
self.class.get("/stopsbyroute", url_opts({route: route_id})).to_h
|
data/mbta-realtime.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: mbta-realtime 0.1.
|
5
|
+
# stub: mbta-realtime 0.1.2 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "mbta-realtime"
|
9
|
-
s.version = "0.1.
|
9
|
+
s.version = "0.1.2"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
13
13
|
s.authors = ["Matt Cloyd"]
|
14
|
-
s.date = "2014-08-
|
14
|
+
s.date = "2014-08-10"
|
15
15
|
s.description = "The MBTA Realtime V2 API unifies \"schedule, alert, \n vehicle position, and arrival prediction data\". The MBTA Realtime gem\n provides a Ruby interface to the API, presenting results using\n sensible Ruby defaults."
|
16
16
|
s.email = "cloydster@gmail.com"
|
17
17
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mbta-realtime
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Cloyd
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-08-
|
11
|
+
date: 2014-08-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|