mindee 1.1.0 → 1.1.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: d4d5ce164f9e839b743150857ad81fabdcaa4e9659c67ad96a21ecebae30fbf9
4
- data.tar.gz: b15a4ebd4162152b8a931bcea424a33f42ea77a04d8f1857da888b5bdff02739
3
+ metadata.gz: 18fa830bcd060b512becc4d9b3f09a211a050bae76657d061a1052e834339785
4
+ data.tar.gz: 61a42fa172220704e73a54e4c6579a05a5524a4cec7c7b4dc66cbd863bba5db6
5
5
  SHA512:
6
- metadata.gz: 71252859a8e99d7da7d6eae65020cb0b5652224c00ff9c0b251f971017c95534bb1268f03e9c1612cc22a0ec4c47d6751017de8730fc49155750bc19c00ee42d
7
- data.tar.gz: 383864204ffd86207eeb97d0bc48d8d88be9e3112cf68f06c47641ff509d314c4cc1ec2fd6237c9686ec44a87fd4a60b381e20810ef3ec6a3130bf118ca25068
6
+ metadata.gz: 5fc179ca03cf6104262a0dece7cd1ab1637c2491d851caf961136721fa762adbf2d480241e28a679ce76f589ba9c059332fc20525795479614f0fa0fd33765f9
7
+ data.tar.gz: 9a51991288ae8478567fd1b0edd1967fe08ed5fcb66cf159ad3e64dbf66d9937013747612a5c9343a736d076c9c8c51d63e8bea74924340b54c6f5f705347337
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Mindee Ruby API Library Changelog
2
2
 
3
+ ## v1.1.1 - 2022-08-08
4
+ ### Fixes
5
+ * :bug: Fix for missing attribute accessor
6
+
3
7
  ## v1.1.0 - 2022-08-04
4
8
  ### Changes
5
9
  * :sparkles: Add support for custom API classification field (#5)
@@ -3,6 +3,13 @@
3
3
  module Mindee
4
4
  # Document classification (custom docs)
5
5
  class ClassificationField
6
+ # The classification value
7
+ # @return [String]
8
+ attr_reader :value
9
+ # The confidence score, value will be between 0.0 and 1.0
10
+ # @return [Float]
11
+ attr_accessor :confidence
12
+
6
13
  # @param prediction [Hash]
7
14
  def initialize(prediction)
8
15
  @value = prediction['value']
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Mindee
4
4
  module Mindee
5
- VERSION = '1.1.0'
5
+ VERSION = '1.1.1'
6
6
 
7
7
  def self.find_platform
8
8
  host = RbConfig::CONFIG['host_os']
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mindee
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mindee
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-04 00:00:00.000000000 Z
11
+ date: 2022-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: marcel