transilien_realtime 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 404fb3f75160ea7fd8804c7b2385452fd8e163e9
4
+ data.tar.gz: 8bdc706c837f498c9ad19be1a4e7077c55ce68cf
5
+ SHA512:
6
+ metadata.gz: 0cca2cc028bd601ac576c4dca8a6c8f83c4e972d83438b064e202196b52a0dc497657b50d4d8e4dbd9c96fdc1845a0924216a50f448d5add48bec950762ba17a
7
+ data.tar.gz: 9370652aee9e70daf47b04afdcc921ae89f01e595bf4eccc8540e181ae48741285012b43857a5ec6836be34191231b1b66eff0e1599adc3c85ce8ff1027eb224
data/.gitignore ADDED
@@ -0,0 +1,35 @@
1
+ *.gem
2
+ *.rbc
3
+ /.config
4
+ /coverage/
5
+ /InstalledFiles
6
+ /pkg/
7
+ /spec/reports/
8
+ /test/tmp/
9
+ /test/version_tmp/
10
+ /tmp/
11
+
12
+ ## Specific to RubyMotion:
13
+ .dat*
14
+ .repl_history
15
+ build/
16
+
17
+ ## Documentation cache and generated files:
18
+ /.yardoc/
19
+ /_yardoc/
20
+ /doc/
21
+ /rdoc/
22
+
23
+ ## Environment normalisation:
24
+ /.bundle/
25
+ /vendor/bundle
26
+ /lib/bundler/man/
27
+
28
+ # for a library or gem, you might want to ignore these files since the code is
29
+ # intended to run in multiple environments; otherwise, check them in:
30
+ # Gemfile.lock
31
+ # .ruby-version
32
+ # .ruby-gemset
33
+
34
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
35
+ .rvmrc
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --require spec_helper
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.2.1
data/.travis.yml ADDED
@@ -0,0 +1,7 @@
1
+ language: ruby
2
+ rvm:
3
+ - "2.1.3"
4
+ - "2.2.1"
5
+
6
+ # uncomment this line if your project needs to run something other than `rake`:
7
+ script: bundle exec rspec spec
@@ -0,0 +1,13 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4
+
5
+ We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, age, or religion.
6
+
7
+ Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
8
+
9
+ Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
10
+
11
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
12
+
13
+ This Code of Conduct is adapted from the [Contributor Covenant](http:contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in transilien_realtime.gemspec
4
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,97 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ transilien_realtime (0.2.0)
5
+ http (~> 0.8.9)
6
+ nokogiri (~> 1.6.6.2)
7
+ oj (~> 2.12.7)
8
+
9
+ GEM
10
+ remote: https://rubygems.org/
11
+ specs:
12
+ addressable (2.3.8)
13
+ celluloid (0.16.0)
14
+ timers (~> 4.0.0)
15
+ coderay (1.1.0)
16
+ diff-lcs (1.2.5)
17
+ domain_name (0.5.24)
18
+ unf (>= 0.0.5, < 1.0.0)
19
+ ffi (1.9.8)
20
+ formatador (0.2.5)
21
+ guard (2.12.5)
22
+ formatador (>= 0.2.4)
23
+ listen (~> 2.7)
24
+ lumberjack (~> 1.0)
25
+ nenv (~> 0.1)
26
+ notiffany (~> 0.0)
27
+ pry (>= 0.9.12)
28
+ shellany (~> 0.0)
29
+ thor (>= 0.18.1)
30
+ guard-compat (1.2.1)
31
+ guard-rspec (4.5.0)
32
+ guard (~> 2.1)
33
+ guard-compat (~> 1.1)
34
+ rspec (>= 2.99.0, < 4.0)
35
+ hitimes (1.2.2)
36
+ http (0.8.9)
37
+ addressable (~> 2.3)
38
+ http-cookie (~> 1.0)
39
+ http-form_data (~> 1.0.1)
40
+ http_parser.rb (~> 0.6.0)
41
+ http-cookie (1.0.2)
42
+ domain_name (~> 0.5)
43
+ http-form_data (1.0.1)
44
+ http_parser.rb (0.6.0)
45
+ listen (2.9.0)
46
+ celluloid (>= 0.15.2)
47
+ rb-fsevent (>= 0.9.3)
48
+ rb-inotify (>= 0.9)
49
+ lumberjack (1.0.9)
50
+ method_source (0.8.2)
51
+ mini_portile (0.6.2)
52
+ nenv (0.2.0)
53
+ nokogiri (1.6.6.2)
54
+ mini_portile (~> 0.6.0)
55
+ notiffany (0.0.6)
56
+ nenv (~> 0.1)
57
+ shellany (~> 0.0)
58
+ oj (2.12.7)
59
+ pry (0.10.1)
60
+ coderay (~> 1.1.0)
61
+ method_source (~> 0.8.1)
62
+ slop (~> 3.4)
63
+ rake (10.4.2)
64
+ rb-fsevent (0.9.4)
65
+ rb-inotify (0.9.5)
66
+ ffi (>= 0.5.0)
67
+ rspec (3.2.0)
68
+ rspec-core (~> 3.2.0)
69
+ rspec-expectations (~> 3.2.0)
70
+ rspec-mocks (~> 3.2.0)
71
+ rspec-core (3.2.3)
72
+ rspec-support (~> 3.2.0)
73
+ rspec-expectations (3.2.1)
74
+ diff-lcs (>= 1.2.0, < 2.0)
75
+ rspec-support (~> 3.2.0)
76
+ rspec-mocks (3.2.1)
77
+ diff-lcs (>= 1.2.0, < 2.0)
78
+ rspec-support (~> 3.2.0)
79
+ rspec-support (3.2.2)
80
+ shellany (0.0.1)
81
+ slop (3.6.0)
82
+ thor (0.19.1)
83
+ timers (4.0.1)
84
+ hitimes
85
+ unf (0.1.4)
86
+ unf_ext
87
+ unf_ext (0.0.7.1)
88
+
89
+ PLATFORMS
90
+ ruby
91
+
92
+ DEPENDENCIES
93
+ bundler (~> 1.9)
94
+ guard-rspec (~> 4.5.0)
95
+ pry (~> 0.10.1)
96
+ rake (~> 10.0)
97
+ transilien_realtime!
data/Guardfile ADDED
@@ -0,0 +1,76 @@
1
+ # A sample Guardfile
2
+ # More info at https://github.com/guard/guard#readme
3
+
4
+ ## Uncomment and set this to only include directories you want to watch
5
+ # directories %w(app lib config test spec features)
6
+
7
+ ## Uncomment to clear the screen before every task
8
+ # clearing :on
9
+
10
+ ## Guard internally checks for changes in the Guardfile and exits.
11
+ ## If you want Guard to automatically start up again, run guard in a
12
+ ## shell loop, e.g.:
13
+ ##
14
+ ## $ while bundle exec guard; do echo "Restarting Guard..."; done
15
+ ##
16
+ ## Note: if you are using the `directories` clause above and you are not
17
+ ## watching the project directory ('.'), then you will want to move
18
+ ## the Guardfile to a watched dir and symlink it back, e.g.
19
+ #
20
+ # $ mkdir config
21
+ # $ mv Guardfile config/
22
+ # $ ln -s config/Guardfile .
23
+ #
24
+ # and, you'll have to watch "config/Guardfile" instead of "Guardfile"
25
+
26
+ # Note: The cmd option is now required due to the increasing number of ways
27
+ # rspec may be run, below are examples of the most common uses.
28
+ # * bundler: 'bundle exec rspec'
29
+ # * bundler binstubs: 'bin/rspec'
30
+ # * spring: 'bin/rspec' (This will use spring if running and you have
31
+ # installed the spring binstubs per the docs)
32
+ # * zeus: 'zeus rspec' (requires the server to be started separately)
33
+ # * 'just' rspec: 'rspec'
34
+
35
+ guard :rspec, cmd: "bundle exec rspec" do
36
+ require "guard/rspec/dsl"
37
+ dsl = Guard::RSpec::Dsl.new(self)
38
+
39
+ # Feel free to open issues for suggestions and improvements
40
+
41
+ # RSpec files
42
+ rspec = dsl.rspec
43
+ watch(rspec.spec_helper) { rspec.spec_dir }
44
+ watch(rspec.spec_support) { rspec.spec_dir }
45
+ watch(rspec.spec_files)
46
+
47
+ # Ruby files
48
+ ruby = dsl.ruby
49
+ dsl.watch_spec_files_for(ruby.lib_files)
50
+
51
+ # Rails files
52
+ rails = dsl.rails(view_extensions: %w(erb haml slim))
53
+ dsl.watch_spec_files_for(rails.app_files)
54
+ dsl.watch_spec_files_for(rails.views)
55
+
56
+ watch(rails.controllers) do |m|
57
+ [
58
+ rspec.spec.("routing/#{m[1]}_routing"),
59
+ rspec.spec.("acceptance/#{m[1]}")
60
+ ]
61
+ end
62
+
63
+ # Rails config changes
64
+ watch(rails.spec_helper) { rspec.spec_dir }
65
+ watch(rails.routes) { "#{rspec.spec_dir}/routing" }
66
+ watch(rails.app_controller) { "#{rspec.spec_dir}/controllers" }
67
+
68
+ # Capybara features specs
69
+ watch(rails.view_dirs) { |m| rspec.spec.("features/#{m[1]}") }
70
+
71
+ # Turnip features and steps
72
+ watch(%r{^spec/acceptance/(.+)\.feature$})
73
+ watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) do |m|
74
+ Dir[File.join("**/#{m[1]}.feature")][0] || "spec/acceptance"
75
+ end
76
+ end
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Thomas Lecavelier
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,56 @@
1
+ # TransilienRealtime
2
+
3
+ Query SNCF Transilien API Temps Réel to get the next trains from your station, eventually toward an other station.
4
+
5
+ Note: you need to request credentials from SNCF Open Data to use this API and so this gem : https://ressources.data.sncf.com/explore/dataset/api-temps-reel-transilien/?tab=metas
6
+
7
+ [![Build Status](https://travis-ci.org/ook/transilien_realtime.svg)](https://travis-ci.org/ook/transilien_realtime)
8
+
9
+ ## Installation
10
+
11
+ Add this line to your application's Gemfile:
12
+
13
+ ```ruby
14
+ gem 'transilien_realtime'
15
+ ```
16
+
17
+ And then execute:
18
+
19
+ $ bundle
20
+
21
+ Or install it yourself as:
22
+
23
+ $ gem install transilien_realtime
24
+
25
+ ## Usage
26
+
27
+ ```ruby
28
+ require 'transilien_realtime'
29
+
30
+ tr = TransilienRealtime::Base.new(user: "MyAPIUser" pwd: "MyAPIPwd") # you can use ENV['RTT_API_USER'] and ENV['RTT_API_PWD'] instead
31
+ => #<TransilienRealtime::Base:0x007f945d941698 @pwd="MyAPIPwd", @target=:production, @user="MyAPIUser">
32
+ tr.next(from: '87384008', to: '87381798')
33
+ => #<TransilienRealtime::Base:0x007f945d941698
34
+ @body=#<HTTP::Response::Body:3fca2e983734 @streaming=true>,
35
+ @content="<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<passages gare=\"87384008\">\r\n<train><date mode=\"R\">15/05/2015 14:12</date>\r\n<num>136891</num>\r\n<miss>MOCA</miss>\r\n<term>87381509</term>\r\n</train>\r\n</passages>\r\n",
36
+ @pwd="MyAPIPwd",
37
+ @response=#<HTTP::Response/1.1 200 OK {"Date"=>"Fri, 15 May 2015 12:06:56 GMT", "Content-Type"=>"application/vnd.sncf.transilien.od.depart+xml; vers=1.0", "Cache-Control"=>"no-cache", "Connection"=>"close"}>,
38
+ @target=:production,
39
+ @user="MyAPIUser">
40
+ tr.trains
41
+ => [#<TransilienRealtime::Train:0x007f945dcc4770 @departure_at=2015-05-15 16:12:00 +0200, @mission="MOCA", @numero="136891", @terminus="87381509">]
42
+ ```
43
+
44
+ ## Development
45
+
46
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.
47
+
48
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
49
+
50
+ ## Contributing
51
+
52
+ 1. Fork it ( https://github.com/[my-github-username]/transilien_realtime/fork )
53
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
54
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
55
+ 4. Push to the branch (`git push origin my-new-feature`)
56
+ 5. Create a new Pull Request
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "transilien_realtime"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
data/bin/setup ADDED
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
6
+
7
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,77 @@
1
+ require 'http'
2
+ require 'nokogiri'
3
+ require 'oj'
4
+
5
+ module TransilienRealtime
6
+ class Base
7
+ DOCUMENTATION_VERSION = '0.2'
8
+ API_VERSION = '1.0'
9
+
10
+ API_TARGETS = {
11
+ production: 'http://api.transilien.com/',
12
+ staging: 'http://85.233.209.222:1399/'
13
+ }
14
+
15
+ ACCEPT_STRINGS = {
16
+ '1.0' => 'application/vnd.sncf.transilien.od.depart+xml;vers=1.0'
17
+ }
18
+
19
+ def initialize(user: ENV['RTT_API_USER'], pwd: ENV['RTT_API_PWD'], target: :production)
20
+ @user = user
21
+ @pwd = pwd
22
+
23
+ @target = target
24
+ end
25
+
26
+ def next(from:, to: nil)
27
+ raise ArgumentError, 'from param is mandatory' unless from
28
+ fetch(build_request(from, to))
29
+ self
30
+ end
31
+
32
+ def xml_document
33
+ return nil unless @content
34
+ Nokogiri::XML(@content)
35
+ end
36
+
37
+ def xml
38
+ @content
39
+ end
40
+
41
+ def json
42
+ return nil unless trains
43
+ "[#{trains.map(&:to_json).join(',')}]"
44
+ end
45
+
46
+ def response; @response; end
47
+ def body; @body; end
48
+ def content; @content; end
49
+
50
+ def trains
51
+ @trains ||= begin
52
+ return nil unless xml_document
53
+ trains = []
54
+ xml_document.xpath('//train').each do |train_node|
55
+ trains << Train.from_xml(train_node)
56
+ end
57
+ trains.freeze
58
+ end
59
+ end
60
+
61
+ protected
62
+
63
+ def build_request(from, to)
64
+ request = API_TARGETS[@target]
65
+ request += "gare/#{from}/depart/"
66
+ request += "#{to}/" if to
67
+ request
68
+ end
69
+
70
+ def fetch(request)
71
+ @response = HTTP.basic_auth(user: @user, pass: @pwd).headers(accept: ACCEPT_STRINGS[API_VERSION]).get(request)#.body
72
+ @body = @response.body
73
+ @content = @body.readpartial
74
+ end
75
+
76
+ end
77
+ end
@@ -0,0 +1,57 @@
1
+ module TransilienRealtime
2
+ class Train
3
+ include Comparable
4
+
5
+ MODES = {
6
+ 'R' => 'realtime',
7
+ 'T' => 'theoritical'
8
+ }
9
+ STATES = {
10
+ 'R' => 'late',
11
+ 'S' => 'cancelled',
12
+ }
13
+
14
+ attr_reader :mission, :departure_at, :terminus, :numero, :mode, :state
15
+
16
+ class << self
17
+ def from_xml(xml_node)
18
+ attr = {}
19
+ attr[:mission] = xml_node.at_xpath('miss').text
20
+ attr[:terminus] = xml_node.at_xpath('term').text
21
+ attr[:numero] = xml_node.at_xpath('num').text
22
+ date_node = xml_node.at_xpath('date')
23
+ attr[:departure_at] = date_node.text
24
+ attr[:mode] = date_node.attr('mode')
25
+ etat = xml_node.at_xpath('etat')
26
+ attr[:state] = etat.text if etat
27
+ train = new(attr).freeze
28
+ end
29
+ end
30
+
31
+ def initialize(mission:, departure_at:, terminus:, numero:, mode:, state: nil)
32
+ @mission = mission
33
+ @numero = numero
34
+ @departure_at = DateTime.strptime(departure_at, '%d/%m/%Y %H:%M').to_time
35
+ @terminus = terminus
36
+ @mode = MODES[mode]
37
+ @state = STATES[state]
38
+ end
39
+
40
+ def to_json(options={})
41
+ json = { mission: mission, departure_at: departure_at, numero: numero, terminus: terminus, mode: mode }
42
+ json[:state] = state if state
43
+ json.to_json
44
+ end
45
+
46
+ def <=>(other)
47
+ return 0 if mission == other.mission &&
48
+ departure_at == other.departure_at &&
49
+ terminus == other.terminus &&
50
+ numero == other.numero &&
51
+ mode == other.mode &&
52
+ state == other.state
53
+ departure_at <=> other.departure_at
54
+ end
55
+
56
+ end
57
+ end
@@ -0,0 +1,3 @@
1
+ module TransilienRealtime
2
+ VERSION = "0.2.0"
3
+ end
@@ -0,0 +1,7 @@
1
+ require "transilien_realtime/version"
2
+ require "transilien_realtime/base"
3
+ require "transilien_realtime/train"
4
+
5
+ module TransilienRealtime
6
+ # maybe some helpers…
7
+ end
@@ -0,0 +1,38 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'transilien_realtime/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "transilien_realtime"
8
+ spec.version = TransilienRealtime::VERSION
9
+ spec.authors = ["Thomas Lecavelier"]
10
+ spec.email = ["thomas@lecavelier.name"]
11
+
12
+ spec.summary = %q{Implementation of SNCF Transilien API Temps Réel}
13
+ spec.description = %q{Let you query the next trains on given stations, eventually toward a given station}
14
+ spec.homepage = "https://github.com/ook/transilien_realtime"
15
+ spec.license = "MIT"
16
+
17
+ # Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
18
+ # delete this section to allow pushing this gem to any host.
19
+ #if spec.respond_to?(:metadata)
20
+ # spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
21
+ #else
22
+ # raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
23
+ #end
24
+
25
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
26
+ spec.bindir = "exe"
27
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
+ spec.require_paths = ["lib"]
29
+
30
+ spec.add_runtime_dependency 'http', '~> 0.8.9'
31
+ spec.add_runtime_dependency 'nokogiri', '~> 1.6.6.2'
32
+ spec.add_runtime_dependency 'oj', '~> 2.12.7'
33
+
34
+ spec.add_development_dependency "bundler", "~> 1.9"
35
+ spec.add_development_dependency "rake", "~> 10.0"
36
+ spec.add_development_dependency "guard-rspec", "~> 4.5.0"
37
+ spec.add_development_dependency "pry", "~> 0.10.1"
38
+ end
metadata ADDED
@@ -0,0 +1,161 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: transilien_realtime
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.0
5
+ platform: ruby
6
+ authors:
7
+ - Thomas Lecavelier
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2015-05-17 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: http
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 0.8.9
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.8.9
27
+ - !ruby/object:Gem::Dependency
28
+ name: nokogiri
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 1.6.6.2
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 1.6.6.2
41
+ - !ruby/object:Gem::Dependency
42
+ name: oj
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 2.12.7
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 2.12.7
55
+ - !ruby/object:Gem::Dependency
56
+ name: bundler
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.9'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.9'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '10.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '10.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: guard-rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 4.5.0
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 4.5.0
97
+ - !ruby/object:Gem::Dependency
98
+ name: pry
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 0.10.1
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 0.10.1
111
+ description: Let you query the next trains on given stations, eventually toward a
112
+ given station
113
+ email:
114
+ - thomas@lecavelier.name
115
+ executables: []
116
+ extensions: []
117
+ extra_rdoc_files: []
118
+ files:
119
+ - ".gitignore"
120
+ - ".rspec"
121
+ - ".ruby-version"
122
+ - ".travis.yml"
123
+ - CODE_OF_CONDUCT.md
124
+ - Gemfile
125
+ - Gemfile.lock
126
+ - Guardfile
127
+ - LICENSE.txt
128
+ - README.md
129
+ - Rakefile
130
+ - bin/console
131
+ - bin/setup
132
+ - lib/transilien_realtime.rb
133
+ - lib/transilien_realtime/base.rb
134
+ - lib/transilien_realtime/train.rb
135
+ - lib/transilien_realtime/version.rb
136
+ - transilien_realtime.gemspec
137
+ homepage: https://github.com/ook/transilien_realtime
138
+ licenses:
139
+ - MIT
140
+ metadata: {}
141
+ post_install_message:
142
+ rdoc_options: []
143
+ require_paths:
144
+ - lib
145
+ required_ruby_version: !ruby/object:Gem::Requirement
146
+ requirements:
147
+ - - ">="
148
+ - !ruby/object:Gem::Version
149
+ version: '0'
150
+ required_rubygems_version: !ruby/object:Gem::Requirement
151
+ requirements:
152
+ - - ">="
153
+ - !ruby/object:Gem::Version
154
+ version: '0'
155
+ requirements: []
156
+ rubyforge_project:
157
+ rubygems_version: 2.4.5
158
+ signing_key:
159
+ specification_version: 4
160
+ summary: Implementation of SNCF Transilien API Temps Réel
161
+ test_files: []