gibbon 3.4.2 → 3.4.3

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of gibbon might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b08fc220d6140c2b7634ace5b43a862b3d6ad856bc21ff5dd94b31727ec81a54
4
- data.tar.gz: 47f925a06a3a95fd230b649c67349e32f0d26b8b14502df86e3f97c7c6b8f770
3
+ metadata.gz: cbf98318183318809515680772c41112c958c6bbe179cca742be0ede39a7ff00
4
+ data.tar.gz: b5ef43d8313654cd65cc57da8698189cf559200e89da98cd269b9e3973d02b9e
5
5
  SHA512:
6
- metadata.gz: 7524c7d1470d85a7d7b3d1c1a08bc69e547d36e522e63334fda9c4ee3114084845816f151343c5e558c44d8c3fb51d4965f6bec9b17766c108cc583553aa14b2
7
- data.tar.gz: 4defc9bf9ed5cada0debfaff90d0ac85d0f6d1065f0d177f20a18e4a84bbb31fd7699ba4681303e499d8f98cbded76014331e287859610161572049f2aec6a1d
6
+ metadata.gz: 6c4534f315ae5d1bdf712bbdb56414ba2e96170af76c6e70dde47f1d01157e2d3707d4473be60f3a38b9cfa3ab8780694bcde7b007d5dc0919c103d5b7f69598
7
+ data.tar.gz: fe7e4f3f2c55b289ee93c8f72ce28204a55ad013c3f997f287a734e0cb7e07b2ec5ce635a9c5534f2be11e25eda8ed291365d6c7579f6fb5cbfcf2a1287f1bdf
data/CHANGELOG.md CHANGED
@@ -1,6 +1,9 @@
1
1
  ## [Unreleased][unreleased]
2
2
 
3
3
 
4
+ ## [3.4.3] - 2022-01-19
5
+ - Support for Faraday 2.0, which requires new syntax for basic auth
6
+
4
7
  ## [3.4.2] - 2021-09-21
5
8
  - Fixing the deprecation warning in version 3.4.2 requires moving to a minimum version of Faraday 1.0.0 (more than 2 years old).
6
9
 
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2010-2020 Amro Mousa
1
+ Copyright (c) 2010-2022 Amro Mousa
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.markdown CHANGED
@@ -508,5 +508,5 @@ Thanks to everyone who has [contributed](https://github.com/amro/gibbon/contribu
508
508
 
509
509
  ## Copyright
510
510
 
511
- * Copyright (c) 2010-2021 Amro Mousa. See LICENSE.txt for details.
512
- * MailChimp (c) 2001-2021 The Rocket Science Group.
511
+ * Copyright (c) 2010-2022 Amro Mousa. See LICENSE.txt for details.
512
+ * MailChimp (c) 2001-2022 The Rocket Science Group.
@@ -152,9 +152,14 @@ module Gibbon
152
152
  if @request_builder.debug
153
153
  faraday.response :logger, @request_builder.logger, bodies: true
154
154
  end
155
- faraday.request :basic_auth, 'apikey', self.api_key
155
+
156
+ if Faraday::VERSION.to_i >= 2
157
+ faraday.request :authorization, :basic, 'apikey', self.api_key
158
+ else
159
+ faraday.request :basic_auth, 'apikey', self.api_key
160
+ end
156
161
  end
157
-
162
+
158
163
  client
159
164
  end
160
165
 
@@ -1,3 +1,3 @@
1
1
  module Gibbon
2
- VERSION = "3.4.2"
2
+ VERSION = "3.4.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gibbon
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.2
4
+ version: 3.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amro Mousa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-21 00:00:00.000000000 Z
11
+ date: 2022-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday