lita-rulesofacquisition 0.1.0 → 0.1.2

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: 8677b43ae9afbd411fc386f0335c9433bb498b98
4
- data.tar.gz: 146ca12cccf329d5a4cde81494b5e3b3492be1bf
3
+ metadata.gz: 9001bcc1fbcdd512e011f83830637b6e8a24000c
4
+ data.tar.gz: 689c8c100cca76d543bdbb3b3deb05f2b9dfbdcd
5
5
  SHA512:
6
- metadata.gz: cb7121f6b66e576f0294e5170bf19cc26657aaa49301682871695e444c9ab964cb7a95aeb60882b696fd7d7a75fe1e75679aefd3c32cbb97d59b42d38740f85e
7
- data.tar.gz: dcf0a1ffd22a10201d9674475c891cc7affb41515e554fb694ade94443779e88b3c85ebeeafb29bfa0a335ebfb6d0e085b32540477731b551f9e27b2bfb42b08
6
+ metadata.gz: 863481ee2fcfccfb0c99e340a607044068a86fe4bbe5b20f8d2458f2c07be90b884bf42253407cba09c68206d46a7837f8c84878ad92d5f98145c4024abd8d92
7
+ data.tar.gz: 151708d7b92add811fc72af4521960236bada891b51902dda7d50a6cb3595a5b0af28a839d0991e7e3483ce09549897723f6a7af5ac53da9b242dead9d6112a5
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.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shaun Martin
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '4.4'
19
+ version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '4.4'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -100,18 +100,7 @@ email:
100
100
  executables: []
101
101
  extensions: []
102
102
  extra_rdoc_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
103
+ files: []
115
104
  homepage: https://github.com/inhumantsar/lita-rulesofacquisition
116
105
  licenses:
117
106
  - ''
@@ -137,6 +126,4 @@ rubygems_version: 2.2.2
137
126
  signing_key:
138
127
  specification_version: 4
139
128
  summary: Displays one of the Ferengi Rules of Acquisition
140
- test_files:
141
- - spec/lita/handlers/rulesofacqusition_spec.rb
142
- - spec/spec_helper.rb
129
+ test_files: []
data/.gitignore DELETED
@@ -1,9 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /Gemfile.lock
4
- /_yardoc/
5
- /coverage/
6
- /doc/
7
- /pkg/
8
- /spec/reports/
9
- /tmp/
data/Gemfile DELETED
@@ -1,3 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec
data/README.md DELETED
@@ -1,23 +0,0 @@
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
- ## Configuration
18
-
19
- TODO: Describe any configuration attributes the plugin exposes.
20
-
21
- ## Usage
22
-
23
- TODO: Describe the plugin's features and how to use them.
data/Rakefile DELETED
@@ -1,6 +0,0 @@
1
- require "bundler/gem_tasks"
2
- require "rspec/core/rake_task"
3
-
4
- RSpec::Core::RakeTask.new(:spec)
5
-
6
- task default: :spec
@@ -1,269 +0,0 @@
1
- module Lita
2
- module Handlers
3
- class RulesOfAcquisition < Handler
4
- route(
5
- /ferengi rule|money|profit|sale|discount|opportunity/,
6
- :rule,
7
- command: true,
8
- help: {
9
- "ferengi rule|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
-
263
- response.reply(rules[Random.rand(rules.length)])
264
- end
265
- end
266
-
267
- Lita.register_handler(RulesOfAcquisition)
268
- end
269
- end
@@ -1,12 +0,0 @@
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
- )
@@ -1,24 +0,0 @@
1
- Gem::Specification.new do |spec|
2
- spec.name = "lita-rulesofacquisition"
3
- spec.version = "0.1.0"
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", ">= 4.4"
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 DELETED
@@ -1,4 +0,0 @@
1
- en:
2
- lita:
3
- handlers:
4
- rulesofacquisition:
@@ -1,5 +0,0 @@
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
data/spec/spec_helper.rb DELETED
@@ -1,7 +0,0 @@
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
data/templates/.gitkeep DELETED
File without changes