brewery_search 0.1.7 → 0.1.82

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 19a8043f1a54b3117e40be256e9dc55f09a25e4b
4
- data.tar.gz: b325bad5b597d5e447d8f2049aab55846ff7908d
2
+ SHA256:
3
+ metadata.gz: '01519d6b11c42136c271550694116b4f695d9388f88783fe41b5b37a8153a6d1'
4
+ data.tar.gz: b8acf9faa7c49fae71daa12ff3c1edc83881601124a098b2e1e2c8f5c9e42002
5
5
  SHA512:
6
- metadata.gz: 032cf2965efc936ab7dcbe5b73361e8b9c09b20487a2e1b8b149d3740a9f41b94f94f65cacd1aeb114b56647b05f171cbe61438ab3ebdb10ab960ce52ce2c19c
7
- data.tar.gz: 26b8334c1d8e6e84fc634364d1b6446cd46aa468463c01bbf2a2bf052090fad90f7c4c159057c7b4738af9953af761eed6b2fcf58b631b3a172952be3c7e310f
6
+ metadata.gz: 3672e3717ca5e55fda55b82633a1782c37eaff2f8b72c96d2431ba39ebc29b0775493ec466d862f604db7bfb3705cbf23926f8819186be818de35e7b4752b0c3
7
+ data.tar.gz: a43c660131a292882e31afbee3b90bb0b2359677d0a65e59851c5f759a17b400b07df0943f8890872c4c1070aa5c7cd307a060eae4e8c2961ac690e217c5ab3f
data/Gemfile CHANGED
@@ -1,12 +1,4 @@
1
- source "http://rubygems.org"
2
-
3
- git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
-
5
- gem 'nokogiri', '~> 1.8', '>= 1.8.4'
6
- gem 'launchy', '~> 2.4', '>= 2.4.3'
7
- gem 'pry', '~> 0.11.3'
8
- gem 'require_all', '~> 2.0'
9
- gem 'rspec'
1
+ source "https://rubygems.org"
10
2
 
11
3
  # Specify your gem's dependencies in brewery_search.gemspec
12
4
  gemspec
data/Gemfile.lock CHANGED
@@ -1,27 +1,28 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- brewery_search (0.1.7)
4
+ brewery_search (0.1.82)
5
+ launchy (~> 2.4, >= 2.4.3)
6
+ nokogiri (~> 1.8, >= 1.8.4)
5
7
 
6
8
  GEM
7
- remote: http://rubygems.org/
9
+ remote: https://rubygems.org/
8
10
  specs:
9
- addressable (2.5.2)
11
+ addressable (2.6.0)
10
12
  public_suffix (>= 2.0.2, < 4.0)
11
13
  coderay (1.1.2)
12
14
  diff-lcs (1.3)
13
15
  launchy (2.4.3)
14
16
  addressable (~> 2.3)
15
- method_source (0.9.0)
16
- mini_portile2 (2.3.0)
17
- nokogiri (1.8.4)
18
- mini_portile2 (~> 2.3.0)
17
+ method_source (0.9.2)
18
+ mini_portile2 (2.4.0)
19
+ nokogiri (1.10.3)
20
+ mini_portile2 (~> 2.4.0)
19
21
  pry (0.11.3)
20
22
  coderay (~> 1.1.0)
21
23
  method_source (~> 0.9.0)
22
24
  public_suffix (3.0.3)
23
25
  rake (10.5.0)
24
- require_all (2.0.0)
25
26
  rspec (3.8.0)
26
27
  rspec-core (~> 3.8.0)
27
28
  rspec-expectations (~> 3.8.0)
@@ -42,12 +43,9 @@ PLATFORMS
42
43
  DEPENDENCIES
43
44
  brewery_search!
44
45
  bundler (~> 1.16)
45
- launchy (~> 2.4, >= 2.4.3)
46
- nokogiri (~> 1.8, >= 1.8.4)
47
46
  pry (~> 0.11.3)
48
47
  rake (~> 10.0)
49
- require_all (~> 2.0)
50
- rspec
48
+ rspec (~> 3.0)
51
49
 
52
50
  BUNDLED WITH
53
- 1.16.4
51
+ 1.17.2
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # BrewerySearch
2
2
 
3
- BrewerySearch provides a CLI that allows a user to navigate BrewBound's brewery database and retrieve additional information such as contact information, social media links, general overview, and more.
3
+ Check out a short demo of Brewery Search here: https://youtu.be/N-bYzJwY2uY
4
+
5
+ Get information on any brewery from your command line with the Brewery Search gem! Brewery Search allows you to search in any state, and even filter down to a specific city. Check it out at: https://rubygems.org/gems/brewery_search
4
6
 
