spamcheck 1.0.0 → 1.3.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: 7efbc978f53943a1b88f803e3083dfe697c02e651e66d942a5404b53c65e1d6d
4
+ data.tar.gz: 1f73040121588a9db3f3bdc7c95c8f2d2fdcfc7c0ec5f2ff5c7785f72d9e6a48
5
5
  SHA512:
6
- metadata.gz: 8a18fbd48cd1a7643eedf1378c34459e8d1de2e65deb3155d1e769e69f8d2be25f5c06991bb9526b76c9a36f53af59ce0897d00f5e3f39f44e3882d613eb1e9d
7
- data.tar.gz: 679f4882ce0e5087075815eb185d58ce88e9e244e9c4917d653490940b19bbe6146222f3a2cd1c9d7fb9cb67d99425d19293bba6198824fdedbc8b90779bb6fc
6
+ metadata.gz: bbea1f84f27a9132b61ed0a5773eaa8bbf587160479b20c01662c32e441e0cffd695faa4c9cf9254ea304d8ebab6cc366f83b5155bea26d5649744b3bf7e3d3d
7
+ data.tar.gz: 2c97738f3554a7250a59ac954a03692e06f4546644b307cb0839f9dac6ad112c16e8b99446ac43113dc5b23fd1983a6af80e72cb9fe9702048ad0601123e8036
@@ -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
@@ -33,6 +43,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
33
43
  optional :org, :string, 2
34
44
  optional :username, :string, 3
35
45
  optional :created_at, :message, 4, "google.protobuf.Timestamp"
46
+ map :abuse_metadata, :string, :float, 5
47
+ optional :id, :int32, 6
36
48
  end
37
49
  add_message "spamcheck.User.Email" do
38
50
  optional :email, :string, 1
@@ -49,6 +61,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
49
61
  optional :verdict, :enum, 1, "spamcheck.SpamVerdict.Verdict"
50
62
  optional :error, :string, 2
51
63
  map :extra_attributes, :string, :string, 3
64
+ optional :score, :float, 4
65
+ optional :reason, :string, 5
66
+ optional :evaluated, :bool, 6
52
67
  end
53
68
  add_enum "spamcheck.SpamVerdict.Verdict" do
54
69
  value :ALLOW, 0
@@ -65,6 +80,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
65
80
  end
66
81
 
67
82
  module Spamcheck
83
+ Generic = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("spamcheck.Generic").msgclass
68
84
  Issue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("spamcheck.Issue").msgclass
69
85
  Snippet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("spamcheck.Snippet").msgclass
70
86
  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
@@ -3,6 +3,6 @@
3
3
  # Increment the patch version when making backard compatible bug fixes
4
4
  # Increment the minor version when adding functionality (that is backward compatible)
5
5
  # Increment the major version when making incompatible changes
6
- module SpamCheck
7
- VERSION = '1.0.0'
6
+ module Spamcheck
7
+ VERSION = '1.3.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.3.0
5
5
  platform: ruby
6
6
  authors:
7
- - Ethan Urie
7
+ - GitLab Security Automation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-14 00:00:00.000000000 Z
11
+ date: 2023-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grpc
@@ -24,20 +24,20 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.0'
27
- description: Auto-generated gRPC client for SpamCheck.
27
+ description: Auto-generated gRPC client for Spamcheck.
28
28
  email:
29
- - eurie@gitlab.com
29
+ - security-automation@gitlab.com
30
30
  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-org/gl-security/security-engineering/security-automation/spam/spamcheck
41
41
  licenses:
42
42
  - MIT
43
43
  metadata: {}
@@ -59,5 +59,5 @@ requirements: []
59
59
  rubygems_version: 3.1.6
60
60
  signing_key:
61
61
  specification_version: 4
62
- summary: Auto-generated gRPC client for SpamCheck
62
+ summary: Auto-generated gRPC client for Spamcheck
63
63
  test_files: []