exwiw 0.1.1 → 0.1.3

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: 83fdfcea806c556f4eace82d26f2c5fcd08b05c37ee1396b14e3752110e17b73
4
+ data.tar.gz: 38fc8c299154dab02fd23d1c39d09453ebeaf66be611127453b46908bbe70986
5
5
  SHA512:
6
- metadata.gz: 2fd906a22713484fa28d2301144a188ee5d57c9da0a7fbfb591c41d978ab8fa4771d48ea438e00f3d51a4ba8eb18a3e50e64eb6903352d26686ff6a8cffaa123
7
- data.tar.gz: 6a9c4b42302eb86bfae1de412ce79fd244c829ecc4580f14df749dfb374f1d3c5f825caf2e506ea6344d92bad120e5ffa859f32b6a7a60d4b9843defcbd08d04
6
+ metadata.gz: 2192f38b947c07a5118defa2160316411c5e60f77398b2859d9b31b59079fbabcd2ecb7436071d2ec79629073bdd7339bdc71def16cb709955e8728d363c91dd
7
+ data.tar.gz: da4fd038b0b21ff9255f5f5d72ad5dbe1b4a42c9d28a4c0e60af19f700c8a82c45226091bad43bdaecda49d5bbc07fb4a7bc8337ffecd793ce4509abd1955b9d
data/CHANGELOG.md CHANGED
@@ -2,12 +2,24 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.1.3] - 2025-04-02
6
+
7
+ ### Fixed
8
+
9
+ - Generate correct schema when schema is not exist via `exwiw:schema:generate` task.
10
+
11
+ ## [0.1.2] - 2025-03-11
12
+
13
+ ### Changed
14
+
15
+ - Do not serialize when optional attribute is `nil`.
16
+
5
17
  ## [0.1.1] - 2025-03-02
6
18
 
7
19
  ### Added
8
20
 
9
21
  - 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.
22
+ - When `exwiw:schema:generate` detects schema files in the output directory, it tries to keep filter and masking options.
11
23
 
12
24
  ## [0.1.0] - 2025-01-31
13
25
 
@@ -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.3"
5
5
  end
data/lib/tasks/exwiw.rake CHANGED
@@ -53,7 +53,7 @@ namespace :exwiw do
53
53
  merged_config = current_config.merge(table)
54
54
  File.write(path, JSON.pretty_generate(merged_config.to_hash))
55
55
  else
56
- File.write(path, JSON.pretty_generate([table.to_hash]))
56
+ File.write(path, JSON.pretty_generate(table.to_hash))
57
57
  end
58
58
  end
59
59
  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.3
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-04-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: serdes