lita-rulesofacquisition 0.1.2 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9001bcc1fbcdd512e011f83830637b6e8a24000c
4
- data.tar.gz: 689c8c100cca76d543bdbb3b3deb05f2b9dfbdcd
3
+ metadata.gz: 3bcab460567ffe7d1ecd76366e2ad0da29dbb489
4
+ data.tar.gz: afcd5a1a67d1e082bfc03006068bc6b2e8d9444f
5
5
  SHA512:
6
- metadata.gz: 863481ee2fcfccfb0c99e340a607044068a86fe4bbe5b20f8d2458f2c07be90b884bf42253407cba09c68206d46a7837f8c84878ad92d5f98145c4024abd8d92
7
- data.tar.gz: 151708d7b92add811fc72af4521960236bada891b51902dda7d50a6cb3595a5b0af28a839d0991e7e3483ce09549897723f6a7af5ac53da9b242dead9d6112a5
6
+ metadata.gz: 8dbf40d4a7bca313514c0d7b71645c5271f213e9e4d69d7cccf706e647d543d6212a128f0526864f58e48f902a471bcfb57ef28001824d3fb41cbbfa72c4a8ef
7
+ data.tar.gz: d02dcb9b0e2b682646d056987ffa1a3c82d58201c1a248f38dcce5152f515e24495a85e3ef3465cd86294a5474f6ff736777065a650d230a73933cb9139e5380
data/.gitignore ADDED
@@ -0,0 +1,10 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ *.gem
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec
data/README.md ADDED
@@ -0,0 +1,27 @@
1
+ # lita-rulesofacquisition
2
+
3
+ Displays one of the Ferengi Rules of Acquisition, selected randomly, in
4
+ response to one of the keywords. This is a port of the fabulous Hubot plugin
5
+ of the same name.
6
+
7
+ https://github.com/github/hubot-scripts/blob/master/src/scripts/ferengi_rules_of_acquisition.coffee
8
+
9
+ ## Installation
10
+
11
+ Add lita-rulesofacquisition to your Lita instance's Gemfile:
12
+
13
+ ``` ruby
14
+ gem "lita-rulesofacquisition"
15
+ ```
16
+
17
+ ## Usage
18
+
19
+ Lita will automatically respond to the following words:
20
+ * ferengi rule
21
+ * latinum
22
+ * greed
23
+ * money
24
+ * profit
25
+ * sale
26
+ * discount
27
+ * opportunity
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
@@ -0,0 +1,353 @@
1
+ module Lita
2
+ module Handlers
3
+ class RulesOfAcquisition < Handler
4
+ route(
5
+ /ferengi rule|latinum|greed|money|profit|sale|discount|opportunity/,
6
+ :rule,
7
+ command: true,
8
+ help: {
9
+ "ferengi rule|latinum|greed|money|profit|sale|discount|opportunity" => "Returns a Ferengi Rule of Acquisition"
10
+ }
11
+ )
12
+
13
+ def rule(response)
14
+ rules = [
15
+ "Ferengi Rule of Acquisition #1:\n
16
+ Once you have their money, you never give it back.\n
17
+ -- ST:DS9, \"The Nagus\", \"Heart of Stone\"",
18
+ "Ferengi Rule of Acquisition #3:\n
19
+ Never pay more for an acquisition than you have to.\n
20
+ -- ST:DS9, \"The Maquis, Part II\"",
21
+ "Ferengi Rule of Acquisition #6:\n
22
+ Never allow family to stand in the way of opportunity.\n
23
+ -- ST:DS9, \"The Nagus\"",
24
+ "Ferengi Rule of Acquisition #7:\n
25
+ Keep your ears open.\n
26
+ -- ST:DS9, \"In the Hands of the Prophets\"",
27
+ "Ferengi Rule of Acquisition #8:\n
28
+ Small print leads to large risk.\n
29
+ -- ST: Legends of the Ferengi",
30
+ "Ferengi Rule of Acquisition #9:\n
31
+ Opportunity plus instinct equals profit.\n
32
+ -- ST:DS9, The Storyteller",
33
+ "Ferengi Rule of Acquisition #10:\n
34
+ Greed is eternal.\n
35
+ -- ST:DS9, Prophet Motive",
36
+ "Ferengi Rule of Acquisition #13:\n
37
+ Anything worth doing is worth doing for money.\n
38
+ -- ST: Legends of the Ferengi",
39
+ "Ferengi Rule of Acquisition #16:\n
40
+ A deal is a deal... until a better one comes along.\n
41
+ -- ST:DS9, \"Melora\"",
42
+ "Ferengi Rule of Acquisition #17:\n
43
+ A contract is a contract is a contract... but only between Ferengi.\n
44
+ -- ST:DS9, \"Body Parts\"",
45
+ "Ferengi Rule of Acquisition #18:\n
46
+ A Ferengi without profit is no Ferengi at all.\n
47
+ -- ST:DS9, \"Heart of Stone\"",
48
+ "Ferengi Rule of Acquisition #19:\n
49
+ Satisfaction is not guaranteed.\n
50
+ -- ST: Legends of the Ferengi",
51
+ "Ferengi Rule of Acquisition #21:\n
52
+ Never place friendship above profit.\n
53
+ -- ST:DS9, \"Rule of Acquisition\"",
54
+ "Ferengi Rule of Acquisition #22:\n
55
+ A wise man can hear profit in the wind.\n
56
+ -- ST:DS9, \"Rule of Acquisition\"",
57
+ "Ferengi Rule of Acquisition #27:\n
58
+ There is nothing more dangerous than an honest businessman\n
59
+ -- ST: Legends of the Ferengi",
60
+ "Ferengi Rule of Acquisition #28:\n
61
+ Whisper your way to success.\n
62
+ -- ST:DS9, \"Treachery, Faith, and the Great River\"",
63
+ "Ferengi Rule of Acquisition #31:\n
64
+ Never make fun of a Ferengi's mother.\n
65
+ -- ST:DS9, \"The Siege\"",
66
+ "Ferengi Rule of Acquisition #33:\n
67
+ It never hurts to suck up to the boss.\n
68
+ -- ST:DS9, \"Rule of Acquisition\", \"The Dogs of War\"",
69
+ "Ferengi Rule of Acquisition #34:\n
70
+ War is good for business.\n
71
+ -- ST:DS9, \"Destiny\"",
72
+ "Ferengi Rule of Acquisition #35:\n
73
+ Peace is good for business.\n
74
+ -- ST:DS9, \"The Perfect Mate\"; ST:TNG, \"Destiny\"",
75
+ "Ferengi Rule of Acquisition #40:\n
76
+ She can touch your lobes, but never your latinum.\n
77
+ -- ST: Legends of the Ferengi",
78
+ "Ferengi Rule of Acquisition #41:\n
79
+ Profit is its own reward.\n
80
+ -- ST: Legends of the Ferengi",
81
+ "Ferengi Rule of Acquisition #44:\n
82
+ Never confuse wisdom with luck.\n
83
+ -- ST: Legends of the Ferengi",
84
+ "Ferengi Rule of Acquisition #47:\n
85
+ Never trust a man wearing a better suit than your own.\n
86
+ -- ST:DS9, \"Rivals\"",
87
+ "Ferengi Rule of Acquisition #48:\n
88
+ The bigger the smile, the sharper the knife.\n
89
+ -- ST:DS9, \"Rule of Acquisition\"",
90
+ "Ferengi Rule of Acquisition #52:\n
91
+ Never ask when you can take.\n
92
+ -- ST:DS9, \"Rule of Acquisition\"",
93
+ "Ferengi Rule of Acquisition #57:\n
94
+ Good customers are as rare as latinum. Treasure them.\n
95
+ -- ST:DS9, \"Armageddon Game\"",
96
+ "Ferengi Rule of Acquisition #58:\n
97
+ There is no substitute for success.\n
98
+ -- ST: Legends of the Ferengi",
99
+ "Ferengi Rule of Acquisition #59:\n
100
+ Free advice is seldom cheap.\n
101
+ -- ST:DS9, \"Rule of Acquisition\"",
102
+ "Ferengi Rule of Acquisition #60:\n
103
+ Keep your lies consistent.\n
104
+ -- ST: Legends of the Ferengi",
105
+ "Ferengi Rule of Acquisition #62:\n
106
+ The riskier the road, the greater the profit.\n
107
+ -- ST:DS9, \"Rule of Acquisition\"",
108
+ "Ferengi Rule of Acquisition #65:\n
109
+ Win or lose, there's always Hupyrian beetle snuff.\n
110
+ -- ST: Legends of the Ferengi",
111
+ "Ferengi Rule of Acquisition #75:\n
112
+ Home is where the heart is, but the stars are made of latinum.\n
113
+ -- ST:DS9, \"Civil Defense\"",
114
+ "Ferengi Rule of Acquisition #76:\n
115
+ Every once in a while, declare peace. It confuses the hell out of your enemies.\n
116
+ -- ST:DS9, \"The Homecoming\"",
117
+ "Ferengi Rule of Acquisition #79:\n
118
+ Beware of the Vulcan greed for knowledge.\n
119
+ -- ST: Legends of the Ferengi",
120
+ "Ferengi Rule of Acquisition #82:\n
121
+ The flimsier the product, the higher the price.\n
122
+ -- ST: Legends of the Ferengi",
123
+ "Ferengi Rule of Acquisition #85:\n
124
+ Never let the competition know what you're thinking.\n
125
+ -- ST: Legends of the Ferengi",
126
+ "Ferengi Rule of Acquisition #89:\n
127
+ Ask not what your profits can do for you, but what you can do for your profits.\n
128
+ -- ST: Legends of the Ferengi",
129
+ "Ferengi Rule of Acquisition #94:\n
130
+ Females and finances don't mix.\n
131
+ -- ST:DS9, \"Ferengi Love Songs\"",
132
+ "Ferengi Rule of Acquisition #97:\n
133
+ Enough ... is never enough.\n
134
+ -- ST: Legends of the Ferengi",
135
+ "Ferengi Rule of Acquisition #98:\n
136
+ Every man has his price.\n
137
+ -- ST:DS9, \"In the Pale Moonlight\"",
138
+ "Ferengi Rule of Acquisition #99:\n
139
+ Trust is the biggest liability of all.\n
140
+ -- ST: Legends of the Ferengi",
141
+ "Ferengi Rule of Acquisition #102:\n
142
+ Nature decays, but latinum lasts forever.\n
143
+ -- ST:DS9, \"The Jem'Hadar\"",
144
+ "Ferengi Rule of Acquisition #103:\n
145
+ Sleep can interfere with your lust for latinum.5
146
+ -- ST:DS9, \"Rule of Acquisition\"",
147
+ "Ferengi Rule of Acquisition #104:\n
148
+ Faith moves mountains ... of inventory.\n
149
+ -- ST: Legends of the Ferengi",
150
+ "Ferengi Rule of Acquisition #106:\n
151
+ There is no honor in poverty.\n
152
+ -- ST: Legends of the Ferengi",
153
+ "Ferengi Rule of Acquisition #109:\n
154
+ Dignity and an empty sack is worth the sack.\n
155
+ -- ST:DS9, \"Rivals\"",
156
+ "Ferengi Rule of Acquisition #111:\n
157
+ Treat people in your debt like family... exploit them.\n
158
+ -- ST:DS9, \"Past Tense, Part I\", \"The Darkness and the Light\"",
159
+ "Ferengi Rule of Acquisition #112:\n
160
+ Never have sex with the boss's sister.\n
161
+ -- ST:DS9, \"Playing God\"",
162
+ "Ferengi Rule of Acquisition #113:\n
163
+ Always have sex with the boss.\n
164
+ -- ST: Legends of the Ferengi",
165
+ "Ferengi Rule of Acquisition #121:\n
166
+ Everything is for sale, even friendship.\n
167
+ -- ST: Legends of the Ferengi",
168
+ "Ferengi Rule of Acquisition #123:\n
169
+ Even a blind man can recognize the glow of latinum.\n
170
+ -- ST: Legends of the Ferengi",
171
+ "Ferengi Rule of Acquisition #125:\n
172
+ You can't make a deal if you're dead.\n
173
+ -- ST:DS9, \"The Siege of AR-558\"",
174
+ "Ferengi Rule of Acquisition #139:\n
175
+ Wives serve, brothers inherit.\n
176
+ -- ST:DS9, \"Necessary Evil\"",
177
+ "Ferengi Rule of Acquisition #141:\n
178
+ Only fools pay retail.\n
179
+ -- ST: Legends of the Ferengi",
180
+ "Ferengi Rule of Acquisition #144:\n
181
+ There's nothing wrong with charity... as long as it winds up in your pocket.\n
182
+ -- ST: Legends of the Ferengi",
183
+ "Ferengi Rule of Acquisition #162:\n
184
+ Even in the worst of times, someone turns a profit.\n
185
+ -- ST: Legends of the Ferengi",
186
+ "Ferengi Rule of Acquisition #168:\n
187
+ Whisper your way to success.\n
188
+ -- ST:DS9, \"Treachery, Faith, and the Great River\"",
189
+ "Ferengi Rule of Acquisition #177:\n
190
+ Know your enemies... but do business with them always.\n
191
+ -- ST: Legends of the Ferengi",
192
+ "Ferengi Rule of Acquisition #181:\n
193
+ Not even dishonesty can tarnish the shine of profit.\n
194
+ -- ST: Legends of the Ferengi",
195
+ "Ferengi Rule of Acquisition #189:\n
196
+ Let others keep their reputation. You keep their latinum.\n
197
+ -- ST: Legends of the Ferengi",
198
+ "Ferengi Rule of Acquisition #190:\n
199
+ Hear all, trust nothing.\n
200
+ -- ST:DS9, \"Call to Arms\"",
201
+ "Ferengi Rule of Acquisition #192:\n
202
+ Never cheat a Klingon ... unless you can get away with it.\n
203
+ -- ST: Legends of the Ferengi",
204
+ "Ferengi Rule of Acquisition #194:\n
205
+ It's always good to know about new customers before they walk in your door.\n
206
+ -- ST:DS9, \"Whispers\"",
207
+ "Ferengi Rule of Acquisition #202:\n
208
+ The justification for profit is profit.\n
209
+ -- ST: Legends of the Ferengi",
210
+ "Ferengi Rule of Acquisition #203:\n
211
+ New customers are like razor-toothed gree worms. They can be succulent, but sometimes they bite back.\n
212
+ -- ST:DS9, \"Little Green Men\"",
213
+ "Ferengi Rule of Acquisition #208:\n
214
+ Sometimes the only thing more dangerous than the question is an answer.\n
215
+ -- ST:DS9, \"Ferengi Love Songs\"",
216
+ "Ferengi Rule of Acquisition #211:\n
217
+ Employees are the rungs on the ladder of success. Don't hesitate to step on them.\n
218
+ -- ST:DS9, \"Bar Association\"",
219
+ "Ferengi Rule of Acquisition #214:\n
220
+ Never begin a negotiation on an empty stomach.\n
221
+ -- ST:DS9, \"The Maquis, Part I\"",
222
+ "Ferengi Rule of Acquisition #217:\n
223
+ You can't free a fish from water.\n
224
+ -- ST:DS9, \"Past Tense, Part I\"",
225
+ "Ferengi Rule of Acquisition #218:\n
226
+ Always know what you're buying.\n
227
+ -- ST: Legends of the Ferengi",
228
+ "Ferengi Rule of Acquisition #223:\n
229
+ Beware the man who doesn't make time for oo-mox.\n
230
+ -- ST: Legends of the Ferengi",
231
+ "Ferengi Rule of Acquisition #229:\n
232
+ Latinum lasts longer than lust.\n
233
+ -- ST:DS9, \"Ferengi Love Songs\"",
234
+ "Ferengi Rule of Acquisition #236:\n
235
+ You can't buy fate.\n
236
+ -- ST: Legends of the Ferengi",
237
+ "Ferengi Rule of Acquisition #239:\n
238
+ Never be afraid to mislabel a product.\n
239
+ -- ST:DS9, \"Body Parts\"",
240
+ "Ferengi Rule of Acquisition #242:\n
241
+ More is good. All is better.\n
242
+ -- ST: Legends of the Ferengi",
243
+ "Ferengi Rule of Acquisition #255:\n
244
+ A wife is a luxury ... a smart accountant a necessity.\n
245
+ -- ST: Legends of the Ferengi",
246
+ "Ferengi Rule of Acquisition #261:\n
247
+ A wealthy man can afford anything except a conscience.\n
248
+ -- ST: Legends of the Ferengi",
249
+ "Ferengi Rule of Acquisition #266:\n
250
+ When in doubt, lie.\n
251
+ -- ST: Legends of the Ferengi",
252
+ "Ferengi Rule of Acquisition #263:\n
253
+ Never let doubt interfere with your lust for latinum.\n
254
+ -- ST:DS9, \"Bar Association\"",
255
+ "Ferengi Rule of Acquisition #284:\n
256
+ Deep down, everyone's a Ferengi.\n
257
+ -- ST: Legends of the Ferengi",
258
+ "Ferengi Rule of Acquisition #285:\n
259
+ No good deed ever goes unpunished.\n
260
+ -- ST:DS9, \"The Collaborator\""
261
+ ]
262
+ # rules = [
263
+ # "Ferengi Rule of Acquisition #1:\n> Once you have their money, you never give it back.\n> -- Star Trek: Deep Space 9, \"The Nagus\", \"Heart of Stone\"",
264
+ # "Ferengi Rule of Acquisition #3:\n> Never pay more for an acquisition than you have to.\n> -- Star Trek: Deep Space 9, \"The Maquis, Part II\"",
265
+ # "Ferengi Rule of Acquisition #6:\n> Never allow family to stand in the way of opportunity.\n> -- Star Trek: Deep Space 9, \"The Nagus\"",
266
+ # "Ferengi Rule of Acquisition #7:\n> Keep your ears open.\n> -- Star Trek: Deep Space 9, \"In the Hands of the Prophets\"",
267
+ # "Ferengi Rule of Acquisition #8:\n> Small print leads to large risk.\n> -- Star Trek: Legends of the Ferengi",
268
+ # "Ferengi Rule of Acquisition #9:\n> Opportunity plus instinct equals profit.\n> -- Star Trek: Deep Space 9, The Storyteller",
269
+ # "Ferengi Rule of Acquisition #10:\n> Greed is eternal.\n> -- Star Trek: Deep Space 9, Prophet Motive",
270
+ # "Ferengi Rule of Acquisition #13:\n> Anything worth doing is worth doing for money.\n> -- Star Trek: Legends of the Ferengi",
271
+ # "Ferengi Rule of Acquisition #16:\n> A deal is a deal... until a better one comes along.\n> -- Star Trek: Deep Space 9, \"Melora\"",
272
+ # "Ferengi Rule of Acquisition #17:\n> A contract is a contract is a contract... but only between Ferengi.\n> -- Star Trek: Deep Space 9, \"Body Parts\"",
273
+ # "Ferengi Rule of Acquisition #18:\n> A Ferengi without profit is no Ferengi at all.\n> -- Star Trek: Deep Space 9, \"Heart of Stone\"",
274
+ # "Ferengi Rule of Acquisition #19:\n> Satisfaction is not guaranteed.\n> -- Star Trek: Legends of the Ferengi",
275
+ # "Ferengi Rule of Acquisition #21:\n> Never place friendship above profit.\n> -- Star Trek: Deep Space 9, \"Rule of Acquisition\"",
276
+ # "Ferengi Rule of Acquisition #22:\n> A wise man can hear profit in the wind.\n> -- Star Trek: Deep Space 9, \"Rule of Acquisition\"",
277
+ # "Ferengi Rule of Acquisition #27:\n> There is nothing more dangerous than an honest businessman\n> -- Star Trek: Legends of the Ferengi",
278
+ # "Ferengi Rule of Acquisition #28:\n> Whisper your way to success.\n> -- Star Trek: Deep Space 9, \"Treachery, Faith, and the Great River\"",
279
+ # "Ferengi Rule of Acquisition #31:\n> Never make fun of a Ferengi's mother.\n> -- Star Trek: Deep Space 9, \"The Siege\"",
280
+ # "Ferengi Rule of Acquisition #33:\n> It never hurts to suck up to the boss.\n> -- Star Trek: Deep Space 9, \"Rule of Acquisition\", \"The Dogs of War\"",
281
+ # "Ferengi Rule of Acquisition #34:\n> War is good for business.\n> -- Star Trek: Deep Space 9, \"Destiny\"",
282
+ # "Ferengi Rule of Acquisition #35:\n> Peace is good for business.\n> -- Star Trek: Deep Space 9, \"The Perfect Mate\"; Star Trek: The Next Generation, \"Destiny\"",
283
+ # "Ferengi Rule of Acquisition #40:\n> She can touch your lobes, but never your latinum.\n> -- Star Trek: Legends of the Ferengi",
284
+ # "Ferengi Rule of Acquisition #41:\n> Profit is its own reward.\n> -- Star Trek: Legends of the Ferengi",
285
+ # "Ferengi Rule of Acquisition #44:\n> Never confuse wisdom with luck.\n> -- Star Trek: Legends of the Ferengi",
286
+ # "Ferengi Rule of Acquisition #47:\n> Never trust a man wearing a better suit than your own.\n> -- Star Trek: Deep Space 9, \"Rivals\"",
287
+ # "Ferengi Rule of Acquisition #48:\n> The bigger the smile, the sharper the knife.\n> -- Star Trek: Deep Space 9, \"Rule of Acquisition\"",
288
+ # "Ferengi Rule of Acquisition #52:\n> Never ask when you can take.\n> -- Star Trek: Deep Space 9, \"Rule of Acquisition\"",
289
+ # "Ferengi Rule of Acquisition #57:\n> Good customers are as rare as latinum. Treasure them.\n> -- Star Trek: Deep Space 9, \"Armageddon Game\"",
290
+ # "Ferengi Rule of Acquisition #58:\n> There is no substitute for success.\n> -- Star Trek: Legends of the Ferengi",
291
+ # "Ferengi Rule of Acquisition #59:\n> Free advice is seldom cheap.\n> -- Star Trek: Deep Space 9, \"Rule of Acquisition\"",
292
+ # "Ferengi Rule of Acquisition #60:\n> Keep your lies consistent.\n> -- Star Trek: Legends of the Ferengi",
293
+ # "Ferengi Rule of Acquisition #62:\n> The riskier the road, the greater the profit.\n> -- Star Trek: Deep Space 9, \"Rule of Acquisition\"",
294
+ # "Ferengi Rule of Acquisition #65:\n> Win or lose, there's always Hupyrian beetle snuff.\n> -- Star Trek: Legends of the Ferengi",
295
+ # "Ferengi Rule of Acquisition #75:\n> Home is where the heart is, but the stars are made of latinum.\n> -- Star Trek: Deep Space 9, \"Civil Defense\"",
296
+ # "Ferengi Rule of Acquisition #76:\n> Every once in a while, declare peace. It confuses the hell out of your enemies.\n> -- Star Trek: Deep Space 9, \"The Homecoming\"",
297
+ # "Ferengi Rule of Acquisition #79:\n> Beware of the Vulcan greed for knowledge.\n> -- Star Trek: Legends of the Ferengi",
298
+ # "Ferengi Rule of Acquisition #82:\n> The flimsier the product, the higher the price.\n> -- Star Trek: Legends of the Ferengi",
299
+ # "Ferengi Rule of Acquisition #85:\n> Never let the competition know what you're thinking.\n> -- Star Trek: Legends of the Ferengi",
300
+ # "Ferengi Rule of Acquisition #89:\n> Ask not what your profits can do for you, but what you can do for your profits.\n> -- Star Trek: Legends of the Ferengi",
301
+ # "Ferengi Rule of Acquisition #94:\n> Females and finances don't mix.\n> -- Star Trek: Deep Space 9, \"Ferengi Love Songs\"",
302
+ # "Ferengi Rule of Acquisition #97:\n> Enough ... is never enough.\n> -- Star Trek: Legends of the Ferengi",
303
+ # "Ferengi Rule of Acquisition #98:\n> Every man has his price.\n> -- Star Trek: Deep Space 9, \"In the Pale Moonlight\"",
304
+ # "Ferengi Rule of Acquisition #99:\n> Trust is the biggest liability of all.\n> -- Star Trek: Legends of the Ferengi",
305
+ # "Ferengi Rule of Acquisition #102:\n> Nature decays, but latinum lasts forever.\n> -- Star Trek: Deep Space 9, \"The Jem'Hadar\"",
306
+ # "Ferengi Rule of Acquisition #103:\n> Sleep can interfere with your lust for latinum\n> -- Star Trek: Deep Space 9, \"Rule of Acquisition\"",
307
+ # "Ferengi Rule of Acquisition #104:\n> Faith moves mountains ... of inventory.\n> -- Star Trek: Legends of the Ferengi",
308
+ # "Ferengi Rule of Acquisition #106:\n> There is no honor in poverty.\n> -- Star Trek: Legends of the Ferengi",
309
+ # "Ferengi Rule of Acquisition #109:\n> Dignity and an empty sack is worth the sack.\n> -- Star Trek: Deep Space 9, \"Rivals\"",
310
+ # "Ferengi Rule of Acquisition #111:\n> Treat people in your debt like family... exploit them.\n> -- Star Trek: Deep Space 9, \"Past Tense, Part I\", \"The Darkness and the Light\"",
311
+ # "Ferengi Rule of Acquisition #112:\n> Never have sex with the boss's sister.\n> -- Star Trek: Deep Space 9, \"Playing God\"",
312
+ # "Ferengi Rule of Acquisition #113:\n> Always have sex with the boss.\n> -- Star Trek: Legends of the Ferengi",
313
+ # "Ferengi Rule of Acquisition #121:\n> Everything is for sale, even friendship.\n> -- Star Trek: Legends of the Ferengi",
314
+ # "Ferengi Rule of Acquisition #123:\n> Even a blind man can recognize the glow of latinum.\n> -- Star Trek: Legends of the Ferengi",
315
+ # "Ferengi Rule of Acquisition #125:\n> You can't make a deal if you're dead.\n> -- Star Trek: Deep Space 9, \"The Siege of AR-558\"",
316
+ # "Ferengi Rule of Acquisition #139:\n> Wives serve, brothers inherit.\n> -- Star Trek: Deep Space 9, \"Necessary Evil\"",
317
+ # "Ferengi Rule of Acquisition #141:\n> Only fools pay retail.\n> -- Star Trek: Legends of the Ferengi",
318
+ # "Ferengi Rule of Acquisition #144:\n> There's nothing wrong with charity... as long as it winds up in your pocket.\n> -- Star Trek: Legends of the Ferengi",
319
+ # "Ferengi Rule of Acquisition #162:\n> Even in the worst of times, someone turns a profit.\n> -- Star Trek: Legends of the Ferengi",
320
+ # "Ferengi Rule of Acquisition #168:\n> Whisper your way to success.\n> -- Star Trek: Deep Space 9, \"Treachery, Faith, and the Great River\"",
321
+ # "Ferengi Rule of Acquisition #177:\n> Know your enemies... but do business with them always.\n> -- Star Trek: Legends of the Ferengi",
322
+ # "Ferengi Rule of Acquisition #181:\n> Not even dishonesty can tarnish the shine of profit.\n> -- Star Trek: Legends of the Ferengi",
323
+ # "Ferengi Rule of Acquisition #189:\n> Let others keep their reputation. You keep their latinum.\n> -- Star Trek: Legends of the Ferengi",
324
+ # "Ferengi Rule of Acquisition #190:\n> Hear all, trust nothing.\n> -- Star Trek: Deep Space 9, \"Call to Arms\"",
325
+ # "Ferengi Rule of Acquisition #192:\n> Never cheat a Klingon ... unless you can get away with it.\n> -- Star Trek: Legends of the Ferengi",
326
+ # "Ferengi Rule of Acquisition #194:\n> It's always good to know about new customers before they walk in your door.\n> -- Star Trek: Deep Space 9, \"Whispers\"",
327
+ # "Ferengi Rule of Acquisition #202:\n> The justification for profit is profit.\n> -- Star Trek: Legends of the Ferengi",
328
+ # "Ferengi Rule of Acquisition #203:\n> New customers are like razor-toothed gree worms. They can be succulent, but sometimes they bite back.\n> -- Star Trek: Deep Space 9, \"Little Green Men\"",
329
+ # "Ferengi Rule of Acquisition #208:\n> Sometimes the only thing more dangerous than the question is an answer.\n> -- Star Trek: Deep Space 9, \"Ferengi Love Songs\"",
330
+ # "Ferengi Rule of Acquisition #211:\n> Employees are the rungs on the ladder of success. Don't hesitate to step on them.\n> -- Star Trek: Deep Space 9, \"Bar Association\"",
331
+ # "Ferengi Rule of Acquisition #214:\n> Never begin a negotiation on an empty stomach.\n> -- Star Trek: Deep Space 9, \"The Maquis, Part I\"",
332
+ # "Ferengi Rule of Acquisition #217:\n> You can't free a fish from water.\n> -- Star Trek: Deep Space 9, \"Past Tense, Part I\"",
333
+ # "Ferengi Rule of Acquisition #218:\n> Always know what you're buying.\n> -- Star Trek: Legends of the Ferengi",
334
+ # "Ferengi Rule of Acquisition #223:\n> Beware the man who doesn't make time for oo-mox.\n> -- Star Trek: Legends of the Ferengi",
335
+ # "Ferengi Rule of Acquisition #229:\n> Latinum lasts longer than lust.\n> -- Star Trek: Deep Space 9, \"Ferengi Love Songs\"",
336
+ # "Ferengi Rule of Acquisition #236:\n> You can't buy fate.\n> -- Star Trek: Legends of the Ferengi",
337
+ # "Ferengi Rule of Acquisition #239:\n> Never be afraid to mislabel a product.\n> -- Star Trek: Deep Space 9, \"Body Parts\"",
338
+ # "Ferengi Rule of Acquisition #242:\n> More is good. All is better.\n> -- Star Trek: Legends of the Ferengi",
339
+ # "Ferengi Rule of Acquisition #255:\n> A wife is a luxury ... a smart accountant a necessity.\n> -- Star Trek: Legends of the Ferengi",
340
+ # "Ferengi Rule of Acquisition #261:\n> A wealthy man can afford anything except a conscience.\n> -- Star Trek: Legends of the Ferengi",
341
+ # "Ferengi Rule of Acquisition #266:\n> When in doubt, lie.\n> -- Star Trek: Legends of the Ferengi",
342
+ # "Ferengi Rule of Acquisition #263:\n> Never let doubt interfere with your lust for latinum.\n> -- Star Trek: Deep Space 9, \"Bar Association\"",
343
+ # "Ferengi Rule of Acquisition #284:\n> Deep down, everyone's a Ferengi.\n> -- Star Trek: Legends of the Ferengi",
344
+ # "Ferengi Rule of Acquisition #285:\n> No good deed ever goes unpunished.\n> -- Star Trek: Deep Space 9, \"The Collaborator\""
345
+ # ]
346
+
347
+ response.reply(rules[Random.rand(rules.length)])
348
+ end
349
+ end
350
+
351
+ Lita.register_handler(RulesOfAcquisition)
352
+ end
353
+ end
@@ -0,0 +1,12 @@
1
+ require "lita"
2
+
3
+ Lita.load_locales Dir[File.expand_path(
4
+ File.join("..", "..", "locales", "*.yml"), __FILE__
5
+ )]
6
+
7
+ require "lita/handlers/rulesofacquisition"
8
+
9
+ Lita::Handlers::RulesOfAcquisition.template_root File.expand_path(
10
+ File.join("..", "..", "templates"),
11
+ __FILE__
12
+ )
@@ -0,0 +1,24 @@
1
+ Gem::Specification.new do |spec|
2
+ spec.name = "lita-rulesofacquisition"
3
+ spec.version = "0.1.4"
4
+ spec.authors = ["Shaun Martin"]
5
+ spec.email = ["shaun@samsite.ca"]
6
+ spec.description = "Displays one of the Ferengi Rules of Acquisition"
7
+ spec.summary = "Displays one of the Ferengi Rules of Acquisition"
8
+ spec.homepage = "https://github.com/inhumantsar/lita-rulesofacquisition"
9
+ spec.license = ""
10
+ spec.metadata = { "lita_plugin_type" => "handler" }
11
+
12
+ spec.files = `git ls-files`.split($/)
13
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
14
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
15
+ spec.require_paths = ["lib"]
16
+
17
+ spec.add_runtime_dependency "lita"
18
+
19
+ spec.add_development_dependency "bundler", "~> 1.3"
20
+ spec.add_development_dependency "pry-byebug"
21
+ spec.add_development_dependency "rake"
22
+ spec.add_development_dependency "rack-test"
23
+ spec.add_development_dependency "rspec", ">= 3.0.0"
24
+ end
data/locales/en.yml ADDED
@@ -0,0 +1,4 @@
1
+ en:
2
+ lita:
3
+ handlers:
4
+ rulesofacquisition:
@@ -0,0 +1,5 @@
1
+ require "spec_helper"
2
+
3
+ describe Lita::Handlers::RulesOfAcquisition, lita_handler: true do
4
+ it { is_expected.to route_command('money').to(:rule) }
5
+ end
@@ -0,0 +1,7 @@
1
+ require "lita-manatee"
2
+ require "lita/rspec"
3
+ require "pry"
4
+
5
+ # A compatibility mode is provided for older plugins upgrading from Lita 3. Since this plugin
6
+ # was generated with Lita 4, the compatibility mode should be left disabled.
7
+ Lita.version_3_compatibility_mode = false
File without changes
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-rulesofacquisition
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shaun Martin
@@ -100,7 +100,18 @@ email:
100
100
  executables: []
101
101
  extensions: []
102
102
  extra_rdoc_files: []
103
- files: []
103
+ files:
104
+ - ".gitignore"
105
+ - Gemfile
106
+ - README.md
107
+ - Rakefile
108
+ - lib/lita-rulesofacquisition.rb
109
+ - lib/lita/handlers/rulesofacquisition.rb
110
+ - lita-rulesofacquisition.gemspec
111
+ - locales/en.yml
112
+ - spec/lita/handlers/rulesofacqusition_spec.rb
113
+ - spec/spec_helper.rb
114
+ - templates/.gitkeep
104
115
  homepage: https://github.com/inhumantsar/lita-rulesofacquisition
105
116
  licenses:
106
117
  - ''
@@ -126,4 +137,6 @@ rubygems_version: 2.2.2
126
137
  signing_key:
127
138
  specification_version: 4
128
139
  summary: Displays one of the Ferengi Rules of Acquisition
129
- test_files: []
140
+ test_files:
141
+ - spec/lita/handlers/rulesofacqusition_spec.rb
142
+ - spec/spec_helper.rb