prefab-cloud-ruby 1.4.1 → 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: 510ec8b1440fe5a93ae1dfdf036a2e8df46287faa0a3dc6ae94ec66b394dc63f
4
- data.tar.gz: c066ccd05d4205b0648cd4458a368d2e9700cc4c80a900c7141b4c137e83a109
3
+ metadata.gz: 548fb2bc402137f55c94fb646cd4eb117b2524e35f8a74040151318657a68d21
4
+ data.tar.gz: e60c07681ca5d480ad002b5d00e341414a5a9b657a6bebcca59c15950ce53e0d
5
5
  SHA512:
6
- metadata.gz: 52d947e884cc06a577b7cb1b1be595fa1f7914612b6901c65fb6bb7f6adf7816e714ff066d215141cedf9ddcac4623e1043b3b19dbeb78dac10a8793c2a68ca1
7
- data.tar.gz: 6a05d21e050ed6937b05e60b792273c52527e34f2c430f2e260816e4ebbf6c3281a0d257e0062fd30ecdc5f9581b740e4ce9679a65d27868eda55977efc1b217
6
+ metadata.gz: c6de29f1298c6b37e512dd5caa393de80fa4e7afa31ec6dc6e74a338a46a9b031e57c65045e3f9b1998b62c39239d46927fc6705549ed0304480390954fa34f3
7
+ data.tar.gz: dca7a3be29bb91e2881a30740e607a42673acbc96faa28bc275ecebcc3b6a3f9617af1b0a5512a58ea5f4e3df3809c514a8fa258afec322aec7272aeb4d2c12c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.4.2 - 2023-12-14
4
+
5
+ - Use reportable value even for invalid data (#166)
6
+
3
7
  ## 1.4.1 - 2023-12-08
4
8
 
5
9
  - Include version in `get` request (#165)
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.1
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)
@@ -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.1 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.1"
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-12-08"
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.1
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-12-08 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