action_reporter 1.0.7 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/action_reporter.gemspec +1 -1
- data/lib/action_reporter/base.rb +10 -0
- data/lib/action_reporter/honeybadger_reporter.rb +5 -0
- data/lib/action_reporter/rails_reporter.rb +5 -0
- data/lib/action_reporter/version.rb +1 -1
- data/lib/action_reporter.rb +8 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13e5a1b759408acb2b8af922f9075aad25fa5b1dcc39e931a6d171ea81bc4b9a
|
4
|
+
data.tar.gz: 5ac0c5e94e6c9b56bb25c88df82ce80350c4d43fa67284c60e8af7c8b87bba19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a8c8d4991ed7b85e5822ec28a56d4b5f3a383cec09e5651be332d12943b6fdc63cd97e71f9b56d00e54b675faddaac657027d9e9290a8cde570ac70483ae5c1
|
7
|
+
data.tar.gz: f155b3a4484e67f1e2b4e06d885b0759335eda30ce47b739f293dbb2cfdf541b51a13211762598bc894e8d8c57650d581cc00d011e0d47ef261ee274319074d7
|
data/CHANGELOG.md
CHANGED
data/action_reporter.gemspec
CHANGED
data/lib/action_reporter/base.rb
CHANGED
@@ -17,6 +17,16 @@ module ActionReporter
|
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
20
|
+
def resolve_check_in_id(identifier)
|
21
|
+
if identifier.is_a?(String)
|
22
|
+
identifier
|
23
|
+
elsif identifier.respond_to?(:reporter_check_in)
|
24
|
+
identifier.reporter_check_in
|
25
|
+
else
|
26
|
+
raise ArgumentError, "Unknown check-in identifier: #{identifier.inspect}"
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
20
30
|
def notify(*)
|
21
31
|
end
|
22
32
|
|
@@ -13,5 +13,10 @@ module ActionReporter
|
|
13
13
|
new_context = transform_context(args)
|
14
14
|
Rails.logger.info("Reporter context: #{new_context.inspect}")
|
15
15
|
end
|
16
|
+
|
17
|
+
def check_in(identifier)
|
18
|
+
check_in_id = resolve_check_in_id(identifier)
|
19
|
+
Rails.logger.info("Reporter check-in: #{check_in_id}")
|
20
|
+
end
|
16
21
|
end
|
17
22
|
end
|
data/lib/action_reporter.rb
CHANGED