spamcheck 1.0.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ruby/spamcheck/spamcheck_pb.rb +14 -0
- data/ruby/spamcheck/spamcheck_services_pb.rb +1 -0
- data/ruby/spamcheck/version.rb +1 -1
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd52ea77d27d2d29261e24bdabc1d3b983fa2cf72d08b8579c9388841cc6d274
|
4
|
+
data.tar.gz: b89464bf3dc685874c94510dcd6dc3adb6cf46ba913257155d9c46fd8730cd16
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f7f8a6a4f1f2cb850a2b37d1afa0d5101718a267ec1680a6f6c3853bc3c045ebc5ed5e11c672028c5041b4e56a3f191b5d05efe453443ffb24febd775709985
|
7
|
+
data.tar.gz: 3f40efe2c3bba59534d4a4b638295b1f55c0668de4d35361fe2a33a3c64c3151f493ffbdbc64bc13e575c2ef1c6c5dfb5dd2495c9f752c0e6b821b517df42f88
|
@@ -6,6 +6,16 @@ require 'google/protobuf'
|
|
6
6
|
require 'google/protobuf/timestamp_pb'
|
7
7
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
8
|
add_file("spamcheck.proto", :syntax => :proto3) do
|
9
|
+
add_message "spamcheck.Generic" do
|
10
|
+
optional :user, :message, 1, "spamcheck.User"
|
11
|
+
optional :text, :string, 2
|
12
|
+
optional :type, :string, 3
|
13
|
+
optional :created_at, :message, 4, "google.protobuf.Timestamp"
|
14
|
+
optional :updated_at, :message, 5, "google.protobuf.Timestamp"
|
15
|
+
optional :action, :enum, 6, "spamcheck.Action"
|
16
|
+
optional :user_in_project, :bool, 7
|
17
|
+
optional :project, :message, 8, "spamcheck.Project"
|
18
|
+
end
|
9
19
|
add_message "spamcheck.Issue" do
|
10
20
|
optional :user, :message, 1, "spamcheck.User"
|
11
21
|
optional :title, :string, 2
|
@@ -49,6 +59,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
49
59
|
optional :verdict, :enum, 1, "spamcheck.SpamVerdict.Verdict"
|
50
60
|
optional :error, :string, 2
|
51
61
|
map :extra_attributes, :string, :string, 3
|
62
|
+
optional :score, :float, 4
|
63
|
+
optional :reason, :string, 5
|
64
|
+
optional :evaluated, :bool, 6
|
52
65
|
end
|
53
66
|
add_enum "spamcheck.SpamVerdict.Verdict" do
|
54
67
|
value :ALLOW, 0
|
@@ -65,6 +78,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
65
78
|
end
|
66
79
|
|
67
80
|
module Spamcheck
|
81
|
+
Generic = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("spamcheck.Generic").msgclass
|
68
82
|
Issue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("spamcheck.Issue").msgclass
|
69
83
|
Snippet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("spamcheck.Snippet").msgclass
|
70
84
|
User = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("spamcheck.User").msgclass
|
@@ -14,6 +14,7 @@ module Spamcheck
|
|
14
14
|
self.unmarshal_class_method = :decode
|
15
15
|
self.service_name = 'spamcheck.SpamcheckService'
|
16
16
|
|
17
|
+
rpc :CheckForSpamGeneric, ::Spamcheck::Generic, ::Spamcheck::SpamVerdict
|
17
18
|
rpc :CheckForSpamIssue, ::Spamcheck::Issue, ::Spamcheck::SpamVerdict
|
18
19
|
rpc :CheckForSpamSnippet, ::Spamcheck::Snippet, ::Spamcheck::SpamVerdict
|
19
20
|
end
|
data/ruby/spamcheck/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spamcheck
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ethan Urie
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: grpc
|
@@ -31,13 +31,13 @@ executables: []
|
|
31
31
|
extensions: []
|
32
32
|
extra_rdoc_files: []
|
33
33
|
files:
|
34
|
-
- ruby/spamcheck.rb
|
35
|
-
- ruby/spamcheck/health_pb.rb
|
36
|
-
- ruby/spamcheck/health_services_pb.rb
|
37
|
-
- ruby/spamcheck/spamcheck_pb.rb
|
38
|
-
- ruby/spamcheck/spamcheck_services_pb.rb
|
39
|
-
- ruby/spamcheck/version.rb
|
40
|
-
homepage: https://gitlab.com/gitlab-
|
34
|
+
- "./ruby/spamcheck.rb"
|
35
|
+
- "./ruby/spamcheck/health_pb.rb"
|
36
|
+
- "./ruby/spamcheck/health_services_pb.rb"
|
37
|
+
- "./ruby/spamcheck/spamcheck_pb.rb"
|
38
|
+
- "./ruby/spamcheck/spamcheck_services_pb.rb"
|
39
|
+
- "./ruby/spamcheck/version.rb"
|
40
|
+
homepage: https://gitlab.com/gitlab-com/gl-security/engineering-and-research/automation-team/spam/spamcheck
|
41
41
|
licenses:
|
42
42
|
- MIT
|
43
43
|
metadata: {}
|