mailerlite 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 +4 -4
- data/.github/workflows/test.yml +25 -0
- data/.rubocop.yml +1 -1
- data/CODE_OF_CONDUCT.md +76 -0
- data/Gemfile +4 -4
- data/README.md +5 -9
- data/lib/mailerlite/clients/account.rb +1 -1
- data/lib/mailerlite/configuration.rb +2 -2
- data/lib/mailerlite/error.rb +1 -1
- data/lib/mailerlite/version.rb +1 -1
- data/mailerlite.gemspec +9 -2
- metadata +13 -8
- data/.travis.yml +0 -41
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7bb44760715ddf21435cef7aeca0ac4a2273f67bcde55e1b2c8a130140e90ae9
|
4
|
+
data.tar.gz: 84052ecea63241e8ae95e8480eb12768c9fa930746ea5193a291d90d892c908c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62075b7abec19cfeabb75c2662fc81d3581b8d7225bdf74a9fc60166f2f1cbe33089080ecb032f630d98d24d44ed22d74c218a59414a837ee6f8f5b9557fb05c
|
7
|
+
data.tar.gz: ad68637d5f0c692c21151273ecba937e02558b00c12f175a38b2f3f6fdfa1fd68bc4a00baa3498c4ebbb51ec969309f7da5fdd05f294863f0f6cf7ff947d6901
|
@@ -0,0 +1,25 @@
|
|
1
|
+
name: Test
|
2
|
+
|
3
|
+
on: [push]
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
test:
|
7
|
+
strategy:
|
8
|
+
matrix:
|
9
|
+
ruby: [2.3, 2.4, 2.5, 2.6]
|
10
|
+
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
|
13
|
+
steps:
|
14
|
+
- uses: actions/checkout@v1
|
15
|
+
- name: Set up Ruby ${{ matrix.ruby }}
|
16
|
+
uses: actions/setup-ruby@v1
|
17
|
+
with:
|
18
|
+
ruby-version: ${{ matrix.ruby }}
|
19
|
+
- name: Build and test with Rake
|
20
|
+
env:
|
21
|
+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
22
|
+
run: |
|
23
|
+
gem install bundler
|
24
|
+
bundle install --jobs 4 --retry 3 --without development
|
25
|
+
bundle exec rspec
|
data/.rubocop.yml
CHANGED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,76 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, sex characteristics, gender identity and expression,
|
9
|
+
level of experience, education, socio-economic status, nationality, personal
|
10
|
+
appearance, race, religion, or sexual identity and orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at jpalumickas@gmail.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
|
72
|
+
|
73
|
+
[homepage]: https://www.contributor-covenant.org
|
74
|
+
|
75
|
+
For answers to common questions about this code of conduct, see
|
76
|
+
https://www.contributor-covenant.org/faq
|
data/Gemfile
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
|
3
3
|
group :development do
|
4
|
-
gem 'rubocop', '~> 0.
|
4
|
+
gem 'rubocop', '~> 0.75'
|
5
5
|
end
|
6
6
|
|
7
7
|
group :development, :test do
|
@@ -9,10 +9,10 @@ group :development, :test do
|
|
9
9
|
end
|
10
10
|
|
11
11
|
group :test do
|
12
|
-
gem '
|
12
|
+
gem 'codecov', require: false
|
13
13
|
gem 'rspec', '~> 3.8'
|
14
|
-
gem 'simplecov', '~> 0.
|
15
|
-
gem 'webmock', '~> 3.
|
14
|
+
gem 'simplecov', '~> 0.17', require: false
|
15
|
+
gem 'webmock', '~> 3.7'
|
16
16
|
end
|
17
17
|
|
18
18
|
gemspec
|
data/README.md
CHANGED
@@ -3,9 +3,7 @@
|
|
3
3
|
A Ruby gem which helps to communicate with [MailerLite][mailerlite] API.
|
4
4
|
|
5
5
|
[![Gem Version](https://img.shields.io/gem/v/mailerlite.svg?style=flat-square)][rubygems]
|
6
|
-
[![
|
7
|
-
[![Code Climate](https://img.shields.io/codeclimate/maintainability/jpalumickas/mailerlite-ruby.svg?style=flat-square)][codeclimate]
|
8
|
-
[![Test Coverage](https://img.shields.io/codeclimate/c/jpalumickas/mailerlite-ruby.svg?style=flat-square)][codeclimate_coverage]
|
6
|
+
[![Coverage Status](https://img.shields.io/codecov/c/github/jpalumickas/mailerlite-ruby?style=flat-square)][codecov]
|
9
7
|
|
10
8
|
## Installation
|
11
9
|
|
@@ -58,22 +56,20 @@ See more documentation in [examples][examples] directory.
|
|
58
56
|
|
59
57
|
## Supported Ruby Versions
|
60
58
|
|
61
|
-
This library aims to support and is [tested against][
|
59
|
+
This library aims to support and is [tested against][github_actions] the following Ruby
|
62
60
|
implementations:
|
63
61
|
|
64
|
-
* Ruby 2.2.0
|
65
62
|
* Ruby 2.3.0
|
66
63
|
* Ruby 2.4.0
|
67
64
|
* Ruby 2.5.0
|
68
65
|
* Ruby 2.6.0
|
69
66
|
|
70
67
|
## Copyright
|
71
|
-
Copyright (c) 2019 Justas Palumickas. See [LICENSE][
|
68
|
+
Copyright (c) 2019 Justas Palumickas. See [LICENSE][github_actions] for details.
|
72
69
|
|
73
70
|
[rubygems]: https://rubygems.org/gems/mailerlite
|
74
|
-
[
|
75
|
-
[
|
76
|
-
[codeclimate_coverage]: https://codeclimate.com/github/jpalumickas/mailerlite-ruby/test_coverage
|
71
|
+
[codecov]: https://codecov.io/gh/jpalumickas/mailerlite-ruby
|
72
|
+
[github_actions]: https://github.com/jpalumickas/mailerlite-ruby/actions
|
77
73
|
|
78
74
|
[license]: https://raw.githubusercontent.com/jpalumickas/mailerlite-ruby/master/LICENSE
|
79
75
|
[create_a_campaign]: https://raw.githubusercontent.com/jpalumickas/mailerlite-ruby/master/examples/create_campaign.md
|
@@ -4,10 +4,10 @@ module MailerLite
|
|
4
4
|
# A class responsible for all configurations.
|
5
5
|
class Configuration
|
6
6
|
# Default API endpoint.
|
7
|
-
API_ENDPOINT = 'https://api.mailerlite.com/api/v2'
|
7
|
+
API_ENDPOINT = 'https://api.mailerlite.com/api/v2'
|
8
8
|
|
9
9
|
# Default User Agent header string.
|
10
|
-
USER_AGENT = "MailerLite Ruby v#{MailerLite::VERSION}"
|
10
|
+
USER_AGENT = "MailerLite Ruby v#{MailerLite::VERSION}"
|
11
11
|
|
12
12
|
attr_accessor :api_key
|
13
13
|
attr_writer :url, :user_agent
|
data/lib/mailerlite/error.rb
CHANGED
data/lib/mailerlite/version.rb
CHANGED
data/mailerlite.gemspec
CHANGED
@@ -14,6 +14,13 @@ Gem::Specification.new do |spec|
|
|
14
14
|
spec.description = 'Ruby gem for MailerLite API v2'
|
15
15
|
spec.homepage = 'https://github.com/jpalumickas/mailerlite-ruby'
|
16
16
|
|
17
|
+
spec.metadata = {
|
18
|
+
'bug_tracker_uri' => 'https://github.com/jpalumickas/mailerlite-ruby/issues',
|
19
|
+
'changelog_uri' => 'https://github.com/jpalumickas/mailerlite-ruby/releases',
|
20
|
+
'documentation_uri' => 'https://github.com/jpalumickas/mailerlite-ruby/tree/master/examples',
|
21
|
+
'source_code_uri' => 'https://github.com/jpalumickas/mailerlite-ruby'
|
22
|
+
}
|
23
|
+
|
17
24
|
spec.license = 'MIT'
|
18
25
|
|
19
26
|
spec.files = `git ls-files -z`
|
@@ -23,11 +30,11 @@ Gem::Specification.new do |spec|
|
|
23
30
|
spec.bindir = 'exe'
|
24
31
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
25
32
|
spec.require_paths = ['lib']
|
26
|
-
spec.required_ruby_version = '>= 2.
|
33
|
+
spec.required_ruby_version = '>= 2.3.0'
|
27
34
|
|
28
35
|
spec.add_dependency 'faraday', '~> 0.10'
|
29
36
|
spec.add_dependency 'faraday_middleware', '~> 0.10'
|
30
37
|
spec.add_dependency 'hashie', '>= 3.5.5'
|
31
38
|
|
32
|
-
spec.add_development_dependency 'rake', '~>
|
39
|
+
spec.add_development_dependency 'rake', '~> 13.0'
|
33
40
|
end
|
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.
|
4
|
+
version: 1.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justas Palumickas
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-10-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '13.0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '13.0'
|
69
69
|
description: Ruby gem for MailerLite API v2
|
70
70
|
email:
|
71
71
|
- jpalumickas@gmail.com
|
@@ -73,11 +73,12 @@ executables: []
|
|
73
73
|
extensions: []
|
74
74
|
extra_rdoc_files: []
|
75
75
|
files:
|
76
|
+
- ".github/workflows/test.yml"
|
76
77
|
- ".gitignore"
|
77
78
|
- ".hound.yml"
|
78
79
|
- ".rspec"
|
79
80
|
- ".rubocop.yml"
|
80
|
-
-
|
81
|
+
- CODE_OF_CONDUCT.md
|
81
82
|
- CONTRIBUTING.md
|
82
83
|
- Gemfile
|
83
84
|
- LICENSE
|
@@ -117,7 +118,11 @@ files:
|
|
117
118
|
homepage: https://github.com/jpalumickas/mailerlite-ruby
|
118
119
|
licenses:
|
119
120
|
- MIT
|
120
|
-
metadata:
|
121
|
+
metadata:
|
122
|
+
bug_tracker_uri: https://github.com/jpalumickas/mailerlite-ruby/issues
|
123
|
+
changelog_uri: https://github.com/jpalumickas/mailerlite-ruby/releases
|
124
|
+
documentation_uri: https://github.com/jpalumickas/mailerlite-ruby/tree/master/examples
|
125
|
+
source_code_uri: https://github.com/jpalumickas/mailerlite-ruby
|
121
126
|
post_install_message:
|
122
127
|
rdoc_options: []
|
123
128
|
require_paths:
|
@@ -126,14 +131,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
126
131
|
requirements:
|
127
132
|
- - ">="
|
128
133
|
- !ruby/object:Gem::Version
|
129
|
-
version: 2.
|
134
|
+
version: 2.3.0
|
130
135
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
131
136
|
requirements:
|
132
137
|
- - ">="
|
133
138
|
- !ruby/object:Gem::Version
|
134
139
|
version: '0'
|
135
140
|
requirements: []
|
136
|
-
rubygems_version: 3.0.
|
141
|
+
rubygems_version: 3.0.6
|
137
142
|
signing_key:
|
138
143
|
specification_version: 4
|
139
144
|
summary: Ruby wrapper for MailerLite API v2
|
data/.travis.yml
DELETED
@@ -1,41 +0,0 @@
|
|
1
|
-
sudo: false
|
2
|
-
bundler_args: --without development
|
3
|
-
|
4
|
-
cache:
|
5
|
-
bundler: true
|
6
|
-
|
7
|
-
env:
|
8
|
-
global:
|
9
|
-
- CC_TEST_REPORTER_ID=1da21a01a5e29b3624aa81523fe36983a2b8d785f18046de30c17e1b6da1563a
|
10
|
-
|
11
|
-
language: ruby
|
12
|
-
rvm:
|
13
|
-
- 2.2.0
|
14
|
-
- 2.3.0
|
15
|
-
- 2.4.0
|
16
|
-
- 2.5.0
|
17
|
-
- 2.6.0
|
18
|
-
- ruby-head
|
19
|
-
|
20
|
-
before_install:
|
21
|
-
- gem install bundler -v '< 2'
|
22
|
-
|
23
|
-
# After dropping support for Ruby 2.2, use:
|
24
|
-
# before_install:
|
25
|
-
# - gem update --system
|
26
|
-
# - gem install bundler
|
27
|
-
|
28
|
-
before_script:
|
29
|
-
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
30
|
-
- chmod +x ./cc-test-reporter
|
31
|
-
- ./cc-test-reporter before-build
|
32
|
-
|
33
|
-
script:
|
34
|
-
- bundle exec rspec
|
35
|
-
|
36
|
-
after_script:
|
37
|
-
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
|
38
|
-
|
39
|
-
matrix:
|
40
|
-
allow_failures:
|
41
|
-
- rvm: ruby-head
|