Skip to content

Commit cd3099f

Browse files
committed
Updated sources
1 parent 6958a05 commit cd3099f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+477
-128
lines changed

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
groupdocs_viewer_cloud (23.10)
4+
groupdocs_viewer_cloud (24.2)
55
addressable (~> 2.8.0, >= 2.8.0)
66
faraday (~> 0.14.0)
77

README.md

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

1414
```
15-
gem "groupdocs_viewer_cloud", "~> 23.10"
15+
gem "groupdocs_viewer_cloud", "~> 24.2"
1616
```
1717

1818
## Getting Started

lib/groupdocs_viewer_cloud.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ------------------------------------------------------------------------------------
22
# <copyright company="Aspose Pty Ltd" file="groupdocs_viewer_cloud.rb">
3-
# Copyright (c) 2003-2023 Aspose Pty Ltd
3+
# Copyright (c) 2003-2024 Aspose Pty Ltd
44
# </copyright>
55
# <summary>
66
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -25,7 +25,7 @@
2525

2626
# Common files
2727
require_relative 'groupdocs_viewer_cloud/api_client'
28-
require_relative 'groupdocs_viewer_cloud/api_error'
28+
require_relative 'groupdocs_viewer_cloud/api_client_error'
2929
require_relative 'groupdocs_viewer_cloud/version'
3030
require_relative 'groupdocs_viewer_cloud/configuration'
3131

@@ -58,6 +58,7 @@
5858
require_relative 'groupdocs_viewer_cloud/models/page_info'
5959
require_relative 'groupdocs_viewer_cloud/models/page_rotation'
6060
require_relative 'groupdocs_viewer_cloud/models/pdf_document_options'
61+
require_relative 'groupdocs_viewer_cloud/models/pdf_optimization_options'
6162
require_relative 'groupdocs_viewer_cloud/models/pdf_view_info'
6263
require_relative 'groupdocs_viewer_cloud/models/project_management_options'
6364
require_relative 'groupdocs_viewer_cloud/models/project_management_view_info'

