ttc-gps 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/ttc-gps/models.rb +2 -3
- data/ttc-gps.gemspec +2 -2
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.7.0
|
data/lib/ttc-gps/models.rb
CHANGED
@@ -34,7 +34,7 @@ end
|
|
34
34
|
module TTC
|
35
35
|
# <vehicle lon='-79.3582' secsSinceReport='7' predictable='true' speedKmHr='0.0' dirTag='504_westbound' id='4142' heading='54' lat='43.677082' routeTag='504'/>
|
36
36
|
class Vehicle
|
37
|
-
attr_accessor :id, :route, :position, :heading, :dir, :secs_since_report, :predictable
|
37
|
+
attr_accessor :id, :route, :position, :heading, :dir, :secs_since_report, :ts, :predictable
|
38
38
|
|
39
39
|
def to_json *args
|
40
40
|
{
|
@@ -43,8 +43,7 @@ module TTC
|
|
43
43
|
'position' => @position,
|
44
44
|
'heading' => @heading,
|
45
45
|
'dir' => @dir,
|
46
|
-
'
|
47
|
-
'predictable' => @predictable
|
46
|
+
'ts' => @ts
|
48
47
|
}.to_json(*args)
|
49
48
|
end
|
50
49
|
|
data/ttc-gps.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{ttc-gps}
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.7.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Scott Hyndman"]
|
12
|
-
s.date = %q{
|
12
|
+
s.date = %q{2011-01-02}
|
13
13
|
s.description = %q{Uses NextBus data.}
|
14
14
|
s.email = %q{scotty.hyndman@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 0
|
7
|
-
-
|
7
|
+
- 7
|
8
8
|
- 0
|
9
|
-
version: 0.
|
9
|
+
version: 0.7.0
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Scott Hyndman
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date:
|
17
|
+
date: 2011-01-02 00:00:00 -05:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|