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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c557ef095a10a09639cb944a65d012c961e1b12a84f3491eac4935ecb9e80990
4
- data.tar.gz: c021481c2d5da226ccde1f8d30e19290d319339cd8760c8da804c20f24270e62
3
+ metadata.gz: fd52ea77d27d2d29261e24bdabc1d3b983fa2cf72d08b8579c9388841cc6d274
4
+ data.tar.gz: b89464bf3dc685874c94510dcd6dc3adb6cf46ba913257155d9c46fd8730cd16
5
5
  SHA512:
6
- metadata.gz: 8a18fbd48cd1a7643eedf1378c34459e8d1de2e65deb3155d1e769e69f8d2be25f5c06991bb9526b76c9a36f53af59ce0897d00f5e3f39f44e3882d613eb1e9d
7
- data.tar.gz: 679f4882ce0e5087075815eb185d58ce88e9e244e9c4917d653490940b19bbe6146222f3a2cd1c9d7fb9cb67d99425d19293bba6198824fdedbc8b90779bb6fc
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
@@ -4,5 +4,5 @@
4
4
  # Increment the minor version when adding functionality (that is backward compatible)
5
5
  # Increment the major version when making incompatible changes
6
6
  module SpamCheck
7
- VERSION = '1.0.0'
7
+ VERSION = '1.2.0'
8
8
  end
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.0.0
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: 2022-06-14 00:00:00.000000000 Z
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-org/gl-security/engineering-and-research/automation-team/spam/spamcheck
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: {}