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 +4 -4
- data/CHANGELOG.md +7 -1
- data/lib/exwiw/table_column.rb +2 -2
- data/lib/exwiw/table_config.rb +1 -1
- data/lib/exwiw/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e214fe8c35bf263aadda37d988f2d0cc5546b949db4933a972cb601b1e38a96b
|
4
|
+
data.tar.gz: 39f92bf7fb79fc43bf2bb0ce2fc04e1c8d3d2f14546cb5a48e82f9d2414d0ecd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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:
|
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
|
|
data/lib/exwiw/table_column.rb
CHANGED
@@ -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))
|
data/lib/exwiw/table_config.rb
CHANGED
@@ -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
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.
|
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-
|
10
|
+
date: 2025-03-11 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: serdes
|