runapi-core 0.3.0 → 0.3.2

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: 9a0bc423a77bb7770c6db1e3a6fa10ae1679ef58f7762231b02c28e86f85b4e3
4
- data.tar.gz: fce5aa1e8e03dfc0c3c873a6f499bd5c51b173b87f91b75a74955413f59b19e2
3
+ metadata.gz: d16404092e6b56b65c68e9a2bc73d3b1dd686a7439434c2d7250b92b17068e51
4
+ data.tar.gz: f8442835f9a376a13fb72f3f59c6440a5bfec1fc060c4611305b1e97f85f5255
5
5
  SHA512:
6
- metadata.gz: fc56fca2936974941318607a19905d77542bf56f529fdf68577a7da9b18bc186cdbe4a3ea45f367b1d64d8f48622f384cfc8ef089503a1fdf87df399ed6dc84f
7
- data.tar.gz: 548078f4a0b851f5a15f3f76fbadfd5164a122100c0842921bf9e6efa572049b3b715fbfdec7f82a8b7cdfe7773d0565a46ae648772cc75304c1f9a06c348838
6
+ metadata.gz: df3d5a910d5af119187a0cd3b4764c09fd10f9b6eed1e7cf3b3c71593538ae7f656cdc7fe97c413a24efbff1056b00d367af8c7f17a2af6b58df072c5d1dc008
7
+ data.tar.gz: 9671bd2644931b671609b96fdce9a2982f914a381502b3e88858e3f9de54b05681861f091e7950a875aa385723a5782ec8db1d8087f6edd7a0e482997c97b93a
data/README.md CHANGED
@@ -10,7 +10,7 @@ gem install runapi-core
10
10
 
11
11
  ## Notes
12
12
 
13
- Use the core gem for common client options, error classes, request helpers, and task polling behavior that Provider Clients share. Public SDK docs live at https://runapi.ai/docs#runapi-sdks and the model catalog lives at https://runapi.ai/models.
13
+ Use the core gem for common client options, error classes, request helpers, and task polling behavior that Provider Clients share. Public SDK docs live at https://runapi.ai/docs/resources/sdks and the model catalog lives at https://runapi.ai/models.
14
14
 
15
15
  ## Live Pricing
16
16
 
@@ -21,6 +21,7 @@ module RunApi
21
21
  optional :input_price_per_1m_cents, Numeric
22
22
  optional :output_price_per_1m_cents, Numeric
23
23
  optional :cache_read_price_per_1m_cents, Numeric
24
+ optional :cache_write_price_per_1m_cents, Numeric
24
25
  optional :cache_write_5m_price_per_1m_cents, Numeric
25
26
  optional :cache_write_1h_price_per_1m_cents, Numeric
26
27
  required :billing_config, Hash
@@ -149,7 +149,9 @@ module RunApi
149
149
 
150
150
  def enum_value_allowed?(enum, value)
151
151
  enum.any? do |allowed|
152
- if allowed.is_a?(Numeric)
152
+ if allowed == true || allowed == false
153
+ value == allowed
154
+ elsif allowed.is_a?(Numeric)
153
155
  value.is_a?(Numeric) && value == allowed
154
156
  elsif value.is_a?(Numeric)
155
157
  allowed == value
@@ -2,7 +2,7 @@
2
2
 
3
3
  module RunApi
4
4
  module Core
5
- VERSION = "0.3.0"
5
+ VERSION = "0.3.2"
6
6
  end
7
7
 
8
8
  VERSION = Core::VERSION
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runapi-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - RunAPI
@@ -84,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
84
84
  - !ruby/object:Gem::Version
85
85
  version: '0'
86
86
  requirements: []
87
- rubygems_version: 4.0.17
87
+ rubygems_version: 4.0.10
88
88
  specification_version: 4
89
89
  summary: RunAPI Core Ruby SDK
90
90
  test_files: []