gems-status 1.75.0 → 1.76.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.75.0
1
+ 1.76.0
@@ -1,3 +1,5 @@
1
+ require "timeout"
2
+
1
3
  module GemsStatus
2
4
 
3
5
  class ScmCheckMessages
@@ -5,7 +7,9 @@ module GemsStatus
5
7
 
6
8
  def check_messages(name, source_repo, message_checker, origin, counter = 0)
7
9
  begin
8
- messages = messages(name, source_repo)
10
+ messages = Timeout::timeout(300) {
11
+ messages(name, source_repo)
12
+ }
9
13
  return security_alerts(name, messages, message_checker, origin)
10
14
  rescue => e
11
15
  if counter == MAX_RETRIES
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gems-status
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.75.0
4
+ version: 1.76.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-12-19 00:00:00.000000000 Z
12
+ date: 2013-12-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: xml-simple