emarsys-api 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.rspec +2 -0
- data/.rubocop.yml +45 -0
- data/.travis.yml +7 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +54 -0
- data/Rakefile +8 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/emarsys-api.gemspec +33 -0
- data/lib/emarsys/api.rb +25 -0
- data/lib/emarsys/api/base.rb +76 -0
- data/lib/emarsys/api/error.rb +25 -0
- data/lib/emarsys/api/internal.rb +33 -0
- data/lib/emarsys/api/services.rb +40 -0
- data/lib/emarsys/api/version.rb +5 -0
- metadata +188 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 1f950906716c6070ed2f0e94e8d44c37ea9831e1
|
4
|
+
data.tar.gz: c61d3389f16de08424dedfc58cd8a96e69f8dee3
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 0f4adf94832cd8d7279ea327c4f071e01feac6a4fb45599789fef28debe4fc5a475dfd93e7b92f6124898f5453b4f69152458d181cc4684bd93cb9c440540fa9
|
7
|
+
data.tar.gz: 7b460d1e83a72d7230d828be158956f9527da7e7c85452962f80956febc378237a93fa02c067f993acfbe3903c57d996ab37c625ab134f068331eb0bbe2c9a77
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.rubocop.yml
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
Metrics/BlockLength:
|
2
|
+
Exclude:
|
3
|
+
- 'spec/**/*_spec.rb'
|
4
|
+
|
5
|
+
Metrics/LineLength:
|
6
|
+
Max: 120
|
7
|
+
|
8
|
+
Metrics/ModuleLength:
|
9
|
+
Max: 100
|
10
|
+
|
11
|
+
Metrics/ParameterLists:
|
12
|
+
Max: 3
|
13
|
+
CountKeywordArgs: false
|
14
|
+
|
15
|
+
Style/IndentHash:
|
16
|
+
EnforcedStyle: consistent
|
17
|
+
|
18
|
+
Style/IndentArray:
|
19
|
+
EnforcedStyle: consistent
|
20
|
+
|
21
|
+
Style/FrozenStringLiteralComment:
|
22
|
+
Enabled: false
|
23
|
+
|
24
|
+
Style/EmptyLines:
|
25
|
+
Enabled: false
|
26
|
+
|
27
|
+
Style/EmptyLinesAroundClassBody:
|
28
|
+
Enabled: false
|
29
|
+
|
30
|
+
Style/MultilineOperationIndentation:
|
31
|
+
EnforcedStyle: indented
|
32
|
+
|
33
|
+
Style/Documentation:
|
34
|
+
Enabled: false
|
35
|
+
|
36
|
+
Style/ModuleFunction:
|
37
|
+
EnforcedStyle: extend_self
|
38
|
+
|
39
|
+
Style/EmptyMethod:
|
40
|
+
Enabled: false
|
41
|
+
|
42
|
+
Bundler/OrderedGems:
|
43
|
+
Enabled: false
|
44
|
+
|
45
|
+
|
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
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, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
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 demeter.istvan@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 [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 Istvan Demeter
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,54 @@
|
|
1
|
+
# Emarsys::Api
|
2
|
+
|
3
|
+
This is a wrapper around the API of emarsys B2C marketing cloud.
|
4
|
+
Very-very limited right now, only the covers a few endpoints so far.
|
5
|
+
|
6
|
+
If you need to cover a new endpoint, please open a ticket or do and send
|
7
|
+
a pull request. Thanks!
|
8
|
+
|
9
|
+
|
10
|
+
## Installation
|
11
|
+
|
12
|
+
Add this line to your application's Gemfile:
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
gem 'emarsys-api'
|
16
|
+
```
|
17
|
+
|
18
|
+
And then execute:
|
19
|
+
|
20
|
+
$ bundle
|
21
|
+
|
22
|
+
Or install it yourself as:
|
23
|
+
|
24
|
+
$ gem install emarsys-api
|
25
|
+
|
26
|
+
## Usage
|
27
|
+
|
28
|
+
setup up the following environment variables (needed by Escher):
|
29
|
+
|
30
|
+
KEY_POOL
|
31
|
+
SUITE_KEYID
|
32
|
+
|
33
|
+
## Development
|
34
|
+
|
35
|
+
|
36
|
+
By setting the environment variable EMARSYS_API_URL to http://suite.ett.local you can send request to local
|
37
|
+
development emarsys (suite vagrant, if you know what i mean :stuck_out_tongue_winking_eye:)
|
38
|
+
|
39
|
+
|
40
|
+
After checking out the repo, run `bin/setup` to install dependencies.
|
41
|
+
Then, run `rake` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
42
|
+
|
43
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
44
|
+
|
45
|
+
## Contributing
|
46
|
+
|
47
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/emartech/emarsys-api-ruby. This
|
48
|
+
project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
49
|
+
|
50
|
+
|
51
|
+
## License
|
52
|
+
|
53
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
54
|
+
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'bundler/setup'
|
4
|
+
require 'emarsys/services/api/client'
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require 'irb'
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
data/emarsys-api.gemspec
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'emarsys/api/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'emarsys-api'
|
8
|
+
spec.version = Emarsys::Api::VERSION
|
9
|
+
spec.authors = ['Istvan Demeter']
|
10
|
+
spec.email = ['demeter.istvan@gmail.com']
|
11
|
+
|
12
|
+
spec.summary = 'Ruby client to make it easier to use the API of emarsys B2C MC'
|
13
|
+
spec.homepage = 'https://github.com/emartech/emarsys-api-ruby'
|
14
|
+
spec.license = 'MIT'
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
17
|
+
f.match(%r{^(test|spec|features)/})
|
18
|
+
end
|
19
|
+
spec.bindir = 'exe'
|
20
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
21
|
+
spec.require_paths = ['lib']
|
22
|
+
|
23
|
+
spec.add_dependency 'escher-keypool', '~> 0.0'
|
24
|
+
spec.add_dependency 'faraday', '~> 0.11'
|
25
|
+
spec.add_dependency 'faraday_middleware', '~> 0.11'
|
26
|
+
spec.add_dependency 'faraday_middleware-escher', '~> 0.3'
|
27
|
+
|
28
|
+
spec.add_development_dependency 'bundler', '~> 1.13'
|
29
|
+
spec.add_development_dependency 'rake', '~> 12.0'
|
30
|
+
spec.add_development_dependency 'rspec', '~> 3.5'
|
31
|
+
spec.add_development_dependency 'rubocop', '~> 0.46'
|
32
|
+
spec.add_development_dependency 'webmock', '~> 2.3'
|
33
|
+
end
|
data/lib/emarsys/api.rb
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
module Emarsys
|
2
|
+
module Api
|
3
|
+
ESCHER_AUTH_OPTIONS = {
|
4
|
+
algo_prefix: 'EMS',
|
5
|
+
vendor_key: 'EMS',
|
6
|
+
auth_header_name: 'X-Ems-Auth',
|
7
|
+
date_header_name: 'X-Ems-Date'
|
8
|
+
}.freeze
|
9
|
+
|
10
|
+
|
11
|
+
autoload :Base, 'emarsys/api/base'
|
12
|
+
autoload :Error, 'emarsys/api/error'
|
13
|
+
autoload :RecoverableError, 'emarsys/api/error'
|
14
|
+
autoload :IrrecoverableError, 'emarsys/api/error'
|
15
|
+
autoload :BadRequestError, 'emarsys/api/error'
|
16
|
+
autoload :UnauthorizedError, 'emarsys/api/error'
|
17
|
+
autoload :Services, 'emarsys/api/services'
|
18
|
+
autoload :Internal, 'emarsys/api/internal'
|
19
|
+
|
20
|
+
|
21
|
+
def self.base_url
|
22
|
+
ENV['EMARSYS_API_URL'] || 'https://api.emarsys.net'
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,76 @@
|
|
1
|
+
require 'escher-keypool'
|
2
|
+
require 'faraday'
|
3
|
+
require 'faraday_middleware'
|
4
|
+
require 'faraday_middleware/escher'
|
5
|
+
|
6
|
+
module Emarsys
|
7
|
+
module Api
|
8
|
+
class Base
|
9
|
+
def client
|
10
|
+
@client ||= Faraday.new(url: base_url) do |faraday|
|
11
|
+
faraday.use FaradayMiddleware::Escher::RequestSigner, escher_config
|
12
|
+
|
13
|
+
faraday.response :json, content_type: /\bjson$/
|
14
|
+
faraday.response :json_fix
|
15
|
+
|
16
|
+
faraday.adapter Faraday.default_adapter
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
|
21
|
+
private
|
22
|
+
|
23
|
+
def uri
|
24
|
+
URI.join(Emarsys::Api.base_url, module_path)
|
25
|
+
end
|
26
|
+
|
27
|
+
|
28
|
+
def module_path
|
29
|
+
''
|
30
|
+
end
|
31
|
+
|
32
|
+
|
33
|
+
def base_url
|
34
|
+
uri.to_s
|
35
|
+
end
|
36
|
+
|
37
|
+
|
38
|
+
def hostname
|
39
|
+
uri.hostname
|
40
|
+
end
|
41
|
+
|
42
|
+
|
43
|
+
def escher_config
|
44
|
+
{
|
45
|
+
credential_scope: 'eu/suite/ems_request',
|
46
|
+
host: hostname,
|
47
|
+
options: ESCHER_AUTH_OPTIONS,
|
48
|
+
active_key: -> { ::Escher::Keypool.new.get_active_key('suite') }
|
49
|
+
}
|
50
|
+
end
|
51
|
+
|
52
|
+
|
53
|
+
def validate_response!(response)
|
54
|
+
error_class = error_class_by_status response.status
|
55
|
+
raise error_class.new(*parse_for_error(response)) if error_class
|
56
|
+
end
|
57
|
+
|
58
|
+
|
59
|
+
def error_class_by_status(status)
|
60
|
+
case status
|
61
|
+
when 200 then nil
|
62
|
+
when 202, 423 then RecoverableError
|
63
|
+
when 404 then IrrecoverableError
|
64
|
+
when 400 then BadRequestError
|
65
|
+
when 401 then UnauthorizedError
|
66
|
+
else Error
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
|
71
|
+
def parse_for_error(response)
|
72
|
+
[response.body, response.status, nil]
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
module Emarsys
|
2
|
+
module Api
|
3
|
+
class Error < ::StandardError
|
4
|
+
attr_reader :error_code, :reply_code
|
5
|
+
|
6
|
+
def initialize(message, error_code, reply_code)
|
7
|
+
super(message)
|
8
|
+
@error_code = error_code
|
9
|
+
@reply_code = reply_code
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
class RecoverableError < Error
|
14
|
+
end
|
15
|
+
|
16
|
+
class IrrecoverableError < Error
|
17
|
+
end
|
18
|
+
|
19
|
+
class BadRequestError < Error
|
20
|
+
end
|
21
|
+
|
22
|
+
class UnauthorizedError < Error
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
module Emarsys
|
2
|
+
module Api
|
3
|
+
class Internal < Base
|
4
|
+
attr_reader :customer_id
|
5
|
+
|
6
|
+
|
7
|
+
def initialize(customer_id)
|
8
|
+
@customer_id = customer_id
|
9
|
+
end
|
10
|
+
|
11
|
+
|
12
|
+
def campaign_get(campaign_id)
|
13
|
+
client.get("email/#{campaign_id}").tap { |response| validate_response! response }.body['data']
|
14
|
+
end
|
15
|
+
|
16
|
+
|
17
|
+
private
|
18
|
+
|
19
|
+
def module_path
|
20
|
+
"/api/v2/internal/#{customer_id}"
|
21
|
+
end
|
22
|
+
|
23
|
+
|
24
|
+
def parse_for_error(response)
|
25
|
+
if response.body.is_a? Hash
|
26
|
+
[response.body['replyText'], response.status, response.body['replyCode']]
|
27
|
+
else
|
28
|
+
super
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
module Emarsys
|
2
|
+
module Api
|
3
|
+
class Services < Base
|
4
|
+
|
5
|
+
def launchlist_get(customer_id, campaign_id, limit = 10_000, offset = 0) # rubocop:disable Metrics/ParameterLists
|
6
|
+
params = { limit: limit, offset: offset }
|
7
|
+
response = client.get "customers/#{customer_id}/campaigns/#{campaign_id}/launch_list/contact_ids/", params
|
8
|
+
|
9
|
+
validate_response! response
|
10
|
+
|
11
|
+
response.body['contact_ids']
|
12
|
+
end
|
13
|
+
|
14
|
+
|
15
|
+
def email_queue(customer_id, params)
|
16
|
+
response = client.post "customers/#{customer_id}/email_queue/", JSON.generate(params)
|
17
|
+
validate_response! response
|
18
|
+
|
19
|
+
response.body
|
20
|
+
end
|
21
|
+
|
22
|
+
|
23
|
+
private
|
24
|
+
|
25
|
+
def module_path
|
26
|
+
'/api/services'
|
27
|
+
end
|
28
|
+
|
29
|
+
|
30
|
+
def parse_for_error(response)
|
31
|
+
errors = response.body['errors']
|
32
|
+
if response.body.is_a?(Hash) && errors.is_a?(Array) && errors.first.is_a?(Hash)
|
33
|
+
[errors.first['message'], response.status, errors.first['code']]
|
34
|
+
else
|
35
|
+
super
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
metadata
ADDED
@@ -0,0 +1,188 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: emarsys-api
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Istvan Demeter
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-01-22 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: escher-keypool
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: faraday
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0.11'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0.11'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: faraday_middleware
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0.11'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0.11'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: faraday_middleware-escher
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0.3'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0.3'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: bundler
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '1.13'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.13'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rake
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '12.0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '12.0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rspec
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '3.5'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '3.5'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rubocop
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0.46'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0.46'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: webmock
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '2.3'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '2.3'
|
139
|
+
description:
|
140
|
+
email:
|
141
|
+
- demeter.istvan@gmail.com
|
142
|
+
executables: []
|
143
|
+
extensions: []
|
144
|
+
extra_rdoc_files: []
|
145
|
+
files:
|
146
|
+
- ".gitignore"
|
147
|
+
- ".rspec"
|
148
|
+
- ".rubocop.yml"
|
149
|
+
- ".travis.yml"
|
150
|
+
- CODE_OF_CONDUCT.md
|
151
|
+
- Gemfile
|
152
|
+
- LICENSE.txt
|
153
|
+
- README.md
|
154
|
+
- Rakefile
|
155
|
+
- bin/console
|
156
|
+
- bin/setup
|
157
|
+
- emarsys-api.gemspec
|
158
|
+
- lib/emarsys/api.rb
|
159
|
+
- lib/emarsys/api/base.rb
|
160
|
+
- lib/emarsys/api/error.rb
|
161
|
+
- lib/emarsys/api/internal.rb
|
162
|
+
- lib/emarsys/api/services.rb
|
163
|
+
- lib/emarsys/api/version.rb
|
164
|
+
homepage: https://github.com/emartech/emarsys-api-ruby
|
165
|
+
licenses:
|
166
|
+
- MIT
|
167
|
+
metadata: {}
|
168
|
+
post_install_message:
|
169
|
+
rdoc_options: []
|
170
|
+
require_paths:
|
171
|
+
- lib
|
172
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
173
|
+
requirements:
|
174
|
+
- - ">="
|
175
|
+
- !ruby/object:Gem::Version
|
176
|
+
version: '0'
|
177
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
178
|
+
requirements:
|
179
|
+
- - ">="
|
180
|
+
- !ruby/object:Gem::Version
|
181
|
+
version: '0'
|
182
|
+
requirements: []
|
183
|
+
rubyforge_project:
|
184
|
+
rubygems_version: 2.6.8
|
185
|
+
signing_key:
|
186
|
+
specification_version: 4
|
187
|
+
summary: Ruby client to make it easier to use the API of emarsys B2C MC
|
188
|
+
test_files: []
|