cheese_board 0.1.0
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 +7 -0
- data/.gitignore +9 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +32 -0
- data/LICENSE.txt +21 -0
- data/README.md +47 -0
- data/Rakefile +2 -0
- data/bin/cheese_board +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/cheese_board.gemspec +31 -0
- data/lib/cheese_board/cheese.rb +14 -0
- data/lib/cheese_board/cheesetype.rb +29 -0
- data/lib/cheese_board/cli.rb +111 -0
- data/lib/cheese_board/scraper.rb +39 -0
- data/lib/cheese_board/version.rb +3 -0
- data/lib/environment.rb +16 -0
- data/note.md +18 -0
- metadata +131 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: e1d7bb3ff046419896b373e8747ce0ae1b06db070cd6e29643b7759efc1a5c1f
|
4
|
+
data.tar.gz: 97dfa8fb46a5e099cedea454b62bf474041a97c2de9d65cf40b6ca8ead3ce145
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 66fd6bc69d8becdb41a7ecf9ca7558c717dbec8a2b229bbdac0f08026c3e2f8f12e3993b9ebe20d63a9e726d96bea5e0c9d73d5b91719485897f03664c0556ad
|
7
|
+
data.tar.gz: 54726bf908b305755a5c6e02e30a006f6fb988226ee13e76986cc9198a98a57dec260963ca0c4dd346016f608f85bfa27126485dca7c6c5f9f1de6032be101d0
|
data/.gitignore
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -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 'snowing222@gmail.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
data/Gemfile.lock
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
cheese_board (0.1.0)
|
5
|
+
colorize (~> 0.8.1)
|
6
|
+
nokogiri
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
coderay (1.1.3)
|
12
|
+
colorize (0.8.1)
|
13
|
+
method_source (1.0.0)
|
14
|
+
mini_portile2 (2.4.0)
|
15
|
+
nokogiri (1.10.9)
|
16
|
+
mini_portile2 (~> 2.4.0)
|
17
|
+
pry (0.13.1)
|
18
|
+
coderay (~> 1.1)
|
19
|
+
method_source (~> 1.0)
|
20
|
+
rake (10.5.0)
|
21
|
+
|
22
|
+
PLATFORMS
|
23
|
+
ruby
|
24
|
+
|
25
|
+
DEPENDENCIES
|
26
|
+
bundler (~> 2.0)
|
27
|
+
cheese_board!
|
28
|
+
pry
|
29
|
+
rake (~> 10.0)
|
30
|
+
|
31
|
+
BUNDLED WITH
|
32
|
+
2.0.1
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2020 'elsa chen'
|
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,47 @@
|
|
1
|
+
# CheeseBoard
|
2
|
+
|
3
|
+
Welcome to your new gem!
|
4
|
+
It's a gem for cheese lovers!
|
5
|
+
Cheese Board helps you to discover the CHEEZZZYY-WORLD!
|
6
|
+
It sorts cheese by type, and introduce the characteristic for each types.
|
7
|
+
It also lists the most classic cheeses for each type for you to explore more.
|
8
|
+
You can gain knowledge about their characteristic and wine to pair.
|
9
|
+
Bon appetit and Enjoy!
|
10
|
+
|
11
|
+
## Installation
|
12
|
+
|
13
|
+
Add this line to your application's Gemfile:
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
gem 'cheese_board'
|
17
|
+
```
|
18
|
+
|
19
|
+
And then execute:
|
20
|
+
|
21
|
+
$ bundle
|
22
|
+
|
23
|
+
Or install it yourself as:
|
24
|
+
|
25
|
+
$ gem install cheese_board
|
26
|
+
|
27
|
+
## Usage
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
## Development
|
32
|
+
|
33
|
+
After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
34
|
+
|
35
|
+
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).
|
36
|
+
|
37
|
+
## Contributing
|
38
|
+
|
39
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/'affable-lambda-1873'/cheese_board. 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.
|
40
|
+
|
41
|
+
## License
|
42
|
+
|
43
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
44
|
+
|
45
|
+
## Code of Conduct
|
46
|
+
|
47
|
+
Everyone interacting in the CheeseBoard project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/'affable-lambda-1873'/cheese_board/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
data/bin/cheese_board
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "environment"
|
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,31 @@
|
|
1
|
+
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "cheese_board/version"
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "cheese_board"
|
8
|
+
spec.version = CheeseBoard::VERSION
|
9
|
+
spec.authors = ["'elsa chen'"]
|
10
|
+
spec.email = ["'snowing222@gmail.com'"]
|
11
|
+
|
12
|
+
spec.summary = %q{a gem for cheese lover to learn more about the cheeses they love}
|
13
|
+
spec.homepage = "https://github.com/Snowing222/cheese_board.git"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
|
17
|
+
# Specify which files should be added to the gem when it is released.
|
18
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
19
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
20
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
21
|
+
end
|
22
|
+
spec.bindir = "exe"
|
23
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
24
|
+
spec.require_paths = ["lib"]
|
25
|
+
|
26
|
+
spec.add_development_dependency "bundler", "~> 2.0"
|
27
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
28
|
+
spec.add_development_dependency "pry"
|
29
|
+
spec.add_dependency "nokogiri"
|
30
|
+
spec.add_dependency 'colorize', '~> 0.8.1'
|
31
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
class CheeseBoard::Cheese
|
2
|
+
attr_accessor :name, :cheesetype, :cheese_description, :pair_wine
|
3
|
+
|
4
|
+
def initialize(name, cheesetype)
|
5
|
+
@name = name
|
6
|
+
@cheesetype = cheesetype
|
7
|
+
add_to_cheesetype
|
8
|
+
end
|
9
|
+
|
10
|
+
def add_to_cheesetype
|
11
|
+
@cheesetype.cheeses << self
|
12
|
+
end
|
13
|
+
|
14
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
class CheeseBoard::CheeseType
|
2
|
+
@@all=[]
|
3
|
+
attr_accessor :name, :char, :cheeses
|
4
|
+
|
5
|
+
def initialize(name)
|
6
|
+
@name=name
|
7
|
+
@cheeses=[]
|
8
|
+
save
|
9
|
+
end
|
10
|
+
|
11
|
+
def self.all
|
12
|
+
CheeseBoard::Scraper.scrape_cheese_types if @@all.empty?
|
13
|
+
@@all
|
14
|
+
|
15
|
+
end
|
16
|
+
|
17
|
+
def get_cheeses
|
18
|
+
CheeseBoard::Scraper.scrape_cheeses(self) if @cheeses.empty?
|
19
|
+
end
|
20
|
+
|
21
|
+
def save
|
22
|
+
@@all << self
|
23
|
+
end
|
24
|
+
|
25
|
+
def count
|
26
|
+
@cheese.length
|
27
|
+
end
|
28
|
+
|
29
|
+
end
|
@@ -0,0 +1,111 @@
|
|
1
|
+
class CheeseBoard::CLI
|
2
|
+
def call
|
3
|
+
greeting = "Welcome to Cheese Board"
|
4
|
+
box_a_string(greeting)
|
5
|
+
puts "Are you ready to explore the CHEEZZZYY-WORLD?".colorize(:yellow)
|
6
|
+
run
|
7
|
+
end
|
8
|
+
|
9
|
+
def run
|
10
|
+
list_cheese_types
|
11
|
+
get_user_cheese_type
|
12
|
+
end
|
13
|
+
|
14
|
+
def list_cheese_types
|
15
|
+
@cheese_types = get_cheese_types
|
16
|
+
puts "\nWhat type of cheese are you interested in. Please enter number of the cheese, or #{ColorizedString["exit"].colorize(:red)}"
|
17
|
+
print_list(@cheese_types)
|
18
|
+
end
|
19
|
+
|
20
|
+
def get_cheese_types
|
21
|
+
CheeseBoard::CheeseType.all.sort_by {|c| c.name}
|
22
|
+
end
|
23
|
+
|
24
|
+
def print_list(array)
|
25
|
+
array.each.with_index(1) do |value, index|
|
26
|
+
puts "#{index}. #{value.name}"
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
def valid_input?(input,array)
|
31
|
+
input.to_i > 0 && input.to_i <= array.length
|
32
|
+
end
|
33
|
+
|
34
|
+
def get_user_cheese_type
|
35
|
+
puts ""
|
36
|
+
input = gets.strip
|
37
|
+
puts ""
|
38
|
+
sleep 1
|
39
|
+
|
40
|
+
if input =="exit"
|
41
|
+
say_good_bye
|
42
|
+
elsif valid_input?(input, @cheese_types)
|
43
|
+
show_cheese_type_for(input.to_i)
|
44
|
+
else
|
45
|
+
puts "I dont understand, please try again"
|
46
|
+
get_user_cheese_type
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
def box_a_string(string)
|
51
|
+
puts ""
|
52
|
+
print " "
|
53
|
+
(string.length+2).times do print "_" end
|
54
|
+
puts ""
|
55
|
+
puts ""
|
56
|
+
puts "| #{string} |"
|
57
|
+
print " "
|
58
|
+
(string.length+2).times do print "_" end
|
59
|
+
puts ""
|
60
|
+
end
|
61
|
+
|
62
|
+
|
63
|
+
def show_cheese_type_for(chosen_cheese_type)
|
64
|
+
@cheese_type = @cheese_types[chosen_cheese_type-1]
|
65
|
+
@cheese_type.get_cheeses
|
66
|
+
puts "Here are the information for #{@cheese_type.name}"
|
67
|
+
cheese_type_char = @cheese_type.char
|
68
|
+
box_a_string(cheese_type_char)
|
69
|
+
|
70
|
+
puts "\nEnter a number for the cheese you are interested in, #{ColorizedString["back"].colorize(:red)} to discover more, or #{ColorizedString["exit"].colorize(:red)}"
|
71
|
+
print_list(@cheese_type.cheeses)
|
72
|
+
|
73
|
+
get_user_cheese
|
74
|
+
end
|
75
|
+
|
76
|
+
def get_user_cheese
|
77
|
+
puts ""
|
78
|
+
input = gets.strip
|
79
|
+
puts ""
|
80
|
+
sleep 1
|
81
|
+
|
82
|
+
if input == "exit"
|
83
|
+
say_good_bye
|
84
|
+
elsif input == "back"
|
85
|
+
run
|
86
|
+
elsif valid_input?(input, @cheese_type.cheeses)
|
87
|
+
show_cheese_for(input.to_i)
|
88
|
+
else
|
89
|
+
puts "I dont understand, please try again"
|
90
|
+
get_user_cheese_type
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
94
|
+
def show_cheese_for(chosen_cheese)
|
95
|
+
cheese = @cheese_type.cheeses[chosen_cheese-1]
|
96
|
+
puts "CHARACTERISTICS".colorize(:blue)
|
97
|
+
puts "#{cheese.cheese_description}"
|
98
|
+
puts ""
|
99
|
+
puts "BEST MATE".colorize(:blue)
|
100
|
+
puts "#{cheese.pair_wine}"
|
101
|
+
puts "\nEnter #{ColorizedString["back"].colorize(:red)} to discover more cheeses, or #{ColorizedString["exit"].colorize(:red)}"
|
102
|
+
get_user_cheese
|
103
|
+
end
|
104
|
+
|
105
|
+
def say_good_bye
|
106
|
+
puts "BON APPETIT!".colorize(:yellow)
|
107
|
+
puts "SEE YOU NEXT TIME!".colorize(:yellow)
|
108
|
+
exit
|
109
|
+
end
|
110
|
+
|
111
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
class CheeseBoard::Scraper
|
2
|
+
BASEPATH = "https://www.castellocheese.com/en-us/cheese-types/"
|
3
|
+
@@url = ""
|
4
|
+
@@cheese_type = ""
|
5
|
+
|
6
|
+
def self.scrape_cheese_types
|
7
|
+
doc = Nokogiri::HTML(open(BASEPATH))
|
8
|
+
cheese_types = doc.css("div.generic-overview-grid--no-scroll a.generic-card__link")
|
9
|
+
cheese_types.map do |cheese_type|
|
10
|
+
name = cheese_type.text
|
11
|
+
CheeseBoard::CheeseType.new(name)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
def self.scrape_cheeses(cheese_type)
|
16
|
+
@@cheese_type = cheese_type
|
17
|
+
url = BASEPATH + @@cheese_type.name.gsub(" ","-") + "/"
|
18
|
+
doc = Nokogiri::HTML(open(url))
|
19
|
+
heads = doc.css("div.cheese-category__inner.row-container h4")
|
20
|
+
cheese_type.char = heads.shift.text
|
21
|
+
heads.each.with_index do |h|
|
22
|
+
name = h.text
|
23
|
+
CheeseBoard::Cheese.new(name, cheese_type)
|
24
|
+
end
|
25
|
+
|
26
|
+
description_count = @@cheese_type.cheeses.count*2
|
27
|
+
descriptions = doc.css("div.cheese-category__inner.row-container p")
|
28
|
+
t = descriptions.map {|x| x.text}.last(description_count)
|
29
|
+
c_d = t.select.with_index(1) {|_,i| i.odd?}
|
30
|
+
p_w = t.select.with_index(1) {|_,i| i.even?}
|
31
|
+
@@cheese_type.cheeses.zip(c_d , p_w).each do |cheese,c_des,p_des|
|
32
|
+
cheese.cheese_description = c_des
|
33
|
+
cheese.pair_wine = p_des
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
end
|
38
|
+
|
39
|
+
|
data/lib/environment.rb
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
require "nokogiri"
|
2
|
+
require "pry"
|
3
|
+
require "open-uri"
|
4
|
+
require "colorize"
|
5
|
+
require 'colorized_string'
|
6
|
+
|
7
|
+
module CheeseBoard
|
8
|
+
class Error < StandardError; end
|
9
|
+
# Your code goes here...
|
10
|
+
end
|
11
|
+
|
12
|
+
require_relative "./cheese_board/version"
|
13
|
+
require_relative "./cheese_board/cli"
|
14
|
+
require_relative "./cheese_board/cheese"
|
15
|
+
require_relative "./cheese_board/scraper"
|
16
|
+
require_relative "./cheese_board/cheesetype"
|
data/note.md
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
Cheese Gem workflow
|
2
|
+
1."Welcome to Cheese Board! Read to explore the Cheesy World?"
|
3
|
+
2. User input=>Yes or Exit
|
4
|
+
3. "What type of cheese you want to learn more about"
|
5
|
+
4. print list_of_cheese_type and cheese_type_charactor
|
6
|
+
5. User input => number or Exit
|
7
|
+
6. print list_of_cheese under this type
|
8
|
+
7. "Want to learn more about certain cheese?"
|
9
|
+
8. User input=> number, back and Exit
|
10
|
+
9. Print cheese_information
|
11
|
+
10."ready to discover more?"
|
12
|
+
11. User input =>Back or Exit
|
13
|
+
|
14
|
+
Need 4 classes
|
15
|
+
-Cheese type
|
16
|
+
-Cheese
|
17
|
+
-CLI
|
18
|
+
-Scraper
|
metadata
ADDED
@@ -0,0 +1,131 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: cheese_board
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- "'elsa chen'"
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2021-03-18 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: pry
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: nokogiri
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
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: colorize
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 0.8.1
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 0.8.1
|
83
|
+
description:
|
84
|
+
email:
|
85
|
+
- "'snowing222@gmail.com'"
|
86
|
+
executables: []
|
87
|
+
extensions: []
|
88
|
+
extra_rdoc_files: []
|
89
|
+
files:
|
90
|
+
- ".gitignore"
|
91
|
+
- CODE_OF_CONDUCT.md
|
92
|
+
- Gemfile
|
93
|
+
- Gemfile.lock
|
94
|
+
- LICENSE.txt
|
95
|
+
- README.md
|
96
|
+
- Rakefile
|
97
|
+
- bin/cheese_board
|
98
|
+
- bin/console
|
99
|
+
- bin/setup
|
100
|
+
- cheese_board.gemspec
|
101
|
+
- lib/cheese_board/cheese.rb
|
102
|
+
- lib/cheese_board/cheesetype.rb
|
103
|
+
- lib/cheese_board/cli.rb
|
104
|
+
- lib/cheese_board/scraper.rb
|
105
|
+
- lib/cheese_board/version.rb
|
106
|
+
- lib/environment.rb
|
107
|
+
- note.md
|
108
|
+
homepage: https://github.com/Snowing222/cheese_board.git
|
109
|
+
licenses:
|
110
|
+
- MIT
|
111
|
+
metadata: {}
|
112
|
+
post_install_message:
|
113
|
+
rdoc_options: []
|
114
|
+
require_paths:
|
115
|
+
- lib
|
116
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
117
|
+
requirements:
|
118
|
+
- - ">="
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
version: '0'
|
121
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
122
|
+
requirements:
|
123
|
+
- - ">="
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
126
|
+
requirements: []
|
127
|
+
rubygems_version: 3.2.14
|
128
|
+
signing_key:
|
129
|
+
specification_version: 4
|
130
|
+
summary: a gem for cheese lover to learn more about the cheeses they love
|
131
|
+
test_files: []
|