emarsys-api 0.5.0 → 0.6.0

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: 34ff4536aad0d125c02062e75acbdc634921b2fd
4
- data.tar.gz: 0a3e36c655871a11f7e9e8cf901aa8bda28c5338
3
+ metadata.gz: 8dafc40db0ca328bfc16a199acf7b94f4419679c
4
+ data.tar.gz: 808c9b599f64dbe2a96e853127ceea88725e81cd
5
5
  SHA512:
6
- metadata.gz: 847e9383613fe793e8c17d31fe1faadb1f30a520835363f29909dea11e9f2513de00b18fee06fe30c078384947efcbb1bdd889b73aea7b305285c832730aa5ec
7
- data.tar.gz: 5deb2ff9b7fec0843a2d3b565a123ec9a13d1825f484f879a18d33dcd0775d33c65a2b8811d4090df666bf7c50074009a9ee97ba3539b73cd17890ebe038f1dd
6
+ metadata.gz: 247b3521edf16f7804e1ac8ffbafa3a819cf9accec8aa8a4ec17e4463f452779a7bd2fdb4e2a3b21b24d3ca523d7b03a4259d90a97822a23e4c94e951e5c634c
7
+ data.tar.gz: 7044fcea31b7892c648cc78045f5ca71ad720eeb3f7113f81ba3045adf3ddcda39a6f1955117ab936ef56f1310f07a96071e26fb17831a38cdaee821923fb5e7
data/.gitignore CHANGED
@@ -7,3 +7,6 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+
11
+ .idea
12
+ .vscode
@@ -12,22 +12,22 @@ Metrics/ParameterLists:
12
12
  Max: 3
13
13
  CountKeywordArgs: false
14
14
 
15
- Layout/IndentHash:
15
+ Style/IndentHash:
16
16
  EnforcedStyle: consistent
17
17
 
18
- Layout/IndentArray:
18
+ Style/IndentArray:
19
19
  EnforcedStyle: consistent
20
20
 
21
21
  Style/FrozenStringLiteralComment:
22
22
  Enabled: false
23
23
 
24
- Layout/EmptyLines:
24
+ Style/EmptyLines:
25
25
  Enabled: false
26
26
 
27
- Layout/EmptyLinesAroundClassBody:
27
+ Style/EmptyLinesAroundClassBody:
28
28
  Enabled: false
29
29
 
30
- Layout/MultilineOperationIndentation:
30
+ Style/MultilineOperationIndentation:
31
31
  EnforcedStyle: indented
32
32
 
33
33
  Style/Documentation:
@@ -1,7 +1,7 @@
1
1
  sudo: false
2
2
  language: ruby
3
3
  rvm:
4
- - 2.4.0
5
- - 2.3.3
6
- - 2.2.6
7
- before_install: gem install bundler -v 1.13.7
4
+ - 2.4.2
5
+ - 2.3.5
6
+ - 2.2.8
7
+ before_install: gem install bundler -v 1.16.0
data/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ [![Build Status](https://travis-ci.org/emartech/emarsys-api-ruby.svg?branch=master)](https://travis-ci.org/emartech/emarsys-api-ruby)
2
+
1
3
  # Emarsys::Api
2
4
 
3
5
  This is a wrapper around the API of emarsys B2C marketing cloud.
@@ -33,8 +35,8 @@ SUITE_KEYID
33
35
  ## Development
34
36
 
35
37
 
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
+ By setting the environment variable EMARSYS_API_URL to http://suite.ett.local OR http://dockersuite.ett.local you can send request to local
39
+ development emarsys (suite vagrant/docker, if you know what i mean :stuck_out_tongue_winking_eye:)
38
40
 
39
41
 
40
42
  After checking out the repo, run `bin/setup` to install dependencies.
@@ -16,8 +16,8 @@ module Emarsys
16
16
  client.get('field/translate/en').tap { |response| validate_response!(response) }.body['data']
17
17
  end
18
18
 
19
- def voucher_field_create(name)
20
- params = { name: name, application_type: 'voucher' }
19
+ def field_create(type, name)
20
+ params = { name: name, application_type: type }
21
21
  headers = { 'Content-Type' => 'application/json' }
22
22
  client.post('field', params.to_json, headers).tap { |response| validate_response!(response) }.body['data']
23
23
  end
@@ -1,5 +1,5 @@
1
1
  module Emarsys
2
2
  module Api
3
- VERSION = '0.5.0'.freeze
3
+ VERSION = '0.6.0'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: emarsys-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Istvan Demeter
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-11-06 00:00:00.000000000 Z
11
+ date: 2017-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: escher-keypool