Skip to content

Commit 94a74d2

Browse files
♻️ change Ocr to OCR to keep consistency
1 parent 9fea2ab commit 94a74d2

37 files changed

Lines changed: 95 additions & 71 deletions

.github/workflows/_publish-code.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Set up Ruby
1717
uses: ruby/setup-ruby@v1
1818
with:
19-
ruby-version: "3.0"
19+
ruby-version: "3.2"
2020
bundler-cache: true
2121

2222
- name: Set credentials

.github/workflows/_publish-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: set up Ruby
1818
uses: ruby/setup-ruby@v1
1919
with:
20-
ruby-version: "3.1"
20+
ruby-version: "3.2"
2121
bundler-cache: true
2222

2323
- name: Analyse the code with Rubocop

.github/workflows/_static-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: set up Ruby
2020
uses: ruby/setup-ruby@v1
2121
with:
22-
ruby-version: "3.0.0"
22+
ruby-version: "3.2.0"
2323
bundler-cache: true
2424

2525
- name: Set up Python

.github/workflows/_test-integrations.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- "ubuntu-24.04"
3333
- "macos-latest"
3434
ruby:
35-
- "3.0"
35+
- "3.2"
3636
- "4.0"
3737
steps:
3838
- uses: actions/checkout@v5

.github/workflows/_test-smoke.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,10 @@ jobs:
2424
strategy:
2525
matrix:
2626
ruby:
27-
- "3.0"
28-
- "3.1"
2927
- "3.2"
3028
- "3.3"
3129
- "3.4"
30+
- "4.0"
3231
runs-on: ubuntu-latest
3332
steps:
3433
- uses: actions/checkout@v5

.github/workflows/_test-units.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ jobs:
1818
- "ubuntu-22.04"
1919
- "macos-latest"
2020
ruby:
21-
- "3.0"
22-
- "3.1"
2321
- "3.2"
2422
- "3.3"
2523
- "3.4"

bin/v2/products.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
},
2626
'ocr' => {
2727
description: 'OCR Utility',
28-
response_class: Mindee::V2::Product::Ocr::Ocr,
28+
response_class: Mindee::V2::Product::OCR::OCR,
2929
},
3030
'split' => {
3131
description: 'Split Utility',

docs/code_samples/v2_ocr.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ input_source = Mindee::Input::Source::PathInputSource.new(input_path)
2121

2222
# Send for processing
2323
response = mindee_client.enqueue_and_get_result(
24-
Mindee::V2::Product::Ocr::Ocr,
24+
Mindee::V2::Product::OCR::Ocr,
2525
input_source,
2626
ocr_params
2727
)

lib/mindee.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,13 @@ module Standard
8686
module Universal
8787
end
8888
end
89+
90+
# V1-specific products.
91+
module Product
92+
# French products.
93+
module FR
94+
end
95+
end
8996
end
9097

9198
# V2-specific module.
@@ -94,6 +101,7 @@ module V2
94101
module HTTP
95102
end
96103

104+
# File operations.
97105
module FileOperation
98106
# Crop operations.
99107
module Crop

lib/mindee/input/base_parameters.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ def slug
5454
self.class.slug
5555
end
5656

57+
# Load from a hash
58+
# @param [Hash] params Parameters to provide as a hash.
59+
# @return [BaseParameters]
5760
def self.from_hash(params: {})
5861
load_from_hash(params: params)
5962
new(

0 commit comments

Comments
 (0)