table_structure 0.2.1 → 0.2.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 90d27cfdc8700ffb57706bcde59f1aee9786af31fd132478befc8081b0f7cb4c
|
4
|
+
data.tar.gz: 5b7e60df0bc67c276cf4f95d70aba5b13a6a5be46004d8eb974c7182ee1261e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 228a500f8c1e842dbfed09939b95c0af27237f3ef56e2e2a4c526c0b89fafd73d8a99a9ea1b9ee64f4f3610966f9717c829c2447d2c479f69c09877929f67a65
|
7
|
+
data.tar.gz: 44afa3c28a9ad5260361fdea2dcf85ac57b8799735305332bec3e3963b2d770f87fe06f73614e3b2645fe68c9579cbbc1a6e4256bbd39811046d1762db5878f1
|
data/Gemfile.lock
CHANGED
@@ -16,13 +16,16 @@ module TableStructure
|
|
16
16
|
raise Error.new('"key" must not be lambda.', @index)
|
17
17
|
end
|
18
18
|
if !key && name.respond_to?(:call) && !size
|
19
|
-
raise Error.new('"size" must be
|
19
|
+
raise Error.new('"size" must be defined, because column size cannot be determined.', @index)
|
20
20
|
end
|
21
21
|
if size && size < DEFAULT_SIZE
|
22
22
|
raise Error.new('"size" must be positive.', @index)
|
23
23
|
end
|
24
24
|
if @options[:result_type] == :hash && !key
|
25
|
-
raise Error.new('"key" must be
|
25
|
+
raise Error.new('"key" must be defined when "result_type: :hash" is specified.', @index)
|
26
|
+
end
|
27
|
+
if key && size && [key].flatten.size < size
|
28
|
+
raise Error.new('"key" size must be greater than or equal to specified "size".', @index)
|
26
29
|
end
|
27
30
|
|
28
31
|
true
|
data/table_structure.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.authors = ['jsmmr']
|
11
11
|
spec.email = ['jsmmr@icloud.com']
|
12
12
|
|
13
|
-
spec.summary = '
|
13
|
+
spec.summary = 'Creates and outputs table structured data.'
|
14
14
|
spec.description = 'This gem creates and outputs table structured data. Useful for creating CSV.'
|
15
15
|
spec.homepage = 'https://github.com/jsmmr/ruby_table_structure'
|
16
16
|
spec.license = 'MIT'
|
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.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jsmmr
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-08-
|
11
|
+
date: 2019-08-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -110,5 +110,5 @@ rubyforge_project:
|
|
110
110
|
rubygems_version: 2.7.6.2
|
111
111
|
signing_key:
|
112
112
|
specification_version: 4
|
113
|
-
summary:
|
113
|
+
summary: Creates and outputs table structured data.
|
114
114
|
test_files: []
|