rollbar 0.11.2 → 0.11.3

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: a05a8983a4b7621ec27fb68f6a8181357f709f5b
4
+ data.tar.gz: cad9b0ab2cf6ca8a05dcda83aeff733e9c8ee6ad
5
+ SHA512:
6
+ metadata.gz: e63b34f583fd421501c41d60df6f597ee0acd7656704e251a42af46923450140e87759ac1414ff3d64cebe3e906ce2a45dfcd20e4f2ed0f6a6dd974dba01c8e4
7
+ data.tar.gz: a034f48d725e87bc5b7013698a5e30e78378fca32aa276558582c72885faafefddcce6442c8a663e6622f9830bbecf3080d220da2eaa1605057dedfb2d4d9f43
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Change Log
2
2
 
3
+ **0.11.3**
4
+ - Make sure the environment is valid at item sending time so that it isn't set incorrectly during configuration
5
+
3
6
  **0.11.2**
4
7
  - Test rake task now works properly if force_ssl is true
5
8
 
@@ -31,7 +31,7 @@ Rollbar.configure do |config|
31
31
  #
32
32
  # You can also specify a callable, which will be called with the exception instance.
33
33
  # config.exception_level_filters.merge!('MyCriticalException' => lambda { |e| 'critical' })
34
-
34
+
35
35
  # Enable asynchronous reporting (uses girl_friday or Threading if girl_friday
36
36
  # is not installed)
37
37
  # config.use_async = true
data/lib/rollbar.rb CHANGED
@@ -340,9 +340,15 @@ module Rollbar
340
340
 
341
341
  def base_data(level = 'error')
342
342
  config = configuration
