prefab-cloud-ruby 0.23.6 → 0.23.8

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: 7132292d4137fdc797fa0bd721fc2a4389ed5fda5452be8e6403fe11ca1be9a4
4
- data.tar.gz: b23a18e42a3d033f4d5f8ab565df09b30bdcfffa97c0ec9a528811fd2f1bbb22
3
+ metadata.gz: 5c8138cec188afa5191aaa81147ecc44736168da22a69bd4ca8cbb3e3328b78f
4
+ data.tar.gz: 5292a214e2255abd7b3fa8ad5ec924499fb2bf37751e6a53b5cd4f8d6d3855db
5
5
  SHA512:
6
- metadata.gz: 4ba972c390518d261dd8d5c29411bb786445b37023f6e333c9d5e57923819ba3d00dcd085de747df48d763704fdb795ed955f53f15436f33596059091aeee2b3
7
- data.tar.gz: d5c38d28c9b87229255127556be2e8b815cc442b159d074bee09d997c438cdece7ab6df9e037cd1eb2e7057aaef08355ec7729b926a93b6eea44e83808c1d2d0
6
+ metadata.gz: ec7023b9395b4570f5e9121eaa946a38fa4ef558e30f207e3d1cb84d4185e5d50d08fbe8f73cd5a01447ded89c0e2c8c6df2341d84e5697e55547851d9dcd836
7
+ data.tar.gz: 9d03d3685767082a9767f0547ee15183003fdcd38664418d21f1b01547f2be88fab4f5a33d338055987d02467c87cf22ac80865c916339dd17065e2bd1290e59
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.23.6
1
+ 0.23.8
data/lib/prefab/client.rb CHANGED
@@ -73,7 +73,7 @@ module Prefab
73
73
  Rails.logger = log
74
74
  ActionView::Base.logger = log
75
75
  ActionController::Base.logger = log
76
- ActiveJob::Base.logger = log
76
+ ActiveJob::Base.logger = log if defined?(ActiveJob)
77
77
  ActiveRecord::Base.logger = log
78
78
  ActiveStorage.logger = log if defined?(ActiveStorage)
79
79
  end
data/lib/prefab_pb.rb CHANGED
@@ -32,6 +32,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
32
32
  end
33
33
  add_message "prefab.WeightedValues" do
34
34
  repeated :weighted_values, :message, 1, "prefab.WeightedValue"
35
+ proto3_optional :hash_by_property_name, :string, 2
35
36
  end
36
37
  add_message "prefab.Configs" do
37
38
  repeated :configs, :message, 1, "prefab.Config"
@@ -60,6 +61,42 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
60
61
  repeated :criteria, :message, 1, "prefab.Criterion"
61
62
  optional :value, :message, 2, "prefab.ConfigValue"
62
63
  end
64
+ add_message "prefab.Criterion" do
65
+ optional :property_name, :string, 1
66
+ optional :operator, :enum, 2, "prefab.Criterion.CriterionOperator"
67
+ optional :value_to_match, :message, 3, "prefab.ConfigValue"
68
+ end
69
+ add_enum "prefab.Criterion.CriterionOperator" do
70
+ value :NOT_SET, 0
71
+ value :LOOKUP_KEY_IN, 1
72
+ value :LOOKUP_KEY_NOT_IN, 2
73
+ value :IN_SEG, 3
74
+ value :NOT_IN_SEG, 4
75
+ value :ALWAYS_TRUE, 5
76
+ value :PROP_IS_ONE_OF, 6
77
+ value :PROP_IS_NOT_ONE_OF, 7
78
+ value :PROP_ENDS_WITH_ONE_OF, 8
79
+ value :PROP_DOES_NOT_END_WITH_ONE_OF, 9
80
+ value :HIERARCHICAL_MATCH, 10
81
+ end
82
+ add_message "prefab.Loggers" do
83
+ repeated :loggers, :message, 1, "prefab.Logger"
84
+ optional :start_at, :int64, 2
85
+ optional :end_at, :int64, 3
86
+ optional :instance_hash, :string, 4
87
+ proto3_optional :namespace, :string, 5
88
+ end
89
+ add_message "prefab.Logger" do
90
+ optional :logger_name, :string, 1
91
+ proto3_optional :traces, :int64, 2
92
+ proto3_optional :debugs, :int64, 3
93
+ proto3_optional :infos, :int64, 4
94
+ proto3_optional :warns, :int64, 5
95
+ proto3_optional :errors, :int64, 6
96
+ proto3_optional :fatals, :int64, 7
97
+ end
98
+ add_message "prefab.LoggerReportResponse" do
99
+ end
63
100
  add_message "prefab.LimitResponse" do
