ttc-gps 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +1 -1
- data/README.rdoc +6 -13
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/lib/ttc-gps/models.rb +2 -2
- data/ttc-gps.gemspec +3 -3
- metadata +4 -4
data/LICENSE
CHANGED
data/README.rdoc
CHANGED
@@ -1,17 +1,10 @@
|
|
1
|
-
= ttc-gps
|
1
|
+
= ttc-gps-gem
|
2
2
|
|
3
|
-
|
3
|
+
A service for consuming TTC streetcar GPS data.
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
* Fork the project.
|
8
|
-
* Make your feature addition or bug fix.
|
9
|
-
* Add tests for it. This is important so I don't break it in a
|
10
|
-
future version unintentionally.
|
11
|
-
* Commit, do not mess with rakefile, version, or history.
|
12
|
-
(if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
|
13
|
-
* Send me a pull request. Bonus points for topic branches.
|
5
|
+
The project is far from complete, and is lacking cohesiveness in a number of ways.
|
6
|
+
There are unused methods all over the place and no automated tests. This will change.
|
14
7
|
|
15
|
-
|
8
|
+
=== Copyright
|
16
9
|
|
17
|
-
Copyright (c)
|
10
|
+
Copyright (c) 2011 Scott Hyndman. See LICENSE for details.
|
data/Rakefile
CHANGED
@@ -8,7 +8,7 @@ begin
|
|
8
8
|
gem.summary = %Q{A service for consuming TTC streetcar GPS data.}
|
9
9
|
gem.description = %Q{Uses NextBus data.}
|
10
10
|
gem.email = "scotty.hyndman@gmail.com"
|
11
|
-
gem.homepage = "http://github.com/shyndman/ttc-gps"
|
11
|
+
gem.homepage = "http://github.com/shyndman/ttc-gps-gem"
|
12
12
|
gem.authors = ["Scott Hyndman"]
|
13
13
|
gem.add_development_dependency "thoughtbot-shoulda", ">= 0"
|
14
14
|
gem.add_development_dependency "geokit", ">= 0"
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.7.
|
1
|
+
0.7.1
|
data/lib/ttc-gps/models.rb
CHANGED
@@ -34,12 +34,12 @@ 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, :ts, :predictable
|
37
|
+
attr_accessor :id, :route, :routeId, :position, :heading, :dir, :secs_since_report, :ts, :predictable
|
38
38
|
|
39
39
|
def to_json *args
|
40
40
|
{
|
41
41
|
'id' => @id,
|
42
|
-
'
|
42
|
+
'routeId' => @routeId,
|
43
43
|
'position' => @position,
|
44
44
|
'heading' => @heading,
|
45
45
|
'dir' => @dir,
|
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.7.
|
8
|
+
s.version = "0.7.1"
|
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{2011-01-
|
12
|
+
s.date = %q{2011-01-03}
|
13
13
|
s.description = %q{Uses NextBus data.}
|
14
14
|
s.email = %q{scotty.hyndman@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -31,7 +31,7 @@ Gem::Specification.new do |s|
|
|
31
31
|
"test/test_ttc-gps.rb",
|
32
32
|
"ttc-gps.gemspec"
|
33
33
|
]
|
34
|
-
s.homepage = %q{http://github.com/shyndman/ttc-gps}
|
34
|
+
s.homepage = %q{http://github.com/shyndman/ttc-gps-gem}
|
35
35
|
s.require_paths = ["lib"]
|
36
36
|
s.rubygems_version = %q{1.3.7}
|
37
37
|
s.summary = %q{A service for consuming TTC streetcar GPS data.}
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 7
|
8
|
-
-
|
9
|
-
version: 0.7.
|
8
|
+
- 1
|
9
|
+
version: 0.7.1
|
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: 2011-01-
|
17
|
+
date: 2011-01-03 00:00:00 -05:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -80,7 +80,7 @@ files:
|
|
80
80
|
- test/test_ttc-gps.rb
|
81
81
|
- ttc-gps.gemspec
|
82
82
|
has_rdoc: true
|
83
|
-
homepage: http://github.com/shyndman/ttc-gps
|
83
|
+
homepage: http://github.com/shyndman/ttc-gps-gem
|
84
84
|
licenses: []
|
85
85
|
|
86
86
|
post_install_message:
|