strong_csv 0.8.5 → 0.8.6

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: 37a19953b77ca5b3d7bbc187e6539fdb21855e60aaa198759dd5c1de71d3ccbc
4
- data.tar.gz: 8958330c574bfb868c0ebe3720003d0643e0824aee079a0c35a31fd8be6875bc
3
+ metadata.gz: 642cc6ac08fe76d56643c190d645fc65f4c5d8a7dbe8a304ad38c265918ae40e
4
+ data.tar.gz: b83f3232be02019f69ee13774a2b0299bacb25810ed7b7b35bd5b2e68126332f
5
5
  SHA512:
6
- metadata.gz: a16236150a4f89770df7fd0fba909ffd22d4708b7a45643cc5ae595a87b934203bc4873b79f6a25f1bc2940baafc5fe5bbccbd5843d2059ee803a9f85aa8764a
7
- data.tar.gz: 4ce04ecb22312b0f45a751c402fb3bc0f3af586c707cf4e6a1310aff79da53eb9f6ec7f8d3f0c9ffcec93f59b2e5d293c5b7840c894db875a5d65cac64e8ce91
6
+ metadata.gz: a9d429bfef2e5c40ff3c1b1e9d37f299f2f0f66607b5fc513357a1d03b8b20a16721ead6b12c1a7e8533ad8b31d8c35fea777c870a70c6ee9cfd8b5a912646dc
7
+ data.tar.gz: 4d393b455dbcd89a8a6fd051f781c6776ed5ae5c802ab582898843457748fb37d10d0cdd94c7b430a89decd9532bc9e6267a02d402433e00ea15fcdf00833612
@@ -20,8 +20,8 @@ class StrongCSV
20
20
  end
21
21
 
22
22
  # @param name [String, Symbol, Integer]
23
- # @param type [StrongCSV::Type::Base]
24
- # @param types [Array<StrongCSV::Type::Base>]
23
+ # @param type [StrongCSV::Types::Base]
24
+ # @param types [Array<StrongCSV::Types::Base>]
25
25
  def let(name, type, *types, error_message: nil, &block)
26
26
  type = Types::Union.new(type, *types) unless types.empty?
27
27
  case name
@@ -9,7 +9,7 @@ class StrongCSV # rubocop:disable Style/Documentation
9
9
  # @!attribute name
10
10
  # @return [Symbol, Integer] The name for the type. This is the CSV header name. If the CSV does not have its header, Integer should be set.
11
11
  # @!attribute type
12
- # @return [StrongCSV::Type::Base]
12
+ # @return [StrongCSV::Types::Base]
13
13
  # @!attribute error_message
14
14
  # @return [String, nil] The error message returned if #cast fails. If omitted, the default error message will be used.
15
15
  # @!attribute block
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class StrongCSV
4
- VERSION = "0.8.5"
4
+ VERSION = "0.8.6"
5
5
  end
data/sig/strong_csv.rbs CHANGED
@@ -22,9 +22,9 @@ class StrongCSV
22
22
  @value: (casted)?
23
23
  @original_value: untyped
24
24
 
25
- attr_reader error_messages: [::String]?
25
+ attr_reader error_messages: Array[::String]?
26
26
 
27
- def initialize: (original_value: ::String | nil, ?value: (casted | ::Object)?, ?error_messages: [::String]?) -> void
27
+ def initialize: (original_value: ::String | nil, ?value: (casted | ::Object)?, ?error_messages: Array[::String]?) -> void
28
28
 
29
29
  def value: -> ((casted | ::Object | nil)?)
30
30
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: strong_csv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.5
4
+ version: 0.8.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yutaka Kamei
@@ -83,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
83
83
  - !ruby/object:Gem::Version
84
84
  version: '0'
85
85
  requirements: []
86
- rubygems_version: 3.6.7
86
+ rubygems_version: 3.6.9
87
87
  specification_version: 4
88
88
  summary: Type check CSV objects
89
89
  test_files: []