pdfactory-client 0.1.0 → 0.1.2

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: 73371827231fdcbb93c0b9d4df2d57f798bc86a59accfb5ad3cde403e6aa897f
4
- data.tar.gz: 8ecbbcba0c773b6f5a281396408619cc723a1840440edc67a6781adcdb7aa3e5
3
+ metadata.gz: 730d6cb54a196e710c34c34989dbf7936462bbaa79d0b24fd1aaacfc26659200
4
+ data.tar.gz: ae93ee0896a7bb048ed4251e1e4eba263438f0905f3a9be8563afcececbd0212
5
5
  SHA512:
6
- metadata.gz: 52f044f559f0efde19901815c813229ebed2867a37fd08bce5cb64a9d2adab509c7b89d8ad4ba921fe5ff15826692f0d74f6f1ff3cf2629e088862e3e647df9c
7
- data.tar.gz: d27f05d6782e6a3b149f3a4c7c5d22f3ec95c0fcbecd16014e3382aa83d2f7a62790b82ff10932dacedf676d41d5acaabaef1fa6037cb44f4e8b4725fecd5901
6
+ metadata.gz: 3e9b0d9c9f64fd8d3fe19f139099f9489c5aa28d3c2a52608310d4d1e5b6aa8142ea7b3998ab961266e2207238ea94dc341c2d69950aa0d333ff418484517add
7
+ data.tar.gz: b120b6c9c08bed40ea35a153b5b48fa8d9c190f1d194d7cef30d1a165818b37f6d4ecd5a76d9cbe479171970eda56e4c91e9d751a4b7cad73df8299120cbe006
@@ -1,3 +1,3 @@
1
1
  module PDFactory
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.2'
3
3
  end
@@ -44,7 +44,12 @@ module PDFactory
44
44
 
45
45
  def connection
46
46
  @connection ||= Faraday.new(@url) do |connection|
47
- connection.basic_auth @user, @password
47
+ if Gem::Version.new(::Faraday::VERSION) >= Gem::Version.new("2.0.0")
48
+ connection.request :authorization, :basic, @user, @password
49
+ else
50
+ connection.basic_auth @user, @password
51
+ end
52
+ connection.adapter Faraday.default_adapter
48
53
  end
49
54
  end
50
55
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pdfactory-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Cruz Horts
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-04-05 00:00:00.000000000 Z
11
+ date: 2025-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -122,8 +122,8 @@ dependencies:
122
122
  - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
- description:
126
- email:
125
+ description:
126
+ email:
127
127
  executables: []
128
128
  extensions: []
129
129
  extra_rdoc_files: []
@@ -144,7 +144,7 @@ homepage: https://github.com/dncrht/pdfactory-client
144
144
  licenses:
145
145
  - MIT
146
146
  metadata: {}
147
- post_install_message:
147
+ post_install_message:
148
148
  rdoc_options: []
149
149
  require_paths:
150
150
  - lib
@@ -159,8 +159,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
159
159
  - !ruby/object:Gem::Version
160
160
  version: '0'
161
161
  requirements: []
162
- rubygems_version: 3.0.3
163
- signing_key:
162
+ rubygems_version: 3.4.1
163
+ signing_key:
164
164
  specification_version: 4
165
165
  summary: Ruby client for PDFactory.
166
166
  test_files: []