muni 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/muni/route.rb +2 -2
- data/lib/muni/version.rb +1 -1
- data/spec/route_spec.rb +6 -0
- 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: 766e3a468deede78bcf80d91552601d948d54a54
|
4
|
+
data.tar.gz: 69c807611904e3734a24ed0bd869c3db2b3326e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3be807c1a14fc1a7877e17e91fcb0798eff554927516250ba671c299dd71c81e7c8bac51cd6d7f490e9d5e4cf00793d3e336a190ed5aa5d74f7e10061e409942
|
7
|
+
data.tar.gz: 1ae2cbde1978a45277cb6fc01a0b787fcc9f1cde305502ef4dbc4890b3402c3a6e570eda77c4183bc457cc3d9563fe8b0bec024551cd33ecdf7bfd0878206ed2
|
data/lib/muni/route.rb
CHANGED
@@ -47,7 +47,7 @@ module Muni
|
|
47
47
|
:tag => stop['tag'],
|
48
48
|
:title => stop['title'],
|
49
49
|
:lat => stop['lat'],
|
50
|
-
:lon => stop['
|
50
|
+
:lon => stop['lon'],
|
51
51
|
:stopId => stop['lat'],
|
52
52
|
})
|
53
53
|
stops[st.tag] = st
|
@@ -75,4 +75,4 @@ module Muni
|
|
75
75
|
end
|
76
76
|
end
|
77
77
|
end
|
78
|
-
end
|
78
|
+
end
|
data/lib/muni/version.rb
CHANGED
data/spec/route_spec.rb
CHANGED
@@ -10,4 +10,10 @@ describe Muni::Route, vcr: true do
|
|
10
10
|
it "fetches routes by tag" do
|
11
11
|
Muni::Route.find(21).tag.should == "21"
|
12
12
|
end
|
13
|
+
|
14
|
+
it "should have the correct lon and lat" do
|
15
|
+
r21 = Muni::Route.find(21)
|
16
|
+
r21.inbound.stops.first.lon.should == "-122.46384"
|
17
|
+
r21.inbound.stops.first.lat.should == "37.7735299"
|
18
|
+
end
|
13
19
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: muni
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff Remer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-07-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xml-simple
|