septa_stop_locator 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +6 -1
- data/Gemfile +0 -1
- data/lib/septa_stop_locator/version.rb +1 -1
- data/septa_stop_locator.gemspec +5 -5
- data/spec/septa_stop_locator/route_spec.rb +7 -11
- metadata +14 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c8a56bf886bd8a334318fbb4d60aeba4ff7a7be1
|
4
|
+
data.tar.gz: 95511dc3c487010ccf30b43bd7a3f03eb145b53b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97f628f5f3f4cec498ae0e4ed445a107e8b2e1341151e0e9ed50c7936dfe83ba47d2cf5d9902c328277f480cbea4be9e160f03345169a8e21ece6e3cba5dcecf
|
7
|
+
data.tar.gz: e742e079a26410959a07355517b9252d1d551129ccba9748e989286fe04a60ef4e5be759613b2506cfda93fe5316f605a81034663afb81370eff31c3896f0073
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
data/septa_stop_locator.gemspec
CHANGED
@@ -20,9 +20,9 @@ Gem::Specification.new do |spec|
|
|
20
20
|
|
21
21
|
spec.add_dependency 'haversine', '0.3.0'
|
22
22
|
|
23
|
-
spec.add_development_dependency 'bundler', '
|
24
|
-
spec.add_development_dependency 'rake', '10.
|
25
|
-
spec.add_development_dependency 'rspec', '3.
|
26
|
-
spec.add_development_dependency 'vcr', '
|
27
|
-
spec.add_development_dependency 'webmock', '1.
|
23
|
+
spec.add_development_dependency 'bundler', '1.11.2'
|
24
|
+
spec.add_development_dependency 'rake', '10.5.0'
|
25
|
+
spec.add_development_dependency 'rspec', '3.4.0'
|
26
|
+
spec.add_development_dependency 'vcr', '3.0.1'
|
27
|
+
spec.add_development_dependency 'webmock', '1.22.6'
|
28
28
|
end
|
@@ -2,33 +2,29 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
describe SeptaStopLocator::Route do
|
4
4
|
describe '#stops', vcr: { cassette_name: 'route' } do
|
5
|
-
|
6
|
-
@route = SeptaStopLocator::Route.new(34)
|
7
|
-
end
|
5
|
+
let(:route) { SeptaStopLocator::Route.new(34) }
|
8
6
|
|
9
7
|
it 'returns an array of the stops for a route' do
|
10
|
-
expect(
|
8
|
+
expect(route.stops.class).to eq Array
|
11
9
|
end
|
12
10
|
|
13
11
|
context 'a stop hash in the stops array' do
|
14
|
-
|
15
|
-
@stop = @route.stops[0]
|
16
|
-
end
|
12
|
+
let(:stop) { route.stops[0] }
|
17
13
|
|
18
14
|
it 'has a lng' do
|
19
|
-
expect(
|
15
|
+
expect(stop['lng']).to eq -75.162559
|
20
16
|
end
|
21
17
|
|
22
18
|
it 'has a lat' do
|
23
|
-
expect(
|
19
|
+
expect(stop['lat']).to eq 39.952532
|
24
20
|
end
|
25
21
|
|
26
22
|
it 'has a stopid' do
|
27
|
-
expect(
|
23
|
+
expect(stop['stopid']).to eq 283
|
28
24
|
end
|
29
25
|
|
30
26
|
it 'has a stopname' do
|
31
|
-
expect(
|
27
|
+
expect(stop['stopname']).to eq '13th St Trolley Station'
|
32
28
|
end
|
33
29
|
end
|
34
30
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: septa_stop_locator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Ball
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: haversine
|
@@ -28,72 +28,72 @@ dependencies:
|
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 1.11.2
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 1.11.2
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - '='
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 10.
|
47
|
+
version: 10.5.0
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - '='
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 10.
|
54
|
+
version: 10.5.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rspec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 3.
|
61
|
+
version: 3.4.0
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - '='
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 3.
|
68
|
+
version: 3.4.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: vcr
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - '='
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: 3.0.1
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - '='
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
82
|
+
version: 3.0.1
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: webmock
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - '='
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 1.
|
89
|
+
version: 1.22.6
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - '='
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 1.
|
96
|
+
version: 1.22.6
|
97
97
|
description: Get the SEPTA stops closest to a lat/long point for a given bus/trolley
|
98
98
|
route.
|
99
99
|
email:
|