prefab-cloud-ruby 1.4.5 → 1.5.1

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: 99c0376c6062b2d2ae5c51c5f5cfd15841255e706946e01558cb0dde9e7a4672
4
- data.tar.gz: 699a13518c92d9c8fcc4f45b8c501b4d96836c49353c762fb50f7f4410546287
3
+ metadata.gz: e17e7f322495febf8d3039c415dbca2efb862e91387d6836b8097efcf60c83ba
4
+ data.tar.gz: b4fc3d100d9429bcc6b82898e036f3a357513c23d6499ab0b92e7c474b64205a
5
5
  SHA512:
6
- metadata.gz: c598fd1f773d2a846b78b06375e10b19053685a7b0a42fc1324a7e129ec27d5ab5494b795ceed32856144e58395f7414ae6540ff704ef1cb137f07f62ab5cfde
7
- data.tar.gz: 4d576e90e3823359b81211b70f70b566c5fe1489314733d0ebd0ed6b9af966299111d79f1eb38a5ce019153ff9241e3d5f86440031b30aace7187c7c63194c56
6
+ metadata.gz: d2963c32a38aa86440c94b025102d1e08a6043bba1b4253a015ce15d04432fedba7c19076a7d865d1ad26b561c88ddc1d78ed8884c950f7844a56a3d9845d631
7
+ data.tar.gz: 145759236becc8a6fe6e7f949a44ed2192f460f946ebcdb7367ac7f6fa25cd5cf9038872dfc31e5a21c15298e9de38115df3b2673ca8bf6f2466567a27de669a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.5.1 - 2024-02-22
4
+
5
+ - Fix: Send context shapes by default (#174)
6
+
7
+ ## 1.5.0 - 2024-02-12
8
+
9
+ - Fix potential inconsistent Context behavior (#172)
10
+
3
11
  ## 1.4.5 - 2024-01-31
4
12
 
5
13
  - Refactor out a `should_log?` method (#170)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.5
1
+ 1.5.1
@@ -61,8 +61,6 @@ module Prefab
61
61
  def make_context(properties)
62
62
  if properties == NO_DEFAULT_PROVIDED || properties.nil?
63
63
  Context.current
64
- elsif properties.is_a?(Context)
65
- properties
66
64
  else
67
65
  Context.merge_with_current(properties)
68
66
  end.merge_default(default_context || {})
@@ -73,7 +73,7 @@ module Prefab
73
73
  end
74
74
 
75
75
  def merge_with_current(new_context_properties = {})
76
- new(current.to_h.merge(new_context_properties))
76
+ new(current.to_h.merge(new_context_properties.to_h))
77
77
  end
78
78
  end
79
79
 
@@ -136,6 +136,8 @@ module Prefab
136
136
  when :periodic_example
137
137
  @collect_example_contexts = true
138
138
  @collect_max_example_contexts = context_max_size
139
+ @collect_shapes = true
140
+ @collect_max_shapes = context_max_size
139
141
  when :shape_only
140
142
  @collect_shapes = true
141
143
  @collect_max_shapes = context_max_size
@@ -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.5 ruby lib
5
+ # stub: prefab-cloud-ruby 1.5.1 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "prefab-cloud-ruby".freeze
9
- s.version = "1.4.5"
9
+ s.version = "1.5.1"
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 = "2024-01-31"
14
+ s.date = "2024-02-22"
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]
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.5
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Dwyer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-31 00:00:00.000000000 Z
11
+ date: 2024-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby