lita-nerf-war 0.1.3 → 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: 4e1954b85c1449a3d947d5d5d65a776a3d4a7a37
4
- data.tar.gz: 44794bbbafaa8a4c74671bd6d15034ecadd59c02
3
+ metadata.gz: 2326d16552a37ffac79bada05a00808a6e36a113
4
+ data.tar.gz: 5262576a5f7660590069827a4260690dd2ba6676
5
5
  SHA512:
6
- metadata.gz: cf3b2dffaff9f2b81fa273be3ee4900a7b66b177ca4fa85b2fe6a0340972c930f395520e4fea1a5070a747566f3ae4890ec5d65b96e89a0d8e92853bb6aea569
7
- data.tar.gz: fae17744a3ed1aa846a4fd4e61a340e9589cd882f87ed5e5b74f75dc5dee894a222527caa7a07efee9c7dbe298cc1e8d3da64146be14da3508ce361ffd7f2180
6
+ metadata.gz: 512a394de52645c05810280ec523a04468f083732dc095fcc6b24ff4aa6bf32ecb923a811b0e467a3168031e5fa2b29c9981608ffff5185436bbfcb253df56b0
7
+ data.tar.gz: 883b8d59f6f309b0283661f8a0b71b1a77db7f926eadcaf8706d2875d447ba2f9035a2bd15347d47c6a3eb78e24ad75aced8771d5f536a8e1019c7cbaf1aa59f
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
+ [![Gem Version](https://badge.fury.io/rb/lita-nerf-war.svg)](http://badge.fury.io/rb/lita-nerf-war)
2
+
1
3
  # lita-nerf-war
2
4
 
3
- Nerf guns at work are great. Want to get someone's attention? Shoot them with a dart -- it works great. But eventually someone complains and the dart guns end up in a drawer somewhere. End of the fun right? Wrong!
5
+ Nerf guns at work are great. Want to get someone's attention? Shoot them with a dart -- it works great. But eventually someone complains and the dart guns end up in a drawer somewhere. End of the fun, right? Wrong!
4
6
  Virtualization isn't just for servers any longer. Now you can virtualize your nerf war too!
5
7
 
6
8
 
@@ -14,7 +16,7 @@ gem "lita-nerf-war"
14
16
 
15
17
  ## Configuration
16
18
 
17
- You don't need to configure anything to have your very own nerf war but where's the fun in that? While ```lita-nerf-war``` does provide an initial set of snarky results, you can increase the fun factor by customizing the messages by specifying your own set of messages.
19
+ You don't need to configure anything to have a hyperlocal nerf war but where's the fun in that? While ```lita-nerf-war``` does provide an initial set of snarky results, you can increase the fun factor by customizing the messages by specifying your own set of messages.
18
20
 
19
21
  Create a yaml file within your bot's directory structure and set ```config.handlers.nerf_war.target_file``` to the full path to that file:
20
22
 
@@ -85,4 +87,44 @@ will produce something like:
85
87
  For those really intense fire fights, you can throw a nuke:
86
88
 
87
89
  ```nuke everyone```
90
+
91
+
92
+ ## History
93
+
94
+ 0.1.4 Added a 5-shot gatling gun. Triggered if the text after the target (e.g. 'with a ...') contains the word 'gatling'
95
+
96
+ 0.1.3 Specified ruby version in gemspec
97
+
98
+ 0.1.2 Initial public release
99
+
100
+ 0.0.1 Very late night hacking sessions
101
+
102
+ 0.0.0 this was a TCL script? WTF? Who does THAT?
103
+
104
+ ## Contributing
105
+
106
+ Contributions are welcome! Here's a quick guide shamelessly cobbled together from other projects:
107
+
108
+ Fork, then clone the repo:
109
+
110
+ git clone git@github.com:your-username/lita-nerf-war.git
111
+
112
+ Make your change. Add tests for your change. Make the tests pass:
113
+
114
+ rake
115
+
116
+ Push to your fork and [submit a pull request][pr].
117
+
118
+ [pr]: https://github.com/snowmoonsoftware/lita-nerf-war/compare/
119
+
120
+ At this point you're waiting on me. I like to at least comment on pull requests
121
+ within three business days (and, typically, one business day). I may suggest
122
+ some changes or improvements or alternatives.
123
+
124
+ Some things that will increase the chance that your pull request is accepted:
125
+
126
+ * Write tests.
127
+ * Write a [good commit message][commit].
128
+
129
+ [commit]: http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
88
130
 
data/lib/nerf_war.rb CHANGED
@@ -17,8 +17,11 @@ class NerfWar
17
17
  return if you_will_put_your_eye_out?
18
18
  return if we_never_forget_vlad?
19
19
 
20
- @response.reply shooting_message + ': ' + snarky_result
21
- @response.reply BURN_UNITS if is_flame_weapon?
20
+ shots = @weapon.downcase.include?('gatling') ? 5 : 1
21
+ 1.upto(shots) do
22
+ @response.reply shooting_message + ': ' + snarky_result
23
+ @response.reply BURN_UNITS if is_flame_weapon?
24
+ end
22
25
  end
23
26
 
24
27
  def nuke
@@ -1,10 +1,10 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "lita-nerf-war"
3
- spec.version = "0.1.3"
3
+ spec.version = "0.1.4"
4
4
  spec.authors = ["Jeff Paquette"]
5
5
  spec.email = ["jeff@snowmoonsoftware.com"]
6
6
  spec.description = "Virtual dart fights for your slack rooms"
7
- spec.summary = "Virtual dart fights for your slack rooms"
7
+ spec.summary = "Nerf guns at work are great. Want to get someone's attention? Shoot them with a dart -- it works great. But eventually someone complains and the dart guns end up in a drawer somewhere. End of the fun, right? Wrong! Virtualization isn't just for servers any longer. Now you can virtualize your nerf war too!"
8
8
  spec.homepage = "https://github.com/snowmoonsoftware/lita-nerf-war"
9
9
  spec.license = "MIT"
10
10
  spec.metadata = { "lita_plugin_type" => "handler" }
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.3
4
+ version: 0.1.4
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-03-24 00:00:00.000000000 Z
11
+ date: 2015-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lita
@@ -137,7 +137,10 @@ rubyforge_project:
137
137
  rubygems_version: 2.4.3
138
138
  signing_key:
139
139
  specification_version: 4
140
- summary: Virtual dart fights for your slack rooms
140
+ summary: Nerf guns at work are great. Want to get someone's attention? Shoot them
141
+ with a dart -- it works great. But eventually someone complains and the dart guns
142
+ end up in a drawer somewhere. End of the fun, right? Wrong! Virtualization isn't
143
+ just for servers any longer. Now you can virtualize your nerf war too!
141
144
  test_files:
142
145
  - spec/lita/handlers/nerf_war_spec.rb
143
146
  - spec/spec_helper.rb