foodie_david 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: '08108d24433baa26fb8cb4bfa2ea49172142447d34e726e9fabd7dfa5e4727e2'
4
+ data.tar.gz: a2fe5fd30b901f75eb38c51782810513cb348c98bc4ac5dfb7c55cbb869e0d2c
5
+ SHA512:
6
+ metadata.gz: 15825385e9e5558e4900291391bc033fdb7a7c4bbd4d23267eacc6fbedcd8af2fe64eb506fe10b68b5c443c46baa842ff8924c9cf3956bc8ddff51e2806f040a
7
+ data.tar.gz: 209f29c7ccd9a250d66b9127bc7c4b01b0a069bdc21a6c6ba1346a4d7358fde01d96d3b1da8f93280ad7626e25cbd200daf6feab69d5c7d2cc9e72dc3e37ede4
data/.gitignore ADDED
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
data/.idea/.rakeTasks ADDED
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Settings><!--This file was automatically generated by Ruby plugin.
3
+ You are allowed to:
4
+ 1. Remove rake task
5
+ 2. Add existing rake tasks
6
+ To add existing rake tasks automatically delete this file and reload the project.
7
+ --><RakeGroup description="" fullCmd="" taksId="rake"><RakeTask description="Build foodie_david-0.1.0.gem into the pkg directory" fullCmd="build" taksId="build" /><RakeTask description="Remove any temporary products" fullCmd="clean" taksId="clean" /><RakeTask description="Remove any generated files" fullCmd="clobber" taksId="clobber" /><RakeTask description="Build and install foodie_david-0.1.0.gem into system gems" fullCmd="install" taksId="install" /><RakeGroup description="" fullCmd="" taksId="install"><RakeTask description="Build and install foodie_david-0.1.0.gem into system gems without network access" fullCmd="install:local" taksId="local" /></RakeGroup><RakeTask description="Create tag v0.1.0 and build and push foodie_david-0.1.0.gem to TODO: Set to 'http://mygemserver.com'" fullCmd="release[remote]" taksId="release[remote]" /><RakeTask description="Run RSpec code examples" fullCmd="spec" taksId="spec" /><RakeTask description="" fullCmd="default" taksId="default" /><RakeTask description="" fullCmd="release" taksId="release" /><RakeGroup description="" fullCmd="" taksId="release"><RakeTask description="" fullCmd="release:guard_clean" taksId="guard_clean" /><RakeTask description="" fullCmd="release:rubygem_push" taksId="rubygem_push" /><RakeTask description="" fullCmd="release:source_control_push" taksId="source_control_push" /></RakeGroup></RakeGroup></Settings>
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="Encoding" addBOMForNewFiles="with NO BOM" />
4
+ </project>
@@ -0,0 +1,19 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="RUBY_MODULE" version="4">
3
+ <component name="ModuleRunConfigurationManager">
4
+ <shared />
5
+ </component>
6
+ <component name="NewModuleRootManager">
7
+ <content url="file://$MODULE_DIR$" />
8
+ <orderEntry type="inheritedJdk" />
9
+ <orderEntry type="sourceFolder" forTests="false" />
10
+ <orderEntry type="library" scope="PROVIDED" name="builder (v3.2.3, RVM: ruby-2.5.3) [gem]" level="application" />
11
+ <orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.3, RVM: ruby-2.5.3) [gem]" level="application" />
12
+ <orderEntry type="library" scope="PROVIDED" name="i18n (v0.9.5, RVM: ruby-2.5.3) [gem]" level="application" />
13
+ <orderEntry type="library" scope="PROVIDED" name="minitest (v5.11.3, RVM: ruby-2.5.3) [gem]" level="application" />
14
+ <orderEntry type="library" scope="PROVIDED" name="rspec (v3.7.0, RVM: ruby-2.5.3) [gem]" level="application" />
15
+ <orderEntry type="library" scope="PROVIDED" name="thor (v0.20.3, RVM: ruby-2.5.3) [gem]" level="application" />
16
+ <orderEntry type="library" scope="PROVIDED" name="thread_safe (v0.3.6, RVM: ruby-2.5.3) [gem]" level="application" />
17
+ <orderEntry type="library" scope="PROVIDED" name="tzinfo (v1.2.5, RVM: ruby-2.5.3) [gem]" level="application" />
18
+ </component>
19
+ </module>
@@ -0,0 +1,6 @@
1
+ <component name="InspectionProjectProfileManager">
2
+ <profile version="1.0">
3
+ <option name="myName" value="Project Default" />
4
+ <inspection_tool class="Rubocop" enabled="false" level="WARNING" enabled_by_default="false" />
5
+ </profile>
6
+ </component>
data/.idea/misc.xml ADDED
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="JavaScriptSettings">
4
+ <option name="languageLevel" value="ES6" />
5
+ </component>
6
+ <component name="ProjectRootManager" version="2" project-jdk-name="RVM: ruby-2.5.3" project-jdk-type="RUBY_SDK" />
7
+ </project>
data/.idea/modules.xml ADDED
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/foodie_david.iml" filepath="$PROJECT_DIR$/.idea/foodie_david.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
data/.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,275 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ChangeListManager">
4
+ <list default="true" id="c54754da-9f3e-46fc-b1ea-ac18994181e9" name="Default Changelist" comment="" />
5
+ <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
6
+ <option name="SHOW_DIALOG" value="false" />
7
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
8
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
9
+ <option name="LAST_RESOLUTION" value="IGNORE" />
10
+ </component>
11
+ <component name="FileEditorManager">
12
+ <leaf>
13
+ <file pinned="false" current-in-tab="true">
14
+ <entry file="file://$PROJECT_DIR$/foodie_david.gemspec">
15
+ <provider selected="true" editor-type-id="text-editor">
16
+ <state relative-caret-position="974">
17
+ <caret line="44" column="39" selection-start-line="44" selection-start-column="39" selection-end-line="44" selection-end-column="39" />
18
+ </state>
19
+ </provider>
20
+ </entry>
21
+ </file>
22
+ </leaf>
23
+ </component>
24
+ <component name="FindInProjectRecents">
25
+ <findStrings>
26
+ <find>Bundler</find>
27
+ </findStrings>
28
+ </component>
29
+ <component name="Git.Settings">
30
+ <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
31
+ </component>
32
+ <component name="IdeDocumentHistory">
33
+ <option name="CHANGED_PATHS">
34
+ <list>
35
+ <option value="$PROJECT_DIR$/Gemfile" />
36
+ <option value="$PROJECT_DIR$/lib/foodie_david.rb" />
37
+ <option value="$PROJECT_DIR$/spec/foodie_david_spec.rb" />
38
+ <option value="$PROJECT_DIR$/lib/foodie_david/food.rb" />
39
+ <option value="$PROJECT_DIR$/features/support/setup.rb" />
40
+ <option value="$PROJECT_DIR$/foodie_david" />
41
+ <option value="$PROJECT_DIR$/features/food.feature" />
42
+ <option value="$PROJECT_DIR$/foodie_david.gemspec" />
43
+ <option value="$PROJECT_DIR$/exe/foodie_david" />
44
+ <option value="$PROJECT_DIR$/lib/foodie_david/generator.rb" />
45
+ <option value="$PROJECT_DIR$/lib/foodie_david/cli.rb" />
46
+ <option value="$PROJECT_DIR$/lib/foodie_david/generators.rb" />
47
+ <option value="$PROJECT_DIR$/lib/foodie_david/generators/recipe.rb" />
48
+ <option value="$PROJECT_DIR$/lib/foodie_david/generators/recipe/recipe.txt" />
49
+ <option value="$PROJECT_DIR$/features/generator.feature" />
50
+ </list>
51
+ </option>
52
+ </component>
53
+ <component name="ProjectFrameBounds" extendedState="6">
54
+ <option name="x" value="77" />
55
+ <option name="y" value="47" />
56
+ <option name="width" value="1279" />
57
+ <option name="height" value="701" />
58
+ </component>
59
+ <component name="ProjectView">
60
+ <navigator proportions="" version="1">
61
+ <foldersAlwaysOnTop value="true" />
62
+ </navigator>
63
+ <panes>
64
+ <pane id="ProjectPane">
65
+ <subPane>
66
+ <expand>
67
+ <path>
68
+ <item name="foodie_david" type="b2602c69:ProjectViewProjectNode" />
69
+ <item name="foodie_david" type="462c0819:PsiDirectoryNode" />
70
+ </path>
71
+ </expand>
72
+ <select />
73
+ </subPane>
74
+ </pane>
75
+ <pane id="Scope" />
76
+ </panes>
77
+ </component>
78
+ <component name="PropertiesComponent">
79
+ <property name="WebServerToolWindowFactoryState" value="false" />
80
+ <property name="last_opened_file_path" value="$PROJECT_DIR$" />
81
+ <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
82
+ <property name="nodejs_npm_path_reset_for_default_project" value="true" />
83
+ </component>
84
+ <component name="RecentsManager">
85
+ <key name="MoveFile.RECENT_KEYS">
86
+ <recent name="$PROJECT_DIR$/exe" />
87
+ </key>
88
+ </component>
89
+ <component name="RunDashboard">
90
+ <option name="ruleStates">
91
+ <list>
92
+ <RuleState>
93
+ <option name="name" value="ConfigurationTypeDashboardGroupingRule" />
94
+ </RuleState>
95
+ <RuleState>
96
+ <option name="name" value="StatusDashboardGroupingRule" />
97
+ </RuleState>
98
+ </list>
99
+ </option>
100
+ </component>
101
+ <component name="SpringUtil" SPRING_PRE_LOADER_OPTION="true" />
102
+ <component name="SvnConfiguration">
103
+ <configuration />
104
+ </component>
105
+ <component name="TaskManager">
106
+ <task active="true" id="Default" summary="Default task">
107
+ <changelist id="c54754da-9f3e-46fc-b1ea-ac18994181e9" name="Default Changelist" comment="" />
108
+ <created>1547450702219</created>
109
+ <option name="number" value="Default" />
110
+ <option name="presentableId" value="Default" />
111
+ <updated>1547450702219</updated>
112
+ <workItem from="1547450703894" duration="10299000" />
113
+ </task>
114
+ <servers />
115
+ </component>
116
+ <component name="TimeTrackingManager">
117
+ <option name="totallyTimeSpent" value="10299000" />
118
+ </component>
119
+ <component name="ToolWindowManager">
120
+ <frame x="0" y="25" width="1366" height="743" extended-state="6" />
121
+ <layout>
122
+ <window_info id="Favorites" side_tool="true" />
123
+ <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.25" />
124
+ <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
125
+ <window_info anchor="bottom" id="Docker" show_stripe_button="false" />
126
+ <window_info anchor="bottom" id="Database Changes" />
127
+ <window_info anchor="bottom" id="Version Control" />
128
+ <window_info anchor="bottom" id="Terminal" />
129
+ <window_info anchor="bottom" id="Event Log" side_tool="true" />
130
+ <window_info anchor="bottom" id="Message" order="0" />
131
+ <window_info anchor="bottom" id="Find" order="1" />
132
+ <window_info anchor="bottom" id="Run" order="2" />
133
+ <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
134
+ <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
135
+ <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
136
+ <window_info anchor="bottom" id="TODO" order="6" />
137
+ <window_info anchor="right" id="Database" />
138
+ <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
139
+ <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
140
+ <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
141
+ </layout>
142
+ </component>
143
+ <component name="TypeScriptGeneratedFilesManager">
144
+ <option name="version" value="1" />
145
+ </component>
146
+ <component name="editorHistoryManager">
147
+ <entry file="file://$PROJECT_DIR$/Rakefile">
148
+ <provider selected="true" editor-type-id="text-editor">
149
+ <state relative-caret-position="138">
150
+ <caret line="6" lean-forward="true" selection-start-line="6" selection-end-line="6" />
151
+ </state>
152
+ </provider>
153
+ </entry>
154
+ <entry file="file://$PROJECT_DIR$/CODE_OF_CONDUCT.md">
155
+ <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
156
+ <state split_layout="SPLIT">
157
+ <first_editor />
158
+ <second_editor />
159
+ </state>
160
+ </provider>
161
+ </entry>
162
+ <entry file="file://$USER_HOME$/.rvm/rubies/ruby-2.5.3/lib/ruby/2.5.0/rubygems/commands/query_command.rb">
163
+ <provider selected="true" editor-type-id="text-editor">
164
+ <state relative-caret-position="186">
165
+ <caret line="299" column="6" selection-start-line="299" selection-start-column="6" selection-end-line="299" selection-end-column="6" />
166
+ </state>
167
+ </provider>
168
+ </entry>
169
+ <entry file="file://$PROJECT_DIR$/Gemfile">
170
+ <provider selected="true" editor-type-id="text-editor">
171
+ <state relative-caret-position="23">
172
+ <caret line="1" lean-forward="true" selection-start-line="1" selection-end-line="1" />
173
+ </state>
174
+ </provider>
175
+ </entry>
176
+ <entry file="file://$USER_HOME$/.rvm/rubies/ruby-2.5.3/lib/ruby/2.5.0/rdoc/parser/changelog.rb">
177
+ <provider selected="true" editor-type-id="text-editor">
178
+ <state relative-caret-position="46">
179
+ <caret line="2" selection-start-line="2" selection-end-line="2" />
180
+ </state>
181
+ </provider>
182
+ </entry>
183
+ <entry file="file://$PROJECT_DIR$/CHANGELOG.md">
184
+ <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
185
+ <state split_layout="SPLIT">
186
+ <first_editor />
187
+ <second_editor />
188
+ </state>
189
+ </provider>
190
+ </entry>
191
+ <entry file="file://$PROJECT_DIR$/lib/foodie_david/version.rb">
192
+ <provider selected="true" editor-type-id="text-editor" />
193
+ </entry>
194
+ <entry file="file://$PROJECT_DIR$/spec/foodie_david_spec.rb">
195
+ <provider selected="true" editor-type-id="text-editor">
196
+ <state relative-caret-position="276">
197
+ <caret line="12" column="66" selection-start-line="12" selection-start-column="66" selection-end-line="12" selection-end-column="66" />
198
+ </state>
199
+ </provider>
200
+ </entry>
201
+ <entry file="file://$PROJECT_DIR$/lib/foodie_david/food.rb">
202
+ <provider selected="true" editor-type-id="text-editor">
203
+ <state>
204
+ <caret column="33" selection-start-column="33" selection-end-column="33" />
205
+ </state>
206
+ </provider>
207
+ </entry>
208
+ <entry file="file://$PROJECT_DIR$/features/support/setup.rb">
209
+ <provider selected="true" editor-type-id="text-editor">
210
+ <state>
211
+ <caret column="23" selection-start-column="23" selection-end-column="23" />
212
+ </state>
213
+ </provider>
214
+ </entry>
215
+ <entry file="file://$PROJECT_DIR$/lib/foodie_david.rb">
216
+ <provider selected="true" editor-type-id="text-editor">
217
+ <state relative-caret-position="69">
218
+ <caret line="3" column="18" selection-start-line="3" selection-start-column="7" selection-end-line="3" selection-end-column="18" />
219
+ </state>
220
+ </provider>
221
+ </entry>
222
+ <entry file="file://$PROJECT_DIR$/exe/foodie_david">
223
+ <provider selected="true" editor-type-id="text-editor">
224
+ <state relative-caret-position="23">
225
+ <caret line="1" column="26" selection-start-line="1" selection-start-column="26" selection-end-line="1" selection-end-column="26" />
226
+ </state>
227
+ </provider>
228
+ </entry>
229
+ <entry file="file://$PROJECT_DIR$/lib/foodie_david/generators.rb">
230
+ <provider selected="true" editor-type-id="text-editor" />
231
+ </entry>
232
+ <entry file="file://$PROJECT_DIR$/lib/foodie_david/generators/recipe.rb">
233
+ <provider selected="true" editor-type-id="text-editor">
234
+ <state relative-caret-position="414">
235
+ <caret line="18" column="41" selection-start-line="18" selection-start-column="41" selection-end-line="18" selection-end-column="41" />
236
+ </state>
237
+ </provider>
238
+ </entry>
239
+ <entry file="file://$PROJECT_DIR$/lib/foodie_david/generators/recipe/recipe.txt">
240
+ <provider selected="true" editor-type-id="text-editor">
241
+ <state relative-caret-position="92">
242
+ <caret line="4" column="50" selection-start-line="4" selection-start-column="50" selection-end-line="4" selection-end-column="50" />
243
+ </state>
244
+ </provider>
245
+ </entry>
246
+ <entry file="file://$PROJECT_DIR$/lib/foodie_david/cli.rb">
247
+ <provider selected="true" editor-type-id="text-editor">
248
+ <state>
249
+ <caret column="21" selection-start-column="9" selection-end-column="21" />
250
+ </state>
251
+ </provider>
252
+ </entry>
253
+ <entry file="file://$PROJECT_DIR$/features/generator.feature">
254
+ <provider selected="true" editor-type-id="text-editor">
255
+ <state relative-caret-position="138">
256
+ <caret line="6" column="28" selection-start-line="6" selection-start-column="28" selection-end-line="6" selection-end-column="28" />
257
+ </state>
258
+ </provider>
259
+ </entry>
260
+ <entry file="file://$PROJECT_DIR$/features/food.feature">
261
+ <provider selected="true" editor-type-id="text-editor">
262
+ <state relative-caret-position="23">
263
+ <caret line="1" column="2" selection-start-line="1" selection-start-column="2" selection-end-line="3" selection-end-column="39" />
264
+ </state>
265
+ </provider>
266
+ </entry>
267
+ <entry file="file://$PROJECT_DIR$/foodie_david.gemspec">
268
+ <provider selected="true" editor-type-id="text-editor">
269
+ <state relative-caret-position="974">
270
+ <caret line="44" column="39" selection-start-line="44" selection-start-column="39" selection-end-line="44" selection-end-column="39" />
271
+ </state>
272
+ </provider>
273
+ </entry>
274
+ </component>
275
+ </project>
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.travis.yml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ sudo: false
3
+ language: ruby
4
+ cache: bundler
5
+ rvm:
6
+ - 2.5.0
7
+ before_install: gem install bundler -v 2.0.1
data/CHANGELOG.md ADDED
File without changes
@@ -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 David.mwangi@kopokop.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
@@ -0,0 +1,4 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in foodie_david.gemspec
4
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,84 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ foodie_david (0.1.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ activesupport (4.2.11)
10
+ i18n (~> 0.7)
11
+ minitest (~> 5.1)
12
+ thread_safe (~> 0.3, >= 0.3.4)
13
+ tzinfo (~> 1.1)
14
+ aruba (0.14.7)
15
+ childprocess (>= 0.6.3, < 0.10.0)
16
+ contracts (~> 0.9)
17
+ cucumber (>= 1.3.19)
18
+ ffi (~> 1.9)
19
+ rspec-expectations (>= 2.99)
20
+ thor (~> 0.19)
21
+ backports (3.11.4)
22
+ builder (3.2.3)
23
+ childprocess (0.9.0)
24
+ ffi (~> 1.0, >= 1.0.11)
25
+ concurrent-ruby (1.1.4)
26
+ contracts (0.16.0)
27
+ cucumber (3.1.2)
28
+ builder (>= 2.1.2)
29
+ cucumber-core (~> 3.2.0)
30
+ cucumber-expressions (~> 6.0.1)
31
+ cucumber-wire (~> 0.0.1)
32
+ diff-lcs (~> 1.3)
33
+ gherkin (~> 5.1.0)
34
+ multi_json (>= 1.7.5, < 2.0)
35
+ multi_test (>= 0.1.2)
36
+ cucumber-core (3.2.1)
37
+ backports (>= 3.8.0)
38
+ cucumber-tag_expressions (~> 1.1.0)
39
+ gherkin (~> 5.0)
40
+ cucumber-expressions (6.0.1)
41
+ cucumber-tag_expressions (1.1.1)
42
+ cucumber-wire (0.0.1)
43
+ diff-lcs (1.3)
44
+ ffi (1.10.0)
45
+ gherkin (5.1.0)
46
+ i18n (0.9.5)
47
+ concurrent-ruby (~> 1.0)
48
+ minitest (5.11.3)
49
+ multi_json (1.13.1)
50
+ multi_test (0.1.2)
51
+ rake (10.5.0)
52
+ rspec (3.8.0)
53
+ rspec-core (~> 3.8.0)
54
+ rspec-expectations (~> 3.8.0)
55
+ rspec-mocks (~> 3.8.0)
56
+ rspec-core (3.8.0)
57
+ rspec-support (~> 3.8.0)
58
+ rspec-expectations (3.8.2)
59
+ diff-lcs (>= 1.2.0, < 2.0)
60
+ rspec-support (~> 3.8.0)
61
+ rspec-mocks (3.8.0)
62
+ diff-lcs (>= 1.2.0, < 2.0)
63
+ rspec-support (~> 3.8.0)
64
+ rspec-support (3.8.0)
65
+ thor (0.20.3)
66
+ thread_safe (0.3.6)
67
+ tzinfo (1.2.5)
68
+ thread_safe (~> 0.1)
69
+
70
+ PLATFORMS
71
+ ruby
72
+
73
+ DEPENDENCIES
74
+ activesupport (~> 4.2.0)
75
+ aruba
76
+ bundler (~> 2.0)
77
+ cucumber
78
+ foodie_david!
79
+ rake (~> 10.0)
80
+ rspec (~> 3.2)
81
+ thor
82
+
83
+ BUNDLED WITH
84
+ 2.0.1
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019 DavidKar1uk1
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,43 @@
1
+ # FoodieDavid
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_david`. 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
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'foodie_david'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle install
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install foodie_david
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ 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).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/foodie_david. 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.
36
+
37
+ ## License
38
+
39
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
40
+
41
+ ## Code of Conduct
42
+
43
+ Everyone interacting in the FoodieDavid project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/foodie_david/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "foodie_david"
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,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
data/dinner/steak.txt ADDED
@@ -0,0 +1,5 @@
1
+ ##### Ingredients #####
2
+ Ingredients for delicious steak go here.
3
+
4
+ ##### Instruction ######
5
+ Tips on how to make delicious steak go here.
data/exe/foodie_david ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require 'foodie_david/cli'
3
+ FoodieDavid::CLI.start
@@ -0,0 +1,46 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "foodie_david/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "foodie_david"
8
+ spec.version = FoodieDavid::VERSION
9
+ spec.authors = ["DavidKar1uk1"]
10
+ spec.email = ["David.mwangi@kopokopo.com"]
11
+
12
+ spec.summary = %q{Gemfile to rate food.rb on its taste.}
13
+ spec.description = %q{Basically my first trial with Gemfile and how to use it.}
14
+ spec.homepage = "https://github.com/DavidKar1uk1/foodie_david.git"
15
+ spec.license = "MIT"
16
+
17
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
19
+ if spec.respond_to?(:metadata)
20
+ #spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
21
+
22
+ spec.metadata["homepage_uri"] = "https://github.com/DavidKar1uk1/foodie_david.git"
23
+ spec.metadata["source_code_uri"] = "https://github.com/DavidKar1uk1/foodie_david.git"
24
+ spec.metadata["changelog_uri"] = "https://github.com/DavidKar1uk1/foodie_david/blob/master/CHANGELOG.md"
25
+ else
26
+ raise "RubyGems 2.0 or newer is required to protect against " \
27
+ "public gem pushes."
28
+ end
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(File.expand_path('..', __FILE__)) do
33
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
34
+ end
35
+ spec.bindir = "exe"
36
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
37
+ spec.require_paths = ["lib"]
38
+
39
+ spec.add_development_dependency "bundler", "~> 2.0"
40
+ spec.add_development_dependency "rake", "~> 10.0"
41
+ spec.add_development_dependency "rspec", "~> 3.2"
42
+ spec.add_development_dependency "activesupport", "~> 4.2.0"
43
+ spec.add_development_dependency "cucumber"
44
+ spec.add_development_dependency "aruba"
45
+ spec.add_development_dependency "thor"
46
+ end
@@ -0,0 +1,23 @@
1
+ require 'foodie_david/generators/recipe'
2
+ require 'foodie_david'
3
+ require 'thor'
4
+ module FoodieDavid
5
+ class CLI <Thor
6
+ # portray
7
+ desc "portray ITEM", "Determines if a piece of food is gross or delicious"
8
+ def portray(name)
9
+ puts FoodieDavid::Food.portray(name)
10
+ end
11
+ # pluralize
12
+ desc "pluralize", "Pluralizes a word"
13
+ method_option :word, aliases: "-w"
14
+ def pluralize
15
+ puts FoodieDavid::Food.pluralize(options[:word])
16
+ end
17
+ # recipe
18
+ desc "recipe", "Generates a recipe scaffold"
19
+ def recipe(group, name)
20
+ FoodieDavid::Generators::Recipe.start([group, name])
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,18 @@
1
+ require 'active_support/inflector'
2
+
3
+ module FoodieDavid
4
+ class Food
5
+ def self.portray(food)
6
+ if food.downcase == "broccoli"
7
+ "Gross!"
8
+ else
9
+ "Delicious!"
10
+ end
11
+ end
12
+
13
+ def self.pluralize(word)
14
+ word.pluralize
15
+ end
16
+
17
+ end
18
+ end
@@ -0,0 +1,5 @@
1
+ ##### Ingredients #####
2
+ Ingredients for delicious <%= name %> go here.
3
+
4
+ ##### Instruction ######
5
+ Tips on how to make delicious <%= name %> go here.
@@ -0,0 +1,24 @@
1
+ require 'thor/group'
2
+ module FoodieDavid
3
+ module Generators
4
+ class Recipe < Thor::Group
5
+ include Thor::Actions
6
+
7
+ argument :group, type: :string
8
+ argument :name, type: :string
9
+
10
+ def create_group
11
+ empty_directory(group)
12
+ end
13
+
14
+ def copy_recipe
15
+ template("recipe.txt", "#{group}/#{name}.txt")
16
+ end
17
+
18
+ def self.source_root
19
+ File.dirname(__FILE__) + "/recipe"
20
+ end
21
+
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,3 @@
1
+ module FoodieDavid
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,7 @@
1
+ require "foodie_david/version"
2
+ require "foodie_david/food"
3
+
4
+ module FoodieDavid
5
+ class Error < StandardError; end
6
+ # Your code goes here...
7
+ end
metadata ADDED
@@ -0,0 +1,174 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: foodie_david
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - DavidKar1uk1
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2019-01-14 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: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.2'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.2'
55
+ - !ruby/object:Gem::Dependency
56
+ name: activesupport
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 4.2.0
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 4.2.0
69
+ - !ruby/object:Gem::Dependency
70
+ name: cucumber
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
+ - !ruby/object:Gem::Dependency
84
+ name: aruba
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: thor
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ description: Basically my first trial with Gemfile and how to use it.
112
+ email:
113
+ - David.mwangi@kopokopo.com
114
+ executables:
115
+ - foodie_david
116
+ extensions: []
117
+ extra_rdoc_files: []
118
+ files:
119
+ - ".gitignore"
120
+ - ".idea/.rakeTasks"
121
+ - ".idea/encodings.xml"
122
+ - ".idea/foodie_david.iml"
123
+ - ".idea/inspectionProfiles/Project_Default.xml"
124
+ - ".idea/misc.xml"
125
+ - ".idea/modules.xml"
126
+ - ".idea/vcs.xml"
127
+ - ".idea/workspace.xml"
128
+ - ".rspec"
129
+ - ".travis.yml"
130
+ - CHANGELOG.md
131
+ - CODE_OF_CONDUCT.md
132
+ - Gemfile
133
+ - Gemfile.lock
134
+ - LICENSE.txt
135
+ - README.md
136
+ - Rakefile
137
+ - bin/console
138
+ - bin/setup
139
+ - dinner/steak.txt
140
+ - exe/foodie_david
141
+ - foodie_david.gemspec
142
+ - lib/foodie_david.rb
143
+ - lib/foodie_david/cli.rb
144
+ - lib/foodie_david/food.rb
145
+ - lib/foodie_david/generators/recipe.rb
146
+ - lib/foodie_david/generators/recipe/recipe.txt
147
+ - lib/foodie_david/version.rb
148
+ homepage: https://github.com/DavidKar1uk1/foodie_david.git
149
+ licenses:
150
+ - MIT
151
+ metadata:
152
+ homepage_uri: https://github.com/DavidKar1uk1/foodie_david.git
153
+ source_code_uri: https://github.com/DavidKar1uk1/foodie_david.git
154
+ changelog_uri: https://github.com/DavidKar1uk1/foodie_david/blob/master/CHANGELOG.md
155
+ post_install_message:
156
+ rdoc_options: []
157
+ require_paths:
158
+ - lib
159
+ required_ruby_version: !ruby/object:Gem::Requirement
160
+ requirements:
161
+ - - ">="
162
+ - !ruby/object:Gem::Version
163
+ version: '0'
164
+ required_rubygems_version: !ruby/object:Gem::Requirement
165
+ requirements:
166
+ - - ">="
167
+ - !ruby/object:Gem::Version
168
+ version: '0'
169
+ requirements: []
170
+ rubygems_version: 3.0.2
171
+ signing_key:
172
+ specification_version: 4
173
+ summary: Gemfile to rate food.rb on its taste.
174
+ test_files: []