redmine_airbrake_backend 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3e6852a17538390388bc5c1520c1b3c2eabf0b89
4
- data.tar.gz: bd290d4558c8b9e30ef701345bc19c6d146b4637
3
+ metadata.gz: bb95238f93fbf76fa5768e6288859e3feadd74f3
4
+ data.tar.gz: f8288fc3b75397041e98e0d55281f847d2e19336
5
5
  SHA512:
6
- metadata.gz: 53fe81a2ff23a5d751e0877b3289667a26120574e23c7f128af98b3c1ab609d7ddc7eff83227bdb412b36251c58bf5d91b840704f9c5808968d124fee249fdf6
7
- data.tar.gz: 21143a051e41b0da6f87ee20f14ffa5dad949c7cefa7a60e304a89183e651f6f771d0fcc37866516813a1ff95d291480a97d22d89ce7eb37d86f7e33be79c4ae
6
+ metadata.gz: 62f8724020e4a6d619c65d0f888ac61248805c175bc5067d39a622b7ba6fc245a507660a4b58a02e875687b14e1eb7cd879af42825c8ed5e637a64b4769b7c70
7
+ data.tar.gz: 946f8a555d5eb230c4fd92e03debb793c63804725b76f711d83c7c875ddb5739dab0539575c29d1f8e507d67d7cd510910b035f9df7317e6bf832f5ea5b3b31a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.1.2 (2017-12-12)
4
+ ### Fixes
5
+ - Prevent rendering of empty sections
6
+ - Handle notices without a backtrace
7
+
3
8
  ## 1.1.1 (2016-05-18)
4
9
  ### Fixes
5
10
  - Add missing foreign_key option on issue category has many relation. Caused error on removing issue category
@@ -56,6 +56,8 @@ module AirbrakeHelper
56
56
  end
57
57
 
58
58
  def airbrake_render_section(data, section)
59
+ return nil if data.blank?
60
+
59
61
  render partial: 'airbrake/issue_description/section', locals: { data: data, section: section }
60
62
  end
61
63
 
@@ -14,7 +14,7 @@ module RedmineAirbrakeBackend
14
14
  @message = options[:message]
15
15
 
16
16
  # Backtrace
17
- @backtrace = options[:backtrace].map { |b| BacktraceElement.new(b) }
17
+ @backtrace = Array(options[:backtrace]).map { |b| BacktraceElement.new(b) }
18
18
 
19
19
  # Error ID
20
20
  @id = generate_id
@@ -1,4 +1,4 @@
1
1
  module RedmineAirbrakeBackend
2
2
  # Version of this gem
3
- VERSION = '1.1.1'
3
+ VERSION = '1.1.2'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redmine_airbrake_backend
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Schwab
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-18 00:00:00.000000000 Z
11
+ date: 2017-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -117,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
117
117
  version: '0'
118
118
  requirements: []
119
119
  rubyforge_project:
120
- rubygems_version: 2.5.1
120
+ rubygems_version: 2.6.13
121
121
  signing_key:
122
122
  specification_version: 4
123
123
  summary: This plugin provides the necessary API to use Redmine as a Airbrake backend