typ 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/typ.rb +4 -4
  3. metadata +8 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 34eb85e4455df8349193687fe8d7d708e915721efcc504bbc9188a4a97a65bc5
4
- data.tar.gz: 44d3854153877adff21b213dad11c0af9c36cb29b1923bf56311503dada4bad9
3
+ metadata.gz: 66823926d21d6fe86ffca0ecc21c2a9f548b3445e276c5d26646879f94d82b1b
4
+ data.tar.gz: e4d5c69c7bb1b699aac1ad28c253fa5ec2bd9985bad72ffd6334180f0c94aca7
5
5
  SHA512:
6
- metadata.gz: 7eadd0c1c59c745e12b348fa797e688e020ad2828162d61c5bc06799491c8caf76512b8f174a99260f880d63145b695accb1f967d7464088254738ca6de83a61
7
- data.tar.gz: 909d72a5e223bf2b859c099362ec359aa014642c735425e2e16a7a744964bce0b8e55fe60953d6739d75e943e067b8737497c711d99a61c3c6029385020ab2d7
6
+ metadata.gz: da8014213903f96ee1b087cce2d9691b9bb8e79118406affb381e6ccfdde23b43fed0744255241cac507b6e1bda3135740bbcf0e92bf312be4b729ad75e91e29
7
+ data.tar.gz: 214aa68a4801a0151e4843b84a92e0aa705a8c47a9d30c9f943d27bd8c3b0598339d87d2c8e7531ac7865b6c7a073c5b47c6b0e0e086bdc89642565544e489a1
data/lib/typ.rb CHANGED
@@ -193,13 +193,13 @@ module Typ
193
193
  def test_for literal
194
194
  case literal
195
195
  when Symbol
196
- literal.end_with?(??) ? super : (super [:eql?, literal])
196
+ literal.end_with?(??) ? super : [:eql?, literal].to_test
197
197
  when Array
198
- literal.predicate? ? literal.to_test : (super [:eql?, literal])
198
+ literal.predicate? ? literal.to_test : [:eql?, literal].to_test
199
199
  when Class
200
- literal.include?(Typ) ? super : (super [:eql?, literal])
200
+ literal.include?(Typ) ? super : [:eql?, literal].to_test
201
201
  else
202
- super [:eql?, literal]
202
+ [:eql?, literal].to_test
203
203
  end
204
204
  end
205
205
  end
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: typ
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anatoly Chernov
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-08 00:00:00.000000000 Z
11
+ date: 2023-10-26 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description:
13
+ description:
14
14
  email:
15
15
  - chertoly@gmail.com
16
16
  executables: []
@@ -18,10 +18,10 @@ extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
20
  - lib/typ.rb
21
- homepage:
21
+ homepage:
22
22
  licenses: []
23
23
  metadata: {}
24
- post_install_message:
24
+ post_install_message:
25
25
  rdoc_options: []
26
26
  require_paths:
27
27
  - lib
@@ -36,8 +36,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
36
36
  - !ruby/object:Gem::Version
37
37
  version: '0'
38
38
  requirements: []
39
- rubygems_version: 3.4.15
40
- signing_key:
39
+ rubygems_version: 3.4.21
40
+ signing_key:
41
41
  specification_version: 4
42
42
  summary: To type Ruby objects.
43
43
  test_files: []