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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 59e75dddb1ad8f86f9326474073a3976afe8e230
4
- data.tar.gz: 169d5009400f364a9a108c04ca58fde5845fce27
3
+ metadata.gz: c8a56bf886bd8a334318fbb4d60aeba4ff7a7be1
4
+ data.tar.gz: 95511dc3c487010ccf30b43bd7a3f03eb145b53b
5
5
  SHA512:
6
- metadata.gz: 63212c67d1c8fd215807350b8d8f4186282873d8e42e270fb3bbea12ce7e50706df595b8fc4a102e4b0c749418530d081b295010154ec629fb2cf08d818510e7
7
- data.tar.gz: 5cb187a75faadb57ff51352cf935ba8fa8cc4a2a258a4421ebe46d1c4512e56ac3b4e31e287a44d64a1bd81066a55ee902b885b4ea0befee6c973e7404320b8d
6
+ metadata.gz: 97f628f5f3f4cec498ae0e4ed445a107e8b2e1341151e0e9ed50c7936dfe83ba47d2cf5d9902c328277f480cbea4be9e160f03345169a8e21ece6e3cba5dcecf
7
+ data.tar.gz: e742e079a26410959a07355517b9252d1d551129ccba9748e989286fe04a60ef4e5be759613b2506cfda93fe5316f605a81034663afb81370eff31c3896f0073
data/.travis.yml CHANGED
@@ -1,3 +1,8 @@
1
1
  language: ruby
2
2
  rvm:
3
- - '2.1.2'
3
+ - 2.2.2
4
+ - ruby-head
5
+
6
+ matrix:
7
+ allow_failures:
8
+ - rvm: ruby-head
data/Gemfile CHANGED
@@ -1,4 +1,3 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- # Specify your gem's dependencies in septa_stop_locator.gemspec
4
3
  gemspec
@@ -1,3 +1,3 @@
1
1
  module SeptaStopLocator
2
- VERSION = "0.0.1"
2
+ VERSION = '0.0.2'
3
3
  end
@@ -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', '~> 1.6'
24
- spec.add_development_dependency 'rake', '10.4.2'
25
- spec.add_development_dependency 'rspec', '3.2.0'
26
- spec.add_development_dependency 'vcr', '2.9.3'
27
- spec.add_development_dependency 'webmock', '1.20.4'
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
- before :each do
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(@route.stops.class).to eq Array
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
- before :each do
15
- @stop = @route.stops[0]
16
- end
12
+ let(:stop) { route.stops[0] }
17
13
 
18
14
  it 'has a lng' do
19
- expect(@stop['lng']).to eq -75.162559
15
+ expect(stop['lng']).to eq -75.162559
20
16
  end
21
17
 
22
18
  it 'has a lat' do
23
- expect(@stop['lat']).to eq 39.952532
19
+ expect(stop['lat']).to eq 39.952532
24
20
  end
25
21
 
26
22
  it 'has a stopid' do
27
- expect(@stop['stopid']).to eq 283
23
+ expect(stop['stopid']).to eq 283
28
24
  end
29
25
 
30
26
  it 'has a stopname' do
31
- expect(@stop['stopname']).to eq '13th St Trolley Station'
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.1
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: 2015-09-28 00:00:00.000000000 Z
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: '1.6'
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: '1.6'
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.4.2
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.4.2
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.2.0
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.2.0
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: 2.9.3
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: 2.9.3
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.20.4
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.20.4
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: