mailchimp_api 1.8.0 → 1.9.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: 608ebd5279e9a856e499ecb8057c9adc187e8755eca94534f74b352dba5c3c90
4
- data.tar.gz: 538f0fccb5cced675800afe9cc930499644e3bb78916baa298435ceedb60e5d2
3
+ metadata.gz: 2ebb655c58648d536803df4fd60f75144075d19baf2a799378fefe2e9eaffec9
4
+ data.tar.gz: 0e7692a0ab91125a4c048f7534449cd320f4fd2f45ba3d2c392cc8a034775344
5
5
  SHA512:
6
- metadata.gz: 7abd305d53a9e7cc545d5d22dcde5f516de26150ceedc98206bbe8db1596681e8023937dc3155fdf5132dc765d83f3fc9b957c085ae9e2187f22ed19503887e5
7
- data.tar.gz: 86f596ebaf5a5497910e1df40b17dce389798513e9c5772f2e144c6fff2a1bea6e0ea9acbebe5baa0da3a79359cdfca8e0fecdf78b1c08decb52fc3ccb55b58c
6
+ metadata.gz: 2a44131a2e7e6bba61a2f808e3d43c29b43728ffd5b6f335ba71d62c7f3fd2797af9fc360fc35fb1acf4380b9b4c410a0b10bfc4cb525c66115949a5821099f3
7
+ data.tar.gz: 969c34707b190d1578cc12002d4ac62511842fc2f579789c484aefcd5c1402aaf745650859d501a8784d0f56af7365c76fde33646df96f879568fd7cbc2634cd
data/CHANGELOG.md CHANGED
@@ -1,35 +1,57 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## [1.9.0]
4
+
5
+ ### Added
6
+
7
+ - Support of `/landing-pages`
8
+
3
9
  ## [1.8.0]
4
10
 
11
+ ### Added
12
+
5
13
  - Support of `/file-manager/files`
6
14
 
7
15
  ## [1.7.0]
8
16
 
17
+ ### Added
18
+
9
19
  - Support of `/campaigns/:campaign_id/feedback`
10
20
 
11
21
  ## [1.6.0]
12
22
 
23
+ ### Added
24
+
13
25
  - Support of `/campaigns/:campaign_id/content`
14
26
 
15
27
  ## [1.5.0]
16
28
 
29
+ ### Added
30
+
17
31
  - Support of `/templates`
18
32
 
19
33
  ## [1.4.0]
20
34
 
35
+ ### Added
36
+
21
37
  - Support of `/file-manager/folders`
22
38
 
23
39
  ## [1.3.0]
24
40
 
41
+ ### Added
42
+
25
43
  - Support of `/campaign-folders`
26
44
 
27
45
  ## [1.2.0]
28
46
 
47
+ ### Added
48
+
29
49
  - Support of `/campaigns`
30
50
 
31
51
  ## [1.1.0]
32
52
 
53
+ ### Added
54
+
33
55
  - Support of `/template-folders`
34
56
 
35
57
  ## [1.0.0]
@@ -37,15 +59,15 @@
37
59
  ### Added
38
60
  - Support of `/`
39
61
  - Support of `/lists`
40
- - Support of '/lists/<id>/interest-categories'
41
- - Support of '/lists/<id>/interest-categories/<id>/interests'
42
- - Support of '/lists/<id>/members'
43
- - Support of '/lists/<id>/members/<id>/notes'
44
- - Support of '/lists/<id>/members/<id>/tags'
45
- - Support of '/lists/<id>/segments'
46
- - Support of '/lists/<id>/segments/<id>/members'
47
- - Support of '/lists/<id>/merge-fields'
48
- - Support of '/lists/<id>/signup-forms'
62
+ - Support of `/lists/<id>/interest-categories`
63
+ - Support of `/lists/<id>/interest-categories/<id>/interests`
64
+ - Support of `/lists/<id>/members`
65
+ - Support of `/lists/<id>/members/<id>/notes`
66
+ - Support of `/lists/<id>/members/<id>/tags`
67
+ - Support of `/lists/<id>/segments`
68
+ - Support of `/lists/<id>/segments/<id>/members`
69
+ - Support of `/lists/<id>/merge-fields`
70
+ - Support of `/lists/<id>/signup-forms`
49
71
  - `.count` support
50
72
  - `exists?` support
51
73
  - `enumerator` support
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ module MailchimpAPI::CollectionParsers
4
+ class LandingPage < Base
5
+ end
6
+ end
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ module MailchimpAPI
4
+ class LandingPage < Base
5
+ extend MailchimpAPI::Support::Countable
6
+
7
+ include MailchimpAPI::Support::PatchUpdate
8
+
9
+ self.collection_parser = CollectionParsers::LandingPage
10
+
11
+ self.element_name = 'landing-page'
12
+ self.collection_name = 'landing-pages'
13
+
14
+ def publish
15
+ path = element_path(prefix_options) + '/actions/publish'
16
+ connection.post path, nil, self.class.headers
17
+ end
18
+
19
+ def unpublish
20
+ path = element_path(prefix_options) + '/actions/unpublish'
21
+ connection.post path, nil, self.class.headers
22
+ end
23
+ end
24
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MailchimpAPI
4
- VERSION = '1.8.0'
4
+ VERSION = '1.9.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.8.0
4
+ version: 1.9.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-25 00:00:00.000000000 Z
11
+ date: 2019-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activeresource
@@ -199,6 +199,7 @@ files:
199
199
  - lib/mailchimp_api/collection_parsers/file_manager_folder.rb
200
200
  - lib/mailchimp_api/collection_parsers/interest.rb
201
201
  - lib/mailchimp_api/collection_parsers/interest_category.rb
202
+ - lib/mailchimp_api/collection_parsers/landing_page.rb
202
203
  - lib/mailchimp_api/collection_parsers/link.rb
203
204
  - lib/mailchimp_api/collection_parsers/list.rb
204
205
  - lib/mailchimp_api/collection_parsers/member.rb
@@ -226,6 +227,7 @@ files:
226
227
  - lib/mailchimp_api/resources/file_manager_folder.rb
227
228
  - lib/mailchimp_api/resources/interest.rb
228
229
  - lib/mailchimp_api/resources/interest_category.rb
230
+ - lib/mailchimp_api/resources/landing_page.rb
229
231
  - lib/mailchimp_api/resources/link.rb
230
232
  - lib/mailchimp_api/resources/list.rb
231
233
  - lib/mailchimp_api/resources/member.rb