decidim-spam_detection 3.1.0 → 4.0.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
  SHA256:
3
- metadata.gz: f24ecac49f9c8814f2dd96c598a036884b67f170ff780f45fc08edfd889f4731
4
- data.tar.gz: d4fcfab70fafa852c915207a7762a380afe5b55d4e330a22e3c1a96c8df49cce
3
+ metadata.gz: dc40888f7da14f290222e3e99fcd985c8020affbebc5f7d213754e8415025db9
4
+ data.tar.gz: 62521b3df543d4b344aaa937e2cb53d572ac5fc96559dabbefdbaa55b5f26664
5
5
  SHA512:
6
- metadata.gz: 231ce11ea08422ce24f822b68c33a5ec73641e8077d3615097443b9e3a14ed0e29c3ccc89dfae7c3de89927881b6e1230f9903a6eba17be2783ccbc249c61957
7
- data.tar.gz: b1aa9020d61d8683e4d66bb05c6f6042bcaa6f37ac917af76d3e00dc3f1ae4eec437b23a64ff3da9d24736613757d6c70f47b220eb35d594a9e49fa10bfc3248
6
+ metadata.gz: 1934658b6b73cfa41fece1ac68f3d4b85360e53ab179bcb3e62c48b99228ccd1b9b368d92e1ab057270eb8d321ee86303d8a2df1026e11885f73397cd48c7ae6
7
+ data.tar.gz: 36083c1b45fd4ad0c49ad5fbfc466f0631ecc9c5907611a7629868d5ae72b533c912d8e236e1484b7882cfb011ed674f1d82384a905a65de46f551bfd4e4c12b
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Decidim
4
4
  module Admin
5
- class UnblockUser < Rectify::Command
5
+ class UnblockUser < Decidim::Command
6
6
  # Public: Initializes the command.
7
7
  #
8
8
  # blocked_user - the user that is unblocked
@@ -48,7 +48,7 @@ module Decidim
48
48
  def add_spam_detection_metadata!
49
49
  return if @blocked_user.extended_data.dig("spam_detection", "blocked_at").blank?
50
50
 
51
- @blocked_user.update!(extended_data: @blocked_user.extended_data.dup.deep_merge("spam_detection" => { "unblocked_at": Time.current }))
51
+ @blocked_user.update!(extended_data: @blocked_user.extended_data.dup.deep_merge("spam_detection" => { unblocked_at: Time.current }))
52
52
  end
53
53
  end
54
54
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Decidim
4
4
  module Admin
5
- class UnreportUser < Rectify::Command
5
+ class UnreportUser < Decidim::Command
6
6
  # Public: Initializes the command.
7
7
  #
8
8
  # reportable - A Decidim::User - The user reported
@@ -46,7 +46,7 @@ module Decidim
46
46
  def add_spam_detection_metadata!
47
47
  return if @reportable.extended_data.dig("spam_detection", "reported_at").blank?
48
48
 
49
- @reportable.update!(extended_data: @reportable.extended_data.dup.deep_merge("spam_detection" => { "unreported_at": Time.current }))
49
+ @reportable.update!(extended_data: @reportable.extended_data.dup.deep_merge("spam_detection" => { unreported_at: Time.current }))
50
50
  end
51
51
  end
52
52
  end
@@ -54,7 +54,6 @@ module Decidim
54
54
  password: password,
55
55
  password_confirmation: password,
56
56
  tos_agreement: true,
57
- email_on_notification: false,
58
57
  email_on_moderations: false
59
58
  }
60
59
  moderation_admin = Decidim::User.new(params.merge(additional_params))
@@ -5,11 +5,11 @@ module Decidim
5
5
  # This holds the decidim-spam_detection version.
6
6
  module SpamDetection
7
7
  def self.version
8
- "3.1.0"
8
+ "4.0.0"
9
9
  end
10
10
 
11
11
  def self.decidim_version
12
- "0.26.0"
12
+ "0.27.0"
13
13
  end
14
14
  end
15
15
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-spam_detection
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Armand Fardeau
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-09 00:00:00.000000000 Z
11
+ date: 2023-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: decidim-core
@@ -16,18 +16,19 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.26.0
19
+ version: 0.27.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.26.0
27
- description: " SpamDetection is a detection bot made by OpenSourcePolitics. \n It
28
- works with a spam detection service (https://github.com/OpenSourcePolitics/spam_detection)
29
- \n which marks the user with a spam probability score, \n between 0.7 and 0.99
30
- it is probable, and above 0.99 it is very sure.\n"
26
+ version: 0.27.0
27
+ description: |2
28
+ SpamDetection is a detection bot made by OpenSourcePolitics.
29
+ It works with a spam detection service (https://github.com/OpenSourcePolitics/spam_detection)
30
+ which marks the user with a spam probability score,
31
+ between 0.7 and 0.99 it is probable, and above 0.99 it is very sure.
31
32
  email:
32
33
  - fardeauarmand@gmail.com
33
34
  executables: []
@@ -75,7 +76,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
75
76
  requirements:
76
77
  - - ">="
77
78
  - !ruby/object:Gem::Version
78
- version: '2.7'
79
+ version: '3.0'
79
80
  required_rubygems_version: !ruby/object:Gem::Requirement
80
81
  requirements:
81
82
  - - ">="