lita-nerf-war 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -0
- data/lib/nerf_war.rb +4 -4
- data/lita-nerf-war.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1eb0d2d5bdc57d78f14329f7d6f2028752e0e24f
|
4
|
+
data.tar.gz: 4222ad520160961286e1dbbafbca9b1593d75d29
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a88e75ad31189ee6b56288b1b795d42cb92f3fb06d898a7144f2a35e11db587b156dfcec69eb2b90bfcdfe9afb46bab1a08aea0e4d18a6131b3c97f7afb518ec
|
7
|
+
data.tar.gz: 2f1a842cadceca586403127077b0274229ec90e3b1c1f53fa03447d8bda9350eead93457f1a37a832e6bf19a5242f9231dc0fc2b7f6e78f51f44e1fbe1be0c33
|
data/README.md
CHANGED
@@ -91,7 +91,10 @@ For those really intense fire fights, you can throw a nuke:
|
|
91
91
|
|
92
92
|
## History
|
93
93
|
|
94
|
+
0.1.6 Replaced nerf nuke image as source image was taken down. Removed 'scrum but' code to another plugin
|
95
|
+
|
94
96
|
0.1.5 Fixed weapon name detection. Now handles 'with a ' as well as 'with '
|
97
|
+
|
95
98
|
0.1.4 Added a 5-shot gatling gun. Triggered if the text after the target (e.g. 'with a ...') contains the word 'gatling'
|
96
99
|
|
97
100
|
0.1.3 Specified ruby version in gemspec
|
data/lib/nerf_war.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
class NerfWar
|
2
2
|
|
3
|
-
BURN_UNITS = 'http://en.wikipedia.org/wiki/List_of_burn_centers_in_the_United_States'
|
3
|
+
BURN_UNITS = ['http://en.wikipedia.org/wiki/List_of_burn_centers_in_the_United_States', 'http://www.webmd.com/first-aid/tc/home-treatment-for-second-degree-burns-topic-overview']
|
4
4
|
FLAME_WEAPONS = ['flamethrower', 'flame thrower' 'napalm', 'willy pete', 'willie pete']
|
5
5
|
|
6
6
|
def initialize(response, target, weapon, custom_message_chance)
|
@@ -20,12 +20,12 @@ class NerfWar
|
|
20
20
|
shots = @weapon.downcase.include?('gatling') ? 5 : 1
|
21
21
|
1.upto(shots) do
|
22
22
|
@response.reply shooting_message + ': ' + snarky_result
|
23
|
-
@response.reply BURN_UNITS if is_flame_weapon?
|
23
|
+
@response.reply BURN_UNITS[rand(BURN_UNITS.length)] if is_flame_weapon?
|
24
24
|
end
|
25
25
|
end
|
26
26
|
|
27
27
|
def nuke
|
28
|
-
@response.reply ["#{@user.name} tosses a nuke into the room", "http://
|
28
|
+
@response.reply ["#{@user.name} tosses a nuke into the room", "http://i.imgur.com/zNAAKqd.gif"]
|
29
29
|
end
|
30
30
|
|
31
31
|
def snarky_result
|
@@ -55,7 +55,7 @@ class NerfWar
|
|
55
55
|
end
|
56
56
|
false
|
57
57
|
end
|
58
|
-
|
58
|
+
|
59
59
|
def you_will_put_your_eye_out?
|
60
60
|
if is_self?
|
61
61
|
@response.reply "You'll put your eye out!"
|
data/lita-nerf-war.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lita-nerf-war
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff Paquette
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04
|
11
|
+
date: 2015-09-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lita
|