samtrafiken_api 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 +10 -0
- data/Gemfile.lock +15 -13
- data/README.md +8 -5
- data/lib/samtrafiken_api/version.rb +1 -1
- data/samtrafiken_api.gemspec +1 -0
- metadata +17 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0bcc327bd9a09fe270d81ddc54daf777d1d2712
|
4
|
+
data.tar.gz: 80f1b95361d5672e1e945a7df512ca90a97fed32
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a9b7941a49839fc5dc288b62a63b76fad3e71595303c092df00ddd38362176e5259d5f10d0026261a747f3f380fe6c78e7194c20d041a8a16618e3f904b9bcd
|
7
|
+
data.tar.gz: 0ba937948675621187a524b6012e93dc50591e7dac477fb9f96e047394b7cc8c73d89b2d6574fb20bb8f051c5e5be200db7cb14efdc78a49e05dbdcaf4eaf7c5
|
data/.travis.yml
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
language: ruby
|
2
|
+
rvm:
|
3
|
+
- 1.9.3
|
4
|
+
- 2.1.0
|
5
|
+
- jruby-19mode
|
6
|
+
env:
|
7
|
+
global:
|
8
|
+
- secure: u5OoB+2cO1fxl427iaeHqZtBRu8K1uxv0GGJGYlwDbU3sIW56PoTq0O3OQYxaABXu/ECIPf8qi7m0vk4RFcayTQUVWxhcn5LKaWAt3nL6Vmixbvdi+LA+0fzrZNSytLRmcu3gn3JA7IR4EZrbrXiG9XMVhYSBpU2Bh0lpJsvGag=
|
9
|
+
- secure: Sc+F8YR6AaxWayQ1IY8AZ0TT8uIknSQX1xLRHxlx7wQhaZ7/xA0BDBhc1pyEDYm7vx2lLUf/9uJFaLnEhyFf1vrFuANFuALy0sx2j+j7GBoJOdoYKKUhNg5mtcTrw3N5RldMJCYK5LDQo33uMQAUFtSAn3W5oPCq3ZKD4AIpv44=
|
10
|
+
- secure: rA6IJMhpAvkunOTyLBPimyDPPpTMgcFN4QATK5kYBM5nBg2K4wkpX3abECxRnIH4+TnSJo+rLLCJENITkYNLRrQKUFuGiwkHZDCsynus9cWX4s/5s/R83BpwOxN3yTUXa9XKgcfehaB6Nn7wfnvgGSpphO6yi4h47PzOJ48qJBc=
|
data/Gemfile.lock
CHANGED
@@ -1,31 +1,33 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
samtrafiken_api (0.0.
|
4
|
+
samtrafiken_api (0.0.2)
|
5
5
|
httparty (~> 0.11)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
diff-lcs (1.2.
|
11
|
-
httparty (0.
|
12
|
-
|
10
|
+
diff-lcs (1.2.5)
|
11
|
+
httparty (0.12.0)
|
12
|
+
json (~> 1.8)
|
13
13
|
multi_xml (>= 0.5.2)
|
14
|
-
|
15
|
-
multi_xml (0.5.
|
16
|
-
|
17
|
-
|
18
|
-
rspec-
|
19
|
-
rspec-
|
20
|
-
|
21
|
-
rspec-
|
14
|
+
json (1.8.1)
|
15
|
+
multi_xml (0.5.5)
|
16
|
+
rake (10.1.1)
|
17
|
+
rspec (2.14.1)
|
18
|
+
rspec-core (~> 2.14.0)
|
19
|
+
rspec-expectations (~> 2.14.0)
|
20
|
+
rspec-mocks (~> 2.14.0)
|
21
|
+
rspec-core (2.14.7)
|
22
|
+
rspec-expectations (2.14.4)
|
22
23
|
diff-lcs (>= 1.1.3, < 2.0)
|
23
|
-
rspec-mocks (2.
|
24
|
+
rspec-mocks (2.14.4)
|
24
25
|
|
25
26
|
PLATFORMS
|
26
27
|
ruby
|
27
28
|
|
28
29
|
DEPENDENCIES
|
29
30
|
bundler (>= 1.0.0)
|
31
|
+
rake (~> 10.1)
|
30
32
|
rspec (~> 2.6)
|
31
33
|
samtrafiken_api!
|
data/README.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# Samtrafiken API
|
2
2
|
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/samtrafiken_api.png)](http://badge.fury.io/rb/samtrafiken_api)
|
4
|
+
[![Build Status](https://travis-ci.org/hannesl/samtrafiken_api.png)](https://travis-ci.org/hannesl/samtrafiken_api)
|
5
|
+
|
3
6
|
This gem is a thin wrapper around the
|
4
7
|
[public transportation web APIs](http://www.trafiklab.se/) provided by
|
5
8
|
Samtrafiken. Its classes and methods correspond to the different APIs and their
|
@@ -8,11 +11,11 @@ HTTP endpoints.
|
|
8
11
|
Please see the following pages to get an idea of what each API provides.
|
9
12
|
|
10
13
|
* [ResRobot Sök Resa](http://www.trafiklab.se/api/resrobot-sok-resa)
|
11
|
-
(`SamtrafikenAPI::Resrobot`)
|
14
|
+
(implemented by `SamtrafikenAPI::Resrobot`)
|
12
15
|
* [ResRobot Stolptidtabeller](http://www.trafiklab.se/api/resrobot-stolptidtabeller)
|
13
|
-
(`SamtrafikenAPI::ResrobotStops`)
|
16
|
+
(implemented by `SamtrafikenAPI::ResrobotStops`)
|
14
17
|
* [Samtrafiken Stationsinfo](http://www.trafiklab.se/api/samtrafiken-stationsinfo)
|
15
|
-
(`SamtrafikenAPI::Stationinfo`)
|
18
|
+
(implemented by `SamtrafikenAPI::Stationinfo`)
|
16
19
|
|
17
20
|
The methods return the raw json data provided by the APIs, parsed into Ruby
|
18
21
|
objects.
|
@@ -22,8 +25,8 @@ objects.
|
|
22
25
|
You need to sign up with [Trafiklab](http://www.trafiklab.se/) and get API keys
|
23
26
|
for each of the APIs that you are going to use.
|
24
27
|
|
25
|
-
Please see the class documentation
|
26
|
-
gem is used.
|
28
|
+
Please see the [class documentation](http://rubydoc.info/gems/samtrafiken_api/)
|
29
|
+
and the test suite for examples of how the gem is used.
|
27
30
|
|
28
31
|
## Testing
|
29
32
|
|
data/samtrafiken_api.gemspec
CHANGED
@@ -13,6 +13,7 @@ Gem::Specification.new do |s|
|
|
13
13
|
s.required_rubygems_version = ">= 1.3.6"
|
14
14
|
|
15
15
|
s.add_development_dependency "bundler", ">= 1.0.0"
|
16
|
+
s.add_development_dependency "rake", "~> 10.1"
|
16
17
|
s.add_development_dependency "rspec", "~> 2.6"
|
17
18
|
|
18
19
|
s.add_runtime_dependency 'httparty', '~> 0.11'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: samtrafiken_api
|
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
|
- Hannes Lilljequist
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 1.0.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.1'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.1'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: rspec
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -59,6 +73,7 @@ extensions: []
|
|
59
73
|
extra_rdoc_files: []
|
60
74
|
files:
|
61
75
|
- .gitignore
|
76
|
+
- .travis.yml
|
62
77
|
- .yardopts
|
63
78
|
- Gemfile
|
64
79
|
- Gemfile.lock
|