64
101
  optional :passed, :bool, 1
65
102
  optional :expires_at, :int64, 2
@@ -95,24 +132,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
95
132
  value :MINIMUM, 1
96
133
  value :MAXIMUM, 2
97
134
  end
98
- add_message "prefab.Criterion" do
99
- optional :property_name, :string, 1
100
- optional :operator, :enum, 2, "prefab.Criterion.CriterionOperator"
101
- optional :value_to_match, :message, 3, "prefab.ConfigValue"
102
- end
103
- add_enum "prefab.Criterion.CriterionOperator" do
104
- value :NOT_SET, 0
105
- value :LOOKUP_KEY_IN, 1
106
- value :LOOKUP_KEY_NOT_IN, 2
107
- value :IN_SEG, 3
108
- value :NOT_IN_SEG, 4
109
- value :ALWAYS_TRUE, 5
110
- value :PROP_IS_ONE_OF, 6
111
- value :PROP_IS_NOT_ONE_OF, 7
112
- value :PROP_ENDS_WITH_ONE_OF, 8
113
- value :PROP_DOES_NOT_END_WITH_ONE_OF, 9
114
- value :HIERARCHICAL_MATCH, 10
115
- end
116
135
  add_message "prefab.Identity" do
117
136
  proto3_optional :lookup, :string, 1
118
137
  map :attributes, :string, :string, 2
@@ -181,24 +200,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
181
200
  optional :sequence_name, :string, 3
182
201
  optional :size, :int64, 4
183
202
  end
184
- add_message "prefab.Loggers" do
185
- repeated :loggers, :message, 1, "prefab.Logger"
186
- optional :start_at, :int64, 2
187
- optional :end_at, :int64, 3
188
- optional :instance_hash, :string, 4
189
- proto3_optional :namespace, :string, 5
190
- end
191
- add_message "prefab.Logger" do
192
- optional :logger_name, :string, 1
193
- proto3_optional :traces, :int64, 2
194
- proto3_optional :debugs, :int64, 3
195
- proto3_optional :infos, :int64, 4
196
- proto3_optional :warns, :int64, 5
197
- proto3_optional :errors, :int64, 6
198
- proto3_optional :fatals, :int64, 7
199
- end
200
- add_message "prefab.LoggerReportResponse" do
201
- end
202
203
  add_enum "prefab.ConfigType" do
203
204
  value :NOT_SET_CONFIG_TYPE, 0
204
205
  value :CONFIG, 1
@@ -236,12 +237,15 @@ module Prefab
236
237
  ChangedBy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("prefab.ChangedBy").msgclass
237
238
  ConfigRow = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("prefab.ConfigRow").msgclass
238
239
  ConditionalValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("prefab.ConditionalValue").msgclass
240
+ Criterion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("prefab.Criterion").msgclass
241
+ Criterion::CriterionOperator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("prefab.Criterion.CriterionOperator").enummodule
242
+ Loggers = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("prefab.Loggers").msgclass
243
+ Logger = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("prefab.Logger").msgclass
244
+ LoggerReportResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("prefab.LoggerReportResponse").msgclass
239
245
  LimitResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("prefab.LimitResponse").msgclass
240
246
  LimitResponse::LimitPolicyNames = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("prefab.LimitResponse.LimitPolicyNames").enummodule
241
247
  LimitRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("prefab.LimitRequest").msgclass
242
248
  LimitRequest::LimitCombiner = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("prefab.LimitRequest.LimitCombiner").enummodule
243
- Criterion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("prefab.Criterion").msgclass
244
- Criterion::CriterionOperator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("prefab.Criterion.CriterionOperator").enummodule
245
249
  Identity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("prefab.Identity").msgclass
246
250
  ClientConfigValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("prefab.ClientConfigValue").msgclass
247
251
  ConfigEvaluations = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("prefab.ConfigEvaluations").msgclass
@@ -254,9 +258,6 @@ module Prefab
254
258
  CreationResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("prefab.CreationResponse").msgclass
255
259
  IdBlock = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("prefab.IdBlock").msgclass
256
260
  IdBlockRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("prefab.IdBlockRequest").msgclass
