foodie_hunt 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +8 -0
- data/Gemfile.lock +91 -0
- data/README.md +29 -0
- data/Rakefile +4 -0
- data/dinner/steak.txt +5 -0
- data/exe/foodie +4 -0
- data/foodie.gemspec +46 -0
- data/lib/foodie/cli.rb +20 -0
- data/lib/foodie/food.rb +16 -0
- data/lib/foodie/generators/recipe/recipe.txt +5 -0
- data/lib/foodie/generators/recipe.rb +19 -0
- data/lib/foodie/version.rb +5 -0
- data/lib/foodie.rb +10 -0
- data/sig/foodie.rbs +4 -0
- metadata +131 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: bbb2ba469396bec57c4f98e62b3f4b10484fd98a1970cb49b6903690dcbfd20b
|
4
|
+
data.tar.gz: d59abd04e903947e042a9a6ab9baf98af4417403f2d6c0c368523bacb7a5480f
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 9d8c13c9505a1cd91fe6e1200c22ab4a7615140e5e15ce73ea7325085e97473399eca36c0872a88f92774548c0ca0b06d29715d4f16279d4eb3852b983b8b5ee
|
7
|
+
data.tar.gz: 4cd5b82998cb0b9187e44365d97711b138f1d9a9aa8bfd2b4ac49aae6f6610852aa2d2c137dca00d87f97349ff8bb414dd712bde1d12f7b3233ba1b9b3acd7b3
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,91 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
foodie_hunt (0.1.0)
|
5
|
+
activesupport
|
6
|
+
thor
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
activesupport (7.0.4)
|
12
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
13
|
+
i18n (>= 1.6, < 2)
|
14
|
+
minitest (>= 5.1)
|
15
|
+
tzinfo (~> 2.0)
|
16
|
+
aruba (2.1.0)
|
17
|
+
bundler (>= 1.17, < 3.0)
|
18
|
+
childprocess (>= 2.0, < 5.0)
|
19
|
+
contracts (>= 0.16.0, < 0.18.0)
|
20
|
+
cucumber (>= 4.0, < 9.0)
|
21
|
+
rspec-expectations (~> 3.4)
|
22
|
+
thor (~> 1.0)
|
23
|
+
builder (3.2.4)
|
24
|
+
childprocess (4.1.0)
|
25
|
+
concurrent-ruby (1.1.10)
|
26
|
+
contracts (0.17)
|
27
|
+
cucumber (8.0.0)
|
28
|
+
builder (~> 3.2, >= 3.2.4)
|
29
|
+
cucumber-ci-environment (~> 9.0, >= 9.0.4)
|
30
|
+
cucumber-core (~> 11.0, >= 11.0.0)
|
31
|
+
cucumber-cucumber-expressions (~> 15.1, >= 15.1.1)
|
32
|
+
cucumber-gherkin (~> 23.0, >= 23.0.1)
|
33
|
+
cucumber-html-formatter (~> 19.1, >= 19.1.0)
|
34
|
+
cucumber-messages (~> 18.0, >= 18.0.0)
|
35
|
+
diff-lcs (~> 1.5, >= 1.5.0)
|
36
|
+
mime-types (~> 3.4, >= 3.4.1)
|
37
|
+
multi_test (~> 1.1, >= 1.1.0)
|
38
|
+
sys-uname (~> 1.2, >= 1.2.2)
|
39
|
+
cucumber-ci-environment (9.1.0)
|
40
|
+
cucumber-core (11.0.0)
|
41
|
+
cucumber-gherkin (~> 23.0, >= 23.0.1)
|
42
|
+
cucumber-messages (~> 18.0, >= 18.0.0)
|
43
|
+
cucumber-tag-expressions (~> 4.1, >= 4.1.0)
|
44
|
+
cucumber-cucumber-expressions (15.2.0)
|
45
|
+
cucumber-gherkin (23.0.1)
|
46
|
+
cucumber-messages (~> 18.0, >= 18.0.0)
|
47
|
+
cucumber-html-formatter (19.2.0)
|
48
|
+
cucumber-messages (~> 18.0, >= 18.0.0)
|
49
|
+
cucumber-messages (18.0.0)
|
50
|
+
cucumber-tag-expressions (4.1.0)
|
51
|
+
diff-lcs (1.5.0)
|
52
|
+
ffi (1.15.5)
|
53
|
+
i18n (1.12.0)
|
54
|
+
concurrent-ruby (~> 1.0)
|
55
|
+
mime-types (3.4.1)
|
56
|
+
mime-types-data (~> 3.2015)
|
57
|
+
mime-types-data (3.2022.0105)
|
58
|
+
minitest (5.16.3)
|
59
|
+
multi_test (1.1.0)
|
60
|
+
rake (13.0.6)
|
61
|
+
rspec (3.12.0)
|
62
|
+
rspec-core (~> 3.12.0)
|
63
|
+
rspec-expectations (~> 3.12.0)
|
64
|
+
rspec-mocks (~> 3.12.0)
|
65
|
+
rspec-core (3.12.0)
|
66
|
+
rspec-support (~> 3.12.0)
|
67
|
+
rspec-expectations (3.12.0)
|
68
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
69
|
+
rspec-support (~> 3.12.0)
|
70
|
+
rspec-mocks (3.12.0)
|
71
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
72
|
+
rspec-support (~> 3.12.0)
|
73
|
+
rspec-support (3.12.0)
|
74
|
+
sys-uname (1.2.2)
|
75
|
+
ffi (~> 1.1)
|
76
|
+
thor (1.2.1)
|
77
|
+
tzinfo (2.0.5)
|
78
|
+
concurrent-ruby (~> 1.0)
|
79
|
+
|
80
|
+
PLATFORMS
|
81
|
+
x86_64-linux
|
82
|
+
|
83
|
+
DEPENDENCIES
|
84
|
+
aruba
|
85
|
+
cucumber
|
86
|
+
foodie_hunt!
|
87
|
+
rake (~> 13.0)
|
88
|
+
rspec (~> 3.2)
|
89
|
+
|
90
|
+
BUNDLED WITH
|
91
|
+
2.3.19
|
data/README.md
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# Foodie
|
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/foodie`. 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
|
+
Install the gem and add to the application's Gemfile by executing:
|
10
|
+
|
11
|
+
$ bundle add foodie
|
12
|
+
|
13
|
+
If bundler is not being used to manage dependencies, install the gem by executing:
|
14
|
+
|
15
|
+
$ gem install foodie
|
16
|
+
|
17
|
+
## Usage
|
18
|
+
|
19
|
+
TODO: Write usage instructions here
|
20
|
+
|
21
|
+
## Development
|
22
|
+
|
23
|
+
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.
|
24
|
+
|
25
|
+
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 the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
26
|
+
|
27
|
+
## Contributing
|
28
|
+
|
29
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/foodie.
|
data/Rakefile
ADDED
data/dinner/steak.txt
ADDED
data/exe/foodie
ADDED
data/foodie.gemspec
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "lib/foodie/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = "foodie_hunt"
|
7
|
+
spec.version = Foodie::VERSION
|
8
|
+
spec.authors = ["Hunt Lin"]
|
9
|
+
spec.email = ["hunt.lin@tes-tec.com"]
|
10
|
+
|
11
|
+
spec.add_development_dependency "rspec", "~> 3.2"
|
12
|
+
|
13
|
+
spec.add_dependency "activesupport"
|
14
|
+
spec.add_dependency "thor"
|
15
|
+
|
16
|
+
spec.add_development_dependency "cucumber"
|
17
|
+
spec.add_development_dependency "aruba"
|
18
|
+
|
19
|
+
spec.summary = "this is a test."
|
20
|
+
spec.description = "this is a test."
|
21
|
+
spec.homepage = "https://uhuntu.net"
|
22
|
+
spec.required_ruby_version = ">= 2.6.0"
|
23
|
+
|
24
|
+
spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
25
|
+
|
26
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
27
|
+
spec.metadata["source_code_uri"] = "https://uhuntu.net"
|
28
|
+
spec.metadata["changelog_uri"] = "https://uhuntu.net"
|
29
|
+
|
30
|
+
# Specify which files should be added to the gem when it is released.
|
31
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
32
|
+
spec.files = Dir.chdir(__dir__) do
|
33
|
+
`git ls-files -z`.split("\x0").reject do |f|
|
34
|
+
(f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
|
35
|
+
end
|
36
|
+
end
|
37
|
+
spec.bindir = "exe"
|
38
|
+
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
39
|
+
spec.require_paths = ["lib"]
|
40
|
+
|
41
|
+
# Uncomment to register a new dependency of your gem
|
42
|
+
# spec.add_dependency "example-gem", "~> 1.0"
|
43
|
+
|
44
|
+
# For more information and examples about making a new gem, check out our
|
45
|
+
# guide at: https://bundler.io/guides/creating_gem.html
|
46
|
+
end
|
data/lib/foodie/cli.rb
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'thor'
|
2
|
+
require 'foodie'
|
3
|
+
require 'foodie/generators/recipe'
|
4
|
+
module Foodie
|
5
|
+
class CLI < Thor
|
6
|
+
desc "portray ITEM", "Determines if a piece of food is gross or delicious"
|
7
|
+
def portray(name)
|
8
|
+
puts Foodie::Food.portray(name)
|
9
|
+
end
|
10
|
+
desc "pluralize", "Pluralizes a word"
|
11
|
+
method_option :word, aliases: "-w"
|
12
|
+
def pluralize
|
13
|
+
puts Foodie::Food.pluralize(options[:word])
|
14
|
+
end
|
15
|
+
desc "recipe", "Generates a recipe scaffold"
|
16
|
+
def recipe(group, name)
|
17
|
+
Foodie::Generators::Recipe.start([group, name])
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
data/lib/foodie/food.rb
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'thor/group'
|
2
|
+
module Foodie
|
3
|
+
module Generators
|
4
|
+
class Recipe < Thor::Group
|
5
|
+
include Thor::Actions
|
6
|
+
def create_group
|
7
|
+
empty_directory(group)
|
8
|
+
end
|
9
|
+
def copy_recipe
|
10
|
+
template("recipe.txt", "#{group}/#{name}.txt")
|
11
|
+
end
|
12
|
+
def self.source_root
|
13
|
+
File.dirname(__FILE__) + "/recipe"
|
14
|
+
end
|
15
|
+
argument :group, type: :string
|
16
|
+
argument :name, type: :string
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
data/lib/foodie.rb
ADDED
data/sig/foodie.rbs
ADDED
metadata
ADDED
@@ -0,0 +1,131 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: foodie_hunt
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Hunt Lin
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2022-10-29 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rspec
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.2'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.2'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: activesupport
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: thor
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
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: cucumber
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
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: aruba
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
description: this is a test.
|
84
|
+
email:
|
85
|
+
- hunt.lin@tes-tec.com
|
86
|
+
executables:
|
87
|
+
- foodie
|
88
|
+
extensions: []
|
89
|
+
extra_rdoc_files: []
|
90
|
+
files:
|
91
|
+
- Gemfile
|
92
|
+
- Gemfile.lock
|
93
|
+
- README.md
|
94
|
+
- Rakefile
|
95
|
+
- dinner/steak.txt
|
96
|
+
- exe/foodie
|
97
|
+
- foodie.gemspec
|
98
|
+
- lib/foodie.rb
|
99
|
+
- lib/foodie/cli.rb
|
100
|
+
- lib/foodie/food.rb
|
101
|
+
- lib/foodie/generators/recipe.rb
|
102
|
+
- lib/foodie/generators/recipe/recipe.txt
|
103
|
+
- lib/foodie/version.rb
|
104
|
+
- sig/foodie.rbs
|
105
|
+
homepage: https://uhuntu.net
|
106
|
+
licenses: []
|
107
|
+
metadata:
|
108
|
+
allowed_push_host: https://rubygems.org
|
109
|
+
homepage_uri: https://uhuntu.net
|
110
|
+
source_code_uri: https://uhuntu.net
|
111
|
+
changelog_uri: https://uhuntu.net
|
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: 2.6.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.3.7
|
128
|
+
signing_key:
|
129
|
+
specification_version: 4
|
130
|
+
summary: this is a test.
|
131
|
+
test_files: []
|