sjc_bus_schedule 0.0.1

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
+ SHA256:
3
+ metadata.gz: 7047219bcc82a24110e119d2b44c738b7999a971648a8e6e498d1bdcd2b66223
4
+ data.tar.gz: 07facb702dcd9971385f8786dd26e7b83b6c2c99758298005cb1c91e8cf6247c
5
+ SHA512:
6
+ metadata.gz: 4d29a1041668d353aa77d01740086c8955e7f1f8aff751dbb33214d1d172218bc07d25f086b4dd19a58f5e6d3da188868aedb2fc4191fa3d02df1701d2dd97d6
7
+ data.tar.gz: f0b477f71877a1ff1f37a817cafe3bd2ed3a94fa55d8d4a69f7926f67b4f3297e31282ebb7f84fe5b90bc5ae8cbe1e2031780ef9e3db7ca6f1c7dd860e690a11
data/.gitignore ADDED
@@ -0,0 +1,15 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /spec/fixtures
9
+ /tmp/
10
+
11
+ # rspec failure tracking
12
+ .rspec_status
13
+
14
+ *.swp
15
+ .byebug_history
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.travis.yml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ sudo: false
3
+ language: ruby
4
+ cache: bundler
5
+ rvm:
6
+ - 2.6.3
7
+ before_install: gem install bundler -v 2.0.2
data/CHANGELOG.md ADDED
@@ -0,0 +1,9 @@
1
+ # CHANGELOG
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ ## [0.0.1] - 2019-07-17
6
+ ### Added
7
+ - Method to get buses schedule.
8
+
9
+ [0.0.1]: https://github.com/matheussilvasantos/sjc_bus_schedule/releases/tag/v0.0.1
@@ -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 oliveira.matheussilva@outlook.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,4 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in sjc_bus_schedule.gemspec
4
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,63 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ sjc_bus_schedule (0.0.1)
5
+ httparty (~> 0.17.0)
6
+ nokogiri (~> 1.10.3)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ addressable (2.6.0)
12
+ public_suffix (>= 2.0.2, < 4.0)
13
+ byebug (11.0.1)
14
+ crack (0.4.3)
15
+ safe_yaml (~> 1.0.0)
16
+ diff-lcs (1.3)
17
+ hashdiff (1.0.0)
18
+ httparty (0.17.0)
19
+ mime-types (~> 3.0)
20
+ multi_xml (>= 0.5.2)
21
+ mime-types (3.2.2)
22
+ mime-types-data (~> 3.2015)
23
+ mime-types-data (3.2019.0331)
24
+ mini_portile2 (2.4.0)
25
+ multi_xml (0.6.0)
26
+ nokogiri (1.10.3)
27
+ mini_portile2 (~> 2.4.0)
28
+ public_suffix (3.1.1)
29
+ rake (10.5.0)
30
+ rspec (3.8.0)
31
+ rspec-core (~> 3.8.0)
32
+ rspec-expectations (~> 3.8.0)
33
+ rspec-mocks (~> 3.8.0)
34
+ rspec-core (3.8.0)
35
+ rspec-support (~> 3.8.0)
36
+ rspec-expectations (3.8.4)
37
+ diff-lcs (>= 1.2.0, < 2.0)
38
+ rspec-support (~> 3.8.0)
39
+ rspec-mocks (3.8.1)
40
+ diff-lcs (>= 1.2.0, < 2.0)
41
+ rspec-support (~> 3.8.0)
42
+ rspec-support (3.8.2)
43
+ safe_yaml (1.0.5)
44
+ vcr (5.0.0)
45
+ webmock (3.6.0)
46
+ addressable (>= 2.3.6)
47
+ crack (>= 0.3.2)
48
+ hashdiff (>= 0.4.0, < 2.0.0)
49
+
50
+ PLATFORMS
51
+ ruby
52
+
53
+ DEPENDENCIES
54
+ bundler (~> 2.0)
55
+ byebug (~> 11.0.1)
56
+ rake (~> 10.0)
57
+ rspec (~> 3.0)
58
+ sjc_bus_schedule!
59
+ vcr (~> 5.0.0)
60
+ webmock (~> 3.6.0)
61
+
62
+ BUNDLED WITH
63
+ 2.0.2
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019 Matheus Silva Santos de Oliveira
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,81 @@
1
+ # SJCBusSchedule
2
+
3
+ Crawler that gets the bus schedules from the official website.
4
+
5
+
6
+ ## Installation
7
+
8
+ Add this line to your application's Gemfile:
9
+
10
+ ```ruby
11
+ gem 'sjc_bus_schedule'
12
+ ```
13
+
14
+ And then execute:
15
+
16
+ $ bundle
17
+
18
+ Or install it yourself as:
19
+
20
+ $ gem install sjc_bus_schedule
21
+
22
+ ## Usage
23
+
24
+ ### Searching for a bus
25
+
26
+ ```ruby
27
+ SJCBusSchedule.find_by(number: 101)
28
+ # => [#<SJCBusSchedule::Bus:0x0000559b884e35a8 @number="101", @name="REPRESA / TERMINAL CENTRAL (RADIAL) O.S.O 41", ...]
29
+
30
+ SJCBusSchedule.find_by(name: "Represa")
31
+ # => [#<SJCBusSchedule::Bus:0x0000559b884e35a8 @number="101", @name="REPRESA / TERMINAL CENTRAL (RADIAL) O.S.O 41", ...]
32
+
33
+ SJCBusSchedule.find_by(itinerary: "São João")
34
+ # => [#<SJCBusSchedule::Bus:0x000055f98013a0e0 @number="111", @name="VALE DOS PINHEIROS / MONTE CASTELO (CIRCULAR NO MONTE CASTELO) O.S.O. 31", ...]
35
+ ```
36
+
37
+ ### Getting all buses
38
+
39
+ ```ruby
40
+ SJCBusSchedule.all
41
+ # => [#<SJCBusSchedule::Bus:0x0000559b884e35a8 ...]
42
+ ```
43
+
44
+ ### Models
45
+
46
+ #### SJCBusSchedule::Bus
47
+
48
+ ```ruby
49
+ bus.number # => "101"
50
+ bus.name # => "101"
51
+ bus.direction # => "REPRESA / TERMINAL CENTRAL"
52
+ bus.itinerary # => ["BAIRRO RIO DAS COBRAS", "ESTR. JUCA CARVALHO", ...]
53
+ bus.note # => "-"
54
+ bus.schedules # => [#<SJCBusSchedule::Schedule:0x00005592d1dde0a0 @period="De segunda-feira a sexta-feira", ...]
55
+ ```
56
+
57
+ #### SJCBusSchedule::Schedule
58
+
59
+ ```ruby
60
+ schedule.period # => "De segunda-feira a sexta-feira"
61
+ schedule.hours # => ["05:20(1)", "09:50(3)", "14:15(3)", "18:45(6)", ...]
62
+ schedule.references # => ["(1) SANTO AGOSTINHO DE CIMA - VILA PAIVA", "(2) GUIRRA - PAÇO MUNICIPAL", ...]
63
+ ```
64
+
65
+ ## Development
66
+
67
+ 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.
68
+
69
+ 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).
70
+
71
+ ## Contributing
72
+
73
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/sjc_bus_schedule. 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.
74
+
75
+ ## License
76
+
77
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
78
+
79
+ ## Code of Conduct
80
+
81
+ Everyone interacting in the SjcBusSchedule project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/sjc_bus_schedule/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -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
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "sjc_bus_schedule"
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(__FILE__)
data/bin/setup ADDED
@@ -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,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ class SJCBusSchedule::Bus
4
+ attr_reader :number, :name, :direction, :itinerary, :note, :schedules
5
+
6
+ def initialize(number:, name:, direction:, itinerary:, note:, schedules:)
7
+ @number = number
8
+ @name = name
9
+ @direction = direction
10
+ @itinerary = itinerary
11
+ @note = note
12
+ @schedules = schedules
13
+ end
14
+ end
@@ -0,0 +1,72 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "sjc_bus_schedule/parser/parser"
4
+ require "sjc_bus_schedule/bus"
5
+ require "sjc_bus_schedule/schedule"
6
+
7
+ require "httparty"
8
+ require "nokogiri"
9
+
10
+ class SJCBusSchedule::Crawler
11
+ BASE_URL = "http://servicos2.sjc.sp.gov.br/servicos/horario-e-itinerario.aspx"
12
+ FILTERS = { number: 0, name: 1, itinerary: 2 }.freeze
13
+
14
+ def initialize(http: HTTParty, query: { number: "" })
15
+ @http = http
16
+ validate_filter(query.keys.first)
17
+ set_url(*query.first)
18
+ end
19
+
20
+ def process
21
+ response = HTTParty.get(@url)
22
+
23
+ doc = Nokogiri::HTML(response)
24
+
25
+ schedule_links(doc).map do |schedule_link|
26
+ bus_url = "http://servicos2.sjc.sp.gov.br#{schedule_link["href"]}"
27
+
28
+ response = HTTParty.get(bus_url)
29
+ doc = Nokogiri::HTML(response)
30
+
31
+ bus_parser = SJCBusSchedule::Parser::Bus.new(doc: doc)
32
+ schedules_parser = SJCBusSchedule::Parser::Schedules.new(doc: doc)
33
+
34
+ build_buses(bus_parser: bus_parser, schedules_parser: schedules_parser)
35
+ end
36
+ end
37
+
38
+ private
39
+
40
+ def validate_filter(filter)
41
+ raise ArgumentError, "valid filters: number, name, and itinerary" if FILTERS[filter].nil?
42
+ end
43
+
44
+ def set_url(filter, query)
45
+ @url = "#{BASE_URL}?acao=p&opcao=#{FILTERS[filter]}&txt=#{URI.encode(query.to_s)}"
46
+ end
47
+
48
+ def schedule_links(doc)
49
+ doc.css("a[href*='/servicos/horario-e-itinerario.aspx?acao=d&id_linha=']")
50
+ end
51
+
52
+ def build_buses(bus_parser:, schedules_parser:)
53
+ SJCBusSchedule::Bus.new(
54
+ number: bus_parser.number,
55
+ name: bus_parser.name,
56
+ direction: bus_parser.direction,
57
+ itinerary: bus_parser.itinerary,
58
+ note: bus_parser.note,
59
+ schedules: build_schedules(schedules_parser: schedules_parser)
60
+ )
61
+ end
62
+
63
+ def build_schedules(schedules_parser:)
64
+ schedules_parser.schedules.map do |schedule|
65
+ SJCBusSchedule::Schedule.new(
66
+ period: schedule[:period],
67
+ hours: schedule[:hours],
68
+ references: schedules_parser.references
69
+ )
70
+ end
71
+ end
72
+ end
@@ -0,0 +1,57 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "nokogiri"
4
+
5
+ module SJCBusSchedule::Parser
6
+ class Bus
7
+ def initialize(doc:)
8
+ @doc = doc
9
+ end
10
+
11
+ def number
12
+ @number ||= @doc.css("span[id*=NumeroLinha]").first.text.strip
13
+ end
14
+
15
+ def name
16
+ @name ||= @doc.css("span[id*=NomeLinha]").first.text.strip
17
+ end
18
+
19
+ def direction
20
+ @direction ||= @doc.css("span[id*=Sentido]").first.text.strip
21
+ end
22
+
23
+ def itinerary
24
+ @itinerary ||= @doc.css("span[id*=Itinerario]").first.text.split(/[-–]/).map(&:strip)
25
+ end
26
+
27
+ def note
28
+ @note ||= @doc.css("span[id*=Observacao]").first.text.strip
29
+ end
30
+ end
31
+
32
+ class Schedules
33
+ def initialize(doc:)
34
+ @doc = doc
35
+ end
36
+
37
+ def schedules
38
+ @schedules ||= @doc.css("span[id*=Resultado] > table").map do |schedule|
39
+ { period: period(schedule), hours: hours(schedule) }
40
+ end
41
+ end
42
+
43
+ def references
44
+ @references ||= @doc.css("span[id*=Resultado] .textosm").children.map(&:text).reject { |it| it.empty? }
45
+ end
46
+
47
+ private
48
+
49
+ def period(schedule)
50
+ schedule.css("table tr:first-of-type td").first.text.strip
51
+ end
52
+
53
+ def hours(schedule)
54
+ schedule.css("table tr:nth-of-type(n+4) td").map(&:text).reject { |it| it.empty? }
55
+ end
56
+ end
57
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ class SJCBusSchedule::Schedule
4
+ attr_reader :period, :hours, :references
5
+
6
+ def initialize(period:, hours:, references:)
7
+ @period = period
8
+ @hours = hours
9
+ @references = references
10
+ end
11
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module SJCBusSchedule
4
+ VERSION = "0.0.1"
5
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "sjc_bus_schedule/version"
4
+ require "sjc_bus_schedule/crawler"
5
+
6
+ module SJCBusSchedule
7
+ def self.find_by(query)
8
+ Crawler.new(query: query).process
9
+ end
10
+
11
+ def self.all
12
+ Crawler.new.process
13
+ end
14
+ end
@@ -0,0 +1,38 @@
1
+ lib = File.expand_path("lib", __dir__)
2
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
+ require "sjc_bus_schedule/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "sjc_bus_schedule"
7
+ spec.version = SJCBusSchedule::VERSION
8
+ spec.authors = ["Matheus Silva Santos de Oliveira"]
9
+ spec.email = ["oliveira.matheussilvasantos@gmail.com"]
10
+
11
+ spec.summary = %q{Extract bus schedule from SJC website}
12
+ spec.description = %q{Makes life easy for who wants to get the bus schedule from SJC website}
13
+ spec.homepage = "https://github.com/matheussilvasantos/sjc_bus_schedule"
14
+ spec.license = "MIT"
15
+
16
+ spec.metadata["homepage_uri"] = spec.homepage
17
+ spec.metadata["source_code_uri"] = "https://github.com/matheussilvasantos/sjc_bus_schedule"
18
+ spec.metadata["changelog_uri"] = "https://github.com/matheussilvasantos/sjc_bus_schedule/blob/master/CHANGELOG.md"
19
+
20
+ # Specify which files should be added to the gem when it is released.
21
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
22
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
23
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
24
+ end
25
+ spec.bindir = "exe"
26
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
27
+ spec.require_paths = ["lib"]
28
+
29
+ spec.add_development_dependency "bundler", "~> 2.0"
30
+ spec.add_development_dependency "rake", "~> 10.0"
31
+ spec.add_development_dependency "rspec", "~> 3.0"
32
+ spec.add_development_dependency "vcr", "~> 5.0.0"
33
+ spec.add_development_dependency "webmock", "~> 3.6.0"
34
+ spec.add_development_dependency "byebug", "~> 11.0.1"
35
+
36
+ spec.add_dependency "httparty", "~> 0.17.0"
37
+ spec.add_dependency "nokogiri", "~> 1.10.3"
38
+ end
metadata ADDED
@@ -0,0 +1,177 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: sjc_bus_schedule
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Matheus Silva Santos de Oliveira
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2019-07-17 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: '2.0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2.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.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
+ - !ruby/object:Gem::Dependency
56
+ name: vcr
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 5.0.0
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 5.0.0
69
+ - !ruby/object:Gem::Dependency
70
+ name: webmock
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 3.6.0
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 3.6.0
83
+ - !ruby/object:Gem::Dependency
84
+ name: byebug
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 11.0.1
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 11.0.1
97
+ - !ruby/object:Gem::Dependency
98
+ name: httparty
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 0.17.0
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 0.17.0
111
+ - !ruby/object:Gem::Dependency
112
+ name: nokogiri
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: 1.10.3
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: 1.10.3
125
+ description: Makes life easy for who wants to get the bus schedule from SJC website
126
+ email:
127
+ - oliveira.matheussilvasantos@gmail.com
128
+ executables: []
129
+ extensions: []
130
+ extra_rdoc_files: []
131
+ files:
132
+ - ".gitignore"
133
+ - ".rspec"
134
+ - ".travis.yml"
135
+ - CHANGELOG.md
136
+ - CODE_OF_CONDUCT.md
137
+ - Gemfile
138
+ - Gemfile.lock
139
+ - LICENSE.txt
140
+ - README.md
141
+ - Rakefile
142
+ - bin/console
143
+ - bin/setup
144
+ - lib/sjc_bus_schedule.rb
145
+ - lib/sjc_bus_schedule/bus.rb
146
+ - lib/sjc_bus_schedule/crawler.rb
147
+ - lib/sjc_bus_schedule/parser/parser.rb
148
+ - lib/sjc_bus_schedule/schedule.rb
149
+ - lib/sjc_bus_schedule/version.rb
150
+ - sjc_bus_schedule.gemspec
151
+ homepage: https://github.com/matheussilvasantos/sjc_bus_schedule
152
+ licenses:
153
+ - MIT
154
+ metadata:
155
+ homepage_uri: https://github.com/matheussilvasantos/sjc_bus_schedule
156
+ source_code_uri: https://github.com/matheussilvasantos/sjc_bus_schedule
157
+ changelog_uri: https://github.com/matheussilvasantos/sjc_bus_schedule/blob/master/CHANGELOG.md
158
+ post_install_message:
159
+ rdoc_options: []
160
+ require_paths:
161
+ - lib
162
+ required_ruby_version: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ required_rubygems_version: !ruby/object:Gem::Requirement
168
+ requirements:
169
+ - - ">="
170
+ - !ruby/object:Gem::Version
171
+ version: '0'
172
+ requirements: []
173
+ rubygems_version: 3.0.3
174
+ signing_key:
175
+ specification_version: 4
176
+ summary: Extract bus schedule from SJC website
177
+ test_files: []