343
+
344
+ environment = config.environment
345
+ if environment.nil? || environment.empty?
346
+ environment = 'unspecified'
347
+ end
348
+
343
349
  data = {
344
350
  :timestamp => Time.now.to_i,
345
- :environment => config.environment,
351
+ :environment => environment,
346
352
  :level => level,
347
353
  :language => 'ruby',
348
354
  :framework => config.framework,
@@ -41,7 +41,7 @@ module Rollbar
41
41
  @default_logger = lambda { Logger.new(STDERR) }
42
42
  @enabled = nil # set to true when configure is called
43
43
  @endpoint = DEFAULT_ENDPOINT
44
- @environment = 'unspecified'
44
+ @environment = nil
45
45
  @exception_level_filters = {
46
46
  'ActiveRecord::RecordNotFound' => 'warning',
47
47
  'AbstractController::ActionNotFound' => 'warning',
@@ -1,3 +1,3 @@
1
1
  module Rollbar
2
- VERSION = "0.11.2"
2
+ VERSION = "0.11.3"
3
3
  end
@@ -26,6 +26,17 @@ describe HomeController do
26
26
  data = Rollbar.send(:base_data)
27
27
  data[:environment].should == 'dev'
28
28
  end
29
+
30
+ it 'should use the default "unspecified" environment if rails env ends up being empty' do
31
+ old_env = ::Rails.env
32
+ ::Rails.env = ''
33
+ Rollbar::Rails.initialize
34
+
35
+ data = Rollbar.send(:base_data)
36
+ data[:environment].should == 'unspecified'
37
+
38
+ ::Rails.env = old_env
39
+ end
29
40
  end
30
41
 
31
42
  context "rollbar controller methods with %s requests" % (local? ? 'local' : 'non-local') do
metadata CHANGED
@@ -1,104 +1,127 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rollbar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.2
5
- prerelease:
4
+ version: 0.11.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - Brian Rue
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-10-08 00:00:00.000000000 Z
11
+ date: 2013-10-16 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: multi_json
16
- requirement: &4457060 !ruby/object:Gem::Requirement
17
- none: false
15
+ requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
21
19
  version: '1.5'
22
20
  type: :runtime
23
21
  prerelease: false
24
- version_requirements: *4457060
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.5'
25
27
  - !ruby/object:Gem::Dependency
26
28
  name: rails
27
- requirement: &4456180 !ruby/object:Gem::Requirement
28
- none: false
29
+ requirement: !ruby/object:Gem::Requirement
29
30
  requirements:
30
- - - ! '>='
31
+ - - '>='
31
32
  - !ruby/object:Gem::Version
32
33
  version: 3.0.0
33
34
  type: :development
34
35
  prerelease: false
35
- version_requirements: *4456180
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: 3.0.0
36
41
  - !ruby/object:Gem::Dependency
37
42
  name: rspec-rails
38
- requirement: &4455300 !ruby/object:Gem::Requirement
39
- none: false
43
+ requirement: !ruby/object:Gem::Requirement
40
44
  requirements:
41
45
  - - ~>
42
46
  - !ruby/object:Gem::Version
43
47
  version: 2.12.0
44
48
  type: :development
45
49
  prerelease: false
46
- version_requirements: *4455300
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: 2.12.0
47
55
  - !ruby/object:Gem::Dependency
48
56
  name: database_cleaner
49
- requirement: &4454140 !ruby/object:Gem::Requirement
50
- none: false
57
+ requirement: !ruby/object:Gem::Requirement
51
58
  requirements:
52
59
  - - ~>
53
60
  - !ruby/object:Gem::Version
54
61
  version: 1.0.0
55
62
  type: :development
56
63
  prerelease: false
57
- version_requirements: *4454140
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: 1.0.0
58
69
  - !ruby/object:Gem::Dependency
59
70
  name: girl_friday
60
- requirement: &4452780 !ruby/object:Gem::Requirement
61
- none: false
71
+ requirement: !ruby/object:Gem::Requirement
62
72
  requirements:
63
- - - ! '>='
73
+ - - '>='
64
74
  - !ruby/object:Gem::Version
65
75
  version: 0.11.1
66
76
  type: :development
67
77
  prerelease: false
68
- version_requirements: *4452780
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '>='
81
+ - !ruby/object:Gem::Version
82
+ version: 0.11.1
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: sucker_punch
71
- requirement: &4451980 !ruby/object:Gem::Requirement
72
- none: false
85
+ requirement: !ruby/object:Gem::Requirement
73
86
  requirements:
74
- - - ! '>='
87
+ - - '>='
75
88
  - !ruby/object:Gem::Version
76
89
  version: 1.0.0
77
90
  type: :development
78
91
  prerelease: false
79
- version_requirements: *4451980
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - '>='
95
+ - !ruby/object:Gem::Version
96
+ version: 1.0.0
80
97
  - !ruby/object:Gem::Dependency
81
98
  name: sidekiq
82
- requirement: &4451200 !ruby/object:Gem::Requirement
83
- none: false
99
+ requirement: !ruby/object:Gem::Requirement
84
100
  requirements:
85
- - - ! '>='
101
+ - - '>='
86
102
  - !ruby/object:Gem::Version
87
103
  version: 2.13.0
88
104
  type: :development
89
105
  prerelease: false
90
- version_requirements: *4451200
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - '>='
109
+ - !ruby/object:Gem::Version
110
+ version: 2.13.0
91
111
  - !ruby/object:Gem::Dependency
92
112
  name: genspec
93
- requirement: &4450460 !ruby/object:Gem::Requirement
94
- none: false
113
+ requirement: !ruby/object:Gem::Requirement
95
114
  requirements:
96
- - - ! '>='
115
+ - - '>='
97
116
  - !ruby/object:Gem::Version
98
117
  version: 0.2.7
99
118
  type: :development
100
119
  prerelease: false
101
- version_requirements: *4450460
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - '>='
123
+ - !ruby/object:Gem::Version
124
+ version: 0.2.7
102
125
  description: Rails plugin to catch and send exceptions to Rollbar
103
126
  email:
104
127
  - brian@rollbar.com
@@ -204,27 +227,26 @@ files:
204
227
  homepage: https://github.com/rollbar/rollbar-gem
205
228
  licenses:
206
229
  - MIT
230
+ metadata: {}
207
231
  post_install_message:
208
232
  rdoc_options: []
209
233
  require_paths:
210
234
  - lib
211
235
  required_ruby_version: !ruby/object:Gem::Requirement
212
- none: false
213
236
  requirements:
214
- - - ! '>='
237
+ - - '>='
215
238
  - !ruby/object:Gem::Version
216
239
  version: '0'
217
240
  required_rubygems_version: !ruby/object:Gem::Requirement
218
- none: false
219
241
  requirements:
220
- - - ! '>='
242
+ - - '>='
221
243
  - !ruby/object:Gem::Version
222
244
  version: '0'
223
245
  requirements: []
224
246
  rubyforge_project:
225
- rubygems_version: 1.8.11
247
+ rubygems_version: 2.0.3
226
248
  signing_key:
227
- specification_version: 3
249
+ specification_version: 4
228
250
  summary: Reports exceptions to Rollbar
229
251
  test_files:
230
252
  - spec/controllers/home_controller_spec.rb