decidim-spam_detection 0.1.5

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.
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ # :nocov:
4
+ module Decidim
5
+ # This holds the decidim-spam_detection version.
6
+ module SpamDetection
7
+ def self.version
8
+ "0.1.5"
9
+ end
10
+
11
+ def self.decidim_version
12
+ "0.25"
13
+ end
14
+ end
15
+ end
16
+ # :nocov:
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "decidim/spam_detection/admin"
4
+ require "decidim/spam_detection/engine"
5
+ require "decidim/spam_detection/admin_engine"
6
+
7
+ module Decidim
8
+ # This namespace holds the logic of the `SpamDetection` component. This component
9
+ # allows users to create spam_detection in a participatory space.
10
+ module SpamDetection
11
+ autoload :Command, "decidim/spam_detection/command"
12
+ autoload :CommandErrors, "decidim/spam_detection/command_errors"
13
+ autoload :ApiProxy, "decidim/spam_detection/api_proxy"
14
+ autoload :AbstractSpamUserCommand, "decidim/spam_detection/abstract_spam_user_command"
15
+ autoload :ReportSpamUserCommand, "decidim/spam_detection/report_spam_user_command"
16
+ autoload :BlockSpamUserCommand, "decidim/spam_detection/block_spam_user_command"
17
+ autoload :SpamUserCommandAdapter, "decidim/spam_detection/spam_user_command_adapter"
18
+ end
19
+ end
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ namespace :decidim do
4
+ namespace :spam_detection do
5
+ desc "Call the external Spam Detection service"
6
+ task mark_users: :environment do
7
+ Decidim::SpamDetection::MarkUsersJob.perform_now
8
+ end
9
+ end
10
+ end
metadata ADDED
@@ -0,0 +1,81 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: decidim-spam_detection
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.5
5
+ platform: ruby
6
+ authors:
7
+ - Armand Fardeau
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2022-01-08 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: decidim-core
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '0.25'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '0.25'
27
+ description: "."
28
+ email:
29
+ - fardeauarmand@gmail.com
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - LICENSE-AGPLv3.txt
35
+ - README.md
36
+ - Rakefile
37
+ - app/commands/decidim/admin/unblock_user.rb
38
+ - app/commands/decidim/admin/unreport_user.rb
39
+ - app/jobs/decidim/spam_detection/mark_users_job.rb
40
+ - app/services/decidim/spam_detection/mark_users_service.rb
41
+ - config/assets.rb
42
+ - config/i18n-tasks.yml
43
+ - config/locales/en.yml
44
+ - lib/decidim/spam_detection.rb
45
+ - lib/decidim/spam_detection/abstract_spam_user_command.rb
46
+ - lib/decidim/spam_detection/admin.rb
47
+ - lib/decidim/spam_detection/admin_engine.rb
48
+ - lib/decidim/spam_detection/api_proxy.rb
49
+ - lib/decidim/spam_detection/block_spam_user_command.rb
50
+ - lib/decidim/spam_detection/command.rb
51
+ - lib/decidim/spam_detection/command_errors.rb
52
+ - lib/decidim/spam_detection/engine.rb
53
+ - lib/decidim/spam_detection/report_spam_user_command.rb
54
+ - lib/decidim/spam_detection/spam_user_command_adapter.rb
55
+ - lib/decidim/spam_detection/test/factories.rb
56
+ - lib/decidim/spam_detection/version.rb
57
+ - lib/tasks/decidim_spam_detection.rake
58
+ homepage: https://github.com/decidim/decidim-module-spam_detection
59
+ licenses:
60
+ - AGPL-3.0
61
+ metadata: {}
62
+ post_install_message:
63
+ rdoc_options: []
64
+ require_paths:
65
+ - lib
66
+ required_ruby_version: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ version: '2.7'
71
+ required_rubygems_version: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ requirements: []
77
+ rubygems_version: 3.1.2
78
+ signing_key:
79
+ specification_version: 4
80
+ summary: A decidim spam_detection module
81
+ test_files: []