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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5e21f52dd81361247e7975618d2845f2f4fcad19105ccc425de454b56ac2d68e
4
- data.tar.gz: 78a8a0b42e6109b2635999728cbd17007b9cdc848d218e73f01fb0add257d085
3
+ metadata.gz: c8c4ae7fc8b53cb021dece1af970833d533766605f1f8a93fb030186f5354a2a
4
+ data.tar.gz: e0ecb462118820163770227a8526c70826db2083fafada52e8f23737fbdb655b
5
5
  SHA512:
6
- metadata.gz: 3a433451965599cf2dd833c770d4a588e742158cf99fcafe3d47822fd005dc41cc2acfafea4cf606ab95825017e7fd778d12b0b9d316d5c038f0082f1dcedea7
7
- data.tar.gz: 8ad3142dc940e29a0990e4ed054da58251dbcdcb8af33e006abdf131fb4bdd42c9aec86d54db4bbc8e9e4e13d623192c073a5c3b2e946ae0d7c2345bbd2c570a
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
 
@@ -1,3 +1,3 @@
1
1
  module BeetleReporter
2
- VERSION = '0.1.4'
2
+ VERSION = '0.1.5'
3
3
  end
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
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-18 00:00:00.000000000 Z
11
+ date: 2021-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails