show_listings 0.1.2 → 0.1.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0a08250b20038e89b6766e1fb5547bd930bacc7a
4
- data.tar.gz: b1aa2c7c54fee65144a291e2cc317e2617e8223a
3
+ metadata.gz: 5fdaa539ec4d8d32f4a3950ef1a0eca82ed9f1bd
4
+ data.tar.gz: 59ed16903c71aa7eaa50ae64e9deb7f22b7b0f81
5
5
  SHA512:
6
- metadata.gz: f45f6a2515e35bee12ea8e3f8c48387c9e742968f362e971fa2a6e47003e4d38297cf18adb1cad7a4775fd4d68a8d4f461e4c2a7af9a19195b8c95d71a970862
7
- data.tar.gz: 667f1275c4f333846f064850ec44842c0b1bb9f1e35f16c87a6bc6bc642b1f1d4f28a6b3b06bce30eaee022c243c596e0c10d34522b5f9a6c43a8b2fd9de4df9
6
+ metadata.gz: e0966ebf663ddecf03a6b415c8824aba4eb856441246dace334c94f383988cb89397e373b9f23bafb1766c201607e836fe058ecc331bfec44dadab77ff00d7ca
7
+ data.tar.gz: b1e67997148ae4349189038b8b5053c434b468b2529434d7ba04e3144c641ef543805cce65183765f86e1a69469a71c64d76171f8c551199ed5f5be02db8bcff
data/README.md CHANGED
@@ -1,41 +1,28 @@
1
- # NewGem
2
-
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/new_gem`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
6
-
7
- ## Installation
8
-
9
- Add this line to your application's Gemfile:
10
-
11
- ```ruby
12
- gem 'new_gem'
13
- ```
1
+ # Installation
2
+ Add the following to your Gemfile:
3
+ gem 'show_listings'
14
4
 
15
5
  And then execute:
6
+ $ gem install show_listings
16
7
 
17
- $ bundle
18
-
19
- Or install it yourself as:
20
-
21
- $ gem install new_gem
22
-
23
- ## Usage
24
-
25
- TODO: Write usage instructions here
26
-
27
- ## Development
8
+ # Overview
9
+ This gem allows the user to seach through NYC concert listings found on brooklynvegan.com To start program, simply run the bin/show_listings.rb file.
28
10
 
29
- 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.
11
+ Upon starting the program, you will be prompted to choose either a list of the day's upcoming shows, or the upcoming shows at a particular venue.
30
12
 
31
- 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).
13
+ If you choose the 'today' option, the program will provide you with the first page of shows scheduled for that day. At the end of the initial page, you will be asked to either choose one of the shows listed, enter 'done' to exit the program, or enter 'more' to view the next page of shows. Each page contains a numbered list of shows, and to learn more about one of those shows, simply enter its number when prompted. The numbering system will start over with a new list starting at '1' if the next page is chosen. You can continue choosing 'more' at the end of each page until you reach the end of the listings. At this point, you can choose a show, exit, or type 'restart' to go back to the first numbered page of shows. When you choose a numered show listing, you will be given the option of buying tickets for that show (if such an option exists on the Brooklyn Vegan page), or simply forwarded to an info page.
32
14
 
33
- ## Contributing
15
+ If you choose the 'venue' option, you will prompted the enter the name of a NYC music venue. Note that, for this program to work correctly, you need to spell out the entire name of the venue without any puncuation. If you choose a valid venue, the program will begin listing the shows at the venue, in chronological order, in the same manner as in the 'today' option above. If there are no shows currently scheduled, the program will inform you of this and instruct you to start over. The program will also inform you if it cannot find a venue by the name you entered. The program will exit on its own once a final selection has been made.
34
16
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/new_gem.
17
+ # Contributor's Guide
18
+ 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
19
 
20
+ 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.
37
21
 
38
- ## License
22
+ Bug reports and pull requests are welcome on GitHub at:
23
+ https://github.com/mmelmer/cli-data-gem-assessment-v-000.
39
24
 
40
- The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
25
+ #License
41
26
 
27
+ The gem is available as open source under the terms of the MIT License, which can be found at:
28
+ https://opensource.org/licenses/MIT
data/bin/console CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require "bundler/setup"
4
- require "../lib/show_listings.rb"
4
+ require_relative "../config/environment.rb"
5
5
 
6
6
  require "irb"
7
7
  IRB.start
data/bin/show_listings CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require "bundler/setup"
4
- require_relative '../lib/show_listings.rb'
4
+ require_relative '../lib/show_listings'
5
5
 
6
6
  ShowListings::CLI.new.call
data/lib/show_listings.rb CHANGED
@@ -1,11 +1,4 @@
1
- require 'pry'
2
- require 'open-uri'
3
- require 'nokogiri'
4
- require 'launchy'
5
-
6
1
  module ShowListings
7
- require_relative "show_listings/version"
8
- require_relative "show_listings/CLI"
9
- require_relative "show_listings/listing"
10
- require_relative "show_listings/scraper"
11
- end
2
+ end
3
+
4
+ require_relative "../config/environment.rb"
@@ -1,3 +1,3 @@
1
1
  module ShowListings
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
Binary file
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: show_listings
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - mmelmer
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-09-26 00:00:00.000000000 Z
11
+ date: 2016-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -116,6 +116,8 @@ files:
116
116
  - lib/show_listings/listing.rb
117
117
  - lib/show_listings/scraper.rb
118
118
  - lib/show_listings/version.rb
119
+ - show_listings-0.1.0.gem
120
+ - show_listings-0.1.2.gem
119
121
  - show_listings.gemspec
120
122
  homepage: https://github.com/mmelmer/cli-data-gem-assessment-v-000
121
123
  licenses: