animal_names 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/.idea/.name +1 -0
- data/.idea/animal_names.iml +25 -0
- data/.idea/encodings.xml +5 -0
- data/.idea/misc.xml +5 -0
- data/.idea/modules.xml +9 -0
- data/.idea/scopes/scope_settings.xml +5 -0
- data/.idea/vcs.xml +7 -0
- data/.idea/workspace.xml +214 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +29 -0
- data/Rakefile +1 -0
- data/animal_names.gemspec +23 -0
- data/lib/animal_names.rb +64 -0
- data/lib/animal_names/version.rb +3 -0
- metadata +88 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 6961bbef9289404d5c2fafe36987caf40bb8d1c8
|
4
|
+
data.tar.gz: 0b5459012e44f7e47d90bd9be20e23cb0bdba32e
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: a44bc218bc0be5db5b76f7f7a856d2f90744c50ae1f03a343a54ae1866fcfa18adb239ff33b7216c8557b5859558f6af67e00e67e2b23018f3dded88cfe8558d
|
7
|
+
data.tar.gz: 90cbb69cf08599a0abd718995b4c33db68a9652c431e46b9e8881e8954ca6949749cd789a08d6dbf98dcbd9ebb46c778a5aee44cbf999061267d2d27b7e84631
|
data/.gitignore
ADDED
data/.idea/.name
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
animal_names
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<module type="RUBY_MODULE" version="4">
|
3
|
+
<component name="CompassSettings">
|
4
|
+
<option name="compassSupportEnabled" value="true" />
|
5
|
+
</component>
|
6
|
+
<component name="FacetManager">
|
7
|
+
<facet type="gem" name="Ruby Gem">
|
8
|
+
<configuration>
|
9
|
+
<option name="GEM_APP_ROOT_PATH" value="$MODULE_DIR$" />
|
10
|
+
<option name="GEM_APP_TEST_PATH" value="$MODULE_DIR$/test" />
|
11
|
+
<option name="GEM_APP_LIB_PATH" value="$MODULE_DIR$/lib" />
|
12
|
+
</configuration>
|
13
|
+
</facet>
|
14
|
+
</component>
|
15
|
+
<component name="NewModuleRootManager">
|
16
|
+
<content url="file://$MODULE_DIR$">
|
17
|
+
<sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
|
18
|
+
</content>
|
19
|
+
<orderEntry type="inheritedJdk" />
|
20
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
21
|
+
<orderEntry type="library" scope="PROVIDED" name="bundler (v1.3.5, RVM: ruby-2.0.0-p247) [gem]" level="application" />
|
22
|
+
<orderEntry type="library" scope="PROVIDED" name="rake (v10.1.0, RVM: ruby-2.0.0-p247) [gem]" level="application" />
|
23
|
+
</component>
|
24
|
+
</module>
|
25
|
+
|
data/.idea/encodings.xml
ADDED
data/.idea/misc.xml
ADDED
data/.idea/modules.xml
ADDED
@@ -0,0 +1,9 @@
|
|
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/animal_names.iml" filepath="$PROJECT_DIR$/.idea/animal_names.iml" />
|
6
|
+
</modules>
|
7
|
+
</component>
|
8
|
+
</project>
|
9
|
+
|
data/.idea/vcs.xml
ADDED
data/.idea/workspace.xml
ADDED
@@ -0,0 +1,214 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project version="4">
|
3
|
+
<component name="ChangeListManager">
|
4
|
+
<list default="true" id="418c3690-2445-434f-925c-6c754c470add" name="Default" comment="">
|
5
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/animal_names.rb" afterPath="$PROJECT_DIR$/lib/animal_names.rb" />
|
6
|
+
</list>
|
7
|
+
<ignored path="animal_names.iws" />
|
8
|
+
<ignored path=".idea/workspace.xml" />
|
9
|
+
<option name="TRACKING_ENABLED" value="true" />
|
10
|
+
<option name="SHOW_DIALOG" value="false" />
|
11
|
+
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
12
|
+
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
13
|
+
<option name="LAST_RESOLUTION" value="IGNORE" />
|
14
|
+
</component>
|
15
|
+
<component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
|
16
|
+
<component name="CreatePatchCommitExecutor">
|
17
|
+
<option name="PATCH_PATH" value="" />
|
18
|
+
</component>
|
19
|
+
<component name="DaemonCodeAnalyzer">
|
20
|
+
<disable_hints />
|
21
|
+
</component>
|
22
|
+
<component name="FavoritesManager">
|
23
|
+
<favorites_list name="animal_names" />
|
24
|
+
</component>
|
25
|
+
<component name="FileEditorManager">
|
26
|
+
<leaf>
|
27
|
+
<file leaf-file-name="animal_names.gemspec" pinned="false" current="true" current-in-tab="true">
|
28
|
+
<entry file="file://$PROJECT_DIR$/animal_names.gemspec">
|
29
|
+
<provider selected="true" editor-type-id="text-editor">
|
30
|
+
<state vertical-scroll-proportion="0.6659619" vertical-offset="0" max-vertical-offset="473">
|
31
|
+
<caret line="21" column="40" selection-start-line="21" selection-start-column="40" selection-end-line="21" selection-end-column="40" />
|
32
|
+
<folding />
|
33
|
+
</state>
|
34
|
+
</provider>
|
35
|
+
</entry>
|
36
|
+
</file>
|
37
|
+
<file leaf-file-name="animal_names.rb" pinned="false" current="false" current-in-tab="false">
|
38
|
+
<entry file="file://$PROJECT_DIR$/lib/animal_names.rb">
|
39
|
+
<provider selected="true" editor-type-id="text-editor">
|
40
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="577" max-vertical-offset="1050">
|
41
|
+
<caret line="49" column="20" selection-start-line="49" selection-start-column="20" selection-end-line="49" selection-end-column="20" />
|
42
|
+
<folding />
|
43
|
+
</state>
|
44
|
+
</provider>
|
45
|
+
</entry>
|
46
|
+
</file>
|
47
|
+
</leaf>
|
48
|
+
</component>
|
49
|
+
<component name="FindManager">
|
50
|
+
<FindUsagesManager>
|
51
|
+
<setting name="OPEN_NEW_TAB" value="true" />
|
52
|
+
</FindUsagesManager>
|
53
|
+
</component>
|
54
|
+
<component name="Git.Settings">
|
55
|
+
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
56
|
+
</component>
|
57
|
+
<component name="IdeDocumentHistory">
|
58
|
+
<option name="changedFiles">
|
59
|
+
<list>
|
60
|
+
<option value="$PROJECT_DIR$/animal_names.gemspec" />
|
61
|
+
<option value="$PROJECT_DIR$/lib/animal_names.rb" />
|
62
|
+
</list>
|
63
|
+
</option>
|
64
|
+
</component>
|
65
|
+
<component name="ProjectFrameBounds">
|
66
|
+
<option name="x" value="20" />
|
67
|
+
<option name="y" value="22" />
|
68
|
+
<option name="width" value="1400" />
|
69
|
+
<option name="height" value="790" />
|
70
|
+
</component>
|
71
|
+
<component name="ProjectLevelVcsManager" settingsEditedManually="true">
|
72
|
+
<OptionsSetting value="true" id="Add" />
|
73
|
+
<OptionsSetting value="true" id="Remove" />
|
74
|
+
<OptionsSetting value="true" id="Checkout" />
|
75
|
+
<OptionsSetting value="true" id="Update" />
|
76
|
+
<OptionsSetting value="true" id="Status" />
|
77
|
+
<OptionsSetting value="true" id="Edit" />
|
78
|
+
<ConfirmationsSetting value="0" id="Add" />
|
79
|
+
<ConfirmationsSetting value="0" id="Remove" />
|
80
|
+
</component>
|
81
|
+
<component name="ProjectReloadState">
|
82
|
+
<option name="STATE" value="0" />
|
83
|
+
</component>
|
84
|
+
<component name="ProjectView">
|
85
|
+
<navigator currentView="ProjectPane" proportions="" version="1">
|
86
|
+
<flattenPackages />
|
87
|
+
<showMembers />
|
88
|
+
<showModules />
|
89
|
+
<showLibraryContents />
|
90
|
+
<hideEmptyPackages />
|
91
|
+
<abbreviatePackageNames />
|
92
|
+
<autoscrollToSource />
|
93
|
+
<autoscrollFromSource />
|
94
|
+
<sortByType />
|
95
|
+
</navigator>
|
96
|
+
<panes>
|
97
|
+
<pane id="ProjectPane">
|
98
|
+
<subPane>
|
99
|
+
<PATH>
|
100
|
+
<PATH_ELEMENT>
|
101
|
+
<option name="myItemId" value="animal_names" />
|
102
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
103
|
+
</PATH_ELEMENT>
|
104
|
+
</PATH>
|
105
|
+
<PATH>
|
106
|
+
<PATH_ELEMENT>
|
107
|
+
<option name="myItemId" value="animal_names" />
|
108
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
109
|
+
</PATH_ELEMENT>
|
110
|
+
<PATH_ELEMENT>
|
111
|
+
<option name="myItemId" value="animal_names" />
|
112
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
113
|
+
</PATH_ELEMENT>
|
114
|
+
</PATH>
|
115
|
+
<PATH>
|
116
|
+
<PATH_ELEMENT>
|
117
|
+
<option name="myItemId" value="animal_names" />
|
118
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
119
|
+
</PATH_ELEMENT>
|
120
|
+
<PATH_ELEMENT>
|
121
|
+
<option name="myItemId" value="animal_names" />
|
122
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
123
|
+
</PATH_ELEMENT>
|
124
|
+
<PATH_ELEMENT>
|
125
|
+
<option name="myItemId" value="lib" />
|
126
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
127
|
+
</PATH_ELEMENT>
|
128
|
+
</PATH>
|
129
|
+
</subPane>
|
130
|
+
</pane>
|
131
|
+
<pane id="Scope" />
|
132
|
+
</panes>
|
133
|
+
</component>
|
134
|
+
<component name="PropertiesComponent">
|
135
|
+
<property name="WebServerToolWindowFactoryState" value="false" />
|
136
|
+
</component>
|
137
|
+
<component name="RunManager">
|
138
|
+
<list size="0" />
|
139
|
+
</component>
|
140
|
+
<component name="ShelveChangesManager" show_recycled="false" />
|
141
|
+
<component name="SvnConfiguration">
|
142
|
+
<configuration />
|
143
|
+
</component>
|
144
|
+
<component name="TaskManager">
|
145
|
+
<task active="true" id="Default" summary="Default task">
|
146
|
+
<changelist id="418c3690-2445-434f-925c-6c754c470add" name="Default" comment="" />
|
147
|
+
<created>1407186197861</created>
|
148
|
+
<updated>1407186197861</updated>
|
149
|
+
</task>
|
150
|
+
<servers />
|
151
|
+
</component>
|
152
|
+
<component name="ToolWindowManager">
|
153
|
+
<frame x="20" y="22" width="1400" height="790" extended-state="0" />
|
154
|
+
<editor active="true" />
|
155
|
+
<layout>
|
156
|
+
<window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
157
|
+
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
158
|
+
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
|
159
|
+
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
160
|
+
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
161
|
+
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.25" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
|
162
|
+
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
163
|
+
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
|
164
|
+
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
|
165
|
+
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.32931727" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
166
|
+
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
167
|
+
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
|
168
|
+
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
169
|
+
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
170
|
+
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
171
|
+
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
172
|
+
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
|
173
|
+
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
|
174
|
+
</layout>
|
175
|
+
</component>
|
176
|
+
<component name="Vcs.Log.UiProperties">
|
177
|
+
<option name="RECENTLY_FILTERED_USER_GROUPS">
|
178
|
+
<collection />
|
179
|
+
</option>
|
180
|
+
<option name="RECENTLY_FILTERED_BRANCH_GROUPS">
|
181
|
+
<collection />
|
182
|
+
</option>
|
183
|
+
</component>
|
184
|
+
<component name="VcsContentAnnotationSettings">
|
185
|
+
<option name="myLimit" value="2678400000" />
|
186
|
+
</component>
|
187
|
+
<component name="VcsManagerConfiguration">
|
188
|
+
<option name="myTodoPanelSettings">
|
189
|
+
<TodoPanelSettings />
|
190
|
+
</option>
|
191
|
+
</component>
|
192
|
+
<component name="XDebuggerManager">
|
193
|
+
<breakpoint-manager />
|
194
|
+
</component>
|
195
|
+
<component name="editorHistoryManager">
|
196
|
+
<entry file="file://$PROJECT_DIR$/lib/animal_names.rb">
|
197
|
+
<provider selected="true" editor-type-id="text-editor">
|
198
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="577" max-vertical-offset="1050">
|
199
|
+
<caret line="49" column="20" selection-start-line="49" selection-start-column="20" selection-end-line="49" selection-end-column="20" />
|
200
|
+
<folding />
|
201
|
+
</state>
|
202
|
+
</provider>
|
203
|
+
</entry>
|
204
|
+
<entry file="file://$PROJECT_DIR$/animal_names.gemspec">
|
205
|
+
<provider selected="true" editor-type-id="text-editor">
|
206
|
+
<state vertical-scroll-proportion="0.6659619" vertical-offset="0" max-vertical-offset="473">
|
207
|
+
<caret line="21" column="40" selection-start-line="21" selection-start-column="40" selection-end-line="21" selection-end-column="40" />
|
208
|
+
<folding />
|
209
|
+
</state>
|
210
|
+
</provider>
|
211
|
+
</entry>
|
212
|
+
</component>
|
213
|
+
</project>
|
214
|
+
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2014 Seyon
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# AnimalNames
|
2
|
+
|
3
|
+
TODO: Write a gem description
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
gem 'animal_names'
|
10
|
+
|
11
|
+
And then execute:
|
12
|
+
|
13
|
+
$ bundle
|
14
|
+
|
15
|
+
Or install it yourself as:
|
16
|
+
|
17
|
+
$ gem install animal_names
|
18
|
+
|
19
|
+
## Usage
|
20
|
+
|
21
|
+
TODO: Write usage instructions here
|
22
|
+
|
23
|
+
## Contributing
|
24
|
+
|
25
|
+
1. Fork it
|
26
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
27
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
28
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
29
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'animal_names/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "animal_names"
|
8
|
+
spec.version = AnimalNames::VERSION
|
9
|
+
spec.authors = ["Seyon"]
|
10
|
+
spec.email = ["seyon.vasantharajan@gmail.com"]
|
11
|
+
spec.description = %q{Enter a letter, it returns an animal name}
|
12
|
+
spec.summary = %q{converts letter to animal name}
|
13
|
+
spec.homepage = ""
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files`.split($/)
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.3"
|
22
|
+
spec.add_development_dependency "rake"
|
23
|
+
end
|
data/lib/animal_names.rb
ADDED
@@ -0,0 +1,64 @@
|
|
1
|
+
require "animal_names/version"
|
2
|
+
|
3
|
+
module AnimalNames
|
4
|
+
#In next version add constraint that restricts
|
5
|
+
#the string letter to being one letter
|
6
|
+
def self.animal(letter)
|
7
|
+
|
8
|
+
case letter
|
9
|
+
when 'A'
|
10
|
+
puts 'Aardvark'
|
11
|
+
when 'B'
|
12
|
+
puts 'Bee'
|
13
|
+
when 'C'
|
14
|
+
puts 'Cat'
|
15
|
+
when 'D'
|
16
|
+
puts 'Dog'
|
17
|
+
when 'E'
|
18
|
+
puts 'Elephant'
|
19
|
+
when 'F'
|
20
|
+
puts 'Frog'
|
21
|
+
when 'G'
|
22
|
+
puts 'Gorilla'
|
23
|
+
when 'H'
|
24
|
+
puts 'Hamster'
|
25
|
+
when 'I'
|
26
|
+
puts 'Iguana'
|
27
|
+
when 'J'
|
28
|
+
puts 'Jaguar'
|
29
|
+
when 'K'
|
30
|
+
puts 'Koala'
|
31
|
+
when 'L'
|
32
|
+
puts 'Lion'
|
33
|
+
when 'M'
|
34
|
+
puts 'Mammoth'
|
35
|
+
when 'N'
|
36
|
+
puts 'Narwhal'
|
37
|
+
when 'O'
|
38
|
+
puts 'Orangutan'
|
39
|
+
when 'P'
|
40
|
+
puts 'Panda'
|
41
|
+
when 'Q'
|
42
|
+
puts 'Quail'
|
43
|
+
when 'R'
|
44
|
+
puts 'Rhinoceros'
|
45
|
+
when 'S'
|
46
|
+
puts 'Snake'
|
47
|
+
when 'T'
|
48
|
+
puts 'Tarantula'
|
49
|
+
when 'U'
|
50
|
+
puts 'Uakari'
|
51
|
+
when 'V'
|
52
|
+
puts 'Vulture'
|
53
|
+
when 'W'
|
54
|
+
puts 'Whale'
|
55
|
+
when 'X'
|
56
|
+
puts 'X-ray Tetra'
|
57
|
+
when 'Y'
|
58
|
+
puts 'Yak'
|
59
|
+
when 'Z'
|
60
|
+
puts 'Zebra'
|
61
|
+
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
metadata
ADDED
@@ -0,0 +1,88 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: animal_names
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Seyon
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-08-04 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: '1.3'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
description: Enter a letter, it returns an animal name
|
42
|
+
email:
|
43
|
+
- seyon.vasantharajan@gmail.com
|
44
|
+
executables: []
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- .gitignore
|
49
|
+
- .idea/.name
|
50
|
+
- .idea/animal_names.iml
|
51
|
+
- .idea/encodings.xml
|
52
|
+
- .idea/misc.xml
|
53
|
+
- .idea/modules.xml
|
54
|
+
- .idea/scopes/scope_settings.xml
|
55
|
+
- .idea/vcs.xml
|
56
|
+
- .idea/workspace.xml
|
57
|
+
- Gemfile
|
58
|
+
- LICENSE.txt
|
59
|
+
- README.md
|
60
|
+
- Rakefile
|
61
|
+
- animal_names.gemspec
|
62
|
+
- lib/animal_names.rb
|
63
|
+
- lib/animal_names/version.rb
|
64
|
+
homepage: ''
|
65
|
+
licenses:
|
66
|
+
- MIT
|
67
|
+
metadata: {}
|
68
|
+
post_install_message:
|
69
|
+
rdoc_options: []
|
70
|
+
require_paths:
|
71
|
+
- lib
|
72
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - '>='
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
77
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - '>='
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '0'
|
82
|
+
requirements: []
|
83
|
+
rubyforge_project:
|
84
|
+
rubygems_version: 2.0.3
|
85
|
+
signing_key:
|
86
|
+
specification_version: 4
|
87
|
+
summary: converts letter to animal name
|
88
|
+
test_files: []
|