pygments.rb 0.6.1 → 0.6.2

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.
@@ -215,7 +215,8 @@ module Pygments
215
215
 
216
216
  begin
217
217
  # Timeout requests that take too long.
218
- timeout_time = ENV["MENTOS_TIMEOUT"] || 8
218
+ # Invalid MENTOS_TIMEOUT results in just using default.
219
+ timeout_time = Integer(ENV["MENTOS_TIMEOUT"]) rescue 8
219
220
 
220
221
  Timeout::timeout(timeout_time) do
221
222
  # For sanity checking on both sides of the pipe when highlighting, we prepend and
@@ -1,3 +1,3 @@
1
1
  module Pygments
2
- VERSION = '0.6.1'
2
+ VERSION = '0.6.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pygments.rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-01-28 00:00:00.000000000 Z
13
+ date: 2015-01-29 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: yajl-ruby