cloudmersive-barcode-api-client 2.1.0 → 2.2.0
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 +4 -4
- data/README.md +8 -4
- data/docs/BarcodeAdvancedResultItem.md +9 -0
- data/docs/BarcodeAdvancedScanResult.md +11 -0
- data/docs/BarcodeScanApi.md +59 -2
- data/docs/GenerateBarcodeApi.md +111 -10
- data/lib/cloudmersive-barcode-api-client/api/barcode_scan_api.rb +60 -2
- data/lib/cloudmersive-barcode-api-client/api/generate_barcode_api.rb +105 -0
- data/lib/cloudmersive-barcode-api-client/models/barcode_advanced_result_item.rb +196 -0
- data/lib/cloudmersive-barcode-api-client/models/barcode_advanced_scan_result.rb +218 -0
- data/lib/cloudmersive-barcode-api-client/models/barcode_qr_result_item.rb +1 -0
- data/lib/cloudmersive-barcode-api-client/version.rb +1 -1
- data/lib/cloudmersive-barcode-api-client.rb +2 -0
- data/spec/api/barcode_scan_api_spec.rb +14 -1
- data/spec/api/generate_barcode_api_spec.rb +29 -0
- data/spec/models/barcode_advanced_result_item_spec.rb +47 -0
- data/spec/models/barcode_advanced_scan_result_spec.rb +59 -0
- metadata +24 -18
|
@@ -32,11 +32,29 @@ describe 'GenerateBarcodeApi' do
|
|
|
32
32
|
end
|
|
33
33
|
end
|
|
34
34
|
|
|
35
|
+
# unit tests for generate_barcode_code128
|
|
36
|
+
# Generate a EAN-13 code barcode as PNG file
|
|
37
|
+
# Validates and generate a EAN-13 barcode as a PNG file, a type of 1D barcode
|
|
38
|
+
# @param value Barcode value to generate from
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @option opts [Integer] :width Optional: width of the barcode in pixels. Minimum value of 10.
|
|
41
|
+
# @option opts [Integer] :height Optional: width of the barcode in pixels. Minimum value of 10.
|
|
42
|
+
# @option opts [BOOLEAN] :include_label Optional: show text label on the image of the barcode value, default is true.
|
|
43
|
+
# @return [String]
|
|
44
|
+
describe 'generate_barcode_code128 test' do
|
|
45
|
+
it 'should work' do
|
|
46
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
|
|
35
50
|
# unit tests for generate_barcode_ean13
|
|
36
51
|
# Generate a EAN-13 code barcode as PNG file
|
|
37
52
|
# Validates and generate a EAN-13 barcode as a PNG file, a type of 1D barcode
|
|
38
53
|
# @param value Barcode value to generate from
|
|
39
54
|
# @param [Hash] opts the optional parameters
|
|
55
|
+
# @option opts [Integer] :width Optional: width of the barcode in pixels. Minimum value of 10.
|
|
56
|
+
# @option opts [Integer] :height Optional: width of the barcode in pixels. Minimum value of 10.
|
|
57
|
+
# @option opts [BOOLEAN] :include_label Optional: show text label on the image of the barcode value, default is true.
|
|
40
58
|
# @return [String]
|
|
41
59
|
describe 'generate_barcode_ean13 test' do
|
|
42
60
|
it 'should work' do
|
|
@@ -49,6 +67,9 @@ describe 'GenerateBarcodeApi' do
|
|
|
49
67
|
# Validates and generate a EAN-8 barcode as a PNG file, a type of 1D barcode
|
|
50
68
|
# @param value Barcode value to generate from
|
|
51
69
|
# @param [Hash] opts the optional parameters
|
|
70
|
+
# @option opts [Integer] :width Optional: width of the barcode in pixels. Minimum value of 10.
|
|
71
|
+
# @option opts [Integer] :height Optional: width of the barcode in pixels. Minimum value of 10.
|
|
72
|
+
# @option opts [BOOLEAN] :include_label Optional: show text label on the image of the barcode value, default is true.
|
|
52
73
|
# @return [String]
|
|
53
74
|
describe 'generate_barcode_ean8 test' do
|
|
54
75
|
it 'should work' do
|
|
@@ -61,6 +82,8 @@ describe 'GenerateBarcodeApi' do
|
|
|
61
82
|
# Generate a QR code barcode as a PNG file, a type of 2D barcode which can encode free-form text information
|
|
62
83
|
# @param value QR code text to convert into the QR code barcode
|
|
63
84
|
# @param [Hash] opts the optional parameters
|
|
85
|
+
# @option opts [Integer] :width Optional: width of the barcode in pixels. Minimum value of 10.
|
|
86
|
+
# @option opts [Integer] :height Optional: width of the barcode in pixels. Minimum value of 10.
|
|
64
87
|
# @return [String]
|
|
65
88
|
describe 'generate_barcode_qr_code test' do
|
|
66
89
|
it 'should work' do
|
|
@@ -73,6 +96,9 @@ describe 'GenerateBarcodeApi' do
|
|
|
73
96
|
# Validate and generate a UPC-A barcode as a PNG file, a type of 1D barcode
|
|
74
97
|
# @param value UPC-A barcode value to generate from
|
|
75
98
|
# @param [Hash] opts the optional parameters
|
|
99
|
+
# @option opts [Integer] :width Optional: width of the barcode in pixels. Minimum value of 10.
|
|
100
|
+
# @option opts [Integer] :height Optional: width of the barcode in pixels. Minimum value of 10.
|
|
101
|
+
# @option opts [BOOLEAN] :include_label Optional: show text label on the image of the barcode value, default is true.
|
|
76
102
|
# @return [String]
|
|
77
103
|
describe 'generate_barcode_upca test' do
|
|
78
104
|
it 'should work' do
|
|
@@ -85,6 +111,9 @@ describe 'GenerateBarcodeApi' do
|
|
|
85
111
|
# Validates and generate a UPC-E barcode as a PNG file, a type of 1D barcode
|
|
86
112
|
# @param value UPC-E barcode value to generate from
|
|
87
113
|
# @param [Hash] opts the optional parameters
|
|
114
|
+
# @option opts [Integer] :width Optional: width of the barcode in pixels. Minimum value of 10.
|
|
115
|
+
# @option opts [Integer] :height Optional: width of the barcode in pixels. Minimum value of 10.
|
|
116
|
+
# @option opts [BOOLEAN] :include_label Optional: show text label on the image of the barcode value, default is true.
|
|
88
117
|
# @return [String]
|
|
89
118
|
describe 'generate_barcode_upce test' do
|
|
90
119
|
it 'should work' do
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#barcodeapi
|
|
3
|
+
|
|
4
|
+
#Barcode APIs let you generate barcode images, and recognize values from images of barcodes.
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: v1
|
|
7
|
+
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.14
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for CloudmersiveBarcodeApiClient::BarcodeAdvancedResultItem
|
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'BarcodeAdvancedResultItem' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = CloudmersiveBarcodeApiClient::BarcodeAdvancedResultItem.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of BarcodeAdvancedResultItem' do
|
|
31
|
+
it 'should create an instance of BarcodeAdvancedResultItem' do
|
|
32
|
+
expect(@instance).to be_instance_of(CloudmersiveBarcodeApiClient::BarcodeAdvancedResultItem)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
describe 'test attribute "raw_text"' do
|
|
36
|
+
it 'should work' do
|
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
describe 'test attribute "barcode_type"' do
|
|
42
|
+
it 'should work' do
|
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
end
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#barcodeapi
|
|
3
|
+
|
|
4
|
+
#Barcode APIs let you generate barcode images, and recognize values from images of barcodes.
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: v1
|
|
7
|
+
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.14
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for CloudmersiveBarcodeApiClient::BarcodeAdvancedScanResult
|
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'BarcodeAdvancedScanResult' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = CloudmersiveBarcodeApiClient::BarcodeAdvancedScanResult.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of BarcodeAdvancedScanResult' do
|
|
31
|
+
it 'should create an instance of BarcodeAdvancedScanResult' do
|
|
32
|
+
expect(@instance).to be_instance_of(CloudmersiveBarcodeApiClient::BarcodeAdvancedScanResult)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
describe 'test attribute "successful"' do
|
|
36
|
+
it 'should work' do
|
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
describe 'test attribute "result_barcodes"' do
|
|
42
|
+
it 'should work' do
|
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
describe 'test attribute "barcode_count"' do
|
|
48
|
+
it 'should work' do
|
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
describe 'test attribute "error_message"' do
|
|
54
|
+
it 'should work' do
|
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cloudmersive-barcode-api-client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Cloudmersive
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2025-11-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|
|
@@ -34,42 +34,42 @@ dependencies:
|
|
|
34
34
|
name: json
|
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
|
36
36
|
requirements:
|
|
37
|
-
- - ">="
|
|
38
|
-
- !ruby/object:Gem::Version
|
|
39
|
-
version: 2.1.0
|
|
40
37
|
- - "~>"
|
|
41
38
|
- !ruby/object:Gem::Version
|
|
42
39
|
version: '2.1'
|
|
40
|
+
- - ">="
|
|
41
|
+
- !ruby/object:Gem::Version
|
|
42
|
+
version: 2.1.0
|
|
43
43
|
type: :runtime
|
|
44
44
|
prerelease: false
|
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
|
46
46
|
requirements:
|
|
47
|
-
- - ">="
|
|
48
|
-
- !ruby/object:Gem::Version
|
|
49
|
-
version: 2.1.0
|
|
50
47
|
- - "~>"
|
|
51
48
|
- !ruby/object:Gem::Version
|
|
52
49
|
version: '2.1'
|
|
50
|
+
- - ">="
|
|
51
|
+
- !ruby/object:Gem::Version
|
|
52
|
+
version: 2.1.0
|
|
53
53
|
- !ruby/object:Gem::Dependency
|
|
54
54
|
name: rspec
|
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|
|
56
56
|
requirements:
|
|
57
|
-
- - ">="
|
|
58
|
-
- !ruby/object:Gem::Version
|
|
59
|
-
version: 3.6.0
|
|
60
57
|
- - "~>"
|
|
61
58
|
- !ruby/object:Gem::Version
|
|
62
59
|
version: '3.6'
|
|
60
|
+
- - ">="
|
|
61
|
+
- !ruby/object:Gem::Version
|
|
62
|
+
version: 3.6.0
|
|
63
63
|
type: :development
|
|
64
64
|
prerelease: false
|
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
|
66
66
|
requirements:
|
|
67
|
-
- - ">="
|
|
68
|
-
- !ruby/object:Gem::Version
|
|
69
|
-
version: 3.6.0
|
|
70
67
|
- - "~>"
|
|
71
68
|
- !ruby/object:Gem::Version
|
|
72
69
|
version: '3.6'
|
|
70
|
+
- - ">="
|
|
71
|
+
- !ruby/object:Gem::Version
|
|
72
|
+
version: 3.6.0
|
|
73
73
|
- !ruby/object:Gem::Dependency
|
|
74
74
|
name: vcr
|
|
75
75
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -201,6 +201,8 @@ files:
|
|
|
201
201
|
- "./README.md"
|
|
202
202
|
- "./Rakefile"
|
|
203
203
|
- "./cloudmersive-barcode-api-client.gemspec"
|
|
204
|
+
- "./docs/BarcodeAdvancedResultItem.md"
|
|
205
|
+
- "./docs/BarcodeAdvancedScanResult.md"
|
|
204
206
|
- "./docs/BarcodeLookupApi.md"
|
|
205
207
|
- "./docs/BarcodeLookupResponse.md"
|
|
206
208
|
- "./docs/BarcodeQRResultItem.md"
|
|
@@ -217,6 +219,8 @@ files:
|
|
|
217
219
|
- "./lib/cloudmersive-barcode-api-client/api_client.rb"
|
|
218
220
|
- "./lib/cloudmersive-barcode-api-client/api_error.rb"
|
|
219
221
|
- "./lib/cloudmersive-barcode-api-client/configuration.rb"
|
|
222
|
+
- "./lib/cloudmersive-barcode-api-client/models/barcode_advanced_result_item.rb"
|
|
223
|
+
- "./lib/cloudmersive-barcode-api-client/models/barcode_advanced_scan_result.rb"
|
|
220
224
|
- "./lib/cloudmersive-barcode-api-client/models/barcode_lookup_response.rb"
|
|
221
225
|
- "./lib/cloudmersive-barcode-api-client/models/barcode_qr_result_item.rb"
|
|
222
226
|
- "./lib/cloudmersive-barcode-api-client/models/barcode_scan_qr_advanced_result.rb"
|
|
@@ -228,6 +232,8 @@ files:
|
|
|
228
232
|
- "./spec/api/generate_barcode_api_spec.rb"
|
|
229
233
|
- "./spec/api_client_spec.rb"
|
|
230
234
|
- "./spec/configuration_spec.rb"
|
|
235
|
+
- "./spec/models/barcode_advanced_result_item_spec.rb"
|
|
236
|
+
- "./spec/models/barcode_advanced_scan_result_spec.rb"
|
|
231
237
|
- "./spec/models/barcode_lookup_response_spec.rb"
|
|
232
238
|
- "./spec/models/barcode_qr_result_item_spec.rb"
|
|
233
239
|
- "./spec/models/barcode_scan_qr_advanced_result_spec.rb"
|
|
@@ -238,7 +244,7 @@ homepage: https://www.cloudmersive.com/barcode-api
|
|
|
238
244
|
licenses:
|
|
239
245
|
- Apache 2.0
|
|
240
246
|
metadata: {}
|
|
241
|
-
post_install_message:
|
|
247
|
+
post_install_message:
|
|
242
248
|
rdoc_options: []
|
|
243
249
|
require_paths:
|
|
244
250
|
- lib
|
|
@@ -253,8 +259,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
253
259
|
- !ruby/object:Gem::Version
|
|
254
260
|
version: '0'
|
|
255
261
|
requirements: []
|
|
256
|
-
rubygems_version: 3.
|
|
257
|
-
signing_key:
|
|
262
|
+
rubygems_version: 3.5.16
|
|
263
|
+
signing_key:
|
|
258
264
|
specification_version: 4
|
|
259
265
|
summary: Generate and recognize 1D and 2D barcodes.
|
|
260
266
|
test_files: []
|