Skip to content

Commit 0e5305f

Browse files
committed
Updated sources
1 parent b124f51 commit 0e5305f

6 files changed

Lines changed: 125 additions & 9 deletions

File tree

Gemfile.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
PATH
22
remote: .
33
specs:
4-
groupdocs_conversion_cloud (23.10)
4+
groupdocs_conversion_cloud (23.12)
55
addressable (~> 2.8.0, >= 2.8.0)
66
faraday (~> 0.14.0)
77

88
GEM
99
remote: https://rubygems.org/
1010
specs:
11-
addressable (2.8.1)
11+
addressable (2.8.6)
1212
public_suffix (>= 2.0.2, < 6.0)
1313
faraday (0.14.0)
1414
multipart-post (>= 1.2, < 3)
1515
minitest (5.11.3)
16-
multipart-post (2.2.3)
16+
multipart-post (2.3.0)
1717
public_suffix (4.0.7)
1818
rake (13.0.1)
1919

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ gem install groupdocs_conversion_cloud
1212
To add dependency to your app copy following into your Gemfile and run `bundle install`:
1313

1414
```
15-
gem "groupdocs_conversion_cloud", "~> 23.10"
15+
gem "groupdocs_conversion_cloud", "~> 23.12"
1616
```
1717

1818
## Getting Started

lib/groupdocs_conversion_cloud.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252
require_relative 'groupdocs_conversion_cloud/models/supported_format'
5353
require_relative 'groupdocs_conversion_cloud/models/watermark_options'
5454
require_relative 'groupdocs_conversion_cloud/models/cad_load_options'
55-
require_relative 'groupdocs_conversion_cloud/models/csv_load_options'
5655
require_relative 'groupdocs_conversion_cloud/models/diagram_load_options'
5756
require_relative 'groupdocs_conversion_cloud/models/e_book_convert_options'
5857
require_relative 'groupdocs_conversion_cloud/models/email_load_options'
@@ -77,6 +76,7 @@
7776
require_relative 'groupdocs_conversion_cloud/models/xml_load_options'
7877
require_relative 'groupdocs_conversion_cloud/models/bmp_convert_options'
7978
require_relative 'groupdocs_conversion_cloud/models/bmp_load_options'
79+
require_relative 'groupdocs_conversion_cloud/models/csv_load_options'
8080
require_relative 'groupdocs_conversion_cloud/models/dcm_convert_options'
8181
require_relative 'groupdocs_conversion_cloud/models/dcm_load_options'
8282
require_relative 'groupdocs_conversion_cloud/models/dgn_load_options'

lib/groupdocs_conversion_cloud/api_client.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
require 'logger'
2929
require 'tempfile'
3030
require 'faraday'
31-
require 'mimemagic'
3231
require 'addressable'
3332
require_relative 'version'
3433
require_relative 'api_client_error'
@@ -281,7 +280,7 @@ def build_request_body(header_params, form_params, body)
281280
form_params.each do |key, value|
282281
case value
283282
when ::File
284-
data[key] = Faraday::UploadIO.new(value.path, MimeMagic.by_magic(value).to_s, key)
283+
data[key] = Faraday::UploadIO.new(value.path, "application/octet-stream", key)
285284
when ::Array, nil
286285
data[key] = value
287286
else

lib/groupdocs_conversion_cloud/models/csv_load_options.rb

Lines changed: 118 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,33 @@ class CsvLoadOptions
3434
# The format of input file, (\"docx\", for example). This field must be filled with correct input file format when using ConvertDirect method, which accept input file as binary stream, and, because of that, API can correctly handle LoadOptions. In regular conversion, the input file format taken from the input file name and this field ignored.
3535
attr_accessor :format
3636

37+
# Default font for Cells document. The following font will be used if a font is missing.
38+
attr_accessor :default_font
39+
40+
# Substitute specific fonts when converting Cells document.
41+
attr_accessor :font_substitutes
42+
43+
# Show grid lines when converting Excel files
44+
attr_accessor :show_grid_lines
45+
46+
# Show hidden sheets when converting Excel files
47+
attr_accessor :show_hidden_sheets
48+
49+
# If OnePagePerSheet is true the content of the sheet will be converted to one page in the PDF document. Default value is true.
50+
attr_accessor :one_page_per_sheet
51+
52+
# Convert specific range when converting to other than cells format. Example: \"D1:F8\"
53+
attr_accessor :convert_range
54+
55+
# Skips empty rows and columns when converting. Default is True.
56+
attr_accessor :skip_empty_rows_and_columns
57+
58+
# Set password to unprotect protected document
59+
attr_accessor :password
60+
61+
# Hide comments
62+
attr_accessor :hide_comments
63+
3764
# Delimiter of a Csv file
3865
attr_accessor :separator
3966

