aspose_pdf_cloud 22.8.0 → 22.9.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 48448df14d6d43a5543df3eacde41d6acddf44554ef94245c1c482dce599bb5d
4
- data.tar.gz: 71507df89cf53e1fc0bf68d99c3e60a4a709d5ab320fc29ab070e066610deeb3
3
+ metadata.gz: 668c2b0ed0462e28a63e234cb9f0e99feffe35924db0113b0abd06cf075f2560
4
+ data.tar.gz: 3581fb9e287e0d90d3895eccec39393b3ebfff465e5971b9986970b51413c06e
5
5
  SHA512:
6
- metadata.gz: 855ad2f7955a9218b5c8bdca1ff636fc2817c0f2ec5d531cd19f16544394cfc4a4154e3dcdfa9bfff4fa8e246d6e2682415813ec5beb3561693a1db1a45738fc
7
- data.tar.gz: 22aeef53c672ca393039f174d82351e349aca041ee300e54b83e7343d44a988b4ef31550b7a1435f4182702b84b9b2d0953d976ed1b053d3e4b454aae3c9c462
6
+ metadata.gz: 8613ab617ce249deef3b122c1ff2197f0a7119d0c652f8b3015a1678df51599de256be75c3882fa244ef2f5e96bbf0ca268b6edda1e6f9dbeec23910f23e3925
7
+ data.tar.gz: 47090add79f803b48b69e1731f5d781b21e70e003801f21a4cd2d5efd8ace6709ca5c352ddfcb8c8f35a68b00b0a757fc834457c6d0609d1438e965eae33dbd1
data/README.md CHANGED
@@ -29,7 +29,7 @@ XLS, XLSX, PPTX, DOC, DOCX, MobiXML, JPEG, EMF, PNG, BMP, GIF, TIFF, Text
29
29
  ## Read PDF Formats
30
30
  MHT, PCL, PS, XSLFO, MD
31
31
 
32
- ## Enhancements in Version 22.8
32
+ ## Enhancements in Version 22.9
33
33
  - A new version of Aspose.PDF Cloud was prepared using the latest version of Aspose.PDF for .NET.
34
34
 
35
35
  ## Installation
@@ -45,15 +45,15 @@ gem build aspose_pdf_cloud.gemspec
45
45
  Then either install the gem locally:
46
46
 
47
47
  ```shell
48
- gem install ./aspose_pdf_cloud-22.8.0.gem
48
+ gem install ./aspose_pdf_cloud-22.9.0.gem
49
49
  ```
50
- (for development, run `gem install --dev ./aspose_pdf_cloud-22.8.0.gem` to install the development dependencies)
50
+ (for development, run `gem install --dev ./aspose_pdf_cloud-22.9.0.gem` to install the development dependencies)
51
51
 
52
52
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
53
53
 
54
54
  Finally add this to the Gemfile:
55
55
 
56
- gem 'aspose_pdf_cloud', '~> 22.8.0'
56
+ gem 'aspose_pdf_cloud', '~> 22.9.0'
57
57
 
58
58
  ### Install from Git
59
59
 
@@ -409,7 +409,6 @@ module AsposePdfCloud
409
409
  end
410
410
  end
411
411
 
412
-
413
412
  # Request access and refresh tokens if needed
414
413
  def request_token_if_needed
415
414
  # check token exists
@@ -419,7 +418,9 @@ module AsposePdfCloud
419
418
 
420
419
  # resource path
421
420
  local_var_path = "/connect/token"
422
- url = build_request_url(local_var_path).gsub('/v3.0', '')
421
+ tokenUrl = build_request_url(local_var_path).gsub('/v3.0', '')
422
+ print("\nbase_url: " + config.base_url + "\n")
423
+ print("\ntokenUrl: " + tokenUrl + "\n")
423
424
 
424
425
  # header parameters
425
426
  header_params = {}
@@ -435,21 +436,18 @@ module AsposePdfCloud
435
436
 
436
437
  body = {}
437
438
 
438
-
439
439
  req_opts = {
440
440
  :headers => header_params,
441
441
  :params => query_params,
442
442
  :body => body
443
443
  }
444
444
 
445
-
446
445
  req_body = build_request_body(header_params, form_params, body)
447
446
  req_opts.update :body => req_body
448
447
 
449
448
  req_opts[:params] = query_params
450
449
 
451
-
452
- conn = Faraday.new url, {:params => query_params, :headers => header_params} do |f|
450
+ conn = Faraday.new tokenUrl, {:params => query_params, :headers => header_params} do |f|
453
451
  f.request :multipart
454
452
  f.request :url_encoded
455
453
  f.adapter Faraday.default_adapter
@@ -459,8 +457,7 @@ module AsposePdfCloud
459
457
  req_opts[:body] = nil
460
458
  end
461
459
 
462
-
463
- response = conn.post url, form_params, req_opts[:body]
460
+ response = conn.post tokenUrl, form_params, req_opts[:body]
464
461
  data = JSON.parse("[#{response.body}]", :symbolize_names => true)[0]
465
462
 
466
463
  @config.access_token = data[:access_token]
@@ -470,7 +467,6 @@ module AsposePdfCloud
470
467
  def add_o_auth_token(req_opts)
471
468
  req_opts[:headers][:Authorization] = "Bearer " + @config.access_token
472
469
  end
473
-
474
-
470
+
475
471
  end
476
- end
472
+ end
@@ -20,5 +20,5 @@ SOFTWARE.
20
20
  =end
21
21
 
22
22
  module AsposePdfCloud
23
- VERSION = "22.8.0"
23
+ VERSION = "22.9.0"
24
24
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aspose_pdf_cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 22.8.0
4
+ version: 22.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aspose PDF Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-23 00:00:00.000000000 Z
11
+ date: 2022-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json