nyc_today 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +13 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +38 -0
- data/Rakefile +6 -0
- data/bin/console +11 -0
- data/bin/nyc_today +6 -0
- data/bin/setup +8 -0
- data/lib/nyc_today.rb +10 -0
- data/lib/nyc_today/cli.rb +211 -0
- data/lib/nyc_today/event.rb +69 -0
- data/lib/nyc_today/scraper.rb +48 -0
- data/lib/nyc_today/version.rb +3 -0
- data/nyc_today.gemspec +29 -0
- data/spec.md +14 -0
- metadata +135 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: db6d1c4c4c9b8e53afa83d4912959008d7af6a33
|
4
|
+
data.tar.gz: 05031a167b79bb14473f4355c60f937eca32b2e6
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 189a925c22166a895cb62dd1150ff1e18f81c2e24e05745ecfd43cda4f18184b7fdd002ada244db043d7889ada2f149f4df5d5b19d418467764960522c88c652
|
7
|
+
data.tar.gz: 5e521a1fc3dd4cd9f9343293a3a8b776fff347e8b06ae99fda7e502c5e486f69e917df773facc97e4519d1fdf75dfed81b20ee7d75a10d81385ddee751aae427
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -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, ethnicity, 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
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 vicision
|
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,38 @@
|
|
1
|
+
# NYC Today
|
2
|
+
|
3
|
+
NYC Today is a Ruby Gem that provides a CLI for navigating events from [Brooklyn Vegan's event listings](http://nyc-shows.brooklynvegan.com/), allowing users to select an event category, browse a list of events and details in that category, and view more information about a chosen event.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'nyc_today'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install nyc_today
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
TODO: Write usage instructions here
|
24
|
+
|
25
|
+
## Development
|
26
|
+
|
27
|
+
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.
|
28
|
+
|
29
|
+
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).
|
30
|
+
|
31
|
+
## Contributing
|
32
|
+
|
33
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/vicision/nyc-today-cli-app. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
|
34
|
+
|
35
|
+
|
36
|
+
## License
|
37
|
+
|
38
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "nyc_today"
|
5
|
+
require "pry"
|
6
|
+
Pry.start
|
7
|
+
|
8
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
9
|
+
# with your gem easier. You can also use a different console, if you like.
|
10
|
+
|
11
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
data/bin/nyc_today
ADDED
data/bin/setup
ADDED
data/lib/nyc_today.rb
ADDED
@@ -0,0 +1,211 @@
|
|
1
|
+
class NycToday::CLI
|
2
|
+
|
3
|
+
@@set_no = 0
|
4
|
+
@@type_choice = 0
|
5
|
+
|
6
|
+
def call
|
7
|
+
puts welcome
|
8
|
+
NycToday::Scraper.scrape_events
|
9
|
+
list_event_types
|
10
|
+
end
|
11
|
+
|
12
|
+
def welcome
|
13
|
+
system "clear"
|
14
|
+
<<~HEREDOC
|
15
|
+
|
16
|
+
Welcome to NYC Today-- your guide to today's events in and around New York City!
|
17
|
+
|
18
|
+
Please wait a few seconds while I gather today's events.
|
19
|
+
|
20
|
+
For the best experience, maximize the terminal.
|
21
|
+
|
22
|
+
HEREDOC
|
23
|
+
end
|
24
|
+
|
25
|
+
def list_event_types
|
26
|
+
system "clear"
|
27
|
+
puts "\nHere are today's event categories:\n\n"
|
28
|
+
type_entry
|
29
|
+
puts menu_bottom
|
30
|
+
choose_type
|
31
|
+
list_events
|
32
|
+
end
|
33
|
+
|
34
|
+
def menu_bottom
|
35
|
+
<<~HEREDOC
|
36
|
+
|
37
|
+
-------------------------------------------------------------
|
38
|
+
* Enter a number for the type of event you would like to see.
|
39
|
+
* Type 'exit' to leave the program.
|
40
|
+
HEREDOC
|
41
|
+
end
|
42
|
+
|
43
|
+
def type_entry
|
44
|
+
NycToday::Event.event_types.each.with_index(1) do |event_type, i|
|
45
|
+
puts "#{i.to_s.rjust(2," ")} | #{event_type}"
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
def choose_type
|
50
|
+
input = gets.strip
|
51
|
+
if input.to_i > 0 && input.to_i <= NycToday::Event.event_types.count
|
52
|
+
@@type_choice = input.to_i-1
|
53
|
+
elsif input.downcase == "exit"
|
54
|
+
goodbye
|
55
|
+
else
|
56
|
+
system "clear"
|
57
|
+
puts "I'm sorry, that is not an option. Please choose a number from the menu."
|
58
|
+
sleep 1
|
59
|
+
system "clear"
|
60
|
+
list_event_types
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
def list_events
|
65
|
+
system "clear"
|
66
|
+
page_count
|
67
|
+
category
|
68
|
+
if @@set_no+1 <= page_count
|
69
|
+
puts "\nHere's page #{@@set_no+1}/#{page_count} of today's #{category} events ordered by time:\n\n"
|
70
|
+
event_entry
|
71
|
+
else
|
72
|
+
end_of_list
|
73
|
+
end
|
74
|
+
selection
|
75
|
+
end
|
76
|
+
|
77
|
+
def page_count
|
78
|
+
NycToday::Event.event_sets(@@type_choice).count
|
79
|
+
end
|
80
|
+
|
81
|
+
def category
|
82
|
+
NycToday::Event.event_types[@@type_choice]
|
83
|
+
end
|
84
|
+
|
85
|
+
def event_entry
|
86
|
+
NycToday::Event.event_sets(@@type_choice)[@@set_no].each.with_index(1) do |event, i|
|
87
|
+
puts "#{i.to_s.rjust(3," ")} | #{event.name}"
|
88
|
+
puts " | #{event.time} at #{event.venue}\n\n"
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
92
|
+
def error
|
93
|
+
puts "I'm sorry, I didn't understand what you typed. Please try again."
|
94
|
+
sleep 1
|
95
|
+
system "clear"
|
96
|
+
end
|
97
|
+
|
98
|
+
def selection
|
99
|
+
puts more_events
|
100
|
+
input = gets.strip.downcase
|
101
|
+
if input == "" or input == " "
|
102
|
+
@@set_no += 1
|
103
|
+
list_events
|
104
|
+
elsif input.to_i > 0
|
105
|
+
event = NycToday::Event.sets[@@set_no][input.to_i-1]
|
106
|
+
NycToday::Scraper.scrape_event_page(event) unless event.event_info != nil
|
107
|
+
more_info(event)
|
108
|
+
elsif input == "menu"
|
109
|
+
reset_menu
|
110
|
+
elsif input == "back"
|
111
|
+
if @@set_no >= 1
|
112
|
+
@@set_no -= 1
|
113
|
+
list_events
|
114
|
+
else
|
115
|
+
reset_menu
|
116
|
+
end
|
117
|
+
puts
|
118
|
+
elsif input == "exit"
|
119
|
+
goodbye
|
120
|
+
else
|
121
|
+
system "clear"
|
122
|
+
error
|
123
|
+
sleep 2
|
124
|
+
list_events
|
125
|
+
end
|
126
|
+
end
|
127
|
+
|
128
|
+
def more_events
|
129
|
+
<<~HEREDOC
|
130
|
+
-------------------------------------------------------------------
|
131
|
+
* Enter the number of any event you'd like to know more about
|
132
|
+
* Press Enter for more events
|
133
|
+
* Enter 'menu' to return to the main menu
|
134
|
+
* Enter 'back' to go back or 'exit' to leave the program
|
135
|
+
HEREDOC
|
136
|
+
end
|
137
|
+
|
138
|
+
def more_info(event)
|
139
|
+
if event.event_info != nil || event.price != nil
|
140
|
+
system "clear"
|
141
|
+
puts "\n--------------------------------------------------------------------------------\n\n"
|
142
|
+
puts "Ticket info: #{event.price}\n\n" unless event.price == nil
|
143
|
+
puts wrap(event.event_info, 80) unless event.event_info == nil
|
144
|
+
else
|
145
|
+
system "clear"
|
146
|
+
puts "\nI'm sorry, there is no additional information about this event."
|
147
|
+
end
|
148
|
+
return_to_menu
|
149
|
+
end
|
150
|
+
|
151
|
+
def wrap(text, width=80)
|
152
|
+
paragraphs = text.split("\n")
|
153
|
+
wrapped = paragraphs.collect do |para|
|
154
|
+
para.gsub(/(.{1,#{width}})(\s+|\Z)/, "\\1\n")
|
155
|
+
end
|
156
|
+
wrapped
|
157
|
+
end
|
158
|
+
|
159
|
+
def return_to_menu
|
160
|
+
puts event_info_bottom
|
161
|
+
input = gets.strip.downcase
|
162
|
+
if input == "exit"
|
163
|
+
goodbye
|
164
|
+
else
|
165
|
+
system "clear"
|
166
|
+
list_events
|
167
|
+
end
|
168
|
+
end
|
169
|
+
|
170
|
+
def event_info_bottom
|
171
|
+
<<~HEREDOC
|
172
|
+
|
173
|
+
--------------------------------------------------------------------------------
|
174
|
+
* Press Enter to return to the list of events
|
175
|
+
* Type 'exit' to leave the program
|
176
|
+
HEREDOC
|
177
|
+
end
|
178
|
+
|
179
|
+
def end_of_list
|
180
|
+
puts "\nYou've reached the end of the #{category} events list. Would you like to see it again? (Y/n)"
|
181
|
+
input = gets.strip.downcase
|
182
|
+
if input == "y" || input == "yes"
|
183
|
+
@@set_no = 0
|
184
|
+
list_events
|
185
|
+
elsif input == "n" || input == "no"
|
186
|
+
puts "\nReturning to main menu..."
|
187
|
+
sleep 1.25
|
188
|
+
reset_menu
|
189
|
+
else
|
190
|
+
error
|
191
|
+
end_of_list
|
192
|
+
end
|
193
|
+
end
|
194
|
+
|
195
|
+
def reset_menu
|
196
|
+
system "clear"
|
197
|
+
NycToday::Event.reset_sets
|
198
|
+
@@set_no = 0
|
199
|
+
@@type_choice = 0
|
200
|
+
list_event_types
|
201
|
+
end
|
202
|
+
|
203
|
+
def goodbye
|
204
|
+
system "clear"
|
205
|
+
puts "\nGood-bye! Come back tomorrow for a new list of events."
|
206
|
+
sleep 1.25
|
207
|
+
system "clear"
|
208
|
+
exit
|
209
|
+
end
|
210
|
+
|
211
|
+
end
|
@@ -0,0 +1,69 @@
|
|
1
|
+
class NycToday::Event
|
2
|
+
attr_accessor :name, :venue, :time, :time_stamp, :event_link, :event_info, :event_type, :price
|
3
|
+
|
4
|
+
@@all = []
|
5
|
+
@@sets = []
|
6
|
+
|
7
|
+
def initialize(hash)
|
8
|
+
hash.each do |key, value|
|
9
|
+
self.send("#{key}=", value)
|
10
|
+
end
|
11
|
+
@@all << self
|
12
|
+
end
|
13
|
+
|
14
|
+
def self.all
|
15
|
+
@@all
|
16
|
+
end
|
17
|
+
|
18
|
+
def self.sets
|
19
|
+
@@sets
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.reset_sets
|
23
|
+
sets.clear
|
24
|
+
end
|
25
|
+
|
26
|
+
def self.event_types
|
27
|
+
all.sort_by!{|e|e.event_type.length}.collect{|event|event.event_type}.uniq!
|
28
|
+
end
|
29
|
+
|
30
|
+
def self.reformat_types
|
31
|
+
all.each do |event|
|
32
|
+
if event.event_type.include?("Dj")
|
33
|
+
event.event_type.sub!("j", "J")
|
34
|
+
elsif event.event_type.include?("Food")
|
35
|
+
event.event_type.insert(4, ",").insert(10, " &")
|
36
|
+
elsif event.event_type.include?("Talks")
|
37
|
+
event.event_type = event.event_type.insert(8, " &")
|
38
|
+
elsif event.event_type.include?("Theatre")
|
39
|
+
event.event_type.insert(7, " &")
|
40
|
+
else
|
41
|
+
event.event_type
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
def self.event_sets(input)
|
47
|
+
choice = event_types[input]
|
48
|
+
event_group = []
|
49
|
+
all.each do |event|
|
50
|
+
event.event_type.downcase == choice.downcase ? event_group << event : nil
|
51
|
+
end
|
52
|
+
@@sets = event_group.sort_by!{|e|e.time_stamp}
|
53
|
+
sort_events
|
54
|
+
end
|
55
|
+
|
56
|
+
def self.midnight_fix
|
57
|
+
midnight = []
|
58
|
+
@@sets.reject! do |e|
|
59
|
+
e.time_stamp.to_s[11].to_i == 0 && e.time_stamp.to_s[12].to_i < 7 ? midnight << e : nil
|
60
|
+
end
|
61
|
+
midnight
|
62
|
+
end
|
63
|
+
|
64
|
+
def self.sort_events
|
65
|
+
midnight_fix.sort_by!{|e|e.time_stamp}
|
66
|
+
@@sets = @@sets.push(*midnight_fix).each_slice(5).to_a
|
67
|
+
end
|
68
|
+
|
69
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
class NycToday::Scraper
|
2
|
+
|
3
|
+
@@main_url = "http://nyc-shows.brooklynvegan.com"
|
4
|
+
@@pages = []
|
5
|
+
|
6
|
+
def self.get_pages
|
7
|
+
num = 1
|
8
|
+
while num <= 10
|
9
|
+
page_url = @@main_url + "/events/today?page=#{num}"
|
10
|
+
page = Nokogiri::HTML(open(page_url))
|
11
|
+
@@pages << page
|
12
|
+
num += 1
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
def self.scrape_events
|
17
|
+
get_pages
|
18
|
+
@@pages.each do |page|
|
19
|
+
page.css(".event-card").each do |event|
|
20
|
+
url_end = event.css("a").attribute("href").value
|
21
|
+
event_hash = {}
|
22
|
+
event_hash[:event_type] = event.attr("class").sub!("ds-listing event-card ds-event-category-", "").split("-").map(&:capitalize).join(" ")
|
23
|
+
if event.css(".ds-byline").text != ""
|
24
|
+
event_hash[:name] = event.css(".ds-byline").text.lstrip + ": " + event.css(".ds-listing-event-title-text").text.lstrip
|
25
|
+
else
|
26
|
+
event_hash[:name] = event.css(".ds-listing-event-title-text").text.lstrip
|
27
|
+
end
|
28
|
+
event_hash[:venue] = event.css(".ds-venue-name").text.gsub!(/\s+/, " ").strip
|
29
|
+
event_hash[:time] = event.css(".dtstart").text.gsub!(/\s+/, " ").strip
|
30
|
+
event_hash[:time_stamp] = Time.parse(event_hash[:time])
|
31
|
+
event_hash[:event_link] = @@main_url + url_end
|
32
|
+
NycToday::Event.new(event_hash)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
NycToday::Event.reformat_types
|
36
|
+
end
|
37
|
+
|
38
|
+
def self.scrape_event_page(event)
|
39
|
+
event_page = Nokogiri::HTML(open(event.event_link))
|
40
|
+
event.price = event_page.css(".ds-ticket-info").text.strip.gsub!(/\s+/, " ")
|
41
|
+
if event_page.at(".ds-event-description-inner")
|
42
|
+
event.event_info = event_page.css(".ds-event-description-inner").text.strip.gsub!(/$/, "\n").to_s
|
43
|
+
else
|
44
|
+
event.event_info = nil
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
end
|
data/nyc_today.gemspec
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'nyc_today/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "nyc_today"
|
8
|
+
spec.version = NycToday::VERSION
|
9
|
+
spec.authors = ["Duncan McLachlan"]
|
10
|
+
spec.email = ["duncanjmclachlan@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{CLI that lists and provides information about today's events in and around NYC.}
|
13
|
+
spec.description = %q{This CLI app lists a set of event categories in and around New York City for users to select from, displays a list of events and their details from that chosen type and displays further information (if available) about any chosen event.}
|
14
|
+
spec.homepage = "https://github.com/vicision/nyc-today-cli-app"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
18
|
+
f.match(%r{^(test|spec|features)/})
|
19
|
+
end
|
20
|
+
spec.bindir = "exe"
|
21
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
|
+
spec.require_paths = ["lib"]
|
23
|
+
|
24
|
+
spec.add_development_dependency "bundler", "~> 1.13"
|
25
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
26
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
27
|
+
spec.add_development_dependency "pry"
|
28
|
+
spec.add_runtime_dependency "nokogiri"
|
29
|
+
end
|
data/spec.md
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
# Specifications for the CLI Assessment
|
2
|
+
|
3
|
+
Specs:
|
4
|
+
- [x] Have a CLI for interfacing with the application
|
5
|
+
|
6
|
+
CLI allows user to interact with application by choosing from a menu of event types, navigating through a list of events of that type, choosing an event from this list and seeing more information about it.
|
7
|
+
|
8
|
+
- [x] Pull data from an external source
|
9
|
+
|
10
|
+
Scraper pulls data from brooklynvegan.com's event listing pages and individual event pages.
|
11
|
+
|
12
|
+
- [x] Implement both list and detail views
|
13
|
+
|
14
|
+
Displays list of event types, then a list of events of a chosen type with names, venues, and times. User can then select one of these events to display further information about the event.
|
metadata
ADDED
@@ -0,0 +1,135 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: nyc_today
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Duncan McLachlan
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-01-23 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.13'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.13'
|
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: pry
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: nokogiri
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
description: This CLI app lists a set of event categories in and around New York City
|
84
|
+
for users to select from, displays a list of events and their details from that
|
85
|
+
chosen type and displays further information (if available) about any chosen event.
|
86
|
+
email:
|
87
|
+
- duncanjmclachlan@gmail.com
|
88
|
+
executables: []
|
89
|
+
extensions: []
|
90
|
+
extra_rdoc_files: []
|
91
|
+
files:
|
92
|
+
- ".gitignore"
|
93
|
+
- ".rspec"
|
94
|
+
- ".travis.yml"
|
95
|
+
- CODE_OF_CONDUCT.md
|
96
|
+
- Gemfile
|
97
|
+
- LICENSE.txt
|
98
|
+
- README.md
|
99
|
+
- Rakefile
|
100
|
+
- bin/console
|
101
|
+
- bin/nyc_today
|
102
|
+
- bin/setup
|
103
|
+
- lib/nyc_today.rb
|
104
|
+
- lib/nyc_today/cli.rb
|
105
|
+
- lib/nyc_today/event.rb
|
106
|
+
- lib/nyc_today/scraper.rb
|
107
|
+
- lib/nyc_today/version.rb
|
108
|
+
- nyc_today.gemspec
|
109
|
+
- spec.md
|
110
|
+
homepage: https://github.com/vicision/nyc-today-cli-app
|
111
|
+
licenses:
|
112
|
+
- MIT
|
113
|
+
metadata: {}
|
114
|
+
post_install_message:
|
115
|
+
rdoc_options: []
|
116
|
+
require_paths:
|
117
|
+
- lib
|
118
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
119
|
+
requirements:
|
120
|
+
- - ">="
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: '0'
|
123
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
124
|
+
requirements:
|
125
|
+
- - ">="
|
126
|
+
- !ruby/object:Gem::Version
|
127
|
+
version: '0'
|
128
|
+
requirements: []
|
129
|
+
rubyforge_project:
|
130
|
+
rubygems_version: 2.6.9
|
131
|
+
signing_key:
|
132
|
+
specification_version: 4
|
133
|
+
summary: CLI that lists and provides information about today's events in and around
|
134
|
+
NYC.
|
135
|
+
test_files: []
|