redmine_airbrake_backend 0.6.1 → 0.6.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: e40383f73f0922f0122aa9bc43fc38767909da12
4
- data.tar.gz: a4907ba9428e65a0bfb85583e91dfd48dbe29f5a
3
+ metadata.gz: bd301e3a243a6ff787b2e7ecb17deb82b6fe5cd8
4
+ data.tar.gz: b4064e02518fcf19aae3d6bd2000ba4d55d20f7b
5
5
  SHA512:
6
- metadata.gz: 8e5a54cb395aca02e3b72896c93ef2ba68a4c542ba03d86ef1324ad984617eee307d34109f6a80e476ac980858b88f963910be472fba76ecb0e1fd7342e9d569
7
- data.tar.gz: 7e7a1566521571d07f8cd42c478d6b2042ee95768caf5ddca85e56c171accaf52eb9943d93cd1614bc7ee1cf0178b4acda2e8c07317d53da1fd33248af21f03b
6
+ metadata.gz: 5e927b9d60973da1f426a3e96f8b8692b2fa802473263dc53c94a8c14220d694eacb2b622eac8997865776c23efa920fcc08ec42976da34ff3c11808d5b18e0a
7
+ data.tar.gz: 55fb70954b0ca1a8c59da66f13a29a365ee68475c5850bfb97b2af2e4a741b2eba512660e4fbabe6c75735b3b62e92be9d39be2a98e92592f5da9b6464382d60
data/README.md CHANGED
@@ -8,12 +8,6 @@ This plugin provides the necessary API to use Redmine as an Airbrake backend.
8
8
 
9
9
  ## Installation
10
10
 
11
- Please see http://www.redmine.org/projects/redmine/wiki/Plugins for installation instructions.
12
-
13
- ### Alternate installation
14
-
15
- Apply this [patch](http://www.redmine.org/issues/14402) to Redmine.
16
-
17
11
  Add this line to your Redmine Gemfile:
18
12
  ```ruby
19
13
  gem 'redmine_airbrake_backend'
@@ -25,6 +19,10 @@ $ bundle install
25
19
  $ rake redmine:plugins:migrate
26
20
  ```
27
21
 
22
+ ### Alternate installation
23
+
24
+ Please see http://www.redmine.org/projects/redmine/wiki/Plugins for installation instructions.
25
+
28
26
  ## Integration
29
27
 
30
28
  1. Enable REST web service authentication
@@ -50,8 +48,8 @@ Airbrake.configure do |config|
50
48
  api_key: 'redmine_api_key', # the api key for a user which has permission to create issues in the project specified in the previous step
51
49
  tracker: 'Bug', # the name or id of your desired tracker (optional if default is configured)
52
50
  category: 'Development', # the name or id of a ticket category, optional
53
- priority: 5 # the name or id of the priority for new tickets, optional.
54
- assignee: 'admin', # the login or id of a user the ticket should get assigned to by default, optional
51
+ priority: 5, # the name or id of the priority for new tickets, optional.
52
+ assignee: 'admin' # the login or id of a user the ticket should get assigned to by default, optional
55
53
  }.to_json
56
54
  config.host = 'my_redmine_host.com' # the hostname your Redmine runs at
57
55
  config.port = 443 # the port your Redmine runs at
@@ -22,6 +22,8 @@ class AirbrakeController < ::ApplicationController
22
22
  end
23
23
 
24
24
  def render_bad_request(error)
25
+ ::Rails.logger.warn(error.message) if error.is_a?(RedmineAirbrakeBackend::Request::Invalid)
26
+
25
27
  render text: error.message, status: :bad_request
26
28
  end
27
29
 
@@ -129,7 +131,7 @@ class AirbrakeController < ::ApplicationController
129
131
  desc = "*Issue reopened after occurring again in _#{@request.environment_name}_ environment.*"
130
132
  desc << "\n\n#{render_description(error)}" if @request.reopen_repeat_description?
131
133
 
132
- issue.status = IssueStatus.where(is_default: true).order(:position).first
134
+ issue.status = issue.tracker.default_status
133
135
 
134
136
  issue.init_journal(User.current, desc)
135
137
 
@@ -6,7 +6,7 @@ class CreateAirbrakeProjectSettings < ActiveRecord::Migration
6
6
  t.references :category
7
7
  t.references :priority
8
8
  t.string :reopen_regexp
9
- t.timestamps
9
+ t.timestamps null: false
10
10
  end
11
11
  end
12
12
 
@@ -36,7 +36,7 @@ module RedmineAirbrakeBackend
36
36
  description 'Airbrake Backend for Redmine'
37
37
  url 'https://github.com/ydkn/redmine_airbrake_backend'
38
38
  version ::RedmineAirbrakeBackend::VERSION
39
- requires_redmine version_or_higher: '2.4.0'
39
+ requires_redmine version_or_higher: '3.1.0'
40
40
  directory RedmineAirbrakeBackend.directory
41
41
 
42
42
  project_module :airbrake do
@@ -1,4 +1,4 @@
1
1
  module RedmineAirbrakeBackend
2
2
  # Version of this gem
3
- VERSION = '0.6.1'
3
+ VERSION = '0.6.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: 0.6.1
4
+ version: 0.6.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: 2015-04-28 00:00:00.000000000 Z
11
+ date: 2015-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -131,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
131
131
  version: '0'
132
132
  requirements: []
133
133
  rubyforge_project:
134
- rubygems_version: 2.4.6
134
+ rubygems_version: 2.4.8
135
135
  signing_key:
136
136
  specification_version: 4
137
137
  summary: This plugin provides the necessary API to use Redmine as a Airbrake backend