5
7
  ## Installation
6
8
 
@@ -24,29 +26,33 @@ Type the following to get started:
24
26
 
25
27
  $ brewery-search
26
28
 
27
- A user will be greeted with a welcome screen. Follow the on-screen prompts to continue.
29
+ A user will be greeted with a welcome screen. Follow the on-screen prompts to continue. Users will have the ability to search by state abbreviations.
28
30
 
29
- Users will have the ability to search by state abbreviations (case senstitive). From there a user will be presented with a list of all registered breweries in that state. A user can call
31
+ A user will be presented with a list of all registered breweries in that state. A user can call
30
32
 
31
33
  $ city
32
34
 
33
35
  to receive a prompt to filter by a specific city, otherwise they can select the number of any brewery for more information.
34
36
 
35
- Additional commands from the menu include:
37
+ To navigate back to the state results, a user can enter:
38
+
39
+ $ relist
36
40
 
41
+ Additional commands from the menu include:
42
+
37
43
  $ new search
38
44
  $ exit
39
45
 
40
46
  New search will bring the user back to the beginning to search for a different state. Exit will quit the program.
41
47
 
42
- When viewing additional information for any brewery, a user will be able to do any of the following commands (if that information is made available) to either launch the corresponding page, return, or exit the program:
48
+ When viewing additional information for any brewery, a user will be able to do any of the following commands (if that information is made available) to either launch the corresponding page in the user's default browser, return to the menu, or exit the program:
43
49
 
44
- $ Website
45
- $ Facebook
46
- $ Twitter
47
- $ Instagram
48
- $ Menu
49
- $ Exit
50
+ $ website
51
+ $ facebook
52
+ $ twitter
53
+ $ instagram
54
+ $ menu
55
+ $ exit
50
56
 
51
57
  ## Development
52
58
 
@@ -56,7 +62,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
56
62
 
57
63
  ## Contributing
58
64
 
59
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/brewery_search. 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.
65
+ Bug reports and pull requests are welcome on GitHub at https://github.com/btmccollum/brewery_search. 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.
60
66
 
61
67
  ## License
62
68
 
@@ -64,4 +70,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
64
70
 
65
71
  ## Code of Conduct
66
72
 
67
- Everyone interacting in the BrewerySearch project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/brewery_search/blob/master/CODE_OF_CONDUCT.md).
73
+ Everyone interacting in the BrewerySearch project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/btmccollum/brewery_search/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile CHANGED
@@ -1,6 +1,3 @@
1
1
  require "bundler/gem_tasks"
2
- require "rspec/core/rake_task"
3
-
4
- RSpec::Core::RakeTask.new(:spec)
5
2
 
6
3
  task :default => :spec
data/bin/brewery-search CHANGED
@@ -1,7 +1,4 @@
1
- #!/usr/bin/env ruby
1
+ require "bundler/setup"
2
+ require "brewery_search"
2
3
 
3
- # require "rubygems"
4
- # require "bundler/setup"
5
- require_relative "../config/environment.rb"
6
-
7
- BrewerySearch::CLI.new.welcome_screen
4
+ BrewerySearch::CLI.new.welcome_screen
data/bin/console CHANGED
@@ -1,7 +1,5 @@
1
- #!/usr/bin/env ruby
2
-
3
- # require "bundler/setup"
4
- require "./config/environment"
1
+ require "bundler/setup"
2
+ require "brewery_search"
5
3
 
6
4
  require "irb"
7
5
  IRB.start(__FILE__)
Binary file
Binary file
@@ -13,23 +13,18 @@ Gem::Specification.new do |spec|
13
13
  spec.homepage = "https://github.com/btmccollum/brewery_search"
14
14
  spec.license = "MIT"
15
15
 
16
- if spec.respond_to?(:metadata)
17
- spec.metadata["allowed_push_host"] = "https://rubygems.org"
18
- else
19
- raise "RubyGems 2.0 or newer is required to protect against " \
20
- "public gem pushes."
16
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
17
+ f.match(%r{^(test|spec|features)/})
21
18
  end
22
19
 
23
- spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
24
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
25
- end
26
20
  spec.bindir = "bin"
27
21
  spec.executables = ["brewery-search"]
28
22
  spec.require_paths = ["lib"]
29
23
 
30
24
  spec.add_development_dependency "bundler", "~> 1.16"
31
25
  spec.add_development_dependency "rake", "~> 10.0"
26
+ spec.add_development_dependency "pry", "~> 0.11.3"
32
27
  spec.add_development_dependency "rspec", "~> 3.0"
