spamcheck 1.1.2 → 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: 77bf327985de2075b14b4fb0487a816770c2a192db2ecf467ef685d24bb2ff9f
4
- data.tar.gz: 70cb4db2dbc41e78725f6d04de0006295da11f2bb548b019908255c3206aa75f
3
+ metadata.gz: 7efbc978f53943a1b88f803e3083dfe697c02e651e66d942a5404b53c65e1d6d
4
+ data.tar.gz: 1f73040121588a9db3f3bdc7c95c8f2d2fdcfc7c0ec5f2ff5c7785f72d9e6a48
5
5
  SHA512:
6
- metadata.gz: 71987b8967bd0707ce7e69ea892178b2f7aff1a00706237c6f393b49b6fecefb7b6fcdac99abf32a1829f064c2c632babfd435123441ea4a0aa1352f30689902
7
- data.tar.gz: 96a5cc0c30e8f8429dbd7572fe75fc974d3de85ab781ceca244ece2d86961fb341e12817a13caab3982e8156e470f3c5014fffdff4d0fc80c4106e38500ee6d9
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
@@ -51,6 +63,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
51
63
  map :extra_attributes, :string, :string, 3
52
64
  optional :score, :float, 4
53
65
  optional :reason, :string, 5
66
+ optional :evaluated, :bool, 6
54
67
  end
55
68
  add_enum "spamcheck.SpamVerdict.Verdict" do
56
69
  value :ALLOW, 0
@@ -67,6 +80,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
67
80
  end
68
81
 
69
82
  module Spamcheck
83
+ Generic = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("spamcheck.Generic").msgclass
70
84
  Issue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("spamcheck.Issue").msgclass
71
85
  Snippet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("spamcheck.Snippet").msgclass
72
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.1.2'
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.1.2
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: 2023-02-22 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,9 +24,9 @@ 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: []
@@ -37,7 +37,7 @@ files:
37
37
  - "./ruby/spamcheck/spamcheck_pb.rb"
38
38
  - "./ruby/spamcheck/spamcheck_services_pb.rb"
39
39
  - "./ruby/spamcheck/version.rb"
40
- homepage: https://gitlab.com/gitlab-com/gl-security/engineering-and-research/automation-team/spam/spamcheck
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: []