257
- Loggers = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("prefab.Loggers").msgclass
258
- Logger = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("prefab.Logger").msgclass
259
- LoggerReportResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("prefab.LoggerReportResponse").msgclass
260
261
  ConfigType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("prefab.ConfigType").enummodule
261
262
  LogLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("prefab.LogLevel").enummodule
262
263
  OnFailure = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("prefab.OnFailure").enummodule
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: prefab-cloud-ruby 0.23.6 ruby lib
5
+ # stub: prefab-cloud-ruby 0.23.8 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "prefab-cloud-ruby".freeze
9
- s.version = "0.23.6"
9
+ s.version = "0.23.8"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib".freeze]
13
13
  s.authors = ["Jeff Dwyer".freeze]
14
- s.date = "2023-04-17"
14
+ s.date = "2023-04-21"
15
15
  s.description = "Feature Flags, Live Config, and Dynamic Log Levels as a service".freeze
16
16
  s.email = "jdwyer@prefab.cloud".freeze
17
17
  s.extra_rdoc_files = [
@@ -58,7 +58,6 @@ Gem::Specification.new do |s|
58
58
  "lib/prefab/weighted_value_resolver.rb",
59
59
  "lib/prefab/yaml_config_parser.rb",
60
60
  "lib/prefab_pb.rb",
61
- "lib/prefab_services_pb.rb",
62
61
  "prefab-cloud-ruby.gemspec",
63
62
  "test/.prefab.default.config.yaml",
64
63
  "test/.prefab.unit_tests.config.yaml",
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prefab-cloud-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.23.6
4
+ version: 0.23.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Dwyer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-17 00:00:00.000000000 Z
11
+ date: 2023-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby
@@ -217,7 +217,6 @@ files:
217
217
  - lib/prefab/weighted_value_resolver.rb
218
218
  - lib/prefab/yaml_config_parser.rb
219
219
  - lib/prefab_pb.rb
220
- - lib/prefab_services_pb.rb
221
220
  - prefab-cloud-ruby.gemspec
222
221
  - test/.prefab.default.config.yaml
223
222
  - test/.prefab.unit_tests.config.yaml
@@ -1,80 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # Source: prefab.proto for package 'prefab'
3
-
4
- require 'grpc'
5
- require 'prefab_pb'
6
-
7
- module Prefab
8
- module RateLimitService
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 = 'prefab.RateLimitService'
16
-
17
- rpc :LimitCheck, ::Prefab::LimitRequest, ::Prefab::LimitResponse
18
- end
19
-
20
- Stub = Service.rpc_stub_class
21
- end
22
- module ConfigService
23
- class Service
24
-
25
- include ::GRPC::GenericService
26
-
27
- self.marshal_class_method = :encode
28
- self.unmarshal_class_method = :decode
29
- self.service_name = 'prefab.ConfigService'
30
-
31
- rpc :GetConfig, ::Prefab::ConfigServicePointer, stream(::Prefab::Configs)
32
- rpc :GetAllConfig, ::Prefab::ConfigServicePointer, ::Prefab::Configs
33
- rpc :Upsert, ::Prefab::Config, ::Prefab::CreationResponse
34
- end
35
-
36
- Stub = Service.rpc_stub_class
37
- end
38
- module IdService
39
- class Service
40
-
41
- include ::GRPC::GenericService
42
-
43
- self.marshal_class_method = :encode
44
- self.unmarshal_class_method = :decode
45
- self.service_name = 'prefab.IdService'
46
-
47
- rpc :GetBlock, ::Prefab::IdBlockRequest, ::Prefab::IdBlock
48
- end
49
-
50
- Stub = Service.rpc_stub_class
51
- end
52
- module ClientService
53
- class Service
54
-
55
- include ::GRPC::GenericService
56
-
57
- self.marshal_class_method = :encode
58
- self.unmarshal_class_method = :decode
59
- self.service_name = 'prefab.ClientService'
60
-
61
- rpc :GetAll, ::Prefab::Identity, ::Prefab::ConfigEvaluations
62
- end
63
-
64
- Stub = Service.rpc_stub_class
65
- end
66
- module LoggerReportingService
67
- class Service
68
-
69
- include ::GRPC::GenericService
70
-
71
- self.marshal_class_method = :encode
72
- self.unmarshal_class_method = :decode
73
- self.service_name = 'prefab.LoggerReportingService'
74
-
75
- rpc :Send, ::Prefab::Loggers, ::Prefab::LoggerReportResponse
76
- end
77
-
78
- Stub = Service.rpc_stub_class
79
- end
80
- end