whitebox 0.1.0 → 0.1.1

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: e220dba2b201dbefd83250e9c32280b7fa75e4ac2c96ee4b69504977a0b7788d
4
- data.tar.gz: 39d5c7e514dc44ac58d2c81a0ee86bb068713945f8855893edc46007058efdea
3
+ metadata.gz: 3e315aaa1e4c3687b573b841314259b4602a9a20a4b476375f825c76634c1a3c
4
+ data.tar.gz: b8db422453ff1afb3b1d727702a59bd4af7a8747e68a33094f24907a95c3bec6
5
5
  SHA512:
6
- metadata.gz: 2a7cbd567d6e67ed5369ddbd795400770cac507d126d8d53413ffb184a5bc76349bb91045d3b754534dca91efb7653bb117c330f676985a36d70a69f73f71781
7
- data.tar.gz: 583a95bb0182f3edb0cf20989ea7287d11717e5f12e5c1af4016a0ed1098c536f65fb7f337e0bd17ff6dc77f93bcc31574e8ec810821ebaf77c09222f02e17f1
6
+ metadata.gz: dce059770a6d71800e94e4489d33c48255cfb24b3c0655bcde66dfd46b2320181c08013f478f8abef19f4e5f0a89a85e9fee99548e366b38e49f5a2f060f8a99
7
+ data.tar.gz: 22a0a345f05b802178279e0c9b77afe1dc0872f2ff1f080b77d54be60b7860b8b83340ebccc91dd5b5335ef7974afcf977344a31f0b028a826a587e2f7f96f21
@@ -21,7 +21,7 @@ module Whitebox
21
21
  runs: runs,
22
22
  threshold: threshold,
23
23
  sync: sync,
24
- mode: mode,
24
+ mode: mode
25
25
  }
26
26
  body[:models] = models if models
27
27
 
@@ -42,7 +42,7 @@ module Whitebox
42
42
  options: options,
43
43
  runs: runs,
44
44
  threshold: threshold,
45
- webhook_url: webhook_url,
45
+ webhook_url: webhook_url
46
46
  }.compact
47
47
 
48
48
  data = request(:post, "/decide/bulk", body)
@@ -85,9 +85,10 @@ module Whitebox
85
85
  end
86
86
 
87
87
  # List supported models
88
- def models
88
+ def list_models
89
89
  request(:get, "/models")
90
90
  end
91
+ alias_method :models, :list_models
91
92
 
92
93
  private
93
94
 
@@ -100,11 +101,11 @@ module Whitebox
100
101
  http.open_timeout = 10
101
102
 
102
103
  req = case method
103
- when :get then Net::HTTP::Get.new(uri)
104
- when :post then Net::HTTP::Post.new(uri)
105
- when :patch then Net::HTTP::Patch.new(uri)
106
- when :delete then Net::HTTP::Delete.new(uri)
107
- end
104
+ when :get then Net::HTTP::Get.new(uri)
105
+ when :post then Net::HTTP::Post.new(uri)
106
+ when :patch then Net::HTTP::Patch.new(uri)
107
+ when :delete then Net::HTTP::Delete.new(uri)
108
+ end
108
109
 
109
110
  req["Authorization"] = "Bearer #{@api_key}"
110
111
  req["Content-Type"] = "application/json"
@@ -1,3 +1,3 @@
1
1
  module Whitebox
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: whitebox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - WhiteBox
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-04-28 00:00:00.000000000 Z
11
+ date: 2026-04-29 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Run every AI classification through multiple models. Measure agreement.
14
14
  Ship with confidence or escalate to a human.