party_foul 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 8982db628691367d96821b3716242ab2314a229a
4
+ data.tar.gz: abeb2d3f3b12fb21a50d58840f1c33546db92d0d
5
+ SHA512:
6
+ metadata.gz: e05f95b6f520fb8832fa011c870788af5f187bb5b6507edab65ed40f512a510a1ff636f391de6e5adb8153a2a95ee71575eee842f88eb380f202c98bd3140c9b
7
+ data.tar.gz: 0da652c92ac839330db29036f21853963971aa1b691bada34bc815939f41c2aecefb0bf468404a7d73958033511a85bd503bdac23a424cbd9a91fed9cbbbaa0e
@@ -5,7 +5,7 @@ class PartyFoul::RacklessExceptionHandler < PartyFoul::ExceptionHandler
5
5
  #
6
6
  # @param [Exception, Hash]
7
7
  def self.handle(exception, env)
8
- self.new(exception, clean_env(env)).run
8
+ self.new(exception, env).run
9
9
  end
10
10
 
11
11
  # Uses the Rackless IssueRenderer for a rackless environment
@@ -1,3 +1,3 @@
1
1
  module PartyFoul
2
- VERSION = '1.1.0'
2
+ VERSION = '1.1.1'
3
3
  end
@@ -14,6 +14,14 @@ describe 'Party Foul Rackless Exception Handler' do
14
14
  PartyFoul::RacklessExceptionHandler.any_instance.expects(:run)
15
15
  PartyFoul::RacklessExceptionHandler.handle(nil, {})
16
16
  end
17
+
18
+ it 'should pass parameters required by the renderer to the initializer' do
19
+ params = {:class => Object, :method => :to_s, :params => {:one => "One", :two => "Two"}}
20
+ expected_exception_handler = PartyFoul::RacklessExceptionHandler.new(nil, params)
21
+ expected_exception_handler.expects(:run)
22
+ PartyFoul::RacklessExceptionHandler.expects(:new).with(nil, params).returns(expected_exception_handler)
23
+ PartyFoul::RacklessExceptionHandler.handle(nil, params)
24
+ end
17
25
  end
18
26
 
19
27
  describe '#initialize' do
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: party_foul
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
5
- prerelease:
4
+ version: 1.1.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Brian Cardarella
@@ -10,12 +9,11 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2013-02-16 00:00:00.000000000 Z
12
+ date: 2013-02-24 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: github_api
17
16
  requirement: !ruby/object:Gem::Requirement
18
- none: false
19
17
  requirements:
20
18
  - - ~>
21
19
  - !ruby/object:Gem::Version
@@ -23,31 +21,13 @@ dependencies:
23
21
  type: :runtime
24
22
  prerelease: false
25
23
  version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
24
  requirements:
28
25
  - - ~>
29
26
  - !ruby/object:Gem::Version
30
27
  version: 0.8.8
31
- - !ruby/object:Gem::Dependency
32
- name: io-console
33
- requirement: !ruby/object:Gem::Requirement
34
- none: false
35
- requirements:
36
- - - ~>
37
- - !ruby/object:Gem::Version
38
- version: 0.3.0
39
- type: :runtime
40
- prerelease: false
41
- version_requirements: !ruby/object:Gem::Requirement
42
- none: false
43
- requirements:
44
- - - ~>
45
- - !ruby/object:Gem::Version
46
- version: 0.3.0
47
28
  - !ruby/object:Gem::Dependency
48
29
  name: actionpack
49
30
  requirement: !ruby/object:Gem::Requirement
50
- none: false
51
31
  requirements:
52
32
  - - ~>
53
33
  - !ruby/object:Gem::Version
@@ -55,7 +35,6 @@ dependencies:
55
35
  type: :development
56
36
  prerelease: false
57
37
  version_requirements: !ruby/object:Gem::Requirement
58
- none: false
59
38
  requirements:
60
39
  - - ~>
61
40
  - !ruby/object:Gem::Version
@@ -63,7 +42,6 @@ dependencies:
63
42
  - !ruby/object:Gem::Dependency
64
43
  name: activesupport
65
44
  requirement: !ruby/object:Gem::Requirement
66
- none: false
67
45
  requirements:
68
46
  - - ~>
69
47
  - !ruby/object:Gem::Version
@@ -71,7 +49,6 @@ dependencies:
71
49
  type: :development
72
50
  prerelease: false
73
51
  version_requirements: !ruby/object:Gem::Requirement
74
- none: false
75
52
  requirements:
76
53
  - - ~>
77
54
  - !ruby/object:Gem::Version
@@ -79,7 +56,6 @@ dependencies:
79
56
  - !ruby/object:Gem::Dependency
80
57
  name: railties
81
58
  requirement: !ruby/object:Gem::Requirement
82
- none: false
83
59
  requirements:
84
60
  - - ~>
85
61
  - !ruby/object:Gem::Version
