active_cortex 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/active_cortex/model.rb +1 -1
- data/lib/active_cortex/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: d69240425c3faa7beaf76c5fc9b48beea6d9b5d3ec032ac01d874b5b240b1754
|
4
|
+
data.tar.gz: 2507aff2c4a6ed7b8d32cbcb2372d9fc3a759e5d43ad568df0633553a0825f66
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15c2ba257de168c3aeedcc494ae796575d881e4dade4affc4017075bb0dc1678e544c98d058f5750606b64cfcd1f9ba24f274784e2b988c8c950af85e530f3fc
|
7
|
+
data.tar.gz: f78d0887c9f2890089fea953a4a199b31720fee26e603521022552035e2969b07631c8c52baced8b70b30639f70b3d5d4fbada1266b324254a2c6aff17c7c88d
|
data/lib/active_cortex/model.rb
CHANGED
@@ -53,7 +53,7 @@ module ActiveCortex::Model
|
|
53
53
|
|
54
54
|
def validate_arguments!(field_name, prompt, max_results, model)
|
55
55
|
raise ArgumentError, "field_name must be a symbol or string" unless field_name.is_a?(Symbol) || field_name.is_a?(String)
|
56
|
-
raise ArgumentError, "prompt must be a proc" unless prompt.is_a?(Proc)
|
56
|
+
raise ArgumentError, "prompt must be a proc" unless prompt.is_a?(Proc) || prompt.is_a?(Symbol)
|
57
57
|
raise ArgumentError, "max_results must be a number" unless max_results.nil? || max_results.is_a?(Integer)
|
58
58
|
raise ArgumentError, "model must be a string" unless model.is_a?(String)
|
59
59
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_cortex
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ori Marash
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-12-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|