Skip to content

Commit

Permalink
method has been renamed to method_name
Browse files Browse the repository at this point in the history
  • Loading branch information
Damien Mathieu committed Apr 4, 2013
1 parent 20c1c9b commit bd2e780
Show file tree
Hide file tree
Showing 13 changed files with 232 additions and 229 deletions.
5 changes: 4 additions & 1 deletion app/models/backtrace_line.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ class BacktraceLine
field :number, :type => Integer
field :column, :type => Integer
field :file
field :method
field :method_name

# TODO: remove me when the support for Airbrake 3.1.10 is removed
alias :method :method_name

embedded_in :backtrace

Expand Down
2 changes: 1 addition & 1 deletion app/views/issue_trackers/bitbucket_issues_body.txt.erb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
----

== Backtrace ==
<% notice.backtrace_lines.each do |line| %>| <%= line['number'] %>: | <%= line['file'].to_s.sub(/^\[PROJECT_ROOT\]/, '') %> -> **<%= line['method'] %>** |
<% notice.backtrace_lines.each do |line| %>| <%= line['number'] %>: | <%= line['file'].to_s.sub(/^\[PROJECT_ROOT\]/, '') %> -> **<%= line['method_name'] %>** |
<% end %>

----
Expand Down
2 changes: 1 addition & 1 deletion app/views/issue_trackers/github_issues_body.txt.erb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

## Backtrace ##
```
<% notice.backtrace_lines.each do |line| %><%= line.number %>: <%= line.file_relative %> -> **<%= line.method %>**
<% notice.backtrace_lines.each do |line| %><%= line.number %>: <%= line.file_relative %> -> **<%= line.method_name %>**
<% end %>
```

Expand Down
2 changes: 1 addition & 1 deletion app/views/issue_trackers/gitlab_body.txt.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

## Backtrace ##
```
<% notice.backtrace_lines.each do |line| %><%= line.number %>: <%= line.file_relative %> -> **<%= line.method %>**
<% notice.backtrace_lines.each do |line| %><%= line.number %>: <%= line.file_relative %> -> **<%= line.method_name %>**
<% end %>
```

Expand Down
2 changes: 1 addition & 1 deletion app/views/issue_trackers/lighthouseapp_body.txt.erb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

## Backtrace ##
<code>
<% notice.backtrace_lines.each do |line| %><%= line.number %>: <%= line.file_relative %> -> **<%= line.method %>**
<% notice.backtrace_lines.each do |line| %><%= line.number %>: <%= line.file_relative %> -> **<%= line.method_name %>**
<% end %>
</code>

Expand Down
2 changes: 1 addition & 1 deletion app/views/issue_trackers/pivotal_body.txt.erb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ See this exception on Errbit: <%= app_problem_url problem.app, problem %>
<%= pretty_hash notice.session %>

Backtrace:
<%= notice.backtrace_lines[0..4].map { |line| "#{line.number}: #{line.file_relative} -> *#{line.method}*" }.join "\n" %>
<%= notice.backtrace_lines[0..4].map { |line| "#{line.number}: #{line.file_relative} -> *#{line.method_name}*" }.join "\n" %>
<% end %>

2 changes: 1 addition & 1 deletion app/views/issue_trackers/textile_body.txt.erb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ h2. Session
h2. Backtrace

| Line | File | Method |
<% notice.backtrace_lines.each do |line| %>| <%= line.number %> | <%= line.file_relative %> | *<%= line.method %>* |
<% notice.backtrace_lines.each do |line| %>| <%= line.number %> | <%= line.file_relative %> | *<%= line.method_name %>* |
<% end %>

h2. Environment
Expand Down
2 changes: 1 addition & 1 deletion app/views/notices/_atom_entry.atom.haml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
= "#{line.number}:"
&nbsp;&nbsp;
%td
= raw "#{h line.file_relative} -> #{content_tag :strong, h(line.method)}"
= raw "#{h line.file_relative} -> #{content_tag :strong, h(line.method_name)}"

%h3 Environment
%table
Expand Down
2 changes: 1 addition & 1 deletion app/views/notices/_backtrace_line.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
- if line.column.present?
%span.number>= ":#{line.column}"
&rarr;
%span.method= line.method
%span.method= line.method_name
146 changes: 73 additions & 73 deletions spec/fixtures/hoptoad_test_notice.xml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<class>HoptoadTestingException</class>
<message>HoptoadTestingException: Testing hoptoad via "rake hoptoad:test". If you can see this, it works.</message>
<backtrace>
<line number="425" file="[GEM_ROOT]/gems/activesupport-3.0.0.rc/lib/active_support/callbacks.rb" method="_run__2115867319__process_action__262109504__callbacks"/>
<line number="425" file="[GEM_ROOT]/gems/activesupport-3.0.0.rc/lib/active_support/callbacks.rb" method_name="_run__2115867319__process_action__262109504__callbacks"/>
</backtrace>
</error>
<request>
Expand Down
146 changes: 73 additions & 73 deletions spec/fixtures/hoptoad_test_notice_with_wrong_version.xml

Large diffs are not rendered by default.

146 changes: 73 additions & 73 deletions spec/fixtures/hoptoad_test_notice_without_request_section.xml

Large diffs are not rendered by default.

0 comments on commit bd2e780

Please sign in to comment.