33
- spec.add_development_dependency "nokogiri", "~> 1.8", ">= 1.8.4"
34
- spec.add_development_dependency "launchy", "~> 2.4", ">= 2.4.3"
28
+ spec.add_dependency "nokogiri", "~> 1.8", ">= 1.8.4"
29
+ spec.add_dependency "launchy", "~> 2.4", ">= 2.4.3"
35
30
  end
@@ -0,0 +1,8 @@
1
+ require 'open-uri'
2
+ require 'nokogiri'
3
+ require 'pry'
4
+
5
+ require "brewery_search/version"
6
+ require "brewery_search/brewery"
7
+ require "brewery_search/cli"
8
+ require "brewery_search/scraper"
@@ -1,4 +1,8 @@
1
1
  require 'pry'
2
+ require 'launchy'
3
+ require_relative 'scraper.rb'
4
+ require_relative 'brewery.rb'
5
+
2
6
  class BrewerySearch::CLI
3
7
  VALID_STATES = ["AL", "AK", "AZ", "AR", "CA", "CO", "CT", "DC", "DE", "FL", "GA", "HI", "ID", "IL", "IN", "IA", "KS", "KY", "LA", "ME", "MD", "MA", "MI", "MN", "MS", "MO", "MT", "NE", "NV", "NH", "NJ", "NM", "NY", "NC", "ND", "OH", "OK", "OR", "PA", "RI", "SC", "SD", "TN", "TX", "UT", "VT", "VA", "WA", "WV", "WI", "WY"]
4
8
 
@@ -1,3 +1,7 @@
1
+
2
+ require 'nokogiri'
3
+ require 'open-uri'
4
+
1
5
  class BrewerySearch::Scraper
2
6
 
3
7
  def self.scrape_state(state_input)
@@ -1,3 +1,3 @@
1
1
  module BrewerySearch
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.82"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brewery_search
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.82
5
5
  platform: ruby
6
6
  authors:
7
7
  - btmccollum
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-14 00:00:00.000000000 Z
11
+ date: 2019-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: pry
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 0.11.3
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 0.11.3
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: rspec
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -62,7 +76,7 @@ dependencies:
62
76
  - - ">="
63
77
  - !ruby/object:Gem::Version
64
78
  version: 1.8.4
65
- type: :development
79
+ type: :runtime
66
80
  prerelease: false
67
81
  version_requirements: !ruby/object:Gem::Requirement
68
82
  requirements:
@@ -82,7 +96,7 @@ dependencies:
82
96
  - - ">="
83
97
  - !ruby/object:Gem::Version
84
98
  version: 2.4.3
85
- type: :development
99
+ type: :runtime
86
100
  prerelease: false
87
101
  version_requirements: !ruby/object:Gem::Requirement
88
102
  requirements:
@@ -117,8 +131,10 @@ files:
117
131
  - brewery_search-0.1.2.gem
118
132
  - brewery_search-0.1.3.gem
119
133
  - brewery_search-0.1.5.gem
134
+ - brewery_search-0.1.8.gem
135
+ - brewery_search-0.1.81.gem
120
136
  - brewery_search.gemspec
121
- - config/environment.rb
137
+ - lib/brewery_search.rb
122
138
  - lib/brewery_search/brewery.rb
123
139
  - lib/brewery_search/cli.rb
124
140
  - lib/brewery_search/scraper.rb
@@ -128,8 +144,7 @@ files:
128
144
  homepage: https://github.com/btmccollum/brewery_search
129
145
  licenses:
130
146
  - MIT
131
- metadata:
132
- allowed_push_host: https://rubygems.org
147
+ metadata: {}
133
148
  post_install_message:
134
149
  rdoc_options: []
135
150
  require_paths:
@@ -145,8 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
145
160
  - !ruby/object:Gem::Version
146
161
  version: '0'
147
162
  requirements: []
148
- rubyforge_project:
149
- rubygems_version: 2.4.8
163
+ rubygems_version: 3.0.3
150
164
  signing_key:
151
165
  specification_version: 4
152
166
  summary: A CLI brewery directory leveraging BrewBound
@@ -1,10 +0,0 @@
1
- require "rubygems"
2
- require "bundler"
3
- Bundler.require
4
- require "nokogiri"
5
- require "open-uri"
6
-
7
- require_relative "../lib/brewery_search/version.rb"
8
- require_relative "../lib/brewery_search/brewery.rb"
9
- require_relative "../lib/brewery_search/cli.rb"
10
- require_relative "../lib/brewery_search/scraper.rb"