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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 843af19f90d52a10946d15d6e01a18145ea9d42f
4
- data.tar.gz: dab4fc1e6262cd7534ce338603c5f8229a845d1c
3
+ metadata.gz: 638df6e0c5e55f7bc023d588f97bcd6707e6e638
4
+ data.tar.gz: 4d850ffcfc218812f57698468f40924eb2cf2100
5
5
  SHA512:
6
- metadata.gz: afa2abd88a4f60d9b6ef7062fc1f6e403ebea6d5e07bfdd52d95620d5871a5e80b256a281e2fc85ff87c33fb285f5bdb6ccd82f89a8eb44daedf365363c83ba9
7
- data.tar.gz: 4c8e17942c01e12c5806f05b758cd67e6f461bc1f9641a5dcc2cb8b34c5be7944fd8d49490c81466b8de9333ace95633c574fc4d1babaa47716911859052a276
6
+ metadata.gz: 589a4f2ad5b33744d4818832ce20152ea0fcbd00e39b9f4c1008bb847e5186cd848ea33b6e5d026acbb9abe0f60a972f53579a1fc5052c85f17265a9e9c65936
7
+ data.tar.gz: 16b712a4160cf3142f84dc6e518f75908edb9b5f8641df09fdf82c3ee2f8661884d4974ca8b4c34d85d91991aae1706d7e6a1de14660906df3e5fee2fe49207c
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # MailerLite API Ruby wrapper
1
+ # MailerLite API v2 Ruby wrapper
2
2
 
3
3
  A Ruby gem which helps to communicate with [MailerLite][mailerlite] API.
4
4
 
@@ -1,6 +1,6 @@
1
1
  module MailerLite
2
2
  module Clients
3
- # MailerLite Campaigns.
3
+ # MailerLite Campaigns
4
4
  module Campaigns
5
5
  # Create campaign where you will use your custom HTML template
6
6
  #
@@ -1,6 +1,6 @@
1
1
  module MailerLite
2
2
  module Clients
3
- # Get information about MailerLite Fields
3
+ # MailerLite Fields
4
4
  module Fields
5
5
  # Get subscriber fields of account
6
6
  #
@@ -1,10 +1,12 @@
1
1
  module MailerLite
2
2
  module Clients
3
- # Get information about MailerLite Lists.
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
@@ -1,8 +1,6 @@
1
1
  module MailerLite
2
2
  module Clients
3
- # Get information about MailerLite Subscribers.
4
- #
5
- # @see https://docs.mailerlite.com/pages/subscribers
3
+ # MailerLite Subscribers
6
4
  module Subscribers
7
5
  # Get single subscriber
8
6
  #
@@ -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
 
@@ -1,4 +1,4 @@
1
1
  module MailerLite
2
2
  # @return [String] Version number.
3
- VERSION = '1.0.0'.freeze
3
+ VERSION = '1.0.1'.freeze
4
4
  end
@@ -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
- .split("\x0")
20
- .reject { |f| f.match(%r{^(test|spec|features)/}) }
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.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-08-11 00:00:00.000000000 Z
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.5.1
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: []