mailchimp_api 1.6.0 → 1.7.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: '06189e44886532a02067ee5b13eb0fc661c4138180be82be50171996ae08e277'
4
- data.tar.gz: 503704b3f170646e6713375002ad84f6926f2a6bea0fb9600a5a8bb43b39dbfc
3
+ metadata.gz: b6f3a3b05f0dc84945330f8cff4f8d0a06783f5c0f8bd81e4d310bbdcbc3ee0a
4
+ data.tar.gz: abc8918ae280aebf9aa82a43f2c8cf331115e64403c8c99194a3876e9c360f5c
5
5
  SHA512:
6
- metadata.gz: ea0d31e9d920b100805d638cc3f600036e40b68094ef36890020cb8789b9bc1afcb77823ceafdb87da52ab1f84b348c185ca8705189a6bb2548b660ebc9541b1
7
- data.tar.gz: bb6e403c14e179f88eb08a05bef9a784ff4f7a0d2e48db113f08ee68ab6321b440b7a3e336e2305773245666819b345c944dc0e386cfdbffab04433c9ddd6b5d
6
+ metadata.gz: 1821f83e00e865980553896d516ad587c400d3d83e17ad49b6e76278e66d15a6d49f34412e78e283efeee45f82cbf51f56d10c9a663fa28accfc6ffa1cad7785
7
+ data.tar.gz: 636c9a871de1d1bfbda903ad288a6ea487877c4803ffa99c26688f115932cc49443794b42f0f1a29c0c1a827f7c659dbbd41549843ad15496945ef73927e0ee3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## [1.7.0]
4
+
5
+ - Support of `/campaigns/:campaign_id/feedback`
6
+
3
7
  ## [1.6.0]
4
8
 
5
9
  - Support of `/campaigns/:campaign_id/content`
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module MailchimpAPI::CollectionParsers
4
+ class Feedback < Base
5
+ def element_key
6
+ 'feedback'
7
+ end
8
+ end
9
+ end
@@ -8,6 +8,8 @@ module MailchimpAPI
8
8
 
9
9
  self.collection_parser = CollectionParsers::Campaign
10
10
 
11
+ has_many :feedback, class_name: 'MailchimpAPI::Feedback'
12
+
11
13
  # Define all bodiless, non-RESTful actions
12
14
  %w[
13
15
  cancel-send
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module MailchimpAPI
4
+ class Feedback < Base
5
+ extend MailchimpAPI::Support::Countable
6
+
7
+ include MailchimpAPI::Support::PatchUpdate
8
+
9
+ self.collection_parser = CollectionParsers::Feedback
10
+
11
+ self.prefix = '/3.0/campaigns/:campaign_id/'
12
+
13
+ self.primary_key = :feedback_id
14
+ self.element_name = 'feedback'
15
+ self.collection_name = 'feedback'
16
+ end
17
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MailchimpAPI
4
- VERSION = '1.6.0'
4
+ VERSION = '1.7.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.6.0
4
+ version: 1.7.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-20 00:00:00.000000000 Z
11
+ date: 2019-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activeresource
@@ -194,6 +194,7 @@ files:
194
194
  - lib/mailchimp_api/collection_parsers/base.rb
195
195
  - lib/mailchimp_api/collection_parsers/campaign.rb
196
196
  - lib/mailchimp_api/collection_parsers/campaign_folder.rb
197
+ - lib/mailchimp_api/collection_parsers/feedback.rb
197
198
  - lib/mailchimp_api/collection_parsers/file_manager_folder.rb
198
199
  - lib/mailchimp_api/collection_parsers/interest.rb
199
200
  - lib/mailchimp_api/collection_parsers/interest_category.rb
@@ -219,6 +220,7 @@ files:
219
220
  - lib/mailchimp_api/resources/campaign.rb
220
221
  - lib/mailchimp_api/resources/campaign_content.rb
221
222
  - lib/mailchimp_api/resources/campaign_folder.rb
223
+ - lib/mailchimp_api/resources/feedback.rb
222
224
  - lib/mailchimp_api/resources/file_manager_folder.rb
223
225
  - lib/mailchimp_api/resources/interest.rb
224
226
  - lib/mailchimp_api/resources/interest_category.rb