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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ca05346fe4261874164f6fbf48a473b4e310f2cafa206721b2f0ddb2dcfdff5c
4
- data.tar.gz: 2a0163d3e56f87d416a56a105ad3c29af488de955445180d0adafa347d7d1c99
3
+ metadata.gz: d69240425c3faa7beaf76c5fc9b48beea6d9b5d3ec032ac01d874b5b240b1754
4
+ data.tar.gz: 2507aff2c4a6ed7b8d32cbcb2372d9fc3a759e5d43ad568df0633553a0825f66
5
5
  SHA512:
6
- metadata.gz: 5f4b74059e5887c179f7c330dd1a47aa87e68521b3e63a1283359ae4067cac187097890a52bd4b931b5b0cbcb6bdbecae16e985a9c16a708ecc3b78b77be6554
7
- data.tar.gz: c585a12f113acf4086389fe67f20a1558e054c9f1ad3aa6e87ffb22de42f31e385ce9c883b2041a3a619bfdb95feab2d4ada8f54e0ea6b43f53713742d3d24f8
6
+ metadata.gz: 15c2ba257de168c3aeedcc494ae796575d881e4dade4affc4017075bb0dc1678e544c98d058f5750606b64cfcd1f9ba24f274784e2b988c8c950af85e530f3fc
7
+ data.tar.gz: f78d0887c9f2890089fea953a4a199b31720fee26e603521022552035e2969b07631c8c52baced8b70b30639f70b3d5d4fbada1266b324254a2c6aff17c7c88d
@@ -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
@@ -1,3 +1,3 @@
1
1
  module ActiveCortex
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  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.0
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-15 00:00:00.000000000 Z
11
+ date: 2023-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails