spamcheck 0.1.0 → 1.1.2

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: 385efd33ad39cbe885dae651a13f7320251e30ac63eff99e2a3f53cabcec3ba1
4
- data.tar.gz: 857f9b711d3433aa6c7b829209bd96781abf1d118ccd5efd28bdab95548dafae
3
+ metadata.gz: 77bf327985de2075b14b4fb0487a816770c2a192db2ecf467ef685d24bb2ff9f
4
+ data.tar.gz: 70cb4db2dbc41e78725f6d04de0006295da11f2bb548b019908255c3206aa75f
5
5
  SHA512:
6
- metadata.gz: 7eee6245e31bf4a8e1d64f9d3a1080312d401e267c4f6ece1571acaf532fbf6977b04f72c2f0df9b70cfd8bfcc34c856703d0ad04e521330e33f3af58e04eee5
7
- data.tar.gz: 7551f2577976773dcca737906a4b59ce87b835cda2ad7e0bcba8847fa852d5c0a71987776831e274c00b58772a5c3b86b17c719a6f65f4710f8934c4c7346b5c
6
+ metadata.gz: 71987b8967bd0707ce7e69ea892178b2f7aff1a00706237c6f393b49b6fecefb7b6fcdac99abf32a1829f064c2c632babfd435123441ea4a0aa1352f30689902
7
+ data.tar.gz: 96a5cc0c30e8f8429dbd7572fe75fc974d3de85ab781ceca244ece2d86961fb341e12817a13caab3982e8156e470f3c5014fffdff4d0fc80c4106e38500ee6d9
@@ -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,10 +42,15 @@ 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
38
51
  map :extra_attributes, :string, :string, 3
52
+ optional :score, :float, 4
53
+ optional :reason, :string, 5
39
54
  end
40
55
  add_enum "spamcheck.SpamVerdict.Verdict" do
41
56
  value :ALLOW, 0
@@ -53,9 +68,11 @@ end
53
68
 
54
69
  module Spamcheck
55
70
  Issue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("spamcheck.Issue").msgclass
71
+ Snippet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("spamcheck.Snippet").msgclass
56
72
  User = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("spamcheck.User").msgclass
57
73
  User::Email = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("spamcheck.User.Email").msgclass
58
74
  Project = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("spamcheck.Project").msgclass
75
+ File = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("spamcheck.File").msgclass
59
76
  SpamVerdict = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("spamcheck.SpamVerdict").msgclass
60
77
  SpamVerdict::Verdict = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("spamcheck.SpamVerdict.Verdict").enummodule
61
78
  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 :Healthz, ::Google::Protobuf::Empty, ::Google::Protobuf::Empty
18
+ rpc :CheckForSpamSnippet, ::Spamcheck::Snippet, ::Spamcheck::SpamVerdict
19
19
  end
20
20
 
21
21
  Stub = Service.rpc_stub_class
@@ -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 = '0.1.0'
7
+ VERSION = '1.1.2'
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: 0.1.0
4
+ version: 1.1.2
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: 2021-05-05 00:00:00.000000000 Z
11
+ date: 2023-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grpc
@@ -31,15 +31,17 @@ executables: []
31
31
  extensions: []
32
32
  extra_rdoc_files: []
33
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
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
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.4
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: []