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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 78f301f46119304ba56b1e352c5b61fadf757cc5
4
- data.tar.gz: ce6f58d60ec90ca97c9d564d68a5e4b579dcd7ea
3
+ metadata.gz: 8b0be0efe563e0c632bc4faa640b03dfe9055229
4
+ data.tar.gz: 133680e195cbb5aebab0983a116f9a6fb8faf158
5
5
  SHA512:
6
- metadata.gz: a79ab34899f40b3e6c1afff5590f512dc34073d18067e211af0726fde995b5ebe7e5600932c8005a6bf05972130d48e6ed2552e3b20424692aaac95f97b1dd11
7
- data.tar.gz: f1156251041dc57adcc61283cc2524f92045612aa4ccce2a62d31ae39bd6d0ba508b8eb06d8019e7f1a63c749ebb5e9d67302ccae35e3c220d37c8d17fea30df
6
+ metadata.gz: d9a228a1af855ccf1e8ae6acca1f3f4497da277deef45d648b720286fb6a25a2d53e015f11fb98edd5a0e4f217a91567327f2bf132ddf913ab549f8950a4f585
7
+ data.tar.gz: adb8612fd872592d06e463ae681a322ee293650ffe92b9f4fac778f97b3f8570eb45452d06b0233ddc96f8ad430337d1465a57ea866dfea29002fb794d7afeb7
@@ -88,7 +88,7 @@ GEM
88
88
  simplecov-html (~> 0.8.0)
89
89
  simplecov-html (0.8.0)
90
90
  thread_safe (0.3.4)
91
- tzinfo (1.2.1)
91
+ tzinfo (1.2.2)
92
92
  thread_safe (~> 0.1)
93
93
 
94
94
  PLATFORMS
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -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
@@ -1,3 +1,3 @@
1
1
  module MBTARealtime
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
@@ -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.1 ruby lib
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.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-09"
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.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-09 00:00:00.000000000 Z
11
+ date: 2014-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client