emarsys-api 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b7a3c6324b51118157f1675c5f970be0d94d923f
4
- data.tar.gz: 21526b3a0d8399a87aada11e6a712ba5effc4489
3
+ metadata.gz: 34ff4536aad0d125c02062e75acbdc634921b2fd
4
+ data.tar.gz: 0a3e36c655871a11f7e9e8cf901aa8bda28c5338
5
5
  SHA512:
6
- metadata.gz: ec92c0d7dd66f3413db35c90eb07f21906209d3666ae346bbb4d4f2e3204035edc583ff51109cbeb56a380df8da27bdbb7d7e1d77b151af275a43a7b387dcd60
7
- data.tar.gz: 296f12b7cf94151cfcc6636d9b901b6a19cf945f1685c7e98b12f4cda4e375cd6e4ee1b4e37cee9c5954888dc650658daa114b271694531c213ce86202f337c0
6
+ metadata.gz: 847e9383613fe793e8c17d31fe1faadb1f30a520835363f29909dea11e9f2513de00b18fee06fe30c078384947efcbb1bdd889b73aea7b305285c832730aa5ec
7
+ data.tar.gz: 5deb2ff9b7fec0843a2d3b565a123ec9a13d1825f484f879a18d33dcd0775d33c65a2b8811d4090df666bf7c50074009a9ee97ba3539b73cd17890ebe038f1dd
@@ -22,6 +22,11 @@ module Emarsys
22
22
  client.post('field', params.to_json, headers).tap { |response| validate_response!(response) }.body['data']
23
23
  end
24
24
 
25
+ def field_delete(field_id)
26
+ headers = { 'Content-Type' => 'application/json' }
27
+ url = "field/#{field_id}/delete"
28
+ client.delete(url, nil, headers).tap { |response| validate_response!(response) }.body['data']
29
+ end
25
30
 
26
31
  private
27
32
 
@@ -1,5 +1,5 @@
1
1
  module Emarsys
2
2
  module Api
3
- VERSION = '0.4.0'.freeze
3
+ VERSION = '0.5.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.4.0
4
+ version: 0.5.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-10-03 00:00:00.000000000 Z
11
+ date: 2017-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: escher-keypool
@@ -181,7 +181,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
181
181
  version: '0'
182
182
  requirements: []
183
183
  rubyforge_project:
184
- rubygems_version: 2.6.11
184
+ rubygems_version: 2.6.14
185
185
  signing_key:
186
186
  specification_version: 4
187
187
  summary: Ruby client to make it easier to use the API of emarsys B2C MC