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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 81ee8f317ad72e56104078228407ee03776e40e4
4
- data.tar.gz: ac43883aa9dd4188844043bb8370d178b5345348
3
+ metadata.gz: f2e0974a582454abd083fe575b4269ea1450e756
4
+ data.tar.gz: 498646e9e12f031b09ad62e5ba880c62e902ddbd
5
5
  SHA512:
6
- metadata.gz: 6f4a4d782e9a013622f05680fdf9275f001953a3ad0e45ec8a0dd7f5318c92e73fa1fc779be56d7a4b836303c3a845a82d302756e51d976535a4c50aeae036ad
7
- data.tar.gz: 14e79e052d4d1a771ea538532c257f60fe21e02195fdf687a22a9f343131d3b1a0886392e09fc33b4aec92e6e5aaf3c7f76e0a6b0cc31b7ad9700d8b325adc56
6
+ metadata.gz: 30825c02f387e0ea0644307d9c19dd686919a6f13cb54afa2714a724ac4f6820024d9fd0827acffd01c5ed929c99176de17e02564fe01ac591ba8c32bdf5765e
7
+ data.tar.gz: 0f4a15c1da473892e6fbef0158d7e09aaa83c4523f3578fd9cd02f74b0f30a491d832cae5229ea9514d0fbc1673218ec616052a44c2eb4305893f9946487ec97
data/lib/build_buddy.rb CHANGED
@@ -9,5 +9,5 @@ require 'build_buddy/recorder'
9
9
  require 'build_buddy/build_data'
10
10
 
11
11
  module BuildBuddy
12
- VERSION = "1.7.0"
12
+ VERSION = "1.7.1"
13
13
  end
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: build-buddy
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 1.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Lyon-smith