aspose_cells_cloud 23.6 → 23.7

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: 2ac809b248552fdbdc90debeb3b9ac56e917f1fc7faeb295995f5c787048f017
4
- data.tar.gz: df8f84c4623308a77db9b11ac52f823e3a3468a4f5126e89d404b0e46d4afaf6
3
+ metadata.gz: ca65e84ad45b30151dfe5528d243e236274dc143bca92a4e16bcc748d3be8fcd
4
+ data.tar.gz: a0bbe0ce0de599ae7bcbd1bb6a4e8ce1c86d8942ff6c43e59c5a4287d1501d87
5
5
  SHA512:
6
- metadata.gz: a90ddc5e885b62c63cd8a73a0feba8fff0915aef5a3b6f65bf6b9e40b61998fcdbbb1b80ac93d6f32f1e8ce9a3da823b63b92f9cdc25efe8b2c6e51526f49200
7
- data.tar.gz: 3c09549abc2cd425c817e5ae1986676f84d8ba9d96870acfcd74563b5134202c89dfa310c79c67fdd5f5e941919d1f9ff3ce1669cae0d2d5aedc760dee8e2746
6
+ metadata.gz: a8de0582f574ed327bccd771eef35a846950f937b401e165343bea4a509bb0e5e2dbffea87b89566f82833039be669d47e97f3f11cd0fa0889673f9cb6a1678a
7
+ data.tar.gz: 8a19ac2912d34060b72325aa9ccd20bdd97593638d8a2bb9cc01172717fd087c7adb5a2d4cb754f029cd2e161d09a2e43a4c60316a5d957c771bbcf061fe094c
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ![](https://img.shields.io/badge/REST%20API-v3.0-lightgrey) ![Gem](https://img.shields.io/gem/v/aspose_cells_cloud) ![Gem](https://img.shields.io/gem/dt/aspose_cells_cloud) [![GitHub license](https://img.shields.io/github/license/aspose-cells-cloud/aspose-cells-cloud-ruby)](https://github.com/aspose-cells-cloud/aspose-cells-cloud-ruby/blob/master/LICENSE) ![GitHub commits since latest release (by date)](https://img.shields.io/github/commits-since/aspose-cells-cloud/aspose-cells-cloud-ruby/23.6)
1
+ ![](https://img.shields.io/badge/REST%20API-v3.0-lightgrey) ![Gem](https://img.shields.io/gem/v/aspose_cells_cloud) ![Gem](https://img.shields.io/gem/dt/aspose_cells_cloud) [![GitHub license](https://img.shields.io/github/license/aspose-cells-cloud/aspose-cells-cloud-ruby)](https://github.com/aspose-cells-cloud/aspose-cells-cloud-ruby/blob/master/LICENSE) ![GitHub commits since latest release (by date)](https://img.shields.io/github/commits-since/aspose-cells-cloud/aspose-cells-cloud-ruby/23.7)
2
2
 
3
3
 
4
4
  # Ruby SDK for Spreadsheet Processing in the Cloud
@@ -22,16 +22,10 @@ Ruby Cloud SDK wraps Aspose.Cells REST API so you could seamlessly integrate Mic
22
22
  - [Convert Excel files to popular formats](https://docs.aspose.cloud/cells/convert-excel-workbook-to-different-file-formats/).
23
23
 
24
24
 
25
- ## Feature & Enhancements in Version 23.6
25
+ ## Feature & Enhancements in Version 23.7
26
26
 
27
- - New Model.
28
- - Support to import xml data.
29
- - Support to export xml data.
30
- - Support to batch lock multi-files.
31
- - Support to batch unlock multi-files.
32
- - Support to protect lock multi-files.
33
- - Support to split lock multi-files.
34
- - Fix put document property api.
27
+ - Support to repair api.
28
+ - Remove GetExtractBarcodes API.
35
29
 
36
30
  ## Read & Write Spreadsheet Formats
37
31
 
@@ -191,13 +191,6 @@ module AsposeCellsCloud
191
191
  return data
192
192
  end
193
193
 
194
- # Extract barcodes from worksheet picture.
195
-
196
- def get_extract_barcodes( get_extract_barcodes_request, opts = {})
197
-
198
- data, _status_code, _headers = get_extract_barcodes_request.create_http_request(@api_client,opts )
199
- return data
200
- end
201
194
 
202
195
  # Clear cells contents in worksheet.
203
196
 
@@ -1048,6 +1041,12 @@ module AsposeCellsCloud
1048
1041
  data, _status_code, _headers = post_reverse_request.create_http_request(@api_client,opts )
1049
1042
  return data
1050
1043
  end
1044
+
1045
+ def post_repair( post_repair_request, opts = {})
1046
+
1047
+ data, _status_code, _headers = post_repair_request.create_http_request(@api_client,opts )
1048
+ return data
1049
+ end
1051
1050
 
1052
1051
  # Reverse rows or columns of Excel files, save as kinds of format files.
1053
1052
 
@@ -10850,82 +10849,7 @@ module AsposeCellsCloud
10850
10849
  end
10851
10850
  return data, status_code, headers
10852
10851
  end
10853
- # Get chart area border info.
10854
- #
10855
- # @param name Workbook name.
10856
- # @param sheet_name Worksheet name.
10857
- # @param picture_index The picture index.
10858
- # @param [Hash] opts the optional parameters
10859
- # @option opts [String] :folder Workbook folder.
10860
- # @option opts [String] :storage_name storage name.
10861
- # @return [BarcodeResponseList]
10862
- def cells_picture_get_extract_barcodes(name, sheet_name, picture_index, opts = {})
10863
- warn "Warning: #cells_picture_get_extract_barcodes() is deprecated."
10864
- data, _status_code, _headers = cells_picture_get_extract_barcodes_with_http_info(name, sheet_name, picture_index, opts)
10865
- return data
10866
- end
10867
-
10868
- # Get chart area border info.
10869
- #
10870
- # @param name Workbook name.
10871
- # @param sheet_name Worksheet name.
10872
- # @param picture_index The picture index.
10873
- # @param [Hash] opts the optional parameters
10874
- # @option opts [String] :folder Workbook folder.
10875
- # @option opts [String] :storage_name storage name.
10876
- # @return [Array<(BarcodeResponseList, Fixnum, Hash)>] BarcodeResponseList data, response status code and response headers
10877
- def cells_picture_get_extract_barcodes_with_http_info(name, sheet_name, picture_index, opts = {})
10878
- warn "Warning: #cells_picture_get_extract_barcodes_with_http_info() is deprecated."
10879
- if @api_client.config.debugging
10880
- @api_client.config.logger.debug "Calling API: CellsApi.cells_picture_get_extract_barcodes ..."
10881
- end
10882
- @api_client.request_token_if_needed
10883
- # verify the required parameter 'name' is set
10884
- if @api_client.config.client_side_validation && name.nil?
10885
- fail ArgumentError, "Missing the required parameter 'name' when calling CellsApi.cells_picture_get_extract_barcodes"
10886
- end
10887
- # verify the required parameter 'sheet_name' is set
10888
- if @api_client.config.client_side_validation && sheet_name.nil?
10889
- fail ArgumentError, "Missing the required parameter 'sheet_name' when calling CellsApi.cells_picture_get_extract_barcodes"
10890
- end
10891
- # verify the required parameter 'picture_index' is set
10892
- if @api_client.config.client_side_validation && picture_index.nil?
10893
- fail ArgumentError, "Missing the required parameter 'picture_index' when calling CellsApi.cells_picture_get_extract_barcodes"
10894
- end
10895
- # resource path
10896
- local_var_path = "/cells/{name}/worksheets/{sheetName}/pictures/{pictureIndex}/recognize".sub('{' + 'name' + '}', name.to_s).sub('{' + 'sheetName' + '}', sheet_name.to_s).sub('{' + 'pictureIndex' + '}', picture_index.to_s)
10897
-
10898
- # query parameters
10899
- query_params = {}
10900
- query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
10901
- query_params[:'storageName'] = opts[:'storage_name'] if !opts[:'storage_name'].nil?
10902
-
10903
- # header parameters
10904
- header_params = {}
10905
- # HTTP header 'Accept' (if needed)
10906
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
10907
- # HTTP header 'Content-Type'
10908
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
10909
10852
 
10910
- # form parameters
10911
- form_params = {}
10912
-
10913
- # http body (model)
10914
- post_body = nil
10915
- #auth_names = []
10916
- auth_names = ['JWT']
10917
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
10918
- :header_params => header_params,
10919
- :query_params => query_params,
10920
- :form_params => form_params,
10921
- :body => post_body,
10922
- :auth_names => auth_names,
10923
- :return_type => 'BarcodeResponseList')
10924
- if @api_client.config.debugging
10925
- @api_client.config.logger.debug "API called: CellsApi#cells_picture_get_extract_barcodes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
10926
- end
10927
- return data, status_code, headers
10928
- end
10929
10853
  # Delete a picture object in worksheet
10930
10854
  #
10931
10855
  # @param name The workbook name.
@@ -1,6 +1,6 @@
1
1
  =begin
2
2
  --------------------------------------------------------------------------------------------------------------------
3
- <copyright company="Aspose" file="GetExtractBarcodes_request.rb.cs">
3
+ <copyright company="Aspose" file="PostRepair_request.rb.cs">
4
4
  Copyright (c) 2023 Aspose.Cells Cloud
5
5
  </copyright>
6
6
  <summary>
@@ -29,13 +29,10 @@
29
29
  require "uri"
30
30
 
31
31
  module AsposeCellsCloud
32
- class GetExtractBarcodesRequest
32
+ class PostRepairRequest
33
33
 
34
- attr_accessor :name
35
- attr_accessor :sheet_name
36
- attr_accessor :picture_index
37
- attr_accessor :folder
38
- attr_accessor :storage_name
34
+ attr_accessor :file
35
+ attr_accessor :format
39
36
 
40
37
  def initialize(attributes = {})
41
38
  return unless attributes.is_a?(Hash)
@@ -43,69 +40,45 @@ module AsposeCellsCloud
43
40
  # convert string to symbol for hash key
44
41
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
45
42
 
46
- if attributes.has_key?(:'name')
47
- self.name = attributes[:'name']
43
+ if attributes.has_key?(:'File')
44
+ self.file = attributes[:'File']
48
45
  end
49
- if attributes.has_key?(:'sheetName')
50
- self.sheet_name = attributes[:'sheetName']
51
- end
52
- if attributes.has_key?(:'pictureIndex')
53
- self.picture_index = attributes[:'pictureIndex']
54
- end
55
- if attributes.has_key?(:'folder')
56
- self.folder = attributes[:'folder']
57
- end
58
- if attributes.has_key?(:'storageName')
59
- self.storage_name = attributes[:'storageName']
46
+ if attributes.has_key?(:'format')
47
+ self.format = attributes[:'format']
60
48
  end
61
49
 
62
50
  end
63
51
  # Attribute mapping from ruby-style variable name to JSON key.
64
52
  def self.attribute_map
65
53
  {
66
- :'name' => :'name',
67
- :'sheet_name' => :'sheetName',
68
- :'picture_index' => :'pictureIndex',
69
- :'folder' => :'folder',
70
- :'storage_name' => :'storageName'
54
+ :'file' => :'File',
55
+ :'format' => :'format'
71
56
  }
72
57
  end
73
58
 
74
59
  # Attribute type mapping.
75
60
  def self.swagger_types
76
61
  {
77
- :'name' => :'String',
78
- :'sheet_name' => :'String',
79
- :'picture_index' => :'Integer',
80
- :'folder' => :'String',
81
- :'storage_name' => :'String'
62
+ :'file' => :'Hash',
63
+ :'format' => :'String'
82
64
  }
83
65
  end
84
66
 
85
67
  def create_http_request(api_client,opts = {})
86
68
  if api_client.config.debugging
87
- api_client.config.logger.debug "Calling API: CellsApi.get_extract_barcodes ..."
69
+ api_client.config.logger.debug "Calling API: CellsApi.post_repair ..."
88
70
  end
89
71
  api_client.request_token_if_needed
90
- # verify the required parameter 'name' is set
91
- if api_client.config.client_side_validation && name.nil?
92
- fail ArgumentError, "Missing the required parameter 'name' when calling CellsApi.get_extract_barcodes "
93
- end
94
- # verify the required parameter 'sheet_name' is set
95
- if api_client.config.client_side_validation && sheet_name.nil?
96
- fail ArgumentError, "Missing the required parameter 'sheet_name' when calling CellsApi.get_extract_barcodes "
97
- end
98
- # verify the required parameter 'picture_index' is set
99
- if api_client.config.client_side_validation && picture_index.nil?
100
- fail ArgumentError, "Missing the required parameter 'picture_index' when calling CellsApi.get_extract_barcodes "
72
+ # verify the required parameter 'file' is set
73
+ if api_client.config.client_side_validation && file.nil?
74
+ fail ArgumentError, "Missing the required parameter 'file' when calling CellsApi.post_repair "
101
75
  end
102
76
 
103
77
  # resource path
104
- local_var_path = "/cells/{name}/worksheets/{sheetName}/pictures/{pictureIndex}/recognize".sub('{' + 'name' + '}', name.to_s).sub('{' + 'sheetName' + '}', sheet_name.to_s).sub('{' + 'pictureIndex' + '}', picture_index.to_s)
78
+ local_var_path = "/cells/repair"
105
79
  # query parameters
106
80
  query_params = {}
107
- query_params[:'folder'] = self.folder if !self.folder.nil?
108
- query_params[:'storageName'] = self.storage_name if !self.storage_name.nil?
81
+ query_params[:'format'] = self.format if !self.format.nil?
109
82
 
110
83
  # header parameters
111
84
  header_params = {}
@@ -117,19 +90,25 @@ module AsposeCellsCloud
117
90
  # form parameters
118
91
  form_params = {}
119
92
  post_body = nil
93
+ if(!file.nil?)
94
+ file.each do |filename , context|
95
+ form_params[filename] = context
96
+ end
97
+ end
98
+ header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
120
99
 
121
100
 
122
101
  #auth_names = []
123
102
  auth_names = ['JWT']
124
- data, status_code, headers = api_client.call_api(:GET, local_var_path,
103
+ data, status_code, headers = api_client.call_api(:POST, local_var_path,
125
104
  :header_params => header_params,
126
105
  :query_params => query_params,
127
106
  :form_params => form_params,
128
107
  :body => post_body,
129
108
  :auth_names => auth_names,
130
- :return_type => 'BarcodeResponseList')
109
+ :return_type => 'FilesResult')
131
110
  if api_client.config.debugging
132
- api_client.config.logger.debug "API called: Specification.Name>Api.get_extract_barcodes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
111
+ api_client.config.logger.debug "API called: Specification.Name>Api.post_repair\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
133
112
  end
134
113
  return data, status_code, headers
135
114
  end
@@ -27,5 +27,5 @@
27
27
 
28
28
 
29
29
  module AsposeCellsCloud
30
- VERSION = "23.6"
30
+ VERSION = "23.7"
31
31
  end
@@ -420,7 +420,6 @@ require 'aspose_cells_cloud/requests/post_batch_protect_request'
420
420
  require 'aspose_cells_cloud/requests/post_batch_lock_request'
421
421
  require 'aspose_cells_cloud/requests/post_batch_unlock_request'
422
422
  require 'aspose_cells_cloud/requests/post_batch_split_request'
423
- require 'aspose_cells_cloud/requests/get_extract_barcodes_request'
424
423
  require 'aspose_cells_cloud/requests/post_clear_contents_request'
425
424
  require 'aspose_cells_cloud/requests/post_clear_formats_request'
426
425
  require 'aspose_cells_cloud/requests/post_update_worksheet_range_style_request'
@@ -530,6 +529,7 @@ require 'aspose_cells_cloud/requests/post_import_request'
530
529
  require 'aspose_cells_cloud/requests/post_watermark_request'
531
530
  require 'aspose_cells_cloud/requests/post_clear_objects_request'
532
531
  require 'aspose_cells_cloud/requests/post_reverse_request'
532
+ require 'aspose_cells_cloud/requests/post_repair_request'
533
533
  require 'aspose_cells_cloud/requests/post_rotate_request'
534
534
  require 'aspose_cells_cloud/requests/post_metadata_request'
535
535
  require 'aspose_cells_cloud/requests/get_metadata_request'
@@ -3373,6 +3373,62 @@ describe 'CellsApi' do
3373
3373
  @instance.post_clear_objects(request);
3374
3374
  end
3375
3375
  end
3376
+ describe 'post_repair_xlsx test' do
3377
+ it "should work" do
3378
+ book1_xlsx = 'Book1.xlsx'
3379
+
3380
+ format = "xlsx"
3381
+
3382
+
3383
+ mapFiles = { }
3384
+ mapFiles[book1_xlsx]= ::File.open(File.expand_path("TestData/"+book1_xlsx),"r")
3385
+ request = AsposeCellsCloud::PostRepairRequest.new(:File=>mapFiles,:format=>format);
3386
+ @instance.post_repair(request);
3387
+ end
3388
+ end
3389
+
3390
+ describe 'post_repair_pdf test' do
3391
+ it "should work" do
3392
+ book1_xlsx = 'Book1.xlsx'
3393
+
3394
+ format = "pdf"
3395
+
3396
+
3397
+ mapFiles = { }
3398
+ mapFiles[book1_xlsx]= ::File.open(File.expand_path("TestData/"+book1_xlsx),"r")
3399
+ request = AsposeCellsCloud::PostRepairRequest.new(:File=>mapFiles,:format=>format);
3400
+ @instance.post_repair(request);
3401
+ end
3402
+ end
3403
+
3404
+ describe 'post_repair_csv test' do
3405
+ it "should work" do
3406
+ book1_xlsx = 'Book1.xlsx'
3407
+
3408
+ format = "csv"
3409
+
3410
+
3411
+ mapFiles = { }
3412
+ mapFiles[book1_xlsx]= ::File.open(File.expand_path("TestData/"+book1_xlsx),"r")
3413
+ request = AsposeCellsCloud::PostRepairRequest.new(:File=>mapFiles,:format=>format);
3414
+ @instance.post_repair(request);
3415
+ end
3416
+ end
3417
+
3418
+ describe 'post_repair_png test' do
3419
+ it "should work" do
3420
+ book1_xlsx = 'Book1.xlsx'
3421
+
3422
+ format = "png"
3423
+
3424
+
3425
+ mapFiles = { }
3426
+ mapFiles[book1_xlsx]= ::File.open(File.expand_path("TestData/"+book1_xlsx),"r")
3427
+ request = AsposeCellsCloud::PostRepairRequest.new(:File=>mapFiles,:format=>format);
3428
+ @instance.post_repair(request);
3429
+ end
3430
+ end
3431
+
3376
3432
 
3377
3433
  describe 'post_reverse_rows_pdf test' do
3378
3434
  it "should work" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aspose_cells_cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: '23.6'
4
+ version: '23.7'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aspose Cells Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-30 00:00:00.000000000 Z
11
+ date: 2023-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -679,7 +679,6 @@ files:
679
679
  - lib/aspose_cells_cloud/requests/get_disc_usage_request.rb
680
680
  - lib/aspose_cells_cloud/requests/get_document_properties_request.rb
681
681
  - lib/aspose_cells_cloud/requests/get_document_property_request.rb
682
- - lib/aspose_cells_cloud/requests/get_extract_barcodes_request.rb
683
682
  - lib/aspose_cells_cloud/requests/get_file_versions_request.rb
684
683
  - lib/aspose_cells_cloud/requests/get_files_list_request.rb
685
684
  - lib/aspose_cells_cloud/requests/get_footer_request.rb
@@ -808,6 +807,7 @@ files:
808
807
  - lib/aspose_cells_cloud/requests/post_protect_request.rb
809
808
  - lib/aspose_cells_cloud/requests/post_protect_workbook_request.rb
810
809
  - lib/aspose_cells_cloud/requests/post_rename_worksheet_request.rb
810
+ - lib/aspose_cells_cloud/requests/post_repair_request.rb
811
811
  - lib/aspose_cells_cloud/requests/post_replace_request.rb
812
812
  - lib/aspose_cells_cloud/requests/post_reverse_request.rb
813
813
  - lib/aspose_cells_cloud/requests/post_rotate_request.rb
@@ -929,7 +929,6 @@ files:
929
929
  - lib/aspose_cells_cloud/version.rb
930
930
  - spec/api/auto_filter_controller_spec.rb
931
931
  - spec/api/batch_controller_spec.rb
932
- - spec/api/cells_barcodes_controller_spec.rb
933
932
  - spec/api/cells_controller_spec.rb
934
933
  - spec/api/cells_status_controller_spec.rb
935
934
  - spec/api/chart_area_controller_spec.rb
@@ -1,31 +0,0 @@
1
- require 'spec_helper'
2
- require 'json'
3
-
4
- describe 'CellsApi' do
5
- before do
6
- @instance = AsposeCellsCloud::CellsApi.new($client_id,$client_secret,$api_version,$baseurl)
7
- $VERBOSE = nil
8
- end
9
-
10
- after do
11
- # run after each test
12
- end
13
-
14
- describe 'get_extract_barcodes test' do
15
- it "should work" do
16
- remote_folder = 'TestData/In'
17
-
18
- local_name = 'Book1.xlsx'
19
- remote_name = 'Book1.xlsx'
20
-
21
-
22
- mapFiles = { }
23
- mapFiles[local_name] = ::File.open(File.expand_path("TestData/"+local_name),"r")
24
-
25
- uploadrequest = AsposeCellsCloud::UploadFileRequest.new( { :UploadFiles=>mapFiles,:path=>remote_folder })
26
- @instance.upload_file(uploadrequest)
27
- request = AsposeCellsCloud::GetExtractBarcodesRequest.new(:name=>remote_name,:sheetName=>'Sheet8',:pictureIndex=>0,:folder=>remote_folder);
28
- @instance.get_extract_barcodes(request);
29
- end
30
- end
31
- end