@@ -56,6 +83,15 @@ class CsvLoadOptions
5683
def self.attribute_map
5784
{
5885
:'format' => :'Format',
86+
:'default_font' => :'DefaultFont',
87+
:'font_substitutes' => :'FontSubstitutes',
88+
:'show_grid_lines' => :'ShowGridLines',
89+
:'show_hidden_sheets' => :'ShowHiddenSheets',
90+
:'one_page_per_sheet' => :'OnePagePerSheet',
91+
:'convert_range' => :'ConvertRange',
92+
:'skip_empty_rows_and_columns' => :'SkipEmptyRowsAndColumns',
93+
:'password' => :'Password',
94+
:'hide_comments' => :'HideComments',
5995
:'separator' => :'Separator',
6096
:'is_multi_encoded' => :'IsMultiEncoded',
6197
:'has_formula' => :'HasFormula',
@@ -69,6 +105,15 @@ def self.attribute_map
69105
def self.swagger_types
70106
{
71107
:'format' => :'String',
108+
:'default_font' => :'String',
109+
:'font_substitutes' => :'Hash<String, String>',
110+
:'show_grid_lines' => :'BOOLEAN',
111+
:'show_hidden_sheets' => :'BOOLEAN',
112+
:'one_page_per_sheet' => :'BOOLEAN',
113+
:'convert_range' => :'String',
114+
:'skip_empty_rows_and_columns' => :'BOOLEAN',
115+
:'password' => :'String',
116+
:'hide_comments' => :'BOOLEAN',
72117
:'separator' => :'String',
73118
:'is_multi_encoded' => :'BOOLEAN',
74119
:'has_formula' => :'BOOLEAN',
@@ -90,6 +135,44 @@ def initialize(attributes = {})
90135
self.format = attributes[:'Format']
91136
end
92137

138+
if attributes.key?(:'DefaultFont')
139+
self.default_font = attributes[:'DefaultFont']
140+
end
141+
142+
if attributes.key?(:'FontSubstitutes')
143+
if (value = attributes[:'FontSubstitutes']).is_a?(Hash)
144+
self.font_substitutes = value
145+
end
146+
end
147+
148+
if attributes.key?(:'ShowGridLines')
149+
self.show_grid_lines = attributes[:'ShowGridLines']
150+
end
151+
152+
if attributes.key?(:'ShowHiddenSheets')
153+
self.show_hidden_sheets = attributes[:'ShowHiddenSheets']
154+
end
155+
156+
if attributes.key?(:'OnePagePerSheet')
157+
self.one_page_per_sheet = attributes[:'OnePagePerSheet']
158+
end
159+
160+
if attributes.key?(:'ConvertRange')
161+
self.convert_range = attributes[:'ConvertRange']
162+
end
163+
164+
if attributes.key?(:'SkipEmptyRowsAndColumns')
165+
self.skip_empty_rows_and_columns = attributes[:'SkipEmptyRowsAndColumns']
166+
end
167+
168+
if attributes.key?(:'Password')
169+
self.password = attributes[:'Password']
170+
end
171+
172+
if attributes.key?(:'HideComments')
173+
self.hide_comments = attributes[:'HideComments']
174+
end
175+
93176
if attributes.key?(:'Separator')
94177
self.separator = attributes[:'Separator']
95178
end
@@ -120,6 +203,26 @@ def initialize(attributes = {})
120203
# @return Array for valid properies with the reasons
121204
def list_invalid_properties
122205
invalid_properties = []
206+
if @show_grid_lines.nil?
207+
invalid_properties.push("invalid value for 'show_grid_lines', show_grid_lines cannot be nil.")
208+
end
209+
210+
if @show_hidden_sheets.nil?
211+
invalid_properties.push("invalid value for 'show_hidden_sheets', show_hidden_sheets cannot be nil.")
212+
end
213+
214+
if @one_page_per_sheet.nil?
215+
invalid_properties.push("invalid value for 'one_page_per_sheet', one_page_per_sheet cannot be nil.")
216+
end
217+
218+
if @skip_empty_rows_and_columns.nil?
219+
invalid_properties.push("invalid value for 'skip_empty_rows_and_columns', skip_empty_rows_and_columns cannot be nil.")
220+
end
221+
222+
if @hide_comments.nil?
223+
invalid_properties.push("invalid value for 'hide_comments', hide_comments cannot be nil.")
224+
end
225+
123226
if @separator.nil?
124227
invalid_properties.push("invalid value for 'separator', separator cannot be nil.")
125228
end
@@ -146,6 +249,11 @@ def list_invalid_properties
146249
# Check to see if the all the properties in the model are valid
147250
# @return true if the model is valid
148251
def valid?
252+
return false if @show_grid_lines.nil?
253+
return false if @show_hidden_sheets.nil?
254+
return false if @one_page_per_sheet.nil?
255+
return false if @skip_empty_rows_and_columns.nil?
256+
return false if @hide_comments.nil?
149257
return false if @separator.nil?
150258
return false if @is_multi_encoded.nil?
151259
return false if @has_formula.nil?
@@ -160,6 +268,15 @@ def ==(other)
160268
return true if self.equal?(other)
161269
self.class == other.class &&
162270
format == other.format &&
271+
default_font == other.default_font &&
272+
font_substitutes == other.font_substitutes &&
273+
show_grid_lines == other.show_grid_lines &&
274+
show_hidden_sheets == other.show_hidden_sheets &&
275+
one_page_per_sheet == other.one_page_per_sheet &&
276+
convert_range == other.convert_range &&
277+
skip_empty_rows_and_columns == other.skip_empty_rows_and_columns &&
278+
password == other.password &&
279+
hide_comments == other.hide_comments &&
163280
separator == other.separator &&
164281
is_multi_encoded == other.is_multi_encoded &&
165282
has_formula == other.has_formula &&
@@ -177,7 +294,7 @@ def eql?(other)
177294
# Calculates hash code according to all attributes.
178295
# @return [Fixnum] Hash code
179296
def hash
180-
[format, separator, is_multi_encoded, has_formula, convert_numeric_data, convert_date_time_data, encoding].hash
297+
[format, default_font, font_substitutes, show_grid_lines, show_hidden_sheets, one_page_per_sheet, convert_range, skip_empty_rows_and_columns, password, hide_comments, separator, is_multi_encoded, has_formula, convert_numeric_data, convert_date_time_data, encoding].hash
181298
end
182299

183300
# Downcases first letter.

lib/groupdocs_conversion_cloud/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@
2525
# --------------------------------------------------------------------------------------------------------------------
2626
#
2727
module GroupDocsConversionCloud
28-
VERSION = "23.10".freeze
28+
VERSION = "23.12".freeze
2929
end

0 commit comments

Comments
 (0)