table_structure 0.3.3 → 0.3.4

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: d2a01593167aa1e2dd8324ca25696bc5a673214eb9659c5ca4643c62e3172cff
4
- data.tar.gz: f374927b3fdb20eb93b3f0ff88344f9ba55fef1238ada8c8d6c577fc5b0d7484
3
+ metadata.gz: 7ba1e6952eaa875b8f55c7b2af3f18fad6030c4cbbd8ae1caaec81ae20a1be3c
4
+ data.tar.gz: 53b87d0b36b8eada62c881e3e286396b4dc82afae9a713feccab2da1258dfbf2
5
5
  SHA512:
6
- metadata.gz: 69931112fd4a46d250ef0ad1f43a67baebf408dcde70dcc15f153661871a14cb8d91bdec9258ef5ac351af86b40059f35b51ea0c65f1d5e9f4fad19f7529a09b
7
- data.tar.gz: e615deb857dc78ab84ee643c5f43a629709917e949872a8147fa2625430f9a7a2872523080f3ebb5e31e29a5038cc9ab91123549cd97683c5726a547208d4f3b
6
+ metadata.gz: 3c07d1f99a48b990fad463b4ab87a82f6ece8ad4e58eab86499a32266bc3580e6bbf9d83444956244f4c89e561998ae84c27441d7063efd46fd8b9daadcb6990
7
+ data.tar.gz: 8003a4609435158f876752ad1b42a7b3d00eab319a17f765234fafc105c7ccae9888eccc75a2382a80d641f0aa837bf950e45bb665aa35bf9a30e87d87ec73fd
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # 0.3.4
2
+ Changes:
3
+ - `TableStructure::Writer`
4
+ - Fix broken `:result_type` option.
5
+ - `TableStructure::Iterator`
6
+ - Fix broken `:result_type` option. (Passed to the writer internally.)
7
+
1
8
  # 0.3.3
2
9
  Changes:
3
10
  - `TableStructure::Schema`
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- table_structure (0.3.3)
4
+ table_structure (0.3.4)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -11,7 +11,6 @@ module TableStructure
11
11
  end
12
12
 
13
13
  DEFAULT_OPTIONS = {
14
- result_type: :array, # deprecated: Change to pass as argument of method.
15
14
  key_prefix: nil,
16
15
  key_suffix: nil
17
16
  }.freeze
@@ -34,9 +33,8 @@ module TableStructure
34
33
  )
35
34
  end
36
35
 
37
- def create_table(result_type: nil, **options)
36
+ def create_table(result_type: :array, **options)
38
37
  options = @table_structure_schema_definition_.options.merge(options)
39
- result_type ||= options[:result_type] # TODO: remove
40
38
  @table_structure_schema_definition_.create_table(result_type: result_type, **options)
41
39
  end
42
40
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TableStructure
4
- VERSION = '0.3.3'
4
+ VERSION = '0.3.4'
5
5
  end
@@ -5,7 +5,7 @@ module TableStructure
5
5
  DEFAULT_OPTIONS = {
6
6
  header_omitted: false,
7
7
  header_context: nil,
8
- result_type: nil, # TODO: :array
8
+ result_type: :array,
9
9
  method: :<<
10
10
  }.freeze
11
11
 
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.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - jsmmr
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-09-06 00:00:00.000000000 Z
11
+ date: 2019-09-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler