build-buddy 1.7.0 → 1.7.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 +4 -4
- data/lib/build_buddy.rb +1 -1
- data/lib/build_buddy/slacker.rb +5 -5
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f2e0974a582454abd083fe575b4269ea1450e756
|
|
4
|
+
data.tar.gz: 498646e9e12f031b09ad62e5ba880c62e902ddbd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 30825c02f387e0ea0644307d9c19dd686919a6f13cb54afa2714a724ac4f6820024d9fd0827acffd01c5ed929c99176de17e02564fe01ac591ba8c32bdf5765e
|
|
7
|
+
data.tar.gz: 0f4a15c1da473892e6fbef0158d7e09aaa83c4523f3578fd9cd02f74b0f30a491d832cae5229ea9514d0fbc1673218ec616052a44c2eb4305893f9946487ec97
|
data/lib/build_buddy.rb
CHANGED
data/lib/build_buddy/slacker.rb
CHANGED
|
@@ -113,7 +113,7 @@ module BuildBuddy
|
|
|
113
113
|
response
|
|
114
114
|
end
|
|
115
115
|
|
|
116
|
-
def do_help
|
|
116
|
+
def do_help from_slack_channel
|
|
117
117
|
# TODO: The repository should be a link to GitHub
|
|
118
118
|
%Q(Hello#{from_slack_channel ? " <@#{data['user']}>" : ""}, I'm the *@#{@rt_client.self['name']}* build bot version #{BuildBuddy::VERSION}! I look after 3 types of build: pull request, master and release.
|
|
119
119
|
|
|
@@ -128,9 +128,9 @@ You can also ask me for `status` and I'll tell you what's being built and what's
|
|
|
128
128
|
end
|
|
129
129
|
|
|
130
130
|
def do_history(message)
|
|
131
|
-
case message
|
|
131
|
+
case message.lstrip.rstrip
|
|
132
132
|
when /([0-9]+)/
|
|
133
|
-
limit = $1
|
|
133
|
+
limit = $1.to_i
|
|
134
134
|
else
|
|
135
135
|
limit = 5
|
|
136
136
|
end
|
|
@@ -231,10 +231,10 @@ You can also ask me for `status` and I'll tell you what's being built and what's
|
|
|
231
231
|
do_build $1, from_slack_channel, slack_user_name
|
|
232
232
|
when /status/i
|
|
233
233
|
do_status
|
|
234
|
-
when /history
|
|
234
|
+
when /history(.*)/
|
|
235
235
|
do_history $1
|
|
236
236
|
when /help/i, /what can/i
|
|
237
|
-
do_help
|
|
237
|
+
do_help from_slack_channel
|
|
238
238
|
else
|
|
239
239
|
"Sorry#{from_slack_channel ? " <@#{data['user']}>" : ""}, I'm not sure how to respond."
|
|
240
240
|
end
|