@@ -87,7 +63,6 @@ dependencies:
87
63
  type: :development
88
64
  prerelease: false
89
65
  version_requirements: !ruby/object:Gem::Requirement
90
- none: false
91
66
  requirements:
92
67
  - - ~>
93
68
  - !ruby/object:Gem::Version
@@ -95,81 +70,71 @@ dependencies:
95
70
  - !ruby/object:Gem::Dependency
96
71
  name: minitest
97
72
  requirement: !ruby/object:Gem::Requirement
98
- none: false
99
73
  requirements:
100
- - - ! '>='
74
+ - - '>='
101
75
  - !ruby/object:Gem::Version
102
76
  version: '0'
103
77
  type: :development
104
78
  prerelease: false
105
79
  version_requirements: !ruby/object:Gem::Requirement
106
- none: false
107
80
  requirements:
108
- - - ! '>='
81
+ - - '>='
109
82
  - !ruby/object:Gem::Version
110
83
  version: '0'
111
84
  - !ruby/object:Gem::Dependency
112
85
  name: webmock
113
86
  requirement: !ruby/object:Gem::Requirement
114
- none: false
115
87
  requirements:
116
- - - ! '>='
88
+ - - '>='
117
89
  - !ruby/object:Gem::Version
118
90
  version: '0'
119
91
  type: :development
120
92
  prerelease: false
121
93
  version_requirements: !ruby/object:Gem::Requirement
122
- none: false
123
94
  requirements:
124
- - - ! '>='
95
+ - - '>='
125
96
  - !ruby/object:Gem::Version
126
97
  version: '0'
127
98
  - !ruby/object:Gem::Dependency
128
99
  name: rack-test
129
100
  requirement: !ruby/object:Gem::Requirement
130
- none: false
131
101
  requirements:
132
- - - ! '>='
102
+ - - '>='
133
103
  - !ruby/object:Gem::Version
134
104
  version: '0'
135
105
  type: :development
136
106
  prerelease: false
137
107
  version_requirements: !ruby/object:Gem::Requirement
138
- none: false
139
108
  requirements:
140
- - - ! '>='
109
+ - - '>='
141
110
  - !ruby/object:Gem::Version
142
111
  version: '0'
143
112
  - !ruby/object:Gem::Dependency
144
113
  name: mocha
145
114
  requirement: !ruby/object:Gem::Requirement
146
- none: false
147
115
  requirements:
148
- - - ! '>='
116
+ - - '>='
149
117
  - !ruby/object:Gem::Version
150
118
  version: '0'
151
119
  type: :development
152
120
  prerelease: false
153
121
  version_requirements: !ruby/object:Gem::Requirement
154
- none: false
155
122
  requirements:
156
- - - ! '>='
123
+ - - '>='
157
124
  - !ruby/object:Gem::Version
158
125
  version: '0'
159
126
  - !ruby/object:Gem::Dependency
160
127
  name: m
161
128
  requirement: !ruby/object:Gem::Requirement
162
- none: false
163
129
  requirements:
164
- - - ! '>='
130
+ - - '>='
165
131
  - !ruby/object:Gem::Version
166
132
  version: '0'
167
133
  type: :development
168
134
  prerelease: false
169
135
  version_requirements: !ruby/object:Gem::Requirement
170
- none: false
171
136
  requirements:
172
- - - ! '>='
137
+ - - '>='
173
138
  - !ruby/object:Gem::Version
174
139
  version: '0'
175
140
  description: Auto-submit Rails exceptions as new isues on GitHub
@@ -213,33 +178,26 @@ files:
213
178
  - test/tmp/config/initializers/party_foul.rb
214
179
  homepage: https://github.com/dockyard/party_foul
215
180
  licenses: []
181
+ metadata: {}
216
182
  post_install_message:
217
183
  rdoc_options: []
218
184
  require_paths:
219
185
  - lib
220
186
  required_ruby_version: !ruby/object:Gem::Requirement
221
- none: false
222
187
  requirements:
223
- - - ! '>='
188
+ - - '>='
224
189
  - !ruby/object:Gem::Version
225
190
  version: '0'
226
- segments:
227
- - 0
228
- hash: -627459678726509707
229
191
  required_rubygems_version: !ruby/object:Gem::Requirement
230
- none: false
231
192
  requirements:
232
- - - ! '>='
193
+ - - '>='
233
194
  - !ruby/object:Gem::Version
234
195
  version: '0'
235
- segments:
236
- - 0
237
- hash: -627459678726509707
238
196
  requirements: []
239
197
  rubyforge_project:
240
- rubygems_version: 1.8.23
198
+ rubygems_version: 2.0.0
241
199
  signing_key:
242
- specification_version: 3
200
+ specification_version: 4
243
201
  summary: Auto-submit Rails exceptions as new isues on GitHub
244
202
  test_files:
245
203
  - test/generator_test.rb