beetle_reporter 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/beetle_reporter/report.rb +2 -11
- data/lib/beetle_reporter/version.rb +1 -1
- 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: c8c4ae7fc8b53cb021dece1af970833d533766605f1f8a93fb030186f5354a2a
|
4
|
+
data.tar.gz: e0ecb462118820163770227a8526c70826db2083fafada52e8f23737fbdb655b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b61c8f8abbf0ec9b48ba55495b1d74c1b73b9ecd800a30d56e85e3c0b08155e47ec6bff73e260aad5fac83f09eb1cb46f1555bb52942ccc60c726b477dab70ff
|
7
|
+
data.tar.gz: 3261b751d9c67649c3abe72d0d8dbfb8a6dd08cb7f75f34f000203cec42b1b337f1af73a9ebc1199837616c6afce8642150f31ed5a6b658b60c0593611d2f73d
|
@@ -62,16 +62,7 @@ module BeetleReporter
|
|
62
62
|
return if record&.user.blank?
|
63
63
|
raise NoMethodError unless record.respond_to?(:beetle_mute)
|
64
64
|
|
65
|
-
ret = record.beetle_mute
|
66
|
-
mute!(reason) if ret
|
67
|
-
end
|
68
|
-
|
69
|
-
def beetle_mute(reason)
|
70
|
-
return if record.blank?
|
71
|
-
return if record&.user.blank?
|
72
|
-
raise NoMethodError unless record.respond_to?(:beetle_mute)
|
73
|
-
|
74
|
-
ret = record.beetle_mute
|
65
|
+
ret = record.beetle_mute(reason)
|
75
66
|
mute!(reason) if ret
|
76
67
|
end
|
77
68
|
|
@@ -80,7 +71,7 @@ module BeetleReporter
|
|
80
71
|
return if record&.user.blank?
|
81
72
|
raise NoMethodError unless record.respond_to?(:beetle_forbid)
|
82
73
|
|
83
|
-
ret = record.beetle_forbid
|
74
|
+
ret = record.beetle_forbid(reason)
|
84
75
|
forbid!(reason) if ret
|
85
76
|
end
|
86
77
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: beetle_reporter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- 42up
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-12-
|
11
|
+
date: 2021-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|