jay_api 27.5.1 → 28.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 85b92a0e16c122e30d5fbea1e95975d93f0321bd44a326c39d7f604c48814033
4
- data.tar.gz: 2b5bf62988ede1d159ceaba1a80cc534e458e964be8daf966e5ba01c9d52d091
3
+ metadata.gz: 641132f73f359c5e49bff17518040894399eb1396e5c17b629ae91f44007c702
4
+ data.tar.gz: 5c309039f6ce9ab628632624ebd6cfe542995ecd772dfad834a21fea799d5005
5
5
  SHA512:
6
- metadata.gz: 76ec51ec5b5f8803e12e1acd6753afa20b646a0044a5e8d1fd629ab143f8b0a082cc16a0432a5fa4cfa069cff622725c726a67ddb8d2ecd5ecf3b58eb5771a68
7
- data.tar.gz: c2019ff8249f7fe0a4fd0d72502d00f3a9ed8fb1ed1bdd1622c0df565fa3050c89aae004d275ac53e5d74d574c0fd0b1eda764beb985df77d07be54baee0e85c
6
+ metadata.gz: 89eeffecce6f605111ea8fc641b287022b636ea06304d7932d9297777c68ecf3e1e65c76ede81876e9dc1d0f06bd4969e80e29d0f75b8da1a85acab95971f9eb
7
+ data.tar.gz: 9505af9f03871fea1f9ceae6ace4718100ac2921c5ec04b17a65769f91dbcd0c2b951a3f38473b3b5186ccf00d70b3add50cc334a47e703eb2a3641f07ea7bdf
data/CHANGELOG.md CHANGED
@@ -8,6 +8,16 @@ Please mark backwards incompatible changes with an exclamation mark at the start
8
8
 
9
9
  ## [Unreleased]
10
10
 
11
+ ## [28.0.0] - 2025-05-09
12
+
13
+ ### Added
14
+ - ! The `#keys` method to the `Configuration` class. The method returns the
15
+ array of keys that the `Configuration` object has.
16
+
17
+ Note that the addition of this method means that it is no longer possible to
18
+ access the value of an attribute called `keys` via the dot syntax, however,
19
+ it is still possible to access its value using the brackets: `[]`
20
+
11
21
  ## [27.5.1] - 2025-04-24
12
22
 
13
23
  ### Fixed
@@ -89,6 +89,12 @@ module JayAPI
89
89
  YAML.dump(deep_to_h.deep_stringify_keys)
90
90
  end
91
91
 
92
+ # @return [Array<Object>] An array with the keys (generally the name of the
93
+ # attributes) that the configuration object has.
94
+ def keys
95
+ @table.keys
96
+ end
97
+
92
98
  private
93
99
 
94
100
  # Takes a value and transforms it in accordance to its type.
@@ -104,7 +110,7 @@ module JayAPI
104
110
  when self.class
105
111
  value.deep_to_h
106
112
  when Hash
107
- value.to_h { |hash_key, hash_value| [hash_key, value_for_h(hash_value)] }
113
+ value.transform_values { |hash_value| value_for_h(hash_value) }
108
114
  when Array
109
115
  value.map { |element| value_for_h(element) }
110
116
  else
@@ -2,5 +2,5 @@
2
2
 
3
3
  module JayAPI
4
4
  # JayAPI gem's semantic version
5
- VERSION = '27.5.1'
5
+ VERSION = '28.0.0'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jay_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 27.5.1
4
+ version: 28.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Accenture-Industry X
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2025-04-24 00:00:00.000000000 Z
12
+ date: 2025-05-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport