mailerlite 1.0.0 → 1.0.1
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/README.md +1 -1
- data/lib/mailerlite/clients/campaigns.rb +1 -1
- data/lib/mailerlite/clients/fields.rb +1 -1
- data/lib/mailerlite/clients/groups.rb +6 -4
- data/lib/mailerlite/clients/subscribers.rb +1 -3
- data/lib/mailerlite/connection.rb +1 -1
- data/lib/mailerlite/version.rb +1 -1
- data/mailerlite.gemspec +4 -4
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 638df6e0c5e55f7bc023d588f97bcd6707e6e638
|
|
4
|
+
data.tar.gz: 4d850ffcfc218812f57698468f40924eb2cf2100
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 589a4f2ad5b33744d4818832ce20152ea0fcbd00e39b9f4c1008bb847e5186cd848ea33b6e5d026acbb9abe0f60a972f53579a1fc5052c85f17265a9e9c65936
|
|
7
|
+
data.tar.gz: 16b712a4160cf3142f84dc6e518f75908edb9b5f8641df09fdf82c3ee2f8661884d4974ca8b4c34d85d91991aae1706d7e6a1de14660906df3e5fee2fe49207c
|
data/README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
module MailerLite
|
|
2
2
|
module Clients
|
|
3
|
-
#
|
|
4
|
-
#
|
|
5
|
-
# You can official documentation at
|
|
6
|
-
# https://developers.mailerlite.com/docs/groups
|
|
3
|
+
# MailerLite Groups
|
|
7
4
|
module Groups
|
|
5
|
+
# Get list of groups
|
|
6
|
+
#
|
|
7
|
+
# @see https://developers.mailerlite.com/docs/groups
|
|
8
|
+
#
|
|
9
|
+
# @return [Array] Response from API.
|
|
8
10
|
def groups
|
|
9
11
|
connection.get('groups')
|
|
10
12
|
end
|
|
@@ -37,7 +37,7 @@ module MailerLite
|
|
|
37
37
|
response = connection.send(method) do |request|
|
|
38
38
|
request.url(path, query_params)
|
|
39
39
|
request.headers['Content-Type'] = 'application/json'
|
|
40
|
-
request.headers['X-MailerLite-ApiKey'] = client.config.api_key
|
|
40
|
+
request.headers['X-MailerLite-ApiKey'] = client.config.api_key if client.config.api_key
|
|
41
41
|
request.body = body_params.to_json
|
|
42
42
|
end
|
|
43
43
|
|
data/lib/mailerlite/version.rb
CHANGED
data/mailerlite.gemspec
CHANGED
|
@@ -9,15 +9,15 @@ Gem::Specification.new do |spec|
|
|
|
9
9
|
spec.authors = ['Justas Palumickas']
|
|
10
10
|
spec.email = ['jpalumickas@gmail.com']
|
|
11
11
|
|
|
12
|
-
spec.summary = 'Ruby wrapper for MailerLite API'
|
|
13
|
-
spec.description = 'Ruby gem for MailerLite API'
|
|
12
|
+
spec.summary = 'Ruby wrapper for MailerLite API v2'
|
|
13
|
+
spec.description = 'Ruby gem for MailerLite API v2'
|
|
14
14
|
spec.homepage = 'https://github.com/jpalumickas/mailerlite-ruby'
|
|
15
15
|
|
|
16
16
|
spec.license = 'MIT'
|
|
17
17
|
|
|
18
18
|
spec.files = `git ls-files -z`
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
.split("\x0")
|
|
20
|
+
.reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
21
21
|
|
|
22
22
|
spec.bindir = 'exe'
|
|
23
23
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mailerlite
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Justas Palumickas
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-10-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -80,7 +80,7 @@ dependencies:
|
|
|
80
80
|
- - "~>"
|
|
81
81
|
- !ruby/object:Gem::Version
|
|
82
82
|
version: '10.0'
|
|
83
|
-
description: Ruby gem for MailerLite API
|
|
83
|
+
description: Ruby gem for MailerLite API v2
|
|
84
84
|
email:
|
|
85
85
|
- jpalumickas@gmail.com
|
|
86
86
|
executables: []
|
|
@@ -135,8 +135,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
135
135
|
version: '0'
|
|
136
136
|
requirements: []
|
|
137
137
|
rubyforge_project:
|
|
138
|
-
rubygems_version: 2.
|
|
138
|
+
rubygems_version: 2.6.6
|
|
139
139
|
signing_key:
|
|
140
140
|
specification_version: 4
|
|
141
|
-
summary: Ruby wrapper for MailerLite API
|
|
141
|
+
summary: Ruby wrapper for MailerLite API v2
|
|
142
142
|
test_files: []
|