meals 1.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (7) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +3 -0
  3. data/LICENSE +50 -0
  4. data/README.md +82 -0
  5. data/lib/meals.rb +24 -0
  6. data/recipes.json +11 -0
  7. metadata +78 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 249f285dc0c1ff720eac456fdc17d39feddcc99a9c9aca28f323952e96dbcfdc
4
+ data.tar.gz: dced28dbf2e1fa5d717eaaa0c3016da936d4105126295161354ec1aa3b7f2ac5
5
+ SHA512:
6
+ metadata.gz: 1d89f45364d320beec14c72570213480d2232357e38227cc4e73cc66d56620110d223163edf056516a7d75274017cbb5428d2fc538730afd5a0bd4c44d365033
7
+ data.tar.gz: c287893fcacc4cd05c0f2ebdb7fc150895a558a02217554d8663e13591c1e31cc549f5fc92523be1652e2e1c847922bcf1e94d2a7af37ead4a32ccd3749e6af3
data/CHANGELOG.md ADDED
@@ -0,0 +1,3 @@
1
+ # 1.2.3
2
+
3
+ Everything is new. We just liked the number
data/LICENSE ADDED
@@ -0,0 +1,50 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020 Emoji Meals
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 all
13
+ 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 THE
21
+ SOFTWARE.
22
+
23
+ RATATOUILLE RECIPE
24
+
25
+ 1. Preheat the oven for 375˚F (190˚C).
26
+
27
+ 2. Slice the eggplant, tomatoes, squash, and zucchini into approximately ¹⁄₁₆-inch
28
+ (1-mm) rounds, then set aside.
29
+
30
+ 3. Make the sauce: Heat the olive oil in a 12-inch (30-cm) oven-safe pan over
31
+ medium-high heat. Sauté the onion, garlic, and bell peppers until soft, about 10
32
+ minutes. Season with salt and pepper, then add the crushed tomatoes. Stir until the
33
+ ingredients are fully incorporated. Remove from heat, then add the basil. Stir once
34
+ more, then smooth the surface of the sauce with a spatula.
35
+
36
+ 4. Arrange the sliced veggies in alternating patterns, (for example, eggplant,
37
+ tomato, squash, zucchini) on top of the sauce from the outer edge to the middle of
38
+ the pan. Season with salt and pepper.
39
+
40
+ 5. Make the herb seasoning: In a small bowl, mix together the basil, garlic, parsley,
41
+ thyme, salt, pepper, and olive oil. Spoon the herb seasoning over the vegetables.
42
+
43
+ 6. Cover the pan with foil and bake for 40 minutes. Uncover, then bake for another 20
44
+ minutes, until the vegetables are softened.
45
+
46
+ 7. Serve while hot as a main dish or side. The ratatouille is also excellent the next
47
+ day--cover with foil and reheat in a 350˚F (180˚C) oven for 15 minutes, or simply
48
+ microwave to desired temperature.
49
+
50
+ 8. Enjoy!
data/README.md ADDED
@@ -0,0 +1,82 @@
1
+ # meals.rb
2
+
3
+ Find what you can cook with your emojis
4
+
5
+ ## get started
6
+
7
+ install the gem:
8
+
9
+ ```console
10
+ gem install meals
11
+ ```
12
+
13
+ then start using it:
14
+
15
+ ```console
16
+ require 'meals'
17
+ ```
18
+
19
+ ## Usage
20
+
21
+ You can start checking for recipes using `Meals.mealify`.
22
+
23
+ ```ruby
24
+ Meals.mealify("🌚","🍰") #=> "🥮"
25
+
26
+ # it is not order dependent 💯💯IQ 🧠💥
27
+ Meals.mealify("🍰", "🌚") #=> "🥮"
28
+
29
+ # Use more than two items!
30
+ Meals.mealify("🍞","🍅","🧀") #=> "🍕"
31
+
32
+ # After all this eating, I need a drink
33
+ Meals.mealify("🍶","🍾","🍷","🍸","🍶","🍹","🍺","🍻","🥂","🍾","🥃") #=> "🤮"
34
+ ```
35
+
36
+ ## Is it thread safe
37
+
38
+ To the best of our knowledge it is.
39
+
40
+ "Hey Hugh, is it thread safe" - Justin
41
+
42
+ "Shut up, I'm playing roblox" - Hugh
43
+
44
+ take this with a grain of salt...
45
+
46
+ ## Can I eat it?
47
+
48
+ With the proper printer and paper, you could print the source code and eat it.
49
+
50
+
51
+ ## Can I donate to the project?
52
+ yes
53
+
54
+ ## Where?!1
55
+
56
+ [here](https://www.buymeacoffee.com/emoji)
57
+
58
+ ## I know this project is big brain 💯💯. Did you even write tests tho?
59
+
60
+ Yes, I think we have 100% coverage. Don't at me tho.
61
+
62
+ ## Can I contribute
63
+
64
+ you can.
65
+
66
+ ## Any nice soulja boy quote I should be aware of?
67
+
68
+ Of course, I'm glad you asked fam.
69
+
70
+ > “If I’m doing something it’s coming from a kind heart.”
71
+ >
72
+ > – Soulja Boy
73
+
74
+
75
+ ## License
76
+
77
+ This project is licensed under the [MIT License](https://github.com/EmojiMeals/meals.rb/blob/master/LICENSE).
78
+
79
+ ## Greetings
80
+
81
+ I'm tired. bye 👋
82
+
data/lib/meals.rb ADDED
@@ -0,0 +1,24 @@
1
+ require 'set'
2
+ require 'json'
3
+
4
+ class Meals
5
+ class << self
6
+ def mealify(*ingredients)
7
+ hash = Set.new(ingredients).hash
8
+ all_combos[hash]
9
+ end
10
+
11
+ def all_combos
12
+ computed_combos = {}
13
+ recipes.each do |ingredients,result|
14
+ computed_key = Set.new(ingredients.to_s.chars).hash
15
+ computed_combos[computed_key] = result
16
+ end
17
+ @@combos ||= computed_combos
18
+ end
19
+
20
+ def recipes
21
+ JSON.parse(File.read('recipes.json'))
22
+ end
23
+ end
24
+ end
data/recipes.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "🍶🍾🍷🍸🍶🍹🍺🍻🥂🍾🥃": "🤮",
3
+ "🐟🍚": "🍣",
4
+ "🥚🔥": "🍳",
5
+ "🌾🍅:": "🍝",
6
+ "💧🍈": "🍉",
7
+ "🌚🍰": "🥮",
8
+ "🐟🍰": "🍥",
9
+ "🍞🍅🧀": "🍕",
10
+ "🥛🍊🍦": "🥤😍"
11
+ }
metadata ADDED
@@ -0,0 +1,78 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: meals
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.2.3
5
+ platform: ruby
6
+ authors:
7
+ - Justin Leger
8
+ - Hugh Xie
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2020-04-20 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rake
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - ">="
19
+ - !ruby/object:Gem::Version
20
+ version: '0'
21
+ type: :development
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ version: '0'
28
+ - !ruby/object:Gem::Dependency
29
+ name: minitest
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: '0'
35
+ type: :development
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: '0'
42
+ description: Find what you can cook with your emojis
43
+ email: hey@justinleger.ca
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - CHANGELOG.md
49
+ - LICENSE
50
+ - README.md
51
+ - lib/meals.rb
52
+ - recipes.json
53
+ homepage: https://github.com/EmojiMeals/meals.rb
54
+ licenses:
55
+ - MIT
56
+ metadata:
57
+ source_code_uri: https://github.com/EmojiMeals/meals.rb
58
+ changelog_uri: https://github.com/EmojiMeals/meals.rb/blob/master/CHANGELOG.md
59
+ post_install_message:
60
+ rdoc_options: []
61
+ require_paths:
62
+ - lib
63
+ required_ruby_version: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: '0'
68
+ required_rubygems_version: !ruby/object:Gem::Requirement
69
+ requirements:
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ version: '0'
73
+ requirements: []
74
+ rubygems_version: 3.0.3
75
+ signing_key:
76
+ specification_version: 4
77
+ summary: Emoji cookbook
78
+ test_files: []