table_structure 0.3.19 → 0.3.20

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: dd4c31d4dca33325702612875d61ba8c011ffa01bc63ae34a37ef3dc5b288350
4
- data.tar.gz: 126975799c4d8e7fc2e534c649e43946fb640395b9b040db5d347b2e3562bd48
3
+ metadata.gz: 6070401fcd9287249b329ea8f2af80cd6a4f7bd3b758d983fa5aa7582344ece9
4
+ data.tar.gz: 717a02a0ed5146dae1054d8b606528c0673e1c5704c7825d0de6bf6385289791
5
5
  SHA512:
6
- metadata.gz: 857750dbc07833cc0c137b3041c97ecb5cd1421d0e539f153f614a66c10f8cbe9c7d567c6d73a6982e4c62f9c303f33dcfa28ef850e7aa2941086b9f97371385
7
- data.tar.gz: 2663d270d999ed8598b9e83d89894517c39e880e2deda23021c7ae9ac83cb24202a18d9970919eb2ad1913ab0889dff9ddd7b997d75f36d1d2293f748afa05c2
6
+ metadata.gz: 3b07692b723c4c70363e93f91a680f8c0e1fd0d0d53e4925ffc758f11afe19a2134fcadae500fab54d6019ef0f92fb35c8a7f1b3c60923037628221c5816a2d2
7
+ data.tar.gz: b2b577a2052191f607c9f87c16606650fc565176207a13adf639a6b1b456d8d9acb053ec2788f4fcf523c82e360b28e9d00c2c30e529fa9bfafaefe5e367f5bc
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ # 0.3.20
2
+ Changes:
3
+ - `TableStructure::Schema`
4
+ - Fix case where `context_builder` for `:table` do not apply.
5
+
1
6
  # 0.3.19
2
7
  Changes:
3
8
  - `TableStructure::Writer`
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- table_structure (0.3.19)
4
+ table_structure (0.3.20)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -75,6 +75,8 @@ module TableStructure
75
75
  schema_classes.map(&:row_builders).reduce({}, &:merge!)
76
76
  )
77
77
 
78
+ table_context = context_builders.build_for_table(context)
79
+
78
80
  columns =
79
81
  Definition::Columns::Compiler
80
82
  .new(
@@ -82,7 +84,7 @@ module TableStructure
82
84
  schema_classes.map(&:column_definitions).reduce([], &:concat),
83
85
  options
84
86
  )
85
- .compile(context_builders.build_for_table(context))
87
+ .compile(table_context)
86
88
 
87
89
  @_definition_ =
88
90
  MyDefinition.new(
@@ -91,7 +93,7 @@ module TableStructure
91
93
  context_builders,
92
94
  column_converters,
93
95
  row_builders,
94
- context,
96
+ table_context,
95
97
  options
96
98
  )
97
99
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TableStructure
4
- VERSION = '0.3.19'
4
+ VERSION = '0.3.20'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: table_structure
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.19
4
+ version: 0.3.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - jsmmr
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-02-24 00:00:00.000000000 Z
11
+ date: 2020-02-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler