spamcheck 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 42e1ee64466cf175d36c6cd7175d0f9e60be60e14c8a662ae2853e46aebc8660
4
+ data.tar.gz: 93a64dc678517da93b8face926dc7f1dd7e554daa7cf5bd04b06c97188facc7c
5
+ SHA512:
6
+ metadata.gz: dbf010eb530cdde4c6dd688614924b1dc351b14f27787f9518b82d3ef8daccd1a4ad92ff928b01e706f676dca83b889d5ea3bc42317b957d62d0abacc3f5294b
7
+ data.tar.gz: 6e24d0050b28fa5e8b66fb32492dc856b6c82a8ce379c800bb8a68dba7f5bfdfdf8f5881a261954dc209a13a503ebebe6f39637c55719ab138d3f47c9c1f99e3
data/ruby/spamcheck.rb ADDED
@@ -0,0 +1,9 @@
1
+ # This file is generated by generate-proto-ruby. Do not edit.
2
+ $:.unshift(File.expand_path('../spamcheck', __FILE__))
3
+
4
+ require 'spamcheck/version'
5
+
6
+ require 'spamcheck/spamcheck_pb'
7
+
8
+ require 'spamcheck/spamcheck_services_pb'
9
+
@@ -0,0 +1,54 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: spamcheck.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/annotations_pb'
7
+ require 'google/protobuf/empty_pb'
8
+ require 'google/protobuf/timestamp_pb'
9
+ Google::Protobuf::DescriptorPool.generated_pool.build do
10
+ add_file("spamcheck.proto", :syntax => :proto3) do
11
+ add_message "spamcheck.Issue" do
12
+ optional :user, :message, 1, "spamcheck.User"
13
+ optional :title, :string, 2
14
+ optional :description, :string, 3
15
+ optional :created_at, :message, 4, "google.protobuf.Timestamp"
16
+ optional :updated_at, :message, 5, "google.protobuf.Timestamp"
17
+ optional :action, :enum, 6, "spamcheck.Action"
18
+ optional :user_in_project, :bool, 7
19
+ end
20
+ add_message "spamcheck.User" do
21
+ repeated :emails, :message, 1, "spamcheck.User.Email"
22
+ optional :org, :string, 2
23
+ optional :username, :string, 3
24
+ optional :created_at, :message, 4, "google.protobuf.Timestamp"
25
+ end
26
+ add_message "spamcheck.User.Email" do
27
+ optional :email, :string, 1
28
+ optional :verified, :bool, 2
29
+ end
30
+ add_message "spamcheck.SpamVerdict" do
31
+ optional :verdict, :enum, 1, "spamcheck.SpamVerdict.Verdict"
32
+ optional :error, :string, 2
33
+ end
34
+ add_enum "spamcheck.SpamVerdict.Verdict" do
35
+ value :ALLOW, 0
36
+ value :CONDITIONAL_ALLOW, 1
37
+ value :DISALLOW, 2
38
+ value :BLOCK, 3
39
+ end
40
+ add_enum "spamcheck.Action" do
41
+ value :CREATE, 0
42
+ value :UPDATE, 1
43
+ end
44
+ end
45
+ end
46
+
47
+ module Spamcheck
48
+ Issue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("spamcheck.Issue").msgclass
49
+ User = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("spamcheck.User").msgclass
50
+ User::Email = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("spamcheck.User.Email").msgclass
51
+ SpamVerdict = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("spamcheck.SpamVerdict").msgclass
52
+ SpamVerdict::Verdict = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("spamcheck.SpamVerdict.Verdict").enummodule
53
+ Action = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("spamcheck.Action").enummodule
54
+ end
@@ -0,0 +1,23 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: spamcheck.proto for package 'spamcheck'
3
+
4
+ require 'grpc'
5
+ require 'spamcheck_pb'
6
+
7
+ module Spamcheck
8
+ module SpamcheckService
9
+ class Service
10
+
11
+ include GRPC::GenericService
12
+
13
+ self.marshal_class_method = :encode
14
+ self.unmarshal_class_method = :decode
15
+ self.service_name = 'spamcheck.SpamcheckService'
16
+
17
+ rpc :CheckForSpamIssue, ::Spamcheck::Issue, ::Spamcheck::SpamVerdict
18
+ rpc :Healthz, ::Google::Protobuf::Empty, ::Google::Protobuf::Empty
19
+ end
20
+
21
+ Stub = Service.rpc_stub_class
22
+ end
23
+ end
@@ -0,0 +1,3 @@
1
+ module SpamCheck
2
+ VERSION = '0.0.5'
3
+ end
metadata ADDED
@@ -0,0 +1,61 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: spamcheck
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.5
5
+ platform: ruby
6
+ authors:
7
+ - Ethan Urie
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2021-04-22 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: grpc
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.0'
27
+ description: Auto-generated gRPC client for SpamCheck.
28
+ email:
29
+ - eurie@gitlab.com
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - ruby/spamcheck.rb
35
+ - ruby/spamcheck/spamcheck_pb.rb
36
+ - ruby/spamcheck/spamcheck_services_pb.rb
37
+ - ruby/spamcheck/version.rb
38
+ homepage: https://gitlab.com/gitlab-org/gl-security/engineering-and-research/automation-team/spam/spamcheck
39
+ licenses:
40
+ - MIT
41
+ metadata: {}
42
+ post_install_message:
43
+ rdoc_options: []
44
+ require_paths:
45
+ - ruby
46
+ required_ruby_version: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - - ">="
49
+ - !ruby/object:Gem::Version
50
+ version: '0'
51
+ required_rubygems_version: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
56
+ requirements: []
57
+ rubygems_version: 3.1.4
58
+ signing_key:
59
+ specification_version: 4
60
+ summary: Auto-generated gRPC client for SpamCheck
61
+ test_files: []