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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4c30145ac9b7f2e234422e0fbc84108064c1f724
4
- data.tar.gz: 38d1e66c30ec0688454bbefa8b05778181c36895
3
+ metadata.gz: 766e3a468deede78bcf80d91552601d948d54a54
4
+ data.tar.gz: 69c807611904e3734a24ed0bd869c3db2b3326e2
5
5
  SHA512:
6
- metadata.gz: 94e43d99f243c6d80c4b242ed88a2aaeb0216d2445de0a1322f5e4a860b910c3551260dc457b6aacf3a00c9d17e05505bbc31d86f961cff98369dbb7324fc1ec
7
- data.tar.gz: 4a5bea91fa5a2a369714d6f6a7721ec6453602f2c86d1aa9d3000a61e71ad357a4302cc316eb5bec100a84fb6c283bebd8b0bb97761a91bf64dcd550aafbcd53
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['lat'],
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
@@ -1,3 +1,3 @@
1
1
  module Muni
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
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.6
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-04-14 00:00:00.000000000 Z
11
+ date: 2013-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xml-simple