transprt 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +37 -11
- data/transprt.gemspec +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e86599721dde251b05f75970758afedf23e77241
|
4
|
+
data.tar.gz: aa84df82854d28b6482dc5c24835d948d0893a24
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 598f262abe3ff3386e62aa31c085e3dcc11f5c54011b431314ea1ef58d6e763d038ed155d087e2e806cb00ff3b82e505e1ebf6fa23a1bc70858998730983ec11
|
7
|
+
data.tar.gz: 4f87d14122932451578676de4e289dfd2427ad140bc848a90457e526e4e6fbe17668f1070d08002fec5e3701bc819b53cc4343fc057a53f2d38e1d5dc2850995
|
data/README.md
CHANGED
@@ -1,22 +1,48 @@
|
|
1
|
-
transprt
|
2
|
-
========
|
1
|
+
#transprt
|
3
2
|
|
4
3
|
[![Gem Version](https://badge.fury.io/rb/transprt.png)](http://badge.fury.io/rb/transprt)
|
4
|
+
[![Dependency Status](https://gemnasium.com/ghn/transprt.png)](https://gemnasium.com/ghn/transprt)
|
5
5
|
|
6
|
-
Use the public transport
|
6
|
+
Use the Swiss public transport API (open data). http://transport.opendata.ch
|
7
7
|
|
8
|
-
Installation
|
9
|
-
============
|
8
|
+
##Installation
|
10
9
|
|
11
|
-
```
|
10
|
+
```bash
|
12
11
|
gem install transprt
|
12
|
+
|
13
|
+
#run example
|
14
|
+
ruby example.rb
|
15
|
+
```
|
16
|
+
|
17
|
+
##Usage
|
18
|
+
|
19
|
+
###Locations
|
20
|
+
http://transport.opendata.ch/#locations
|
21
|
+
|
22
|
+
```ruby
|
23
|
+
require 'transprt'
|
24
|
+
Transprt.locations :query => 'Geneva'
|
25
|
+
# => [{"id"=>"008501008", "name"=>"Genève", "score"=>"101", "coordinate"=>{"type"=>"WGS84", "x"=>6.142455, "y"=>46.210199}, "distance"=>nil}]
|
13
26
|
```
|
14
27
|
|
15
|
-
|
16
|
-
=====
|
28
|
+
###Connexions
|
17
29
|
|
30
|
+
http://transport.opendata.ch/#connections
|
31
|
+
|
32
|
+
```ruby
|
33
|
+
require 'transprt'
|
34
|
+
Transprt.connexions :from => 'Lausanne', :to => 'Geneva'
|
18
35
|
```
|
19
|
-
|
20
|
-
|
21
|
-
|
36
|
+
|
37
|
+
###Station board
|
38
|
+
|
39
|
+
http://transport.opendata.ch/#stationboard
|
40
|
+
|
41
|
+
```ruby
|
42
|
+
# Display station board
|
43
|
+
Transprt.stationboard :station => 'Lausanne'
|
22
44
|
```
|
45
|
+
|
46
|
+
##Licence
|
47
|
+
|
48
|
+
MIT License (MIT)
|
data/transprt.gemspec
CHANGED
@@ -3,10 +3,10 @@ lib = File.expand_path('../lib', __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |gem|
|
5
5
|
gem.name = "transprt"
|
6
|
-
gem.version = '0.1.
|
6
|
+
gem.version = '0.1.3'
|
7
7
|
gem.authors = ["ghn"]
|
8
8
|
gem.email = ["ghugon@gmail.com"]
|
9
|
-
gem.description = %q{Use the public transport
|
9
|
+
gem.description = %q{Use the Swiss public transport API (open data).}
|
10
10
|
gem.summary = "Swiss public transport."
|
11
11
|
gem.homepage = 'https://github.com/ghn/transprt'
|
12
12
|
gem.license = "MIT"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: transprt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ghn
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
@@ -38,7 +38,7 @@ dependencies:
|
|
38
38
|
- - ~>
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 1.8.0
|
41
|
-
description: Use the public transport
|
41
|
+
description: Use the Swiss public transport API (open data).
|
42
42
|
email:
|
43
43
|
- ghugon@gmail.com
|
44
44
|
executables: []
|
@@ -71,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
71
71
|
version: '0'
|
72
72
|
requirements: []
|
73
73
|
rubyforge_project:
|
74
|
-
rubygems_version: 2.
|
74
|
+
rubygems_version: 2.1.11
|
75
75
|
signing_key:
|
76
76
|
specification_version: 4
|
77
77
|
summary: Swiss public transport.
|