errbit_pivotal_plugin 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 68f81a845658b73749d7ab2a195563a8cb1ad134
4
- data.tar.gz: f7b70ba80dc05f8cb13a6b38c14517a20a8297c5
3
+ metadata.gz: ddaeed3f1f0d3b79f69cdbc7aee15e9cde8b04ec
4
+ data.tar.gz: 8d2ab9aa8c2f2a248159043a4fc8b06b45159c1a
5
5
  SHA512:
6
- metadata.gz: 4c5200488c95796bb42dc7767caf267294dedf7ee42016271e6ac1e7c77cbe72ebefdb6b51da6f472b0b07f769641fa05f8286d2fa056fdd91290134ebec3122
7
- data.tar.gz: bccd605323b488a6da64eba7193ca1d1106ad5c6db1723a57f9286560bd0bf1bda5e4ffbd2eafed3ffb72ea895adddb01de589de2b323b291a0f3cee8339bafc
6
+ metadata.gz: 5fc331cae58ad6df26ef0401e136a44bd36bf1c08099a704045029ec5e2d6c4f46347ef00e28ae695f10262e85d901e1681aa20aae13fa6ec7e60e9e4389b740
7
+ data.tar.gz: 719b4e82edbcbaac82c044de7cb0f6dd2481dcc44830f9f78cfdc000c3b39139149b4e4950807e9c7ccff8990b9ba95980d4b6838107599a24cb5382c95734a0
@@ -0,0 +1,42 @@
1
+ [See this exception on Errbit](<%= app_problem_url problem.app, problem %>)
2
+ <% if notice = problem.notices.first %>
3
+ ## Message
4
+ <%=raw notice.message %>
5
+ ## Summary ##
6
+ <% if notice.request['url'].present? %>
7
+ ### URL ###
8
+ [<%=raw notice.request['url'] %>](<%=raw notice.request['url'] %>)"
9
+ <% end %>
10
+ ### Where ###
11
+ <%=raw notice.where %>
12
+
13
+ ### Occured ###
14
+ <%=raw notice.created_at.to_s(:micro) %>
15
+
16
+ ### Similar ###
17
+ <%=raw (notice.problem.notices_count - 1).to_s %>
18
+
19
+ ## Params ##
20
+ ~~~
21
+ <%=raw pretty_hash(notice.params) %>
22
+ ~~~
23
+
24
+ ## Session ##
25
+ ~~~
26
+ <%=raw pretty_hash(notice.session) %>
27
+ ~~~
28
+
29
+ ## Backtrace ##
30
+ ~~~
31
+ <% notice.backtrace.lines.each do |line| %><%=raw line.number %>: <%=raw line.file_relative %> -> **<%=raw line.method %>**
32
+ <% end %>
33
+ ~~~
34
+
35
+ <% if notice.env_vars.present? %>
36
+ ## Environment ##
37
+ | Key | Value |
38
+ |------------|------------|
39
+ <% notice.env_vars.each do |key, val| %>| <%=raw key %> | <%=raw val %> |
40
+ <% end %>
41
+ <% end %>
42
+ <% end %>
@@ -44,12 +44,8 @@ module ErrbitPivotalPlugin
44
44
  }
45
45
  end
46
46
 
47
- def self.body_template
48
- @body_template ||= ERB.new(File.read(
49
- File.join(
50
- ErrbitPivotalPlugin.root, 'views', 'pivotal_issues_body.txt.erb'
51
- )
52
- ))
47
+ def render_body_args
48
+ ["/pivotal_issue", formats: [:md]]
53
49
  end
54
50
 
55
51
  def url
@@ -1,3 +1,3 @@
1
1
  module ErrbitPivotalPlugin
2
- VERSION = '0.4.0'
2
+ VERSION = '0.5.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: errbit_pivotal_plugin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Crosby
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-30 00:00:00.000000000 Z
11
+ date: 2016-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: errbit_plugin
@@ -90,6 +90,7 @@ files:
90
90
  - LICENSE.txt
91
91
  - README.md
92
92
  - Rakefile
93
+ - app/views/pivotal_issue.md.erb
93
94
  - errbit_pivotal_plugin.gemspec
94
95
  - lib/errbit_pivotal_plugin.rb
95
96
  - lib/errbit_pivotal_plugin/issue_tracker.rb
@@ -98,7 +99,6 @@ files:
98
99
  - vendor/assets/images/pivotal_create.png
99
100
  - vendor/assets/images/pivotal_goto.png
100
101
  - vendor/assets/images/pivotal_inactive.png
101
- - views/pivotal_issues_body.txt.erb
102
102
  homepage: https://github.com/brandedcrate/errbit_pivotal_plugin
103
103
  licenses:
104
104
  - MIT
@@ -119,9 +119,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
119
  version: '0'
120
120
  requirements: []
121
121
  rubyforge_project:
122
- rubygems_version: 2.2.2
122
+ rubygems_version: 2.4.5.1
123
123
  signing_key:
124
124
  specification_version: 4
125
125
  summary: Pivotal integration for Errbit
126
126
  test_files: []
127
- has_rdoc:
@@ -1,16 +0,0 @@
1
- See this exception on Errbit: <%= problem.url %>
2
- <% if notice = problem.notices.first %>
3
- <% if notice.request['url'].present? %>*URL:* <%= notice.request['url'] %><% end %>
4
- *Where*: <%= notice.where %>
5
- *Occurred*: <%= notice.created_at.to_s :micro %>
6
- *Similar*: <%= (notice.problem.notices_count - 1).to_s %>
7
-
8
- *Params*
9
- <%= pretty_hash notice.params %>
10
-
11
- *Session*
12
- <%= pretty_hash notice.session %>
13
-
14
- *Backtrace*
15
- <%= notice.backtrace_lines[0..4].map { |line| "#{line.number}: #{line.file_relative} -> *#{line.method}*" }.join "\n" %>
16
- <% end %>