spamcheck 0.1.0 → 1.0.0
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.
- checksums.yaml +4 -4
- data/ruby/spamcheck/health_pb.rb +30 -0
- data/ruby/spamcheck/health_services_pb.rb +27 -0
- data/ruby/spamcheck/spamcheck_pb.rb +17 -2
- data/ruby/spamcheck/spamcheck_services_pb.rb +1 -1
- data/ruby/spamcheck/version.rb +6 -1
- metadata +8 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c557ef095a10a09639cb944a65d012c961e1b12a84f3491eac4935ecb9e80990
|
4
|
+
data.tar.gz: c021481c2d5da226ccde1f8d30e19290d319339cd8760c8da804c20f24270e62
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a18fbd48cd1a7643eedf1378c34459e8d1de2e65deb3155d1e769e69f8d2be25f5c06991bb9526b76c9a36f53af59ce0897d00f5e3f39f44e3882d613eb1e9d
|
7
|
+
data.tar.gz: 679f4882ce0e5087075815eb185d58ce88e9e244e9c4917d653490940b19bbe6146222f3a2cd1c9d7fb9cb67d99425d19293bba6198824fdedbc8b90779bb6fc
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: health.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_file("health.proto", :syntax => :proto3) do
|
8
|
+
add_message "grpc.health.v1.HealthCheckResponse" do
|
9
|
+
optional :status, :enum, 1, "grpc.health.v1.HealthCheckResponse.ServingStatus"
|
10
|
+
end
|
11
|
+
add_enum "grpc.health.v1.HealthCheckResponse.ServingStatus" do
|
12
|
+
value :UNKNOWN, 0
|
13
|
+
value :SERVING, 1
|
14
|
+
value :NOT_SERVING, 2
|
15
|
+
end
|
16
|
+
add_message "grpc.health.v1.HealthCheckRequest" do
|
17
|
+
optional :service, :string, 1
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
module Grpc
|
23
|
+
module Health
|
24
|
+
module V1
|
25
|
+
HealthCheckResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.health.v1.HealthCheckResponse").msgclass
|
26
|
+
HealthCheckResponse::ServingStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.health.v1.HealthCheckResponse.ServingStatus").enummodule
|
27
|
+
HealthCheckRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.health.v1.HealthCheckRequest").msgclass
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: health.proto for package 'grpc.health.v1'
|
3
|
+
|
4
|
+
require 'grpc'
|
5
|
+
require 'health_pb'
|
6
|
+
|
7
|
+
module Grpc
|
8
|
+
module Health
|
9
|
+
module V1
|
10
|
+
module Health
|
11
|
+
class Service
|
12
|
+
|
13
|
+
include GRPC::GenericService
|
14
|
+
|
15
|
+
self.marshal_class_method = :encode
|
16
|
+
self.unmarshal_class_method = :decode
|
17
|
+
self.service_name = 'grpc.health.v1.Health'
|
18
|
+
|
19
|
+
rpc :Check, ::Grpc::Health::V1::HealthCheckRequest, ::Grpc::Health::V1::HealthCheckResponse
|
20
|
+
rpc :Watch, ::Grpc::Health::V1::HealthCheckRequest, stream(::Grpc::Health::V1::HealthCheckResponse)
|
21
|
+
end
|
22
|
+
|
23
|
+
Stub = Service.rpc_stub_class
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -3,8 +3,6 @@
|
|
3
3
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
6
|
-
require 'google/api/annotations_pb'
|
7
|
-
require 'google/protobuf/empty_pb'
|
8
6
|
require 'google/protobuf/timestamp_pb'
|
9
7
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
8
|
add_file("spamcheck.proto", :syntax => :proto3) do
|
@@ -18,6 +16,18 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
18
16
|
optional :user_in_project, :bool, 7
|
19
17
|
optional :project, :message, 8, "spamcheck.Project"
|
20
18
|
end
|
19
|
+
add_message "spamcheck.Snippet" do
|
20
|
+
optional :user, :message, 1, "spamcheck.User"
|
21
|
+
optional :title, :string, 2
|
22
|
+
optional :description, :string, 3
|
23
|
+
optional :visibility, :string, 4
|
24
|
+
optional :created_at, :message, 5, "google.protobuf.Timestamp"
|
25
|
+
optional :updated_at, :message, 6, "google.protobuf.Timestamp"
|
26
|
+
optional :action, :enum, 7, "spamcheck.Action"
|
27
|
+
optional :user_in_project, :bool, 9
|
28
|
+
optional :project, :message, 10, "spamcheck.Project"
|
29
|
+
repeated :files, :message, 11, "spamcheck.File"
|
30
|
+
end
|
21
31
|
add_message "spamcheck.User" do
|
22
32
|
repeated :emails, :message, 1, "spamcheck.User.Email"
|
23
33
|
optional :org, :string, 2
|
@@ -32,6 +42,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
32
42
|
optional :project_id, :int32, 1
|
33
43
|
optional :project_path, :string, 2
|
34
44
|
end
|
45
|
+
add_message "spamcheck.File" do
|
46
|
+
optional :path, :string, 1
|
47
|
+
end
|
35
48
|
add_message "spamcheck.SpamVerdict" do
|
36
49
|
optional :verdict, :enum, 1, "spamcheck.SpamVerdict.Verdict"
|
37
50
|
optional :error, :string, 2
|
@@ -53,9 +66,11 @@ end
|
|
53
66
|
|
54
67
|
module Spamcheck
|
55
68
|
Issue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("spamcheck.Issue").msgclass
|
69
|
+
Snippet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("spamcheck.Snippet").msgclass
|
56
70
|
User = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("spamcheck.User").msgclass
|
57
71
|
User::Email = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("spamcheck.User.Email").msgclass
|
58
72
|
Project = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("spamcheck.Project").msgclass
|
73
|
+
File = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("spamcheck.File").msgclass
|
59
74
|
SpamVerdict = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("spamcheck.SpamVerdict").msgclass
|
60
75
|
SpamVerdict::Verdict = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("spamcheck.SpamVerdict.Verdict").enummodule
|
61
76
|
Action = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("spamcheck.Action").enummodule
|
@@ -15,7 +15,7 @@ module Spamcheck
|
|
15
15
|
self.service_name = 'spamcheck.SpamcheckService'
|
16
16
|
|
17
17
|
rpc :CheckForSpamIssue, ::Spamcheck::Issue, ::Spamcheck::SpamVerdict
|
18
|
-
rpc :
|
18
|
+
rpc :CheckForSpamSnippet, ::Spamcheck::Snippet, ::Spamcheck::SpamVerdict
|
19
19
|
end
|
20
20
|
|
21
21
|
Stub = Service.rpc_stub_class
|
data/ruby/spamcheck/version.rb
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
# Upgrade strategy
|
2
|
+
# Version number is in the form Major.Minor.Patch
|
3
|
+
# Increment the patch version when making backard compatible bug fixes
|
4
|
+
# Increment the minor version when adding functionality (that is backward compatible)
|
5
|
+
# Increment the major version when making incompatible changes
|
1
6
|
module SpamCheck
|
2
|
-
VERSION = '
|
7
|
+
VERSION = '1.0.0'
|
3
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:
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ethan Urie
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-06-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: grpc
|
@@ -32,6 +32,8 @@ extensions: []
|
|
32
32
|
extra_rdoc_files: []
|
33
33
|
files:
|
34
34
|
- ruby/spamcheck.rb
|
35
|
+
- ruby/spamcheck/health_pb.rb
|
36
|
+
- ruby/spamcheck/health_services_pb.rb
|
35
37
|
- ruby/spamcheck/spamcheck_pb.rb
|
36
38
|
- ruby/spamcheck/spamcheck_services_pb.rb
|
37
39
|
- ruby/spamcheck/version.rb
|
@@ -39,7 +41,7 @@ homepage: https://gitlab.com/gitlab-org/gl-security/engineering-and-research/aut
|
|
39
41
|
licenses:
|
40
42
|
- MIT
|
41
43
|
metadata: {}
|
42
|
-
post_install_message:
|
44
|
+
post_install_message:
|
43
45
|
rdoc_options: []
|
44
46
|
require_paths:
|
45
47
|
- ruby
|
@@ -54,8 +56,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
54
56
|
- !ruby/object:Gem::Version
|
55
57
|
version: '0'
|
56
58
|
requirements: []
|
57
|
-
rubygems_version: 3.1.
|
58
|
-
signing_key:
|
59
|
+
rubygems_version: 3.1.6
|
60
|
+
signing_key:
|
59
61
|
specification_version: 4
|
60
62
|
summary: Auto-generated gRPC client for SpamCheck
|
61
63
|
test_files: []
|