prefab-cloud-ruby 1.4.0 → 1.4.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: a71229211822c51b1c42109d9554b59508abe12226af8f1f4c0c5717426309ad
4
- data.tar.gz: 643af23ac3361bbc7a1ea6d2d45bcb84cf15788bc82e2823705997e458fca5c6
3
+ metadata.gz: 548fb2bc402137f55c94fb646cd4eb117b2524e35f8a74040151318657a68d21
4
+ data.tar.gz: e60c07681ca5d480ad002b5d00e341414a5a9b657a6bebcca59c15950ce53e0d
5
5
  SHA512:
6
- metadata.gz: cc81730e0dc3282aa5519c7fe5aa36282fece615252869c5464c4ad0c35eb0ec53ae1507a1b9478aea56486429ff1cb9c4f241166b942dc2ff81955eeb6bd054
7
- data.tar.gz: bf81a80940acec11928e5445c024aee0b17c74da03a343c2d90ce9b216db121762767c2c3d2e28836efded14d77af90077f095f1e472339f1940fa5abad4863c
6
+ metadata.gz: c6de29f1298c6b37e512dd5caa393de80fa4e7afa31ec6dc6e74a338a46a9b031e57c65045e3f9b1998b62c39239d46927fc6705549ed0304480390954fa34f3
7
+ data.tar.gz: dca7a3be29bb91e2881a30740e607a42673acbc96faa28bc275ecebcc3b6a3f9617af1b0a5512a58ea5f4e3df3809c514a8fa258afec322aec7272aeb4d2c12c
data/CHANGELOG.md CHANGED
@@ -1,28 +1,41 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.4.2 - 2023-12-14
4
+
5
+ - Use reportable value even for invalid data (#166)
6
+
7
+ ## 1.4.1 - 2023-12-08
8
+
9
+ - Include version in `get` request (#165)
10
+
3
11
  ## 1.4.0 - 2023-11-28
12
+
4
13
  - ActiveJob tagged logger issue (#164)
5
14
  - Compact Log Format (#163)
6
15
  - Tagged Logging (#161)
7
16
  - ContextKey logging thread safety (#162)
8
17
 
9
18
  ## 1.3.2 - 2023-11-15
19
+
10
20
  - Send back cloud.prefab logging telemetry (#160)
11
21
 
12
22
  ## 1.3.1 - 2023-11-14
23
+
13
24
  - Improve path of rails.controller logging & fix strong param include (#159)
14
25
 
15
26
  ## 1.3.0 - 2023-11-13
27
+
16
28
  - Less logging when wifi is off and we load from cache (#157)
17
29
  - Alpha: Add Provided & Secret Support (#152)
18
30
  - Alpha: x_datafile (#156)
19
31
  - Add single line action-controller output under rails.controller (#158)
20
32
 
21
33
  ## 1.2.1 - 2023-11-01
22
- - Update protobuf definitions (#154)
23
34
 
35
+ - Update protobuf definitions (#154)
24
36
 
25
37
  ## 1.2.0 - 2023-10-30
38
+
26
39
  - Add `Prefab.get('key')` style usage after a `Prefab.init()` call (#151)
27
40
  - Add `add_context_keys` and `with_context_keys` method for LoggerClient (#145)
28
41
 
data/README.md CHANGED
@@ -23,10 +23,10 @@ See full documentation https://docs.prefab.cloud/docs/ruby-sdk/ruby
23
23
 
24
24
  ## Supports
25
25
 
26
- * Feature Flags
27
- * Dynamic log levels
28
- * Live Config
29
- * WebUI for tweaking config, log levels, and feature flags
26
+ - Feature Flags
27
+ - Dynamic log levels
28
+ - Live Config
29
+ - WebUI for tweaking config, log levels, and feature flags
30
30
 
31
31
  ## Important note about Forking and realtime updates
32
32
 
@@ -55,6 +55,7 @@ end
55
55
  ```
56
56
 
57
57
  ## Logging & Debugging
58
+
58
59
  In classpath or ~/.prefab.default.config.yaml set
59
60
 
60
61
  ```
@@ -63,23 +64,25 @@ log-level:
63
64
  ```
64
65
 
65
66
  To debug issues before this config file has been read, set env var
67
+
66
68
  ```
67
69
  PREFAB_LOG_CLIENT_BOOTSTRAP_LOG_LEVEL=debug
68
70
  ```
69
71
 
70
72
  ## Contributing to prefab-cloud-ruby
71
73
 
72
- * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
73
- * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
74
- * Fork the project.
75
- * Start a feature/bugfix branch.
76
- * Commit and push until you are happy with your contribution.
77
- * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
78
- * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
74
+ - Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
75
+ - Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
76
+ - Fork the project.
77
+ - Start a feature/bugfix branch.
78
+ - Commit and push until you are happy with your contribution.
79
+ - Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
80
+ - Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
79
81
 
80
82
  ## Release
81
83
 
82
84
  ```shell
85
+ update the changelog
83
86
  update VERSION
84
87
  bundle exec rake gemspec:generate
85
88
  git commit & push
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.0
1
+ 1.4.2
@@ -13,9 +13,9 @@ module Prefab
13
13
  end
14
14
 
15
15
  def reportable_wrapped_value
16
- if @config_value.confidential
16
+ if @config_value.confidential || @config_value.decrypt_with&.length&.positive?
17
17
  # Unique hash for differentiation
18
- Prefab::ConfigValueWrapper.wrap("#{CONFIDENTIAL_PREFIX}#{Digest::MD5.hexdigest(unwrap)[0,5]}")
18
+ Prefab::ConfigValueWrapper.wrap("#{CONFIDENTIAL_PREFIX}#{Digest::MD5.hexdigest(unwrap)[0, 5]}")
19
19
  else
20
20
  @config_value
21
21
  end
@@ -52,7 +52,6 @@ module Prefab
52
52
  end
53
53
 
54
54
  raw
55
-
56
55
  end
57
56
 
58
57
  def self.deepest_value(config_value, config, context, resolver)
@@ -100,7 +99,7 @@ module Prefab
100
99
  when :BOOL then
101
100
  maybe_bool = YAML.load(value_string)
102
101
  case maybe_bool
103
- when TrueClass,FalseClass
102
+ when TrueClass, FalseClass
104
103
  maybe_bool
105
104
  else
106
105
  raise Prefab::Errors::EnvVarParseError.new(value_string, config, env_var_name)
@@ -15,7 +15,7 @@ module Prefab
15
15
  end
16
16
 
17
17
  def get(path)
18
- connection.get(path)
18
+ connection(PROTO_HEADERS).get(path)
19
19
  end
20
20
 
21
21
  def post(path, body)
@@ -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 1.4.0 ruby lib
5
+ # stub: prefab-cloud-ruby 1.4.2 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "prefab-cloud-ruby".freeze
9
- s.version = "1.4.0"
9
+ s.version = "1.4.2"
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-11-28"
14
+ s.date = "2023-12-14"
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.executables = ["console".freeze]
@@ -162,6 +162,7 @@ class TestConfigValueUnwrapper < Minitest::Test
162
162
  encrypted = Prefab::Encryption.new(DECRYPTION_KEY_VALUE).encrypt(clear_text)
163
163
  config_value = PrefabProto::ConfigValue.new(string: encrypted, decrypt_with: "decryption.key")
164
164
  assert_equal clear_text, unwrap(config_value, CONFIG, EMPTY_CONTEXT)
165
+ assert reportable_value(config_value, CONFIG, EMPTY_CONTEXT).start_with? Prefab::ConfigValueUnwrapper::CONFIDENTIAL_PREFIX
165
166
  end
166
167
 
167
168
  def test_confidential
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: 1.4.0
4
+ version: 1.4.2
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-11-28 00:00:00.000000000 Z
11
+ date: 2023-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby