exwiw 0.1.1 → 0.1.2

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: 57f6e105901e8e59e683b93f6fb1e6e8139dc6b3017cc6ac0579d5005f0eae7f
4
- data.tar.gz: a3b8a7e546eb9b05694259c46f50e8568baafa9b02642178d816b4310c1333a6
3
+ metadata.gz: e214fe8c35bf263aadda37d988f2d0cc5546b949db4933a972cb601b1e38a96b
4
+ data.tar.gz: 39f92bf7fb79fc43bf2bb0ce2fc04e1c8d3d2f14546cb5a48e82f9d2414d0ecd
5
5
  SHA512:
6
- metadata.gz: 2fd906a22713484fa28d2301144a188ee5d57c9da0a7fbfb591c41d978ab8fa4771d48ea438e00f3d51a4ba8eb18a3e50e64eb6903352d26686ff6a8cffaa123
7
- data.tar.gz: 6a9c4b42302eb86bfae1de412ce79fd244c829ecc4580f14df749dfb374f1d3c5f825caf2e506ea6344d92bad120e5ffa859f32b6a7a60d4b9843defcbd08d04
6
+ metadata.gz: ded92f7c47f03750c83c079ab8b1cc271afa3ff060c5d17cc224aec2497e0dc48c2f870ce2eb68983fc14bd65d2f0dc53858482c3c831a7d3cbf89a278593d6f
7
+ data.tar.gz: cdb87ab441b6faa99825c88d5ac00575347b1a8444957a60975046a1a1ce37200a97d3f33a45d55563e35ddacce749d872c02c7138fb48de9e147e271f61f054
data/CHANGELOG.md CHANGED
@@ -2,12 +2,18 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.1.2] - 2025-03-11
6
+
7
+ ### Changed
8
+
9
+ - Do not serialize when optional attribute is `nil`.
10
+
5
11
  ## [0.1.1] - 2025-03-02
6
12
 
7
13
  ### Added
8
14
 
9
15
  - Added support for `OUTPUT_DIR_PATH` environment variable in `exwiw:schema:generate` task to specify custom output directory for generated schema files.
10
- - When `exwiw:scheman:generate` detects schema files in the output directory, it tries to keep filter and masking options.
16
+ - When `exwiw:schema:generate` detects schema files in the output directory, it tries to keep filter and masking options.
11
17
 
12
18
  ## [0.1.0] - 2025-01-31
13
19
 
@@ -5,8 +5,8 @@ module Exwiw
5
5
  include Serdes
6
6
 
7
7
  attribute :name, String
8
- attribute :replace_with, optional(String)
9
- attribute :raw_sql, optional(String)
8
+ attribute :replace_with, optional(String), skip_serializing_if_nil: true
9
+ attribute :raw_sql, optional(String), skip_serializing_if_nil: true
10
10
 
11
11
  def self.from_symbol_keys(hash)
12
12
  from(hash.transform_keys(&:to_s))
@@ -6,7 +6,7 @@ module Exwiw
6
6
 
7
7
  attribute :name, String
8
8
  attribute :primary_key, String
9
- attribute :filter, optional(String)
9
+ attribute :filter, optional(String), skip_serializing_if_nil: true
10
10
  attribute :belongs_tos, array(BelongsTo)
11
11
  attribute :columns, array(TableColumn)
12
12
 
data/lib/exwiw/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Exwiw
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exwiw
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shia
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-03-02 00:00:00.000000000 Z
10
+ date: 2025-03-11 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: serdes