le 1.4.5 → 1.5

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.
Files changed (3) hide show
  1. data/LE.gemspec +1 -1
  2. data/lib/le/host/https/tcp.rb +1 -10
  3. metadata +3 -4
data/LE.gemspec CHANGED
@@ -3,7 +3,7 @@ require File.expand_path(File.join(dir, 'lib', 'le'))
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "le"
6
- s.version = "1.4.5"
6
+ s.version = "1.5"
7
7
  s.date = Time.now
8
8
  s.summary = "Logentries plugin"
9
9
  s.description =<<EOD
@@ -46,20 +46,11 @@ module Le
46
46
 
47
47
  def deliver(message)
48
48
 
49
- if @conn == nil
50
- begin
51
- createSocket(@key, @location)
52
- rescue OpenSSL::SSL::SSLError, TimeoutError, Errno::EHOSTUNREACH, Errno::ECONNREFUSED, Errno::ECONNRESET, Errno::ETIMEDOUT, EOFError => e
53
- $stderr.puts "WARNING: #{e.class} Could not write log. No connection to Logentries #{e.message}"
54
- return
55
- end
56
- end
57
49
  # Sends the log to the Logentries Server
58
50
  begin
59
51
  @conn.print(message + "\r\n")
60
52
  rescue OpenSSL::SSL::SSLError, TimeoutError, Errno::EHOSTUNREACH, Errno::ECONNREFUSED, Errno::ENOTCONN, Errno::ECONNRESET, Errno::ETIMEDOUT, EOFError => e
61
-
62
- $stderr.puts "WARNING: #{e.class} sending log #{e.message}"
53
+ $stderr.puts "WARNING: #{e.class} sending log #{e.message}"
63
54
  begin
64
55
  createSocket(@key, @location)
65
56
  rescue OpenSSL::SSL::SSLError, TimeoutError, Errno::EHOSTUNREACH, Errno::ECONNREFUSED, Errno::ECONNRESET, Errno::ETIMEDOUT, EOFError => e
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: le
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 5
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
- - 4
9
8
  - 5
10
- version: 1.4.5
9
+ version: "1.5"
11
10
  platform: ruby
12
11
  authors:
13
12
  - Mark Lacomber (Logentries)
@@ -15,7 +14,7 @@ autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
16
 
18
- date: 2011-08-09 00:00:00 Z
17
+ date: 2011-08-08 00:00:00 Z
19
18
  dependencies: []
20
19
 
21
20
  description: |