gobart 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: f8d18e0bb8ff3dfda30f8ce6e455a8ea3e418b26
4
+ data.tar.gz: a9ef7ba60d975f745de80b0913504b4c8fc81ef6
5
+ SHA512:
6
+ metadata.gz: b5b08fba3377ad6c413d019abf44af9fdc7ac8e92c2a154aa9d09d7b30843236de39129b73db255dc2fa983b537825358a40e1f32fc7c9cc180023f96d575d3b
7
+ data.tar.gz: 5c2c187faaab7457dfb2478a71ab6fe5de1927780b75ab7d0644b7762ff8d1f0c76903db56e0f0aa34234cb747cc70e226634e43dae9a127e021005847ef5c10
Binary file
@@ -0,0 +1,12 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+
11
+ # rspec failure tracking
12
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.3.0
5
+ before_install: gem install bundler -v 1.14.5
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at bentonwong@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,7 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in gobart.gemspec
4
+ gem 'pry'
5
+ gem 'nokogiri', '1.6.6.2'
6
+ gem 'rspec'
7
+ gem 'rake'
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 bentonwong
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.
@@ -0,0 +1,46 @@
1
+ # Gobart
2
+
3
+ This gem will provide a simple and quick way to get real time departures and individual station information from a CLI interface for every station in the Bay Area Rapid Transit (BART) system.
4
+
5
+ The data is pulled directly from api.bart.gov.
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'gobart'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install gobart
22
+
23
+ ## Usage
24
+
25
+ To use the program:
26
+
27
+ 1. Install the gem.
28
+ 2. Type "gobart" to start the program.
29
+ 3. Enter the 4 letter station code for the station you want to get information on.
30
+ 4. Enter "i" if you want more information about the station.
31
+ 5. Optional: you can check other stations. Your search history for the session is saved and displayed for your convenience.
32
+
33
+ ## Development
34
+
35
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
36
+
37
+ 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`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
38
+
39
+ ## Contributing
40
+
41
+ Bug reports and pull requests are welcome on GitHub at https://github.com/bentonwong/gobart. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
42
+
43
+
44
+ ## License
45
+
46
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "gobart"
5
+ require "pry"
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ # (If you use this, don't forget to add pry to your Gemfile!)
11
+ # require "pry"
12
+ # Pry.start
13
+
14
+ require "irb"
15
+ IRB.start(__FILE__)
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+ require_relative "../lib/gobart.rb"
3
+
4
+ Controller.new.run
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,36 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'gobart/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "gobart"
8
+ spec.version = Gobart::VERSION
9
+ spec.authors = ["Benton Wong"]
10
+ spec.email = ["bentonwong@gmail.com"]
11
+
12
+ spec.summary = %q{Real time BART.gov departure information from CLI interface.}
13
+ spec.description = %q{This gem will provide a simple and quick way to get real time departures and individual station information from a CLI interface for every station in the Bay Area Rapid Transit (BART) system.}
14
+ spec.homepage = "https://github.com/bentonwong/gobart"
15
+ spec.license = "MIT"
16
+
17
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
19
+ if spec.respond_to?(:metadata)
20
+ spec.metadata['allowed_push_host'] = "https://rubygems.org"
21
+ else
22
+ raise "RubyGems 2.0 or newer is required to protect against " \
23
+ "public gem pushes."
24
+ end
25
+
26
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
27
+ f.match(%r{^(test|spec|features)/})
28
+ end
29
+ #spec.bindir = "exe"
30
+ spec.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
31
+ spec.require_paths = ["lib"]
32
+
33
+ spec.add_development_dependency "bundler", "~> 1.14"
34
+ spec.add_development_dependency "rake", "~> 10.0"
35
+ spec.add_development_dependency "rspec", "~> 3.0"
36
+ end
@@ -0,0 +1,4 @@
1
+ require_relative "./gobart/version"
2
+ require_relative "./gobart/controller"
3
+ require_relative "./gobart/station"
4
+ require_relative "./gobart/scraper"
@@ -0,0 +1,174 @@
1
+ require_relative "../gobart/scraper.rb"
2
+ require_relative "../gobart/station.rb"
3
+ require 'nokogiri'
4
+ require 'pry'
5
+
6
+ class Controller
7
+
8
+ attr_accessor :name, :advisories, :station_instance
9
+
10
+ STATIONS = [{:code => "12th", :station => "12th St. Oakland City Center"},
11
+ {:code => "16th", :station => "16th St. Mission (SF)"},
12
+ {:code => "19th", :station => "19th St. Oakland"},
13
+ {:code => "24th", :station => "24th St. Mission (SF)"},
14
+ {:code => "ashb", :station => "Ashby (Berkeley)"},
15
+ {:code => "balb", :station => "Balboa Park (SF)"},
16
+ {:code => "bayf", :station => "Bay Fair (San Leandro)"},
17
+ {:code => "cast", :station => "Castro Valley"},
18
+ {:code => "civc", :station => "Civic Center (SF)"},
19
+ {:code => "cols", :station => "Coliseum"},
20
+ {:code => "colm", :station => "Colma"},
21
+ {:code => "conc", :station => "Concord"},
22
+ {:code => "daly", :station => "Daly City"},
23
+ {:code => "dbrk", :station => "Downtown Berkeley"},
24
+ {:code => "dubl", :station => "Dublin/Pleasanton"},
25
+ {:code => "deln", :station => "El Cerrito del Norte"},
26
+ {:code => "plza", :station => "El Cerrito Plaza"},
27
+ {:code => "embr", :station => "Embarcadero (SF)"},
28
+ {:code => "frmt", :station => "Fremont"},
29
+ {:code => "ftvl", :station => "Fruitvale (Oakland)"},
30
+ {:code => "glen", :station => "Glen Park (SF)"},
31
+ {:code => "hayw", :station => "Hayward"},
32
+ {:code => "lafy", :station => "Lafayette"},
33
+ {:code => "lake", :station => "Lake Merritt (Oakland)"},
34
+ {:code => "mcar", :station => "MacArthur (Oakland)"},
35
+ {:code => "mlbr", :station => "Millbrae"},
36
+ {:code => "mont", :station => "Montgomery St. (SF)"},
37
+ {:code => "nbrk", :station => "North Berkeley"},
38
+ {:code => "ncon", :station => "North Concord/Martinez"},
39
+ {:code => "oakl", :station => "Oakland Int'l Airport"},
40
+ {:code => "orin", :station => "Orinda"},
41
+ {:code => "pitt", :station => "Pittsburg/Bay Point"},
42
+ {:code => "phil", :station => "Pleasant Hill"},
43
+ {:code => "powl", :station => "Powell St. (SF)"},
44
+ {:code => "rich", :station => "Richmond"},
45
+ {:code => "rock", :station => "Rockridge (Oakland)"},
46
+ {:code => "sbrn", :station => "San Bruno"},
47
+ {:code => "sfia", :station => "San Francisco Int'l Airport"},
48
+ {:code => "sanl", :station => "San Leandro"},
49
+ {:code => "shay", :station => "South Hayward"},
50
+ {:code => "ssan", :station => "South San Francisco"},
51
+ {:code => "ucty", :station => "Union City"},
52
+ {:code => "warm", :station => "Warm Springs/South Fremont"},
53
+ {:code => "wcrk", :station => "Walnut Creek"},
54
+ {:code => "wdub", :station => "West Dublin"},
55
+ {:code => "woak", :station => "West Oakland"}]
56
+
57
+ def display_stations #displays stations and codes upon request by user
58
+ STATIONS.each do |info|
59
+ puts "#{info[:station]} (#{info[:code]})"
60
+ end
61
+ end
62
+
63
+ #--------------------------------------------------------
64
+ def welcome #provides a nice welcome message with the current time.
65
+ puts "\nReal Time BART.gov Train Departures"
66
+ puts "\nCurrent time is #{Time.now}"
67
+ end
68
+ #--------------------------------------------------------
69
+ def get_input #returns valid BART station code; for complete list, go to http://api.bart.gov/docs/overview/abbrev.aspx
70
+ if !Station.all.empty?
71
+ print "\n(Recent searches: #{Station.all.collect {|x| x.name}})\n"
72
+ end
73
+
74
+ valid_station = false #sets the flag for the loop below
75
+
76
+ while valid_station == false #checks to make sure the user is entering a valid station
77
+ puts "\nEnter departure station code (e.g. \'woak\' for West Oakland) for real time departure information (type 'list' for codes):"
78
+ station = gets.strip.downcase
79
+ if station == "list"
80
+ display_stations
81
+ elsif STATIONS.detect {|x| x[:code] == station} #validates response using chart above
82
+ valid_station = true
83
+ else
84
+ puts "\n ALERT! Invalid station code -> try again"
85
+ end
86
+ end
87
+ station #returns the station value
88
+ end
89
+ #-----------------------------------------------------------
90
+ def handle_request #controls the fulfillment of the query; because the fulfillment process is complex, this method was written to simplify and better manage the calls to the various processes.
91
+ done = false
92
+ while done == false
93
+ station = get_input
94
+ process_request(station)
95
+ display_results(station)
96
+ done = check_if_done
97
+ end
98
+ end
99
+
100
+ def process_request(station) #determines if the station request already has an instance; if it does, it does not create another one. regardless of the outcome, a call is made to the station class to get updates from the BART api
101
+ if !Station.all.detect {|x| x.instance_variable_get("@name") == station}
102
+ @station_instance = Station.new(station) #creates a new station instance if it does not already exist in the Station.all
103
+ else
104
+ @station_instance = Station.all.detect {|x| x.instance_variable_get("@name") == station}
105
+ end
106
+ station_instance.call(station)
107
+ end
108
+
109
+ def converter(status_data) #converts the status data into a more user friendly, easier to read format
110
+ status_data.each do |x|
111
+ puts ">>Destination: #{x[:destination]} (#{x[:abbreviation]})" #displays destination info
112
+
113
+ combined_array = x[:arrivals].zip(x[:cars]) #combines the arrivals and cars arrays so they can be displayed together below
114
+ combined_array.each do |x|
115
+ puts "#{x[0]} min (#{x[1]} cars)" #displays the arrivals and cars information
116
+ end
117
+ end
118
+ end
119
+
120
+ def display_results(station) #displays real time station data returned from the station instance
121
+ puts "\n#{station.upcase} departures as of #{Time.now}\n"
122
+ converter(station_instance.status)
123
+ puts "\n*** Station Advisory ***\n"
124
+ puts station_instance.advisories
125
+ puts "\nThere are #{Scraper.scrape_train_count} trains running systemwide at this time.\n"
126
+ puts ""
127
+ puts "Data provided by BART.gov. Real time train departure data available at https://www.bart.gov/schedules/eta."
128
+ end
129
+
130
+ def check_if_done #checks if the user is done with this session and checks for valid responses
131
+ input_validator = false
132
+ info_request = false
133
+ while input_validator == false && info_request == false
134
+ puts "\nCheck another station? [\'y\'/\'n\' or \'i\' for above station information]"
135
+
136
+ check = gets.strip.downcase
137
+ if check == 'y' || check == 'n'
138
+ input_validator = true
139
+ elsif check == 'i'
140
+ puts "\n#{station_instance.info}"
141
+ done = false
142
+ else
143
+ puts "\nALERT! Invalid response --> type \'y\'/\'n\' or \'i\'"
144
+ end
145
+ end
146
+
147
+ if check == 'y'
148
+ done = false
149
+ else
150
+ done = true
151
+ end
152
+ done
153
+ end
154
+
155
+ #----------------------------------------------------------------------
156
+
157
+ def goodbye #prints search history for the session and leaves user with pleasant wishes
158
+
159
+ if !Station.all.empty?
160
+ print "\n(Search history for this session: #{Station.all.collect {|x| x.name}})\n"
161
+ end
162
+
163
+ puts "\nHave a safe and pleasant journey!\n"
164
+ end
165
+
166
+ #-----------------------------------------------------------------------
167
+
168
+ def run #entry point into the controller from the bin file
169
+ welcome
170
+ handle_request
171
+ goodbye
172
+ end
173
+
174
+ end
@@ -0,0 +1,57 @@
1
+ require "pry"
2
+ require "open-uri"
3
+ require "Nokogiri"
4
+
5
+ class Scraper
6
+
7
+ KEY = "ZKZB-PQE6-92VT-DWE9" #BART.gov API Developer Key required to access its APIs
8
+
9
+ def self.scrape_api(station_code) #used by self.get_line_destinations & self.get_train_status
10
+ edt_api = "http://api.bart.gov/api/etd.aspx?cmd=etd&orig=#{station_code}&key=#{KEY}"
11
+ doc = Nokogiri::HTML(open(edt_api))
12
+ end
13
+
14
+ def self.get_line_destinations(station_code) #gets the real time updates
15
+ doc = Scraper.scrape_api(station_code)
16
+ doc.css("station etd").css("abbreviation").collect {|x| x.text}
17
+ end
18
+
19
+ def self.get_train_status(station_code) #gets real time departure times
20
+ doc = Scraper.scrape_api(station_code)
21
+ output = doc.css('station etd').map do |etd|
22
+ {
23
+ destination: etd.css('destination').text,
24
+ abbreviation: etd.css('abbreviation').text,
25
+ arrivals: reformat(etd.css('estimate').map { |e| e.css('minutes').text.to_i }),
26
+ cars: (etd.css('estimate').map { |e| e.css('length').text.to_i })
27
+ }
28
+ end
29
+ output
30
+ end
31
+
32
+ def self.reformat(eta) #reformats the minutes data to show 'now' when it is 0
33
+ eta.map do |time|
34
+ time == 0 ? 'now' : "#{time}"
35
+ end
36
+ end
37
+
38
+ def self.get_station_info(station_code) #get station info as provided by BART
39
+ stnt_info_api = "http://api.bart.gov/api/stn.aspx?cmd=stnaccess&orig=#{station_code}&l=1&key=#{KEY}"
40
+ doc = Nokogiri::HTML(open(stnt_info_api))
41
+ output = doc.css("//stations").text
42
+ output
43
+ end
44
+
45
+ def self.scrape_advisory(station_code) #gets system advisories
46
+ adv_api = "http://api.bart.gov/api/bsa.aspx?cmd=bsa&orig=#{station_code}&key=#{KEY}"
47
+ doc = Nokogiri::XML(open(adv_api))
48
+ advisories = doc.search('description').children.find{|e| e.cdata?}.text
49
+ end
50
+
51
+ def self.scrape_train_count #gets the current count of the trains currently running in the system
52
+ tc_api = "http://api.bart.gov/api/bsa.aspx?cmd=count&key=#{KEY}"
53
+ doc = Nokogiri::HTML(open(tc_api))
54
+ count = doc.css("traincount").text
55
+ end
56
+
57
+ end
@@ -0,0 +1,34 @@
1
+ require 'pry'
2
+
3
+ class Station
4
+
5
+ attr_accessor :name, :info, :status, :advisories
6
+
7
+ @@all =[]
8
+
9
+ def initialize(station) #creates a new instance of a station
10
+ @name = station
11
+ @info = Scraper.get_station_info(station)
12
+ @status = {}
13
+ @advisories = ""
14
+ @@all << self
15
+ end
16
+
17
+ def call(station) #initiates instance methods after initialization of the instance
18
+ get_train_status(station)
19
+ update_advisories(station)
20
+ end
21
+
22
+ def get_train_status(station) #triggers a call to the BART api for train status and returns that data
23
+ @status = Scraper.get_train_status(station)
24
+ end
25
+
26
+ def update_advisories(station) #triggers a call to the BART api for system advisories and returns that data
27
+ @advisories = Scraper.scrape_advisory(station)
28
+ end
29
+
30
+ def self.all #displays all the created instance for stations which is used to display search history; future development could include using this to suggest to the user nearby stations to search
31
+ @@all
32
+ end
33
+
34
+ end
@@ -0,0 +1,3 @@
1
+ module Gobart
2
+ VERSION = "0.1.0"
3
+ end
metadata ADDED
@@ -0,0 +1,110 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: gobart
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Benton Wong
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-03-04 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.14'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.14'
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.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ description: This gem will provide a simple and quick way to get real time departures
56
+ and individual station information from a CLI interface for every station in the
57
+ Bay Area Rapid Transit (BART) system.
58
+ email:
59
+ - bentonwong@gmail.com
60
+ executables:
61
+ - console
62
+ - gobart
63
+ - setup
64
+ extensions: []
65
+ extra_rdoc_files: []
66
+ files:
67
+ - ".DS_Store"
68
+ - ".gitignore"
69
+ - ".rspec"
70
+ - ".travis.yml"
71
+ - CODE_OF_CONDUCT.md
72
+ - Gemfile
73
+ - LICENSE.txt
74
+ - README.md
75
+ - Rakefile
76
+ - bin/console
77
+ - bin/gobart
78
+ - bin/setup
79
+ - gobart.gemspec
80
+ - lib/gobart.rb
81
+ - lib/gobart/controller.rb
82
+ - lib/gobart/scraper.rb
83
+ - lib/gobart/station.rb
84
+ - lib/gobart/version.rb
85
+ homepage: https://github.com/bentonwong/gobart
86
+ licenses:
87
+ - MIT
88
+ metadata:
89
+ allowed_push_host: https://rubygems.org
90
+ post_install_message:
91
+ rdoc_options: []
92
+ require_paths:
93
+ - lib
94
+ required_ruby_version: !ruby/object:Gem::Requirement
95
+ requirements:
96
+ - - ">="
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
99
+ required_rubygems_version: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ requirements: []
105
+ rubyforge_project:
106
+ rubygems_version: 2.6.10
107
+ signing_key:
108
+ specification_version: 4
109
+ summary: Real time BART.gov departure information from CLI interface.
110
+ test_files: []