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 +4 -4
- data/.gitignore +3 -0
- data/.rubocop.yml +5 -5
- data/.travis.yml +4 -4
- data/README.md +4 -2
- data/lib/emarsys/api/internal.rb +2 -2
- data/lib/emarsys/api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8dafc40db0ca328bfc16a199acf7b94f4419679c
|
|
4
|
+
data.tar.gz: 808c9b599f64dbe2a96e853127ceea88725e81cd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 247b3521edf16f7804e1ac8ffbafa3a819cf9accec8aa8a4ec17e4463f452779a7bd2fdb4e2a3b21b24d3ca523d7b03a4259d90a97822a23e4c94e951e5c634c
|
|
7
|
+
data.tar.gz: 7044fcea31b7892c648cc78045f5ca71ad720eeb3f7113f81ba3045adf3ddcda39a6f1955117ab936ef56f1310f07a96071e26fb17831a38cdaee821923fb5e7
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
|
@@ -12,22 +12,22 @@ Metrics/ParameterLists:
|
|
|
12
12
|
Max: 3
|
|
13
13
|
CountKeywordArgs: false
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
Style/IndentHash:
|
|
16
16
|
EnforcedStyle: consistent
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
Style/IndentArray:
|
|
19
19
|
EnforcedStyle: consistent
|
|
20
20
|
|
|
21
21
|
Style/FrozenStringLiteralComment:
|
|
22
22
|
Enabled: false
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
Style/EmptyLines:
|
|
25
25
|
Enabled: false
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
Style/EmptyLinesAroundClassBody:
|
|
28
28
|
Enabled: false
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
Style/MultilineOperationIndentation:
|
|
31
31
|
EnforcedStyle: indented
|
|
32
32
|
|
|
33
33
|
Style/Documentation:
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
[](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.
|
data/lib/emarsys/api/internal.rb
CHANGED
|
@@ -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
|
|
20
|
-
params = { name: name, application_type:
|
|
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
|
data/lib/emarsys/api/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2017-11-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: escher-keypool
|