tartarus 2.0.3 → 2.0.4

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.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- tartarus (2.0.0)
4
+ tartarus (2.0.3)
5
5
  json (~> 1.4.6)
6
6
  will_paginate (~> 3.0.pre2)
7
7
 
@@ -2,9 +2,7 @@ module Tartarus::Logger
2
2
  def self.included(base)
3
3
  base.extend ClassMethods
4
4
  base.send :include, InstanceMethods
5
- base.send :before_save, :json_serialize
6
- base.send :after_save, :json_deserialize
7
- base.send :after_find, :json_deserialize
5
+ base.send :serialize, :request
8
6
  end
9
7
 
10
8
  module InstanceMethods
@@ -18,14 +16,6 @@ module Tartarus::Logger
18
16
  Tartarus::Notifiers::Mail.notification( notification_address, self ).deliver if group_count == 1 or (group_count%Tartarus.configuration['notification_threshold']).zero?
19
17
  end
20
18
 
21
- def json_serialize
22
- self.request = self.request.to_json
23
- end
24
-
25
- def json_deserialize
26
- self.request = JSON.parse(request)
27
- end
28
-
29
19
  end
30
20
 
31
21
  module ClassMethods
@@ -1,9 +1,14 @@
1
1
  class Tartarus::Railtie < Rails::Railtie
2
- config.generators do |g|
2
+ generators = Proc.new do |g|
3
3
  g.orm :activerecord, :migration => true
4
4
  g.template_engine :erb
5
5
  g.test_framework :rspec
6
6
  end
7
7
 
8
+ if ::Rails.version.to_f >= 3.1
9
+ config.app_generators &generators
10
+ else
11
+ config.generators &generators
12
+ end
8
13
  end
9
14
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../../
3
3
  specs:
4
- tartarus (2.0.0)
4
+ tartarus (2.0.3)
5
5
  json (~> 1.4.6)
6
6
  will_paginate (~> 3.0.pre2)
7
7
 
@@ -38,5 +38,6 @@ module RailsApp
38
38
 
39
39
  # Configure sensitive parameters which will be filtered from the log file.
40
40
  config.filter_parameters += [:password]
41
+ config.middleware.use 'Tartarus::Rack'
41
42
  end
42
43
  end
data/tartarus.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{tartarus}
3
- s.version = "2.0.3"
3
+ s.version = "2.0.4"
4
4
  s.platform = Gem::Platform::RUBY
5
5
 
6
6
  s.authors = ["Daniel Insley"]
@@ -18,5 +18,5 @@ Gem::Specification.new do |s|
18
18
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
19
 
20
20
  s.add_runtime_dependency(%q<will_paginate>, ["~> 3.0.pre2"])
21
- s.add_runtime_dependency(%q<json>, ["~> 1.4.6"])
21
+ s.add_runtime_dependency(%q<json>, ["~> 1.5.1"])
22
22
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tartarus
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
4
+ hash: 7
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 0
9
- - 3
10
- version: 2.0.3
9
+ - 4
10
+ version: 2.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Daniel Insley
@@ -15,8 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-06-30 00:00:00 -07:00
19
- default_executable:
18
+ date: 2012-03-06 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
21
  name: will_paginate
@@ -43,12 +42,12 @@ dependencies:
43
42
  requirements:
44
43
  - - ~>
45
44
  - !ruby/object:Gem::Version
46
- hash: 11
45
+ hash: 1
47
46
  segments:
48
47
  - 1
49
- - 4
50
- - 6
51
- version: 1.4.6
48
+ - 5
49
+ - 1
50
+ version: 1.5.1
52
51
  type: :runtime
53
52
  version_requirements: *id002
54
53
  description: Provides exception logging and a generator for creating a clean interface to manage exceptions.
@@ -145,7 +144,6 @@ files:
145
144
  - spec/tartarus/logger_spec.rb
146
145
  - spec/tartarus_spec.rb
147
146
  - tartarus.gemspec
148
- has_rdoc: true
149
147
  homepage: http://github.com/dinsley/tartarus
150
148
  licenses: []
151
149
 
@@ -175,7 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
175
173
  requirements: []
176
174
 
177
175
  rubyforge_project:
178
- rubygems_version: 1.6.2
176
+ rubygems_version: 1.8.6
179
177
  signing_key:
180
178
  specification_version: 3
181
179
  summary: Exception Logging for Rails