london_transport 0.0.8 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +14 -5
  3. metadata +10 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b660227b8f2daf5c8062629828915379a14bedef
4
- data.tar.gz: ba5b46740bb3ec40f9cdcc420bc610aee8c98592
3
+ metadata.gz: a03e390be8448dcd6a6193989a1b1642ba20d6fa
4
+ data.tar.gz: 7a19b23a2045f30fa8bf76d33e21901da690212f
5
5
  SHA512:
6
- metadata.gz: 5717c2072391ddd9d3f139d8ae2dcdd0e2b773d8e3f61977161c9ebc1453426c5368c43b8fd35e7181d4d2e3657285e5cad27db8fc2760fd4f449b0dbbc289c7
7
- data.tar.gz: 5c37e8f9c62cde46ca2d365efba6dd5d77a3e78ea30f5a3e77b0db9ebee65266d7f8d0a48c84510b7322f604390edefbf59d976a93e854cb267283984204b6a8
6
+ metadata.gz: f04db7793bd1c97614e17e62265cce7a7ee9024724dde059a857dfc0be185927c393156c8dca295111df3a28914c347079016c85ee4ee7663bbd257cf274f7fc
7
+ data.tar.gz: 7963aaeebb703d9a0d7742ce8421083f6eda623281edfa5da7e9ad0a18a76ef47fd048407901a8f75fb7ee4885a1ef69f8276d0c03e93647b60d85508f1749bc
data/README.md CHANGED
@@ -18,15 +18,24 @@ Find the nearest tube stations from a long/lat value:
18
18
  transport = LondonTransport::Tube.new(longitude: -0.1440493, latitude: 51.5152117)
19
19
  ```
20
20
 
21
- `transport.stations` will then return an array of the nearest 3 tube stations and their distances (in metres) to this point, within 500m
21
+ `transport.stations` will then return an array of the nearest 3 tube
22
+ stations containing a hash with their their distances (in metres) and lines,
23
+ to the point specified, within 500m.
22
24
 
23
25
  ```ruby
24
26
  [
25
- [0] {
26
- "Oxford Circus Underground Station" => 147.70533261648208
27
+ {
28
+ "Oxford Circus Underground Station" => {
29
+ distance: => 147.70533261648208,
30
+ modes: ["tube"],
31
+ lines: ["bakerloo", "central", "victoria"]
27
32
  },
28
- [1] {
29
- "Bond Street Underground Station" => 403.48258984823457
33
+ {
34
+ "Bond Street Underground Station" => {
35
+ distance: 403.48258984823457,
36
+ modes: ["tube"],
37
+ lines: ["central", "jubilee"]
38
+ }
30
39
  }
31
40
  ]
32
41
  ```
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: london_transport
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Edwin Wills
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-13 00:00:00.000000000 Z
11
+ date: 2017-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oj
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '2.13'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '3.0'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
25
28
  - !ruby/object:Gem::Version
26
29
  version: '2.13'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '3.0'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: rspec
29
35
  requirement: !ruby/object:Gem::Requirement