seattle_craft_coffee 0.1.0 → 0.1.1

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: a4cad328f8e962fe058bd159b5da7f6d0f81294c
4
- data.tar.gz: bc9db7dc4b03f6f1cf695e0f8fbf44f08bcece8d
3
+ metadata.gz: 2aa2c2b326fd242b9b932d5c673fb3d1955c5a71
4
+ data.tar.gz: a4d84b1f584548dc5f1a88260ea6c60e1b8c8115
5
5
  SHA512:
6
- metadata.gz: eb6a7f7158518e28127c8305b3a4e571692a780e393790421d7b328ab01ce6e6c43255dd27ed25a2520b556890592015c003646a93defef9995c869a7e90e59d
7
- data.tar.gz: 6ad3b21afce8db217af7058fc1ef56da6e071a0a69e2b7d26932634eb4bc2d7d5ed5d6879df68dc56eac7b9a753d0523e20331112b112c3b71381d1aee177f20
6
+ metadata.gz: 23d068f4cc13e3578a87bb1415cbb4ba24cfc6e7dd8b75059af184d1d62bbc6d127391181b4c1667b97f5d60c69d25d6bc03acb1be0326b26ef0fa325bab30db
7
+ data.tar.gz: 0f6ca608df0fb8923899f7210f4650b6502fa6173ac1230b22c186f7409923de88d04e56582e48ef9ce98fb45147a6d93463fd36c4a9bded37c10fb1f21d065e
@@ -1,6 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require "bundler/setup"
4
- require "seattle_craft_coffee"
3
+ require_relative '../lib/seattle_craft_coffee'
5
4
 
6
5
  SeattleCraftCoffee::Cli.new.call
@@ -1,3 +1,3 @@
1
1
  module SeattleCraftCoffee
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -2,7 +2,10 @@ require 'nokogiri'
2
2
  require 'open-uri'
3
3
  require 'pry'
4
4
 
5
- require_relative "./seattle_craft_coffee/scraper"
6
- require_relative "./seattle_craft_coffee/cli"
7
- require_relative "./seattle_craft_coffee/version"
8
- require_relative "./seattle_craft_coffee/brewers"
5
+ require_relative "seattle_craft_coffee/version"
6
+ require_relative "seattle_craft_coffee/cli"
7
+ require_relative "seattle_craft_coffee/scraper"
8
+ require_relative "seattle_craft_coffee/brewers"
9
+
10
+ module SeattleCraftCoffee
11
+ end
@@ -23,8 +23,9 @@ Gem::Specification.new do |spec|
23
23
 
24
24
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
25
25
  spec.bindir = "exe"
26
- # spec.executables << 'seattle_craft_coffee'
26
+
27
27
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
+ # spec.executables = ["seattle_craft_coffee"]
28
29
  spec.require_paths = ["lib"]
29
30
 
30
31
  spec.add_development_dependency "bundler", "~> 1.12"
data/spec.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # Specifications for the CLI Assessment
2
2
 
3
3
  Specs:
4
- - [x] Have a CLI for interfacing with the application
5
- - [x] Pull data from an external source
6
- - [x] Implement both list and detail views
4
+ - [x] Have a CLI for interfacing with the application - this is in the cli.rb file; welcome's the user, generates and displays the list of craft coffee brewers in Seattle (including the neighborhood), asks which they would like to read the description of (or exit), user enters number and app pulls the description, then app asks if they would like to read about another brewer (or exit).
5
+
6
+ - [x] Pull data from an external source - the list, neighborhood and description are all pulled from a thrillist webpage about Seattle craft coffee brewers.
7
+
8
+ - [x] Implement both list and detail views - when calling 'seattle_craft_coffee', first the list of craft coffee brewers and their neighborhood are generated/displayed, then when the user enters which one they want the description of, the app pulls the detailed description of the brewer, with the name of the brewer as the header of the information (so the user knows the correct description was provided).
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seattle_craft_coffee
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Evans
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-08-13 00:00:00.000000000 Z
11
+ date: 2017-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler