gibbon 3.4.0 → 3.4.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 +4 -4
- data/CHANGELOG.md +6 -0
- data/README.markdown +6 -4
- data/gibbon.gemspec +1 -1
- data/lib/gibbon/api_request.rb +2 -1
- data/lib/gibbon/request.rb +4 -0
- data/lib/gibbon/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b08fc220d6140c2b7634ace5b43a862b3d6ad856bc21ff5dd94b31727ec81a54
|
|
4
|
+
data.tar.gz: 47f925a06a3a95fd230b649c67349e32f0d26b8b14502df86e3f97c7c6b8f770
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7524c7d1470d85a7d7b3d1c1a08bc69e547d36e522e63334fda9c4ee3114084845816f151343c5e558c44d8c3fb51d4965f6bec9b17766c108cc583553aa14b2
|
|
7
|
+
data.tar.gz: 4defc9bf9ed5cada0debfaff90d0ac85d0f6d1065f0d177f20a18e4a84bbb31fd7699ba4681303e499d8f98cbded76014331e287859610161572049f2aec6a1d
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
## [Unreleased][unreleased]
|
|
2
2
|
|
|
3
3
|
|
|
4
|
+
## [3.4.2] - 2021-09-21
|
|
5
|
+
- 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
|
+
|
|
7
|
+
## [3.4.1] - 2021-09-12
|
|
8
|
+
- Fix deprecation warning for upcoming versions of Faraday (2.x.x)
|
|
9
|
+
|
|
4
10
|
## [3.4.0] - 2021-03-12
|
|
5
11
|
- Support for Faraday 1.x.x and higer
|
|
6
12
|
|
data/README.markdown
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Gibbon is an API wrapper for MailChimp's [API](http://kb.mailchimp.com/api/).
|
|
4
4
|
|
|
5
|
-
[](https://travis-ci.com/amro/gibbon)
|
|
5
|
+
[](https://app.travis-ci.com/github/amro/gibbon)
|
|
6
6
|
|
|
7
7
|
## Important Notes
|
|
8
8
|
|
|
@@ -38,7 +38,7 @@ gibbon.open_timeout = 30
|
|
|
38
38
|
You can read about `timeout` and `open_timeout` in the [Net::HTTP](https://ruby-doc.org/stdlib-2.3.3/libdoc/net/http/rdoc/Net/HTTP.html) doc.
|
|
39
39
|
|
|
40
40
|
Now you can make requests using the resources defined in [MailChimp's docs](http://kb.mailchimp.com/api/resources). Resource IDs
|
|
41
|
-
are specified inline and a `CRUD` (`create`, `retrieve
|
|
41
|
+
are specified inline and a `CRUD` (`create`, `retrieve` (or `get`), `update`, `upsert`, or `delete`) verb initiates the request. `upsert` lets you update a record, if it exists, or insert it otherwise where supported by MailChimp's API.
|
|
42
42
|
|
|
43
43
|
***Note*** `upsert` requires Gibbon version 2.1.0 or newer!
|
|
44
44
|
|
|
@@ -48,6 +48,8 @@ You can specify `headers`, `params`, and `body` when calling a `CRUD` method. Fo
|
|
|
48
48
|
gibbon.lists.retrieve(headers: {"SomeHeader": "SomeHeaderValue"}, params: {"query_param": "query_param_value"})
|
|
49
49
|
```
|
|
50
50
|
|
|
51
|
+
***Note*** `get` can be substituted for `retrieve` as of Gibbon version 3.4.1 or newer!
|
|
52
|
+
|
|
51
53
|
Of course, `body` is only supported on `create`, `update`, and `upsert` calls. Those map to HTTP `POST`, `PATCH`, and `PUT` verbs respectively.
|
|
52
54
|
|
|
53
55
|
You can set `api_key`, `timeout`, `open_timeout`, `faraday_adapter`, `proxy`, `symbolize_keys`, `logger`, and `debug` globally:
|
|
@@ -506,5 +508,5 @@ Thanks to everyone who has [contributed](https://github.com/amro/gibbon/contribu
|
|
|
506
508
|
|
|
507
509
|
## Copyright
|
|
508
510
|
|
|
509
|
-
* Copyright (c) 2010-
|
|
510
|
-
* MailChimp (c) 2001-
|
|
511
|
+
* Copyright (c) 2010-2021 Amro Mousa. See LICENSE.txt for details.
|
|
512
|
+
* MailChimp (c) 2001-2021 The Rocket Science Group.
|
data/gibbon.gemspec
CHANGED
|
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
|
|
|
19
19
|
s.require_paths = ["lib"]
|
|
20
20
|
s.required_ruby_version = '>= 2.4.0'
|
|
21
21
|
|
|
22
|
-
s.add_dependency('faraday', '>=
|
|
22
|
+
s.add_dependency('faraday', '>= 1.0')
|
|
23
23
|
s.add_dependency('multi_json', '>= 1.11.0')
|
|
24
24
|
|
|
25
25
|
s.add_development_dependency 'rake'
|
data/lib/gibbon/api_request.rb
CHANGED
|
@@ -152,8 +152,9 @@ 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
|
end
|
|
156
|
-
|
|
157
|
+
|
|
157
158
|
client
|
|
158
159
|
end
|
|
159
160
|
|
data/lib/gibbon/request.rb
CHANGED
data/lib/gibbon/version.rb
CHANGED
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.
|
|
4
|
+
version: 3.4.2
|
|
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-
|
|
11
|
+
date: 2021-09-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - ">="
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version:
|
|
19
|
+
version: '1.0'
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - ">="
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version:
|
|
26
|
+
version: '1.0'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: multi_json
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -131,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
131
131
|
- !ruby/object:Gem::Version
|
|
132
132
|
version: '0'
|
|
133
133
|
requirements: []
|
|
134
|
-
rubygems_version: 3.2.
|
|
134
|
+
rubygems_version: 3.2.27
|
|
135
135
|
signing_key:
|
|
136
136
|
specification_version: 4
|
|
137
137
|
summary: A wrapper for MailChimp API 3.0 and Export API
|