lita-standups 1.0.3 → 1.0.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: 9150d72ab74a0bd9956df37c29028e6d506aa89a
4
- data.tar.gz: c014370721a2908ef58d345e1ddc65f03e9df005
3
+ metadata.gz: 1bce898c5814239a3c4365ee17b25a6f33d32c15
4
+ data.tar.gz: ff853a3d3c7fbc949f628843544b1934b4387151
5
5
  SHA512:
6
- metadata.gz: fecd14554ccd128b44d5fdd385ef57dd8c1555e3eea5c5c33f3a5995437454c8062da4d0697c871ff4e7304f2ffae9f558aa34ebfe97c64bb94adbd1f206f874
7
- data.tar.gz: 4671f26d54cb3b3292fb9cf448eb843cbf0c5ce7bb09245befe18f851bdabb8e2901a7ce54bfce23a199dea8312d156fafd57227d090a3b500ff4addd20ba854
6
+ metadata.gz: aa123eaf67a5604fae7b3f6453a484600c482e4f2a874069be985ada2a64d36fef046a9d2f9f528e2519af226d44cda9dd95486e9369ba88ddac1884808b9aa6
7
+ data.tar.gz: e2039e7f9a092873b2f2a027b3b5c14a5081a6eb2d9932878d116332e6b8d43d89236accd903a62338da15921ee345192bd3cac1a6c9a82644b14e6a11edd3ce
@@ -4,7 +4,7 @@ module Lita
4
4
  module Standups
5
5
  class Manager
6
6
 
7
- EXPIRATION_TIME = 600
7
+ DEFAULT_EXPIRATION_TIME = 3600
8
8
 
9
9
  def self.run(robot:, standup_id:, recipients:, room:)
10
10
  session = Models::StandupSession.create(
@@ -37,7 +37,7 @@ module Lita
37
37
  def self.abort_expired_standups(robot:)
38
38
  Lita.logger.debug "Checking for expired standups"
39
39
  Lita::Standups::Models::StandupResponse.find(status: "pending").union(status: "running").each do |response|
40
- next unless Time.current - response.created_at > EXPIRATION_TIME
40
+ next unless Time.current - response.created_at > DEFAULT_EXPIRATION_TIME
41
41
  Lita.logger.debug "Found expired standup response: #{response.inspect}. Expiring ..."
42
42
  response.expired!
43
43
  response.save
@@ -42,7 +42,8 @@ module Lita
42
42
  end
43
43
 
44
44
  def initial_message
45
- "Hey. I'm running the '#{standup.name}' standup. Please answer the following questions."
45
+ "Hey. I'm running the '#{standup.name}' standup. Please answer the following questions." \
46
+ " (this session expires in 1 hour)"
46
47
  end
47
48
 
48
49
  def final_message
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'lita-standups'
3
- spec.version = '1.0.3'
3
+ spec.version = '1.0.4'
4
4
  spec.authors = ['Cristian Bica']
5
5
  spec.email = ['cristian.bica@gmail.com']
6
6
  spec.description = 'Lita standups'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-standups
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cristian Bica