logjam_agent 0.5.6 → 0.5.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -38,6 +38,19 @@ module LogjamAgent
38
38
  app.config.middleware.insert_before("LogjamAgent::Rack::Logger", "LogjamAgent::Middleware")
39
39
  end
40
40
 
41
+ # make
42
+ ActiveSupport.on_load(:action_controller) do
43
+ ActionDispatch::Http::UploadedFile.class_eval <<-"EVA"
44
+ def to_hash
45
+ {
46
+ :original_filename => original_filename,
47
+ :content_type => content_type,
48
+ :headers => headers,
49
+ :tempfile => { :path => tempfile.path }
50
+ }
51
+ end
52
+ EVA
53
+ end
41
54
  end
42
55
  end
43
56
 
@@ -1,3 +1,3 @@
1
1
  module LogjamAgent
2
- VERSION = "0.5.6"
2
+ VERSION = "0.5.7"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logjam_agent
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 6
10
- version: 0.5.6
9
+ - 7
10
+ version: 0.5.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Stefan Kaes
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-09-28 00:00:00 Z
18
+ date: 2012-10-02 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  requirement: &id001 !ruby/object:Gem::Requirement