mailchimp_api 1.2.0 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 91fedcca91cc3d9f0e72a5ab0d1d5286afeac10bfa1d33915f96c01965015127
4
- data.tar.gz: 96e0631b7d4bd950dfe3e172b5d449502d4f402fc09f0247e9f5f3984a1186e3
3
+ metadata.gz: b51d0978da2e83da8a06ce7ecfa67e51d005c82c6a7f55bc9e7072cb523c7fa5
4
+ data.tar.gz: 89fdbf3f4e7791cbe30d247ef4f7c57049a34eca439d04b592b848c130938d27
5
5
  SHA512:
6
- metadata.gz: 6f53ae31678e8efaee3facb81e2e282a43e4a3fbb3504f6affd2ac0240016bece468b6dce520dea6365bf0d94e58114d5c937f51f0595d4cc766bbe647d884b3
7
- data.tar.gz: e813a705ab1954b9091fb3edf369d7bf78ba84c92592bcf8e07b6fb85b0c73595eb596b370bd9b2268fe31898569fbd27ebf783ad1ed82702c6c77fc85481f5b
6
+ metadata.gz: 22e93290b858bd9c72f295806eca97b4bb6454a9a8bb95adecafb131155d7912beef3f96dbb12038f00256e68514b73c6fcb31232753ab9739dda1df8c4dd6f6
7
+ data.tar.gz: f74207c328e9683487437bb5c5e1bfe493472cf0553deb5755f0ed67ef6a003c20ee90c52e35c5742d88bdb99c89768ac19750d0a49ccab5b4b0b9ba9ad5a13f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## [1.4.0]
4
+
5
+ - Support of `/file-manager/folders`
6
+
7
+ ## [1.3.0]
8
+
9
+ - Support of `/campaign-folders`
10
+
3
11
  ## [1.2.0]
4
12
 
5
13
  - Support of `/campaigns`
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module MailchimpAPI::CollectionParsers
4
+ class CampaignFolder < Base
5
+ def element_key
6
+ 'folders'
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module MailchimpAPI::CollectionParsers
4
+ class FileManagerFolder < Base
5
+ def element_key
6
+ 'folders'
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module MailchimpAPI
4
+ class CampaignFolder < Base
5
+ extend MailchimpAPI::Support::Countable
6
+
7
+ include MailchimpAPI::Support::PatchUpdate
8
+
9
+ self.collection_parser = CollectionParsers::CampaignFolder
10
+
11
+ self.element_name = 'campaign-folder'
12
+ self.collection_name = 'campaign-folders'
13
+ end
14
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module MailchimpAPI
4
+ class FileManagerFolder < Base
5
+ extend MailchimpAPI::Support::Countable
6
+
7
+ include MailchimpAPI::Support::PatchUpdate
8
+
9
+ self.collection_parser = CollectionParsers::FileManagerFolder
10
+
11
+ self.element_name = 'file-manager/folder'
12
+ self.collection_name = 'file-manager/folders'
13
+ end
14
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MailchimpAPI
4
- VERSION = '1.2.0'
4
+ VERSION = '1.4.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mailchimp_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - rewind.io
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-15 00:00:00.000000000 Z
11
+ date: 2019-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activeresource
@@ -193,6 +193,8 @@ files:
193
193
  - lib/mailchimp_api/collection_parsers.rb
194
194
  - lib/mailchimp_api/collection_parsers/base.rb
195
195
  - lib/mailchimp_api/collection_parsers/campaign.rb
196
+ - lib/mailchimp_api/collection_parsers/campaign_folder.rb
197
+ - lib/mailchimp_api/collection_parsers/file_manager_folder.rb
196
198
  - lib/mailchimp_api/collection_parsers/interest.rb
197
199
  - lib/mailchimp_api/collection_parsers/interest_category.rb
198
200
  - lib/mailchimp_api/collection_parsers/link.rb
@@ -214,6 +216,8 @@ files:
214
216
  - lib/mailchimp_api/resources/account_information.rb
215
217
  - lib/mailchimp_api/resources/base.rb
216
218
  - lib/mailchimp_api/resources/campaign.rb
219
+ - lib/mailchimp_api/resources/campaign_folder.rb
220
+ - lib/mailchimp_api/resources/file_manager_folder.rb
217
221
  - lib/mailchimp_api/resources/interest.rb
218
222
  - lib/mailchimp_api/resources/interest_category.rb
219
223
  - lib/mailchimp_api/resources/link.rb