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 +4 -4
- data/lib/lita/standups/manager.rb +2 -2
- data/lib/lita/standups/wizards/run_standup.rb +2 -1
- data/lita-standups.gemspec +1 -1
- 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: 1bce898c5814239a3c4365ee17b25a6f33d32c15
|
4
|
+
data.tar.gz: ff853a3d3c7fbc949f628843544b1934b4387151
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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 >
|
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
|
data/lita-standups.gemspec
CHANGED