sentry_top_errors 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/sentry_top_errors +1 -1
- data/lib/sentry_top_errors/reporter.rb +4 -2
- data/lib/sentry_top_errors.rb +1 -0
- data/senrty_top_errors.gemspec +1 -1
- data/templates/index.html +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 036da0a8225db87b61c37b236428dc72bc20a426fdc3cb83920a74ad96788bbd
|
4
|
+
data.tar.gz: b98afd0bb566f7958344171264e2363d66886f86dec1a8f24bf3c10d4c00d2a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 351fe1c8cba7d350cd864cc5cd036b39fb91851c425dfdf407268c3031e267edb20a3e5d73adb9d94c88da9b9417d5351b7dbb6933cde09c50617dab7cb63030
|
7
|
+
data.tar.gz: ba898a868a3a3882708a13a44a1e2c35e59adfe4e4d8b791f8684f77b578df1888c260123a49f7df6243556867576bbf36f97b503a336fe4f952a6e2749a0dce
|
data/bin/sentry_top_errors
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
require 'progress_bar'
|
2
|
-
|
3
1
|
class SentryTopErrors::Reporter
|
4
2
|
def initialize(client:, prod_regex: /^p-/, threshold_24h: 30, threshold_new: 10, new_days_num: 1, report_type: :html)
|
5
3
|
@client = client
|
@@ -139,8 +137,12 @@ class SentryTopErrors::Reporter
|
|
139
137
|
elsif @report_type == :html
|
140
138
|
tpl_dir = File.join(File.expand_path(File.dirname(__FILE__) + "/../.."), "templates")
|
141
139
|
html_content = File.read(tpl_dir + "/index.html")
|
140
|
+
project_orgs = @projects.map {|pr| pr['organization']['name'] }.uniq.join(", ")
|
141
|
+
|
142
142
|
html_content.sub!(%{['ALL_ISSUE_COUNTS_PLACEHOLDER']}, JSON.pretty_generate(issue_counts))
|
143
143
|
html_content.sub!(%{['NEW_ISSUE_COUNTS_PLACEHOLDER']}, JSON.pretty_generate(new_issues))
|
144
|
+
html_content.sub!("REPORT_GENERATE_DATE", Time.now.strftime("%F %T %Z"))
|
145
|
+
html_content.sub!("REPORT_SENTRY_ORG", project_orgs)
|
144
146
|
|
145
147
|
puts "Saved index.html"
|
146
148
|
File.write("./index.html", html_content)
|
data/lib/sentry_top_errors.rb
CHANGED
data/senrty_top_errors.gemspec
CHANGED
data/templates/index.html
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sentry_top_errors
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pavel Evstigneev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-07-
|
11
|
+
date: 2023-07-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: excon
|