lib/groupdocs_viewer_cloud/api/file_api.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -----------------------------------------------------------------------------------
22
# <copyright company="Aspose Pty Ltd" file="file.rb">
3-
# Copyright (c) 2003-2023 Aspose Pty Ltd
3+
# Copyright (c) 2003-2024 Aspose Pty Ltd
44
# </copyright>
55
# <summary>
66
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -449,7 +449,7 @@ def upload_file_with_http_info(request)
449449
#
450450
# --------------------------------------------------------------------------------------------------------------------
451451
# <copyright company="Aspose Pty Ltd" file="copy_file_request.rb">
452-
# Copyright (c) 2003-2023 Aspose Pty Ltd
452+
# Copyright (c) 2003-2024 Aspose Pty Ltd
453453
# </copyright>
454454
# <summary>
455455
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -510,7 +510,7 @@ def initialize(src_path, dest_path, src_storage_name = nil, dest_storage_name =
510510
#
511511
# --------------------------------------------------------------------------------------------------------------------
512512
# <copyright company="Aspose Pty Ltd" file="delete_file_request.rb">
513-
# Copyright (c) 2003-2023 Aspose Pty Ltd
513+
# Copyright (c) 2003-2024 Aspose Pty Ltd
514514
# </copyright>
515515
# <summary>
516516
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -563,7 +563,7 @@ def initialize(path, storage_name = nil, version_id = nil)
563563
#
564564
# --------------------------------------------------------------------------------------------------------------------
565565
# <copyright company="Aspose Pty Ltd" file="download_file_request.rb">
566-
# Copyright (c) 2003-2023 Aspose Pty Ltd
566+
# Copyright (c) 2003-2024 Aspose Pty Ltd
567567
# </copyright>
568568
# <summary>
569569
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -616,7 +616,7 @@ def initialize(path, storage_name = nil, version_id = nil)
616616
#
617617
# --------------------------------------------------------------------------------------------------------------------
618618
# <copyright company="Aspose Pty Ltd" file="move_file_request.rb">
619-
# Copyright (c) 2003-2023 Aspose Pty Ltd
619+
# Copyright (c) 2003-2024 Aspose Pty Ltd
620620
# </copyright>
621621
# <summary>
622622
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -677,7 +677,7 @@ def initialize(src_path, dest_path, src_storage_name = nil, dest_storage_name =
677677
#
678678
# --------------------------------------------------------------------------------------------------------------------
679679
# <copyright company="Aspose Pty Ltd" file="upload_file_request.rb">
680-
# Copyright (c) 2003-2023 Aspose Pty Ltd
680+
# Copyright (c) 2003-2024 Aspose Pty Ltd
681681
# </copyright>
682682
# <summary>
683683
# Permission is hereby granted, free of charge, to any person obtaining a copy

lib/groupdocs_viewer_cloud/api/folder_api.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -----------------------------------------------------------------------------------
22
# <copyright company="Aspose Pty Ltd" file="folder.rb">
3-
# Copyright (c) 2003-2023 Aspose Pty Ltd
3+
# Copyright (c) 2003-2024 Aspose Pty Ltd
44
# </copyright>
55
# <summary>
66
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -430,7 +430,7 @@ def move_folder_with_http_info(request)
430430
#
431431
# --------------------------------------------------------------------------------------------------------------------
432432
# <copyright company="Aspose Pty Ltd" file="copy_folder_request.rb">
433-
# Copyright (c) 2003-2023 Aspose Pty Ltd
433+
# Copyright (c) 2003-2024 Aspose Pty Ltd
434434
# </copyright>
435435
# <summary>
436436
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -487,7 +487,7 @@ def initialize(src_path, dest_path, src_storage_name = nil, dest_storage_name =
487487
#
488488
# --------------------------------------------------------------------------------------------------------------------
489489
# <copyright company="Aspose Pty Ltd" file="create_folder_request.rb">
490-
# Copyright (c) 2003-2023 Aspose Pty Ltd
490+
# Copyright (c) 2003-2024 Aspose Pty Ltd
491491
# </copyright>
492492
# <summary>
493493
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -536,7 +536,7 @@ def initialize(path, storage_name = nil)
536536
#
537537
# --------------------------------------------------------------------------------------------------------------------
538538
# <copyright company="Aspose Pty Ltd" file="delete_folder_request.rb">
539-
# Copyright (c) 2003-2023 Aspose Pty Ltd
539+
# Copyright (c) 2003-2024 Aspose Pty Ltd
540540
# </copyright>
541541
# <summary>
542542
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -589,7 +589,7 @@ def initialize(path, storage_name = nil, recursive = nil)
589589
#
590590
# --------------------------------------------------------------------------------------------------------------------
591591
# <copyright company="Aspose Pty Ltd" file="get_files_list_request.rb">
592-
# Copyright (c) 2003-2023 Aspose Pty Ltd
592+
# Copyright (c) 2003-2024 Aspose Pty Ltd
593593
# </copyright>
594594
# <summary>
595595
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -638,7 +638,7 @@ def initialize(path, storage_name = nil)
638638
#
639639
# --------------------------------------------------------------------------------------------------------------------
640640
# <copyright company="Aspose Pty Ltd" file="move_folder_request.rb">
641-
# Copyright (c) 2003-2023 Aspose Pty Ltd
641+
# Copyright (c) 2003-2024 Aspose Pty Ltd
642642
# </copyright>
643643
# <summary>
644644
# Permission is hereby granted, free of charge, to any person obtaining a copy

lib/groupdocs_viewer_cloud/api/info_api.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -----------------------------------------------------------------------------------
22
# <copyright company="Aspose Pty Ltd" file="info.rb">
3-
# Copyright (c) 2003-2023 Aspose Pty Ltd
3+
# Copyright (c) 2003-2024 Aspose Pty Ltd
44
# </copyright>
55
# <summary>
66
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -222,7 +222,7 @@ def get_supported_file_formats_with_http_info()
222222
#
223223
# --------------------------------------------------------------------------------------------------------------------
224224
# <copyright company="Aspose Pty Ltd" file="get_info_request.rb">
225-
# Copyright (c) 2003-2023 Aspose Pty Ltd
225+
# Copyright (c) 2003-2024 Aspose Pty Ltd
226226
# </copyright>
227227
# <summary>
228228
# Permission is hereby granted, free of charge, to any person obtaining a copy

lib/groupdocs_viewer_cloud/api/license_api.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -----------------------------------------------------------------------------------
22
# <copyright company="Aspose Pty Ltd" file="license.rb">
3-
# Copyright (c) 2003-2023 Aspose Pty Ltd
3+
# Copyright (c) 2003-2024 Aspose Pty Ltd
44
# </copyright>
55
# <summary>
66
# Permission is hereby granted, free of charge, to any person obtaining a copy

lib/groupdocs_viewer_cloud/api/storage_api.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -----------------------------------------------------------------------------------
22
# <copyright company="Aspose Pty Ltd" file="storage.rb">
3-
# Copyright (c) 2003-2023 Aspose Pty Ltd
3+
# Copyright (c) 2003-2024 Aspose Pty Ltd
44
# </copyright>
55
# <summary>
66
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -350,7 +350,7 @@ def storage_exists_with_http_info(request)
350350
#
351351
# --------------------------------------------------------------------------------------------------------------------
352352
# <copyright company="Aspose Pty Ltd" file="get_disc_usage_request.rb">
353-
# Copyright (c) 2003-2023 Aspose Pty Ltd
353+
# Copyright (c) 2003-2024 Aspose Pty Ltd
354354
# </copyright>
355355
# <summary>
356356
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -395,7 +395,7 @@ def initialize(storage_name = nil)
395395
#
396396
# --------------------------------------------------------------------------------------------------------------------
397397
# <copyright company="Aspose Pty Ltd" file="get_file_versions_request.rb">
398-
# Copyright (c) 2003-2023 Aspose Pty Ltd
398+
# Copyright (c) 2003-2024 Aspose Pty Ltd
399399
# </copyright>
400400
# <summary>
401401
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -444,7 +444,7 @@ def initialize(path, storage_name = nil)
444444
#
445445
# --------------------------------------------------------------------------------------------------------------------
446446
# <copyright company="Aspose Pty Ltd" file="object_exists_request.rb">
447-
# Copyright (c) 2003-2023 Aspose Pty Ltd
447+
# Copyright (c) 2003-2024 Aspose Pty Ltd
448448
# </copyright>
449449
# <summary>
450450
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -497,7 +497,7 @@ def initialize(path, storage_name = nil, version_id = nil)
497497
#
498498
# --------------------------------------------------------------------------------------------------------------------
499499
# <copyright company="Aspose Pty Ltd" file="storage_exists_request.rb">
500-
# Copyright (c) 2003-2023 Aspose Pty Ltd
500+
# Copyright (c) 2003-2024 Aspose Pty Ltd
501501
# </copyright>
502502
# <summary>
503503
# Permission is hereby granted, free of charge, to any person obtaining a copy

lib/groupdocs_viewer_cloud/api/view_api.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -----------------------------------------------------------------------------------
22
# <copyright company="Aspose Pty Ltd" file="view.rb">
3-
# Copyright (c) 2003-2023 Aspose Pty Ltd
3+
# Copyright (c) 2003-2024 Aspose Pty Ltd
44
# </copyright>
55
# <summary>
66
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -224,7 +224,7 @@ def delete_view_with_http_info(request)
224224
#
225225
# --------------------------------------------------------------------------------------------------------------------
226226
# <copyright company="Aspose Pty Ltd" file="create_view_request.rb">
227-
# Copyright (c) 2003-2023 Aspose Pty Ltd
227+
# Copyright (c) 2003-2024 Aspose Pty Ltd
228228
# </copyright>
229229
# <summary>
230230
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -269,7 +269,7 @@ def initialize(view_options)
269269
#
270270
# --------------------------------------------------------------------------------------------------------------------
271271
# <copyright company="Aspose Pty Ltd" file="delete_view_request.rb">
272-
# Copyright (c) 2003-2023 Aspose Pty Ltd
272+
# Copyright (c) 2003-2024 Aspose Pty Ltd
273273
# </copyright>
274274
# <summary>
275275
# Permission is hereby granted, free of charge, to any person obtaining a copy

lib/groupdocs_viewer_cloud/api_client.rb

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -----------------------------------------------------------------------------------
22
# <copyright company="Aspose Pty Ltd" file="api_client.rb">
3-
# Copyright (c) 2003-2023 Aspose Pty Ltd
3+
# Copyright (c) 2003-2024 Aspose Pty Ltd
44
# </copyright>
55
# <summary>
66
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -28,10 +28,9 @@
2828
require 'logger'
2929
require 'tempfile'
3030
require 'faraday'
31-
require 'mimemagic'
3231
require 'addressable'
3332
require_relative 'version'
34-
require_relative 'api_error'
33+
require_relative 'api_client_error'
3534

3635
module GroupDocsViewerCloud
3736
#
@@ -69,7 +68,7 @@ def call_api(http_method, path, opts = {})
6968
end
7069

7170
unless response.success?
72-
raise ApiError.new(:code => response.status, :response_body => response.body)
71+
raise ApiClientError.new(:code => response.status, :response_body => response.body)
7372
end
7473

7574
data = deserialize(response, opts[:return_type]) if opts[:return_type]
@@ -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

0 commit comments

Comments
 (0)