rubyred 0.1.0 → 0.1.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 035db004c6621f98bb4a6ab502c121338e04ac76
4
- data.tar.gz: 46306600bdbc296e9cbfcc2d2061dff76685eb84
3
+ metadata.gz: f070aaf237be9370cf402ee804a84feccd3b9c21
4
+ data.tar.gz: 0b2ee87f7cb1e9ae4705d74d9940ec9e00edb9a9
5
5
  SHA512:
6
- metadata.gz: 4948e04db5622621190c11faa384e5b2b5cbdb0d388294e84ae62a8e26d71263b998fb8c16ed52c12f843cb9cce2b474722907c16bd2289d82bc06efb02d5b15
7
- data.tar.gz: 2c7afa6db1c47c0a203896be1d8350b29c34397ff974ad1f8ca134cef4955077ac0c7c0c5e09c19a7e519c9c19cb7ee6a154190b2f148f9086f2885244f6280e
6
+ metadata.gz: 8e35925905a693b1f1c0fc17ab0eece9ead7f68d2fe44ce2276662d034ef96511540555558191c2dc8717c0c463dff670ded3e4d3595292dcf932782cefa6497
7
+ data.tar.gz: 6eece359272b33d5772303f2fde73aecc4e01551b3e8bd7abd9248006156efecccac5c38ed86eafd402994c00534ddd14436e5b55016e8b28439d8e5bc9b3f3a
@@ -0,0 +1,29 @@
1
+ ### RubyRed uses Semantic Versioning (semver)
2
+ Information on semver can be found [here](http://semver.org)
3
+ The Changelog file reads "Top to Bottom" in chronological order, newest
4
+ versions are on top, oldest are towards the end of the file.
5
+
6
+ #### Version 0.1.1
7
+ * Added diagnostics command
8
+ * Fixed an issue with Heroku
9
+ * Added the first version of the drink command
10
+
11
+ #### Version 0.1.0
12
+ * Added heroku support
13
+
14
+ #### Version 0.0.2
15
+ * Refactored code to use module namespacing from earlier primitive setup
16
+ * Completed ping command
17
+
18
+ #### Version 0.0.1b
19
+ * Fixed gemspec errors which should allow building of the gem
20
+
21
+ #### Version 0.0.1a
22
+ * Class-ify-ed RubyRed to encapsulate her programming and make it easier to add and contribute code
23
+ * Added the gemspec templating
24
+ * Known Issues
25
+ * Gem was not buildable due to a handful of errors
26
+
27
+ #### Version 0.0.1
28
+ * Created basic bot runtime using DiscordRB
29
+ * Implemented Ping/Pong test to verify she is able to respond
@@ -0,0 +1,73 @@
1
+ ### Submitting bugs
2
+ #### Due diligence
3
+
4
+ Before submitting a bug, please do the following:
5
+
6
+ * Perform basic troubleshooting steps:
7
+ - Make sure you’re on the latest version. If you’re not on the most recent version, your problem may have been solved already! Upgrading is always the best first step.
8
+ - Try older versions. If you’re already on the latest release, try rolling back a few minor versions (e.g. if on 1.7, try 1.5 or 1.6) and see if the problem goes away. This will help the devs narrow down when the problem first arose in the commit log.
9
+ - Try switching up dependency versions. If the software in question has dependencies (other libraries, etc) try upgrading/downgrading those as well.
10
+ * Search the project’s bug/issue tracker to make sure it’s not a known issue.
11
+ * If you don’t find a pre-existing issue, consider checking with the mailing list and/or IRC channel in case the problem is non-bug-related.
12
+
13
+ #### What to put in your bug report
14
+
15
+ Make sure your report gets the attention it deserves: bug reports with missing information may be ignored or punted back to you, delaying a fix. The below constitutes a bare minimum; more info is almost always better:
16
+
17
+ * What version of the core programming language interpreter/compiler are you using? For example, if it’s a Python project, are you using Python 2.7.3? Python 3.3.1? PyPy 2.0?
18
+ * What operating system are you on? Windows? (Vista? 7? 32-bit? 64-bit?) Mac OS X? (10.7.4? 10.9.0?) Linux? (Which distro? Which version of that distro? 32 or 64 bits?) Again, more detail is better.
19
+ * Which version or versions of the software are you using? Ideally, you followed the advice above and have ruled out (or verified that the problem exists in) a few different versions.
20
+ * How can the developers recreate the bug on their end? If possible, include a copy of your code, the command you used to invoke it, and the full output of your run (if applicable.)
21
+ - A common tactic is to pare down your code until a simple (but still bug-causing) “base case” remains. Not only can this help you identify problems which aren’t real bugs, but it means the developer can get to fixing the bug faster.
22
+
23
+ ### Contributing changes
24
+ #### Version control branching
25
+
26
+ * Always make a new branch for your work, no matter how small. This makes it easy for others to take just that one set of changes from your repository, in case you have multiple unrelated changes floating around.
27
+ - A corollary: don’t submit unrelated changes in the same branch/pull request! The maintainer shouldn’t have to reject your awesome bugfix because the feature you put in with it needs more review.
28
+ * Base your new branch off of the appropriate branch on the main repository:
29
+ - Bug fixes should be based on the branch named after the oldest supported release line the bug affects.
30
+ * E.g. if a feature was introduced in 1.1, the latest release line is 1.3, and a bug is found in that feature - make your branch based on 1.1. The maintainer will then forward-port it to 1.3 and master.
31
+ * Bug fixes requiring large changes to the code or which have a chance of being otherwise disruptive, may need to base off of master instead. This is a judgement call – ask the devs!
32
+ - New features should branch off of the ‘master’ branch.
33
+ * Note that depending on how long it takes for the dev team to merge your patch, the copy of master you worked off of may get out of date! If you find yourself ‘bumping’ a pull request that’s been sidelined for a while, make sure you rebase or merge to latest master to ensure a speedier resolution.
34
+
35
+ ### Code formatting
36
+
37
+ * Follow the style you see used in the primary repository! Consistency with the rest of the project always trumps other considerations. It doesn’t matter if you have your own style or if the rest of the code breaks with the greater community - just follow along.
38
+ * Python projects usually follow the PEP-8 guidelines (though many have minor deviations depending on the lead maintainers’ preferences.)
39
+
40
+ ### Documentation isn’t optional
41
+
42
+ It’s not! Patches without documentation will be returned to sender. By “documentation” we mean:
43
+
44
+ * Docstrings (for Python; or API-doc-friendly comments for other languages) must be created or updated for public API functions/methods/etc. (This step is optional for some bugfixes.)
45
+ - Don’t forget to include versionadded/versionchanged ReST directives at the bottom of any new or changed Python docstrings!
46
+ * Use versionadded for truly new API members – new methods, functions, classes or modules.
47
+ * Use versionchanged when adding/removing new function/method arguments, or whenever behavior changes.
48
+ * New features should ideally include updates to prose documentation, including useful example code snippets.
49
+ * All submissions should have a changelog entry crediting the contributor and/or any individuals instrumental in identifying the problem.
50
+
51
+ ### Tests aren’t optional
52
+
53
+ Any bugfix that doesn’t include a test proving the existence of the bug being fixed, may be suspect. Ditto for new features that can’t prove they actually work.
54
+
55
+ We’ve found that test-first development really helps make features better architected and identifies potential edge cases earlier instead of later. Writing tests before the implementation is strongly encouraged.
56
+
57
+ ### Full example
58
+
59
+ Here’s an example workflow for a project theproject hosted on Github, which is currently in version 1.3.x. Your username is yourname and you’re submitting a basic bugfix. (This workflow only changes slightly if the project is hosted at Bitbucket, self-hosted, or etc.)
60
+
61
+ * Hit ‘fork’ on Github, creating e.g. yourname/theproject.
62
+ * `git clone git@github.com:yourname/theproject`
63
+ * `cd theproject`
64
+ * `git checkout -b foo-the-bars 1.3`
65
+ * Add changelog entry crediting yourself.
66
+ * Write tests expecting the correct/fixed functionality; make sure they fail.
67
+ * Hack, hack, hack.
68
+ * Run tests again, making sure they pass.
69
+ * `git commit -m "Foo the bars"`
70
+ * `git push origin HEAD` to get it back up to your fork
71
+ * Visit Github, click handy “Pull request” button that it will make upon noticing your new branch.
72
+ * In the description field, write down issue number (if submitting code fixing an existing issue) or describe the issue + your fix (if submitting a wholly new bugfix).
73
+ * Hit ‘submit’! And please be patient - the maintainers will get to you when they can.
@@ -0,0 +1,194 @@
1
+ # Mozilla Public License
2
+ Version 2.0
3
+
4
+ ## 1\. Definitions
5
+
6
+ ### 1.1\. “Contributor”
7
+
8
+ means each individual or legal entity that creates, contributes to the creation of, or owns Covered Software.
9
+
10
+ ### 1.2\. “Contributor Version”
11
+
12
+ means the combination of the Contributions of others (if any) used by a Contributor and that particular Contributor’s Contribution.
13
+
14
+ ### 1.3\. “Contribution”
15
+
16
+ means Covered Software of a particular Contributor.
17
+
18
+ ### 1.4\. “Covered Software”
19
+
20
+ means Source Code Form to which the initial Contributor has attached the notice in Exhibit A, the Executable Form of such Source Code Form, and Modifications of such Source Code Form, in each case including portions thereof.
21
+
22
+ ### 1.5\. “Incompatible With Secondary Licenses”
23
+
24
+ means
25
+
26
+ 1. that the initial Contributor has attached the notice described in Exhibit B to the Covered Software; or
27
+
28
+ 2. that the Covered Software was made available under the terms of version 1.1 or earlier of the License, but not also under the terms of a Secondary License.
29
+
30
+ ### 1.6\. “Executable Form”
31
+
32
+ means any form of the work other than Source Code Form.
33
+
34
+ ### 1.7\. “Larger Work”
35
+
36
+ means a work that combines Covered Software with other material, in a separate file or files, that is not Covered Software.
37
+
38
+ ### 1.8\. “License”
39
+
40
+ means this document.
41
+
42
+ ### 1.9\. “Licensable”
43
+
44
+ means having the right to grant, to the maximum extent possible, whether at the time of the initial grant or subsequently, any and all of the rights conveyed by this License.
45
+
46
+ ### 1.10\. “Modifications”
47
+
48
+ means any of the following:
49
+
50
+ 1. any file in Source Code Form that results from an addition to, deletion from, or modification of the contents of Covered Software; or
51
+
52
+ 2. any new file in Source Code Form that contains any Covered Software.
53
+
54
+ ### 1.11\. “Patent Claims” of a Contributor
55
+
56
+ means any patent claim(s), including without limitation, method, process, and apparatus claims, in any patent Licensable by such Contributor that would be infringed, but for the grant of the License, by the making, using, selling, offering for sale, having made, import, or transfer of either its Contributions or its Contributor Version.
57
+
58
+ ### 1.12\. “Secondary License”
59
+
60
+ means either the GNU General Public License, Version 2.0, the GNU Lesser General Public License, Version 2.1, the GNU Affero General Public License, Version 3.0, or any later versions of those licenses.
61
+
62
+ ### 1.13\. “Source Code Form”
63
+
64
+ means the form of the work preferred for making modifications.
65
+
66
+ ### 1.14\. “You” (or “Your”)
67
+
68
+ means an individual or a legal entity exercising rights under this License. For legal entities, “You” includes any entity that controls, is controlled by, or is under common control with You. For purposes of this definition, “control” means (a) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (b) ownership of more than fifty percent (50%) of the outstanding shares or beneficial ownership of such entity.
69
+
70
+ ## 2\. License Grants and Conditions
71
+
72
+ ### 2.1\. Grants
73
+
74
+ Each Contributor hereby grants You a world-wide, royalty-free, non-exclusive license:
75
+
76
+ 1. under intellectual property rights (other than patent or trademark) Licensable by such Contributor to use, reproduce, make available, modify, display, perform, distribute, and otherwise exploit its Contributions, either on an unmodified basis, with Modifications, or as part of a Larger Work; and
77
+
78
+ 2. under Patent Claims of such Contributor to make, use, sell, offer for sale, have made, import, and otherwise transfer either its Contributions or its Contributor Version.
79
+
80
+ ### 2.2\. Effective Date
81
+
82
+ The licenses granted in Section 2.1 with respect to any Contribution become effective for each Contribution on the date the Contributor first distributes such Contribution.
83
+
84
+ ### 2.3\. Limitations on Grant Scope
85
+
86
+ The licenses granted in this Section 2 are the only rights granted under this License. No additional rights or licenses will be implied from the distribution or licensing of Covered Software under this License. Notwithstanding Section 2.1(b) above, no patent license is granted by a Contributor:
87
+
88
+ 1. for any code that a Contributor has removed from Covered Software; or
89
+
90
+ 2. for infringements caused by: (i) Your and any other third party’s modifications of Covered Software, or (ii) the combination of its Contributions with other software (except as part of its Contributor Version); or
91
+
92
+ 3. under Patent Claims infringed by Covered Software in the absence of its Contributions.
93
+
94
+ This License does not grant any rights in the trademarks, service marks, or logos of any Contributor (except as may be necessary to comply with the notice requirements in Section 3.4).
95
+
96
+ ### 2.4\. Subsequent Licenses
97
+
98
+ No Contributor makes additional grants as a result of Your choice to distribute the Covered Software under a subsequent version of this License (see Section 10.2) or under the terms of a Secondary License (if permitted under the terms of Section 3.3).
99
+
100
+ ### 2.5\. Representation
101
+
102
+ Each Contributor represents that the Contributor believes its Contributions are its original creation(s) or it has sufficient rights to grant the rights to its Contributions conveyed by this License.
103
+
104
+ ### 2.6\. Fair Use
105
+
106
+ This License is not intended to limit any rights You have under applicable copyright doctrines of fair use, fair dealing, or other equivalents.
107
+
108
+ ### 2.7\. Conditions
109
+
110
+ Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in Section 2.1.
111
+
112
+ ## 3\. Responsibilities
113
+
114
+ ### 3.1\. Distribution of Source Form
115
+
116
+ All distribution of Covered Software in Source Code Form, including any Modifications that You create or to which You contribute, must be under the terms of this License. You must inform recipients that the Source Code Form of the Covered Software is governed by the terms of this License, and how they can obtain a copy of this License. You may not attempt to alter or restrict the recipients’ rights in the Source Code Form.
117
+
118
+ ### 3.2\. Distribution of Executable Form
119
+
120
+ If You distribute Covered Software in Executable Form then:
121
+
122
+ 1. such Covered Software must also be made available in Source Code Form, as described in Section 3.1, and You must inform recipients of the Executable Form how they can obtain a copy of such Source Code Form by reasonable means in a timely manner, at a charge no more than the cost of distribution to the recipient; and
123
+
124
+ 2. You may distribute such Executable Form under the terms of this License, or sublicense it under different terms, provided that the license for the Executable Form does not attempt to limit or alter the recipients’ rights in the Source Code Form under this License.
125
+
126
+ ### 3.3\. Distribution of a Larger Work
127
+
128
+ You may create and distribute a Larger Work under terms of Your choice, provided that You also comply with the requirements of this License for the Covered Software. If the Larger Work is a combination of Covered Software with a work governed by one or more Secondary Licenses, and the Covered Software is not Incompatible With Secondary Licenses, this License permits You to additionally distribute such Covered Software under the terms of such Secondary License(s), so that the recipient of the Larger Work may, at their option, further distribute the Covered Software under the terms of either this License or such Secondary License(s).
129
+
130
+ ### 3.4\. Notices
131
+
132
+ You may not remove or alter the substance of any license notices (including copyright notices, patent notices, disclaimers of warranty, or limitations of liability) contained within the Source Code Form of the Covered Software, except that You may alter any license notices to the extent required to remedy known factual inaccuracies.
133
+
134
+ ### 3.5\. Application of Additional Terms
135
+
136
+ You may choose to offer, and to charge a fee for, warranty, support, indemnity or liability obligations to one or more recipients of Covered Software. However, You may do so only on Your own behalf, and not on behalf of any Contributor. You must make it absolutely clear that any such warranty, support, indemnity, or liability obligation is offered by You alone, and You hereby agree to indemnify every Contributor for any liability incurred by such Contributor as a result of warranty, support, indemnity or liability terms You offer. You may include additional disclaimers of warranty and limitations of liability specific to any jurisdiction.
137
+
138
+ ## 4\. Inability to Comply Due to Statute or Regulation
139
+
140
+ If it is impossible for You to comply with any of the terms of this License with respect to some or all of the Covered Software due to statute, judicial order, or regulation then You must: (a) comply with the terms of this License to the maximum extent possible; and (b) describe the limitations and the code they affect. Such description must be placed in a text file included with all distributions of the Covered Software under this License. Except to the extent prohibited by statute or regulation, such description must be sufficiently detailed for a recipient of ordinary skill to be able to understand it.
141
+
142
+ ## 5\. Termination
143
+
144
+ <h3>5.1\.</h3> The rights granted under this License will terminate automatically if You fail to comply with any of its terms. However, if You become compliant, then the rights granted under this License from a particular Contributor are reinstated (a) provisionally, unless and until such Contributor explicitly and finally terminates Your grants, and (b) on an ongoing basis, if such Contributor fails to notify You of the non-compliance by some reasonable means prior to 60 days after You have come back into compliance. Moreover, Your grants from a particular Contributor are reinstated on an ongoing basis if such Contributor notifies You of the non-compliance by some reasonable means, this is the first time You have received notice of non-compliance with this License from such Contributor, and You become compliant prior to 30 days after Your receipt of the notice.
145
+
146
+ <h3>5.2\.</h3> If You initiate litigation against any entity by asserting a patent infringement claim (excluding declaratory judgment actions, counter-claims, and cross-claims) alleging that a Contributor Version directly or indirectly infringes any patent, then the rights granted to You by any and all Contributors for the Covered Software under Section 2.1 of this License shall terminate.
147
+
148
+ <h3>5.3\.</h3> In the event of termination under Sections 5.1 or 5.2 above, all end user license agreements (excluding distributors and resellers) which have been validly granted by You or Your distributors under this License prior to termination shall survive termination.
149
+
150
+ ## 6\. Disclaimer of Warranty
151
+
152
+ _Covered Software is provided under this License on an “as is” basis, without warranty of any kind, either expressed, implied, or statutory, including, without limitation, warranties that the Covered Software is free of defects, merchantable, fit for a particular purpose or non-infringing. The entire risk as to the quality and performance of the Covered Software is with You. Should any Covered Software prove defective in any respect, You (not any Contributor) assume the cost of any necessary servicing, repair, or correction. This disclaimer of warranty constitutes an essential part of this License. No use of any Covered Software is authorized under this License except under this disclaimer._
153
+
154
+ ## 7\. Limitation of Liability
155
+
156
+ _Under no circumstances and under no legal theory, whether tort (including negligence), contract, or otherwise, shall any Contributor, or anyone who distributes Covered Software as permitted above, be liable to You for any direct, indirect, special, incidental, or consequential damages of any character including, without limitation, damages for lost profits, loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses, even if such party shall have been informed of the possibility of such damages. This limitation of liability shall not apply to liability for death or personal injury resulting from such party’s negligence to the extent applicable law prohibits such limitation. Some jurisdictions do not allow the exclusion or limitation of incidental or consequential damages, so this exclusion and limitation may not apply to You._
157
+
158
+ ## 8\. Litigation
159
+
160
+ Any litigation relating to this License may be brought only in the courts of a jurisdiction where the defendant maintains its principal place of business and such litigation shall be governed by laws of that jurisdiction, without reference to its conflict-of-law provisions. Nothing in this Section shall prevent a party’s ability to bring cross-claims or counter-claims.
161
+
162
+ ## 9\. Miscellaneous
163
+
164
+ This License represents the complete agreement concerning the subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. Any law or regulation which provides that the language of a contract shall be construed against the drafter shall not be used to construe this License against a Contributor.
165
+
166
+ ## 10\. Versions of the License
167
+
168
+ ### 10.1\. New Versions
169
+
170
+ Mozilla Foundation is the license steward. Except as provided in Section 10.3, no one other than the license steward has the right to modify or publish new versions of this License. Each version will be given a distinguishing version number.
171
+
172
+ ### 10.2\. Effect of New Versions
173
+
174
+ You may distribute the Covered Software under the terms of the version of the License under which You originally received the Covered Software, or under the terms of any subsequent version published by the license steward.
175
+
176
+ ### 10.3\. Modified Versions
177
+
178
+ If you create software not governed by this License, and you want to create a new license for such software, you may create and use a modified version of this License if you rename the license and remove any references to the name of the license steward (except to note that such modified license differs from this License).
179
+
180
+ ### 10.4\. Distributing Source Code Form that is Incompatible With Secondary Licenses
181
+
182
+ If You choose to distribute Source Code Form that is Incompatible With Secondary Licenses under the terms of this version of the License, the notice described in Exhibit B of this License must be attached.
183
+
184
+ ## Exhibit A - Source Code Form License Notice
185
+
186
+ > This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0\. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
187
+
188
+ If it is not possible or desirable to put the notice in a particular file, then You may include the notice in a location (such as a LICENSE file in a relevant directory) where a recipient would be likely to look for such a notice.
189
+
190
+ You may add additional accurate notices of copyright ownership.
191
+
192
+ ## Exhibit B - “Incompatible With Secondary Licenses” Notice
193
+
194
+ > This Source Code Form is “Incompatible With Secondary Licenses”, as defined by the Mozilla Public License, v. 2.0.
@@ -0,0 +1,9 @@
1
+ ### RUBY RED
2
+ Ruby Red is a Ruby based Discord Bot using DiscordRB as the API access toolkit
3
+
4
+ #### Requirements
5
+ * Ruby ~v2.1
6
+ * DiscordRB
7
+
8
+ #### Available Utilities
9
+ * Ping! (responds with Pong!)
@@ -7,6 +7,8 @@ module RubyRed
7
7
  Dir["#{File.dirname(__FILE__)}/commands/*.rb"].each {|file| require file}
8
8
 
9
9
  @commands = [
10
+ Diag,
11
+ Drink,
10
12
  Ping
11
13
  ]
12
14
 
@@ -0,0 +1,16 @@
1
+ module RubyRed
2
+ module Commands
3
+ module Diag
4
+ # Displays a diagnostic message from the bot
5
+ #
6
+ # Examples:
7
+ # '!diag'
8
+ # RubyRed:'23ms to respond'
9
+
10
+ extend Discordrb::Commands::CommandContainer
11
+ command(:diag, description: 'Displays a diagnostic message from the bot') do |event|
12
+ event << "#{((Time.now - event.timestamp) * 1000).to_i}ms to respond" # This is a literal ping time test
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,26 @@
1
+ module RubyRed
2
+ module Commands
3
+ module Drink
4
+ require 'yaml'
5
+ require_relative 'drink/drink_helper'
6
+ # Serves up a refreshing beverage
7
+ #
8
+ # Examples:
9
+ #
10
+ DRINK_YAML_FILE = 'lib/rubyred/commands/drink/drink.yaml'
11
+ drink_data = YAML.load(File.open(DRINK_YAML_FILE))
12
+ srand Time.now.to_i # Reseeds the randomizer on load
13
+
14
+ extend Discordrb::Commands::CommandContainer
15
+ command(:drink, description: 'Provides a refreshing beverage at random') do |event|
16
+ drink_served = drink_data[rand(1..2)] #TODO: Figure out some way to make this dynamic with the YAML size
17
+ event << "Here's a freshly made #{drink_served[0]["name"]}, #{event.user.name}!"
18
+ event << "#{drink_served[0]["name"]}s are made using the finest ingredients below:"
19
+ drink_served[0]["ingredients"].each do |ing|
20
+ event << "* #{ing}"
21
+ end
22
+ event << "To make your own #{drink_served[0]["name"]}s, just follow these instructions:\n #{drink_served[0]["description"]}"
23
+ end
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,15 @@
1
+ 1:
2
+ - name: Godfather
3
+ ingredients:
4
+ - 3.5cL Scotch whisky
5
+ - 3.5cL Amaretto
6
+ - Served *On the Rocks*; poured over ice.
7
+ description: Pour all ingredients directly into old fashioned glass filled with ice cubes. Stir gently.
8
+ 2:
9
+ - name: Rum & Coke
10
+ ingredients:
11
+ - 12cL Cola
12
+ - 5cL Light rum
13
+ - 1cL Fresh lime juice
14
+ - Served *On the Rocks*; poured over ice.
15
+ description: Build all ingredients in a Collins glass filled with ice. Garnish with lime wedge.
@@ -0,0 +1,12 @@
1
+ module RubyRed
2
+ module Commands
3
+ module Drink
4
+ class DrinkData
5
+ def initialize (name, ingredients)
6
+ @name = name
7
+ @ingredients = ingredients
8
+ end
9
+ end
10
+ end
11
+ end
12
+ end
@@ -9,7 +9,6 @@ module RubyRed
9
9
 
10
10
  extend Discordrb::Commands::CommandContainer
11
11
  command(:ping, description: 'Displays a Pong! after receiving a Ping!') do |event|
12
- #"#{((Time.now - event.timestamp) * 1000).to_i}ms" # This is a literal ping time test
13
12
  'Pong!'
14
13
  end
15
14
  #def self.ping # This is the old method, replaced with the one above.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubyred
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - George Spiceland
@@ -38,9 +38,17 @@ executables:
38
38
  extensions: []
39
39
  extra_rdoc_files: []
40
40
  files:
41
+ - CHANGELOG.md
42
+ - CONTRIBUTING.md
43
+ - LICENSE.md
44
+ - README.md
41
45
  - bin/rubyred
42
46
  - lib/rubyred.rb
43
47
  - lib/rubyred/commands.rb
48
+ - lib/rubyred/commands/diag.rb
49
+ - lib/rubyred/commands/drink.rb
50
+ - lib/rubyred/commands/drink/drink.yaml
51
+ - lib/rubyred/commands/drink/drink_helper.rb
44
52
  - lib/rubyred/commands/ping.rb
45
53
  - lib/rubyred/console.rb
46
54
  homepage: http://rubygems.org/gems/rubyred