le 2.2.1 → 2.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/LE.gemspec +1 -1
  2. data/lib/le.rb +7 -2
  3. data/lib/le/host/http.rb +6 -4
  4. metadata +22 -42
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 = "2.2.1"
6
+ s.version = "2.2.2"
7
7
  s.date = Time.now
8
8
  s.summary = "Logentries plugin"
9
9
  s.description =<<EOD
data/lib/le.rb CHANGED
@@ -13,8 +13,13 @@ module Le
13
13
  opt_ssl = options[:ssl] || false
14
14
  opt_log_level = options[:log_level] || Logger::DEBUG
15
15
 
16
- host = Le::Host.new(token, opt_local, opt_debug, opt_ssl)
17
- logger = Logger.new(host)
16
+ host = Le::Host.new(token, opt_local, opt_debug, opt_ssl)
17
+
18
+ if defined?(ActiveSupport::Logger)
19
+ logger = ActiveSupport::Logger.new(host)
20
+ else
21
+ logger = Logger.new(host)
22
+ end
18
23
 
19
24
  logger.level = opt_log_level
20
25
 
data/lib/le/host/http.rb CHANGED
@@ -45,10 +45,12 @@ kAuBvDPPm+C0/M4RLYs=
45
45
  attr_accessor :token, :queue, :started, :thread, :conn, :local, :debug, :ssl
46
46
 
47
47
  def initialize(token, local, debug, ssl)
48
- if defined?(Rails)
49
- @logger_console = Logger.new("log/#{Rails.env}.log")
50
- else
51
- @logger_console = Logger.new(STDOUT)
48
+ if local
49
+ if defined?(Rails)
50
+ @logger_console = Logger.new("log/#{Rails.env}.log")
51
+ else
52
+ @logger_console = Logger.new(STDOUT)
53
+ end
52
54
  end
53
55
  @token = token
54
56
  @local = local
metadata CHANGED
@@ -1,70 +1,50 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: le
3
- version: !ruby/object:Gem::Version
4
- hash: 5
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.2.2
5
5
  prerelease:
6
- segments:
7
- - 2
8
- - 2
9
- - 1
10
- version: 2.2.1
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Mark Lacomber (Logentries)
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2013-08-30 00:00:00 Z
12
+ date: 2013-11-13 00:00:00.000000000 Z
19
13
  dependencies: []
14
+ description: ! '
20
15
 
21
- description: |
22
-
23
-
16
+ '
24
17
  email: marklacomber@gmail.com
25
18
  executables: []
26
-
27
19
  extensions: []
28
-
29
20
  extra_rdoc_files: []
30
-
31
- files:
21
+ files:
32
22
  - LE.gemspec
33
- - ./lib/le/host/http.rb
34
- - ./lib/le/host.rb
35
23
  - ./lib/le.rb
24
+ - ./lib/le/host.rb
25
+ - ./lib/le/host/http.rb
36
26
  homepage:
37
27
  licenses: []
38
-
39
28
  post_install_message:
40
29
  rdoc_options: []
41
-
42
- require_paths:
30
+ require_paths:
43
31
  - lib
44
- required_ruby_version: !ruby/object:Gem::Requirement
32
+ required_ruby_version: !ruby/object:Gem::Requirement
45
33
  none: false
46
- requirements:
47
- - - ">="
48
- - !ruby/object:Gem::Version
49
- hash: 3
50
- segments:
51
- - 0
52
- version: "0"
53
- required_rubygems_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ required_rubygems_version: !ruby/object:Gem::Requirement
54
39
  none: false
55
- requirements:
56
- - - ">="
57
- - !ruby/object:Gem::Version
58
- hash: 3
59
- segments:
60
- - 0
61
- version: "0"
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
62
44
  requirements: []
63
-
64
45
  rubyforge_project:
65
- rubygems_version: 1.8.15
46
+ rubygems_version: 1.8.23
66
47
  signing_key:
67
48
  specification_version: 3
68
49
  summary: Logentries plugin
69
50
  test_files: []
70
-