squash_rails 1.1.2 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -93,12 +93,17 @@ module Squash::Ruby::ControllerMethods
93
93
  def squash_rails_data
94
94
  flash_hash = flash.to_hash.stringify_keys
95
95
  filtered_params = request.respond_to?(:filtered_parameters) ? request.filtered_parameters : filter_parameters(params)
96
+ headers = if defined?(Rails) && Rails.version >= '4.0.0'
97
+ request.headers
98
+ else
99
+ request.headers.to_hash
100
+ end
96
101
 
97
102
  {
98
103
  :environment => Rails.env.to_s,
99
104
  :root => Rails.root.to_s,
100
105
 
101
- :headers => filter_for_squash(_filter_for_squash(request.headers.to_hash, :headers), :headers),
106
+ :headers => filter_for_squash(_filter_for_squash(headers, :headers), :headers),
102
107
  :request_method => request.request_method.to_s.upcase,
103
108
  :schema => request.protocol.sub('://', ''),
104
109
  :host => request.host,
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: squash_rails
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 2
10
- version: 1.1.2
9
+ - 3
10
+ version: 1.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tim Morgan
@@ -15,10 +15,10 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-04-24 00:00:00 Z
18
+ date: 2013-07-09 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
- type: :runtime
21
+ name: squash_ruby
22
22
  version_requirements: &id001 !ruby/object:Gem::Requirement
23
23
  none: false
24
24
  requirements:
@@ -28,11 +28,11 @@ dependencies:
28
28
  segments:
29
29
  - 0
30
30
  version: "0"
31
- requirement: *id001
32
31
  prerelease: false
33
- name: squash_ruby
32
+ type: :runtime
33
+ requirement: *id001
34
34
  - !ruby/object:Gem::Dependency
35
- type: :development
35
+ name: rails
36
36
  version_requirements: &id002 !ruby/object:Gem::Requirement
37
37
  none: false
38
38
  requirements:
@@ -42,11 +42,11 @@ dependencies:
42
42
  segments:
43
43
  - 0
44
44
  version: "0"
45
- requirement: *id002
46
45
  prerelease: false
47
- name: rails
48
- - !ruby/object:Gem::Dependency
49
46
  type: :development
47
+ requirement: *id002
48
+ - !ruby/object:Gem::Dependency
49
+ name: rspec
50
50
  version_requirements: &id003 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
@@ -56,11 +56,11 @@ dependencies:
56
56
  segments:
57
57
  - 0
58
58
  version: "0"
59
- requirement: *id003
60
59
  prerelease: false
61
- name: rspec
62
- - !ruby/object:Gem::Dependency
63
60
  type: :development
61
+ requirement: *id003
62
+ - !ruby/object:Gem::Dependency
63
+ name: yard
64
64
  version_requirements: &id004 !ruby/object:Gem::Requirement
65
65
  none: false
66
66
  requirements:
@@ -70,11 +70,11 @@ dependencies:
70
70
  segments:
71
71
  - 0
72
72
  version: "0"
73
- requirement: *id004
74
73
  prerelease: false
75
- name: yard
76
- - !ruby/object:Gem::Dependency
77
74
  type: :development
75
+ requirement: *id004
76
+ - !ruby/object:Gem::Dependency
77
+ name: redcarpet
78
78
  version_requirements: &id005 !ruby/object:Gem::Requirement
79
79
  none: false
80
80
  requirements:
@@ -84,11 +84,11 @@ dependencies:
84
84
  segments:
85
85
  - 0
86
86
  version: "0"
87
- requirement: *id005
88
87
  prerelease: false
89
- name: redcarpet
90
- - !ruby/object:Gem::Dependency
91
88
  type: :development
89
+ requirement: *id005
90
+ - !ruby/object:Gem::Dependency
91
+ name: jeweler
92
92
  version_requirements: &id006 !ruby/object:Gem::Requirement
93
93
  none: false
94
94
  requirements:
@@ -98,9 +98,9 @@ dependencies:
98
98
  segments:
99
99
  - 0
100
100
  version: "0"
101
- requirement: *id006
102
101
  prerelease: false
103
- name: jeweler
102
+ type: :development
103
+ requirement: *id006
104
104
  description: This client library records Ruby on Rails exceptions to Squash.
105
105
  email: tim@squareup.com
106
106
  executables: []