tensai-core 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/tensai/util/initializer.rb +11 -1
- data/lib/tensai/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5a38d61c0552c55ae738a98e940df39273b40d74cbd3beca6b14e6b533a8a5a5
|
4
|
+
data.tar.gz: 6afe1d5a11b6fe578e0ec3c10eab69981fc322e6667b7d7f6266b36a900fe259
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fcb9637cef98d96f5c9b1742a034fcf0d9aedf0a71c2f32c3eb162ef27a797b715015b0b73317975cf3766365ae008d71215b8476bc3cff4936795ed9a3024a6
|
7
|
+
data.tar.gz: deecb846c655d8798f5cda9edeca2fb528f729a890f7ee80546ca86749bb1db549cdc9b56586084e8300db811829de87a355d7a715f59f7756bfccb02ec94118
|
data/Gemfile.lock
CHANGED
@@ -58,7 +58,17 @@ module Tensai::Util
|
|
58
58
|
attr_reader :args
|
59
59
|
|
60
60
|
def signature
|
61
|
-
|
61
|
+
optional = optional_args.keys.map { |arg| "#{arg}: nil" }
|
62
|
+
required = required_args.keys.map { |arg| "#{arg}:" }
|
63
|
+
(optional + required).join(', ')
|
64
|
+
end
|
65
|
+
|
66
|
+
def required_args
|
67
|
+
args.reject { |_, type| type.optional? }.to_h
|
68
|
+
end
|
69
|
+
|
70
|
+
def optional_args
|
71
|
+
args.select { |_, type| type.optional? }.to_h
|
62
72
|
end
|
63
73
|
|
64
74
|
def check_argument_types_code
|
data/lib/tensai/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tensai-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin Fischer
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-types
|