emarsys 0.1.0 → 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/.travis.yml +8 -0
- data/Gemfile +0 -6
- data/README.md +118 -64
- data/emarsys.gemspec +3 -1
- data/lib/emarsys/client.rb +7 -9
- data/lib/emarsys/country.rb +220 -0
- data/lib/emarsys/data_object.rb +12 -3
- data/lib/emarsys/data_objects/condition.rb +2 -1
- data/lib/emarsys/data_objects/contact.rb +3 -2
- data/lib/emarsys/data_objects/contact_list.rb +2 -1
- data/lib/emarsys/data_objects/email.rb +2 -1
- data/lib/emarsys/data_objects/email_category.rb +2 -1
- data/lib/emarsys/data_objects/email_launch_status.rb +2 -1
- data/lib/emarsys/data_objects/email_status_code.rb +2 -1
- data/lib/emarsys/data_objects/event.rb +18 -1
- data/lib/emarsys/data_objects/export.rb +2 -1
- data/lib/emarsys/data_objects/field.rb +2 -1
- data/lib/emarsys/data_objects/file.rb +2 -1
- data/lib/emarsys/data_objects/folder.rb +2 -1
- data/lib/emarsys/data_objects/form.rb +2 -1
- data/lib/emarsys/data_objects/language.rb +2 -1
- data/lib/emarsys/data_objects/segment.rb +2 -1
- data/lib/emarsys/data_objects/source.rb +2 -1
- data/lib/emarsys/error.rb +2 -1
- data/lib/emarsys/extensions.rb +2 -1
- data/lib/emarsys/field_mapping.rb +2 -1
- data/lib/emarsys/params_converter.rb +2 -1
- data/lib/emarsys/request.rb +2 -1
- data/lib/emarsys/response.rb +2 -1
- data/lib/emarsys/version.rb +2 -1
- data/lib/emarsys.rb +5 -3
- data/spec/emarsys/client_spec.rb +25 -24
- data/spec/emarsys/country_spec.rb +22 -0
- data/spec/emarsys/data_object_spec.rb +14 -9
- data/spec/emarsys/data_objects/condition_spec.rb +4 -2
- data/spec/emarsys/data_objects/contact_list_spec.rb +4 -2
- data/spec/emarsys/data_objects/contact_spec.rb +17 -17
- data/spec/emarsys/data_objects/email_category_spec.rb +4 -2
- data/spec/emarsys/data_objects/email_spec.rb +31 -21
- data/spec/emarsys/data_objects/event_spec.rb +16 -6
- data/spec/emarsys/data_objects/export_spec.rb +4 -2
- data/spec/emarsys/data_objects/field_spec.rb +10 -4
- data/spec/emarsys/data_objects/file_spec.rb +11 -7
- data/spec/emarsys/data_objects/folder_spec.rb +7 -3
- data/spec/emarsys/data_objects/form_spec.rb +4 -2
- data/spec/emarsys/data_objects/language_spec.rb +4 -2
- data/spec/emarsys/data_objects/segment_spec.rb +4 -2
- data/spec/emarsys/data_objects/source_spec.rb +8 -6
- data/spec/emarsys/field_mapping_spec.rb +4 -4
- data/spec/emarsys/params_converter_spec.rb +2 -2
- data/spec/emarsys/request_spec.rb +2 -2
- data/spec/emarsys/response_spec.rb +5 -5
- data/spec/emarsys_spec.rb +2 -2
- data/spec/spec_helper.rb +2 -4
- metadata +48 -25
@@ -3,82 +3,92 @@ require 'spec_helper'
|
|
3
3
|
describe Emarsys::Email do
|
4
4
|
describe ".collection" do
|
5
5
|
it "requests all emails" do
|
6
|
-
|
6
|
+
expect(
|
7
|
+
stub_get('email') { Emarsys::Email.collection }
|
8
|
+
).to have_been_requested.once
|
7
9
|
end
|
8
10
|
|
9
11
|
it "requests all emails to the given status parameter" do
|
10
|
-
|
12
|
+
expect(
|
13
|
+
stub_get('email/?status=3') { Emarsys::Email.collection({:status => 3}) }
|
14
|
+
).to have_been_requested.once
|
11
15
|
end
|
12
16
|
|
13
17
|
it "requests all emails to the given contactlist parameter" do
|
14
|
-
|
18
|
+
expect(
|
19
|
+
stub_get('email/?contactlist=123') { Emarsys::Email.collection({:contactlist => 123}) }
|
20
|
+
).to have_been_requested.once
|
15
21
|
end
|
16
22
|
|
17
23
|
it "requests all emails - even with combined parameters" do
|
18
|
-
|
24
|
+
expect(
|
25
|
+
stub_get('email/?status=3&contactlist=123') { Emarsys::Email.collection({:status => 3, :contactlist => 123}) }
|
26
|
+
).to have_been_requested.once
|
19
27
|
end
|
20
28
|
end
|
21
29
|
|
22
30
|
describe ".resource" do
|
23
31
|
it "requests a single email" do
|
24
|
-
|
32
|
+
expect(
|
33
|
+
stub_get('email/123') { Emarsys::Email.resource(123) }
|
34
|
+
).to have_been_requested.once
|
25
35
|
end
|
26
36
|
end
|
27
37
|
|
28
38
|
describe ".create" do
|
29
39
|
it "requests email creation" do
|
30
|
-
stub = stub_request(:post, "https://
|
40
|
+
stub = stub_request(:post, "https://api.emarsys.net/api/v2/email").to_return(standard_return_body)
|
31
41
|
Emarsys::Email.create
|
32
|
-
stub.
|
42
|
+
expect(stub).to have_been_requested.once
|
33
43
|
end
|
34
44
|
|
35
45
|
it "requests email creation with parameters" do
|
36
46
|
stub_params = {:language => 'de', :name => "Something"}
|
37
|
-
stub = stub_request(:post, "https://
|
47
|
+
stub = stub_request(:post, "https://api.emarsys.net/api/v2/email").with(:body => stub_params.to_json).to_return(standard_return_body)
|
38
48
|
Emarsys::Email.create(stub_params)
|
39
|
-
stub.
|
49
|
+
expect(stub).to have_been_requested.once
|
40
50
|
end
|
41
51
|
end
|
42
52
|
|
43
53
|
describe ".launch" do
|
44
54
|
it "requests an email launch" do
|
45
|
-
stub = stub_request(:post, "https://
|
55
|
+
stub = stub_request(:post, "https://api.emarsys.net/api/v2/email/123/launch").to_return(standard_return_body)
|
46
56
|
Emarsys::Email.launch(123)
|
47
|
-
stub.
|
57
|
+
expect(stub).to have_been_requested.once
|
48
58
|
end
|
49
59
|
|
50
60
|
it "requests an email launch with parameters" do
|
51
61
|
stub_params = {:schedule => "2013-12-01 23:00:00", :time_zone => "Europe/Berlin"}
|
52
|
-
stub = stub_request(:post, "https://
|
62
|
+
stub = stub_request(:post, "https://api.emarsys.net/api/v2/email/123/launch").with(:body => stub_params.to_json).to_return(standard_return_body)
|
53
63
|
Emarsys::Email.launch(123, stub_params)
|
54
|
-
stub.
|
64
|
+
expect(stub).to have_been_requested.once
|
55
65
|
end
|
56
66
|
end
|
57
67
|
|
58
68
|
describe ".preview" do
|
59
69
|
it "requests an email preview" do
|
60
70
|
stub_params = {:version => 'html'}
|
61
|
-
stub = stub_request(:post, "https://
|
71
|
+
stub = stub_request(:post, "https://api.emarsys.net/api/v2/email/123/preview").with(:body => stub_params.to_json).to_return(standard_return_body)
|
62
72
|
Emarsys::Email.preview(123, 'html')
|
63
|
-
stub.
|
73
|
+
expect(stub).to have_been_requested.once
|
64
74
|
end
|
65
75
|
end
|
66
76
|
|
67
77
|
describe ".send_test_mail" do
|
68
78
|
it "requests an email test sending with custom recipient list" do
|
69
79
|
stub_params = {:recipientlist => 'john.doe@example.com;jane.doe@example.com'}
|
70
|
-
stub = stub_request(:post, "https://
|
80
|
+
stub = stub_request(:post, "https://api.emarsys.net/api/v2/email/123/sendtestmail").with(:body => stub_params.to_json).to_return(standard_return_body)
|
71
81
|
Emarsys::Email.send_test_mail(123, stub_params)
|
72
|
-
stub.
|
82
|
+
expect(stub).to have_been_requested.once
|
73
83
|
end
|
74
84
|
end
|
75
85
|
|
76
86
|
describe ".response_summary" do
|
77
87
|
it "requests a single email" do
|
78
|
-
|
88
|
+
expect(
|
89
|
+
stub_get('email/123/responsesummary') { Emarsys::Email.response_summary(123) }
|
90
|
+
).to have_been_requested.once
|
79
91
|
end
|
80
92
|
end
|
81
93
|
|
82
|
-
|
83
|
-
|
84
|
-
end
|
94
|
+
end
|
@@ -3,21 +3,31 @@ require 'spec_helper'
|
|
3
3
|
describe Emarsys::Event do
|
4
4
|
describe ".collection" do
|
5
5
|
it "requests all events" do
|
6
|
-
|
6
|
+
expect(
|
7
|
+
stub_get("event") { Emarsys::Event.collection }
|
8
|
+
).to have_been_requested.once
|
7
9
|
end
|
8
10
|
end
|
9
11
|
|
10
12
|
describe ".trigger" do
|
11
13
|
it "requests event trigger with parameters" do
|
12
|
-
stub = stub_request(:post, "https://
|
14
|
+
stub = stub_request(:post, "https://api.emarsys.net/api/v2/event/123/trigger").with(:body => {'key_id' => 3, 'external_id' => "jane.doe@example.com"}.to_json).to_return(standard_return_body)
|
13
15
|
Emarsys::Event.trigger(123, 3, 'jane.doe@example.com')
|
14
|
-
stub.
|
16
|
+
expect(stub).to have_been_requested.once
|
15
17
|
end
|
16
18
|
|
17
19
|
it "requests event trigger with additional data parameters" do
|
18
|
-
stub = stub_request(:post, "https://
|
20
|
+
stub = stub_request(:post, "https://api.emarsys.net/api/v2/event/123/trigger").with(:body => {'key_id' => 3, 'external_id' => "jane.doe@example.com", :data => {'global' => {'my_placeholder' => 'Something'}}}.to_json).to_return(standard_return_body)
|
19
21
|
Emarsys::Event.trigger(123, 3, 'jane.doe@example.com', {'global' => {'my_placeholder' => 'Something'}})
|
20
|
-
stub.
|
22
|
+
expect(stub).to have_been_requested.once
|
21
23
|
end
|
22
24
|
end
|
23
|
-
|
25
|
+
|
26
|
+
describe ".trigger_multiple" do
|
27
|
+
it "requests event trigger with parameters" do
|
28
|
+
stub = stub_request(:post, "https://api.emarsys.net/api/v2/event/123/trigger").with(:body => {'key_id' => 3, 'external_id' => "", :data => nil, :contacts => [{'external_id' => "jane.doe@example.com"}]}.to_json).to_return(standard_return_body)
|
29
|
+
Emarsys::Event.trigger_multiple(123,3,[{'external_id' => 'jane.doe@example.com'}])
|
30
|
+
expect(stub).to have_been_requested.once
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -3,7 +3,9 @@ require 'spec_helper'
|
|
3
3
|
describe Emarsys::Export do
|
4
4
|
describe ".resource" do
|
5
5
|
it "requests a single export" do
|
6
|
-
|
6
|
+
expect(
|
7
|
+
stub_get('export/123') { Emarsys::Export.resource(123) }
|
8
|
+
).to have_been_requested.once
|
7
9
|
end
|
8
10
|
end
|
9
|
-
end
|
11
|
+
end
|
@@ -3,17 +3,23 @@ require 'spec_helper'
|
|
3
3
|
describe Emarsys::Field do
|
4
4
|
describe ".collection" do
|
5
5
|
it "requests all fields" do
|
6
|
-
|
6
|
+
expect(
|
7
|
+
stub_get("field") { Emarsys::Field.collection }
|
8
|
+
).to have_been_requested.once
|
7
9
|
end
|
8
10
|
|
9
11
|
it "requests all fields with translate parameter" do
|
10
|
-
|
12
|
+
expect(
|
13
|
+
stub_get("field/translate/en") { Emarsys::Field.collection('translate' => 'en') }
|
14
|
+
).to have_been_requested.once
|
11
15
|
end
|
12
16
|
end
|
13
17
|
|
14
18
|
describe ".choice" do
|
15
19
|
it "requests the choice options of a field" do
|
16
|
-
|
20
|
+
expect(
|
21
|
+
stub_get("field/1/choice") { Emarsys::Field.choice(1) }
|
22
|
+
).to have_been_requested.once
|
17
23
|
end
|
18
24
|
end
|
19
|
-
end
|
25
|
+
end
|
@@ -3,27 +3,31 @@ require 'spec_helper'
|
|
3
3
|
describe Emarsys::File do
|
4
4
|
describe ".collection" do
|
5
5
|
it "requests all files" do
|
6
|
-
|
6
|
+
expect(
|
7
|
+
stub_get("file") { Emarsys::File.collection }
|
8
|
+
).to have_been_requested.once
|
7
9
|
end
|
8
10
|
|
9
11
|
it "requests all files with parameter" do
|
10
|
-
|
12
|
+
expect(
|
13
|
+
stub_get("file/?folder=3") { Emarsys::File.collection(:folder => 3) }
|
14
|
+
).to have_been_requested.once
|
11
15
|
end
|
12
16
|
end
|
13
17
|
|
14
18
|
describe ".create" do
|
15
19
|
it "requests file creation with parameters" do
|
16
20
|
stub_params = {:filename => 'my_file.jpg', :file => 'base_64_encoded_string'}
|
17
|
-
stub = stub_request(:post, "https://
|
21
|
+
stub = stub_request(:post, "https://api.emarsys.net/api/v2/file").with(:body => stub_params.to_json).to_return(standard_return_body)
|
18
22
|
Emarsys::File.create('my_file.jpg', 'base_64_encoded_string')
|
19
|
-
stub.
|
23
|
+
expect(stub).to have_been_requested.once
|
20
24
|
end
|
21
25
|
|
22
26
|
it "requests file creation with optional folder parameter" do
|
23
27
|
stub_params = {:filename => 'my_file.jpg', :file => 'base_64_encoded_string', :folder => 3}
|
24
|
-
stub = stub_request(:post, "https://
|
28
|
+
stub = stub_request(:post, "https://api.emarsys.net/api/v2/file").with(:body => stub_params.to_json).to_return(standard_return_body)
|
25
29
|
Emarsys::File.create('my_file.jpg', 'base_64_encoded_string', 3)
|
26
|
-
stub.
|
30
|
+
expect(stub).to have_been_requested.once
|
27
31
|
end
|
28
32
|
end
|
29
|
-
end
|
33
|
+
end
|
@@ -3,11 +3,15 @@ require 'spec_helper'
|
|
3
3
|
describe Emarsys::Folder do
|
4
4
|
describe ".collection" do
|
5
5
|
it "requests all folders" do
|
6
|
-
|
6
|
+
expect(
|
7
|
+
stub_get("folder") { Emarsys::Folder.collection }
|
8
|
+
).to have_been_requested.once
|
7
9
|
end
|
8
10
|
|
9
11
|
it "requests all folders with parameters" do
|
10
|
-
|
12
|
+
expect(
|
13
|
+
stub_get("folder/?folder=3") { Emarsys::Folder.collection(:folder => 3) }
|
14
|
+
).to have_been_requested.once
|
11
15
|
end
|
12
16
|
end
|
13
|
-
end
|
17
|
+
end
|
@@ -3,7 +3,9 @@ require 'spec_helper'
|
|
3
3
|
describe Emarsys::Form do
|
4
4
|
describe ".collection" do
|
5
5
|
it "requests all languages" do
|
6
|
-
|
6
|
+
expect(
|
7
|
+
stub_get("form") { Emarsys::Form.collection }
|
8
|
+
).to have_been_requested.once
|
7
9
|
end
|
8
10
|
end
|
9
|
-
end
|
11
|
+
end
|
@@ -3,7 +3,9 @@ require 'spec_helper'
|
|
3
3
|
describe Emarsys::Language do
|
4
4
|
describe ".collection" do
|
5
5
|
it "requests all languages" do
|
6
|
-
|
6
|
+
expect(
|
7
|
+
stub_get("language") { Emarsys::Language.collection }
|
8
|
+
).to have_been_requested.once
|
7
9
|
end
|
8
10
|
end
|
9
|
-
end
|
11
|
+
end
|
@@ -3,7 +3,9 @@ require 'spec_helper'
|
|
3
3
|
describe Emarsys::Segment do
|
4
4
|
describe ".collection" do
|
5
5
|
it "requests all segments" do
|
6
|
-
|
6
|
+
expect(
|
7
|
+
stub_get("filter") { Emarsys::Segment.collection }
|
8
|
+
).to have_been_requested.once
|
7
9
|
end
|
8
10
|
end
|
9
|
-
end
|
11
|
+
end
|
@@ -3,23 +3,25 @@ require 'spec_helper'
|
|
3
3
|
describe Emarsys::Source do
|
4
4
|
describe ".collection" do
|
5
5
|
it "requests all sources" do
|
6
|
-
|
6
|
+
expect(
|
7
|
+
stub_get("source") { Emarsys::Source.collection }
|
8
|
+
).to have_been_requested.once
|
7
9
|
end
|
8
10
|
end
|
9
11
|
|
10
12
|
describe ".create" do
|
11
13
|
it "requests source creation with parameters" do
|
12
|
-
stub = stub_request(:post, "https://
|
14
|
+
stub = stub_request(:post, "https://api.emarsys.net/api/v2/source/create").with(:body => {:name => 'test_source'}.to_json).to_return(standard_return_body)
|
13
15
|
Emarsys::Source.create('test_source')
|
14
|
-
stub.
|
16
|
+
expect(stub).to have_been_requested.once
|
15
17
|
end
|
16
18
|
end
|
17
19
|
|
18
20
|
describe ".delete" do
|
19
21
|
it "requests source deletion" do
|
20
|
-
stub = stub_request(:delete, "https://
|
22
|
+
stub = stub_request(:delete, "https://api.emarsys.net/api/v2/source/123").to_return(standard_return_body)
|
21
23
|
Emarsys::Source.destroy(123)
|
22
|
-
stub.
|
24
|
+
expect(stub).to have_been_requested.once
|
23
25
|
end
|
24
26
|
end
|
25
|
-
end
|
27
|
+
end
|
@@ -3,12 +3,12 @@ require 'spec_helper'
|
|
3
3
|
describe Emarsys::FieldMapping do
|
4
4
|
|
5
5
|
it "defines constant ATTRBUTES " do
|
6
|
-
Emarsys::FieldMapping::ATTRIBUTES.
|
6
|
+
expect(Emarsys::FieldMapping::ATTRIBUTES).to be_a(Array)
|
7
7
|
end
|
8
8
|
|
9
9
|
it "defines constant ATTRBUTES as an array if hashes" do
|
10
|
-
Emarsys::FieldMapping::ATTRIBUTES.
|
11
|
-
Emarsys::FieldMapping::ATTRIBUTES.map{|elem| elem.
|
10
|
+
expect(Emarsys::FieldMapping::ATTRIBUTES).to be_a(Array)
|
11
|
+
Emarsys::FieldMapping::ATTRIBUTES.map{|elem| expect(elem).to be_a(Hash) }
|
12
12
|
end
|
13
13
|
|
14
|
-
end
|
14
|
+
end
|
@@ -16,7 +16,7 @@ describe Emarsys::ParamsConverter do
|
|
16
16
|
it 'sets params attribute on initialize' do
|
17
17
|
params = {1 => 'Jane', 2 => 'Doe'}
|
18
18
|
params_converter = Emarsys::ParamsConverter.new(params)
|
19
|
-
params_converter.params.
|
19
|
+
expect(params_converter.params).to eq(params)
|
20
20
|
end
|
21
21
|
end
|
22
22
|
|
@@ -49,4 +49,4 @@ describe Emarsys::ParamsConverter do
|
|
49
49
|
end
|
50
50
|
end
|
51
51
|
|
52
|
-
end
|
52
|
+
end
|
@@ -20,8 +20,8 @@ describe Emarsys::Request do
|
|
20
20
|
|
21
21
|
describe '#emarsys_uri' do
|
22
22
|
it 'concats api_endpoint with path' do
|
23
|
-
expect(request.emarsys_uri).to eq("https://
|
23
|
+
expect(request.emarsys_uri).to eq("https://api.emarsys.net/api/v2/some-path")
|
24
24
|
end
|
25
25
|
end
|
26
26
|
|
27
|
-
end
|
27
|
+
end
|
@@ -16,20 +16,20 @@ describe Emarsys::Response do
|
|
16
16
|
let(:response) { Emarsys::Response.new("{\"replyCode\":0,\"replyText\":\"Something\",\"data\":1}") }
|
17
17
|
|
18
18
|
it "returns data if code is 0" do
|
19
|
-
response.
|
19
|
+
allow(response).to receive(:code).and_return(0)
|
20
20
|
expect(response.result).to eq(1)
|
21
21
|
end
|
22
22
|
|
23
23
|
it "raises BadRequest error if code is not 0" do
|
24
|
-
response.
|
24
|
+
allow(response).to receive(:code).and_return(1)
|
25
25
|
expect{response.result}.to raise_error(Emarsys::BadRequest)
|
26
26
|
end
|
27
27
|
|
28
28
|
it "raises Unauthorized error if http-status is 401" do
|
29
|
-
response.
|
30
|
-
response.
|
29
|
+
allow(response).to receive(:code).and_return(1)
|
30
|
+
allow(response).to receive(:status).and_return(401)
|
31
31
|
expect{response.result}.to raise_error(Emarsys::Unauthorized)
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
-
end
|
35
|
+
end
|
data/spec/emarsys_spec.rb
CHANGED
@@ -16,7 +16,7 @@ describe Emarsys do
|
|
16
16
|
describe ".api_endpoint getter" do
|
17
17
|
it "returns specific url as default value" do
|
18
18
|
Emarsys.api_endpoint = nil
|
19
|
-
Emarsys.api_endpoint.
|
19
|
+
expect(Emarsys.api_endpoint).to eq('https://api.emarsys.net/api/v2')
|
20
20
|
end
|
21
21
|
end
|
22
|
-
end
|
22
|
+
end
|
data/spec/spec_helper.rb
CHANGED
@@ -5,8 +5,6 @@ require 'webmock/rspec'
|
|
5
5
|
WebMock.disable_net_connect!
|
6
6
|
|
7
7
|
RSpec.configure do |config|
|
8
|
-
config.treat_symbols_as_metadata_keys_with_true_values = true
|
9
|
-
|
10
8
|
config.before(:all) { stub_emarsys_authentication! }
|
11
9
|
end
|
12
10
|
|
@@ -22,7 +20,7 @@ def standard_return_body
|
|
22
20
|
end
|
23
21
|
|
24
22
|
def stub_get(path, &block)
|
25
|
-
stub = stub_request(:get, "https://
|
23
|
+
stub = stub_request(:get, "https://api.emarsys.net/api/v2/#{path}").to_return(standard_return_body)
|
26
24
|
yield if block_given?
|
27
25
|
stub
|
28
|
-
end
|
26
|
+
end
|
metadata
CHANGED
@@ -1,64 +1,85 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: emarsys
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.2.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Daniel Schoppmann
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2016-12-12 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rest-client
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - ">="
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - ">="
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '0'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: bundler
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- - ~>
|
31
|
+
- - "~>"
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '1.3'
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- - ~>
|
38
|
+
- - "~>"
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: '1.3'
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: rake
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- -
|
45
|
+
- - ">="
|
52
46
|
- !ruby/object:Gem::Version
|
53
47
|
version: '0'
|
54
48
|
type: :development
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
|
-
- -
|
52
|
+
- - ">="
|
60
53
|
- !ruby/object:Gem::Version
|
61
54
|
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 3.5.0
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 3.5.0
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: webmock
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "<"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '2.0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "<"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '2.0'
|
62
83
|
description: A Ruby library for interacting with the Emarsys API.
|
63
84
|
email:
|
64
85
|
- daniel.schoppmann@absolventa.de
|
@@ -66,8 +87,9 @@ executables: []
|
|
66
87
|
extensions: []
|
67
88
|
extra_rdoc_files: []
|
68
89
|
files:
|
69
|
-
- .gitignore
|
70
|
-
- .rspec
|
90
|
+
- ".gitignore"
|
91
|
+
- ".rspec"
|
92
|
+
- ".travis.yml"
|
71
93
|
- Gemfile
|
72
94
|
- LICENSE.txt
|
73
95
|
- README.md
|
@@ -75,6 +97,7 @@ files:
|
|
75
97
|
- emarsys.gemspec
|
76
98
|
- lib/emarsys.rb
|
77
99
|
- lib/emarsys/client.rb
|
100
|
+
- lib/emarsys/country.rb
|
78
101
|
- lib/emarsys/data_object.rb
|
79
102
|
- lib/emarsys/data_objects/condition.rb
|
80
103
|
- lib/emarsys/data_objects/contact.rb
|
@@ -100,6 +123,7 @@ files:
|
|
100
123
|
- lib/emarsys/response.rb
|
101
124
|
- lib/emarsys/version.rb
|
102
125
|
- spec/emarsys/client_spec.rb
|
126
|
+
- spec/emarsys/country_spec.rb
|
103
127
|
- spec/emarsys/data_object_spec.rb
|
104
128
|
- spec/emarsys/data_objects/condition_spec.rb
|
105
129
|
- spec/emarsys/data_objects/contact_list_spec.rb
|
@@ -124,33 +148,33 @@ files:
|
|
124
148
|
- spec/emarsys/response_spec.rb
|
125
149
|
- spec/emarsys_spec.rb
|
126
150
|
- spec/spec_helper.rb
|
127
|
-
homepage:
|
151
|
+
homepage: https://github.com/Absolventa/emarsys-rb
|
128
152
|
licenses:
|
129
153
|
- MIT
|
154
|
+
metadata: {}
|
130
155
|
post_install_message:
|
131
156
|
rdoc_options: []
|
132
157
|
require_paths:
|
133
158
|
- lib
|
134
159
|
required_ruby_version: !ruby/object:Gem::Requirement
|
135
|
-
none: false
|
136
160
|
requirements:
|
137
|
-
- -
|
161
|
+
- - ">="
|
138
162
|
- !ruby/object:Gem::Version
|
139
163
|
version: '0'
|
140
164
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
141
|
-
none: false
|
142
165
|
requirements:
|
143
|
-
- -
|
166
|
+
- - ">="
|
144
167
|
- !ruby/object:Gem::Version
|
145
168
|
version: '0'
|
146
169
|
requirements: []
|
147
170
|
rubyforge_project:
|
148
|
-
rubygems_version:
|
171
|
+
rubygems_version: 2.6.3
|
149
172
|
signing_key:
|
150
|
-
specification_version:
|
173
|
+
specification_version: 4
|
151
174
|
summary: Easy to use ruby library for Emarsys Marketing Suite.
|
152
175
|
test_files:
|
153
176
|
- spec/emarsys/client_spec.rb
|
177
|
+
- spec/emarsys/country_spec.rb
|
154
178
|
- spec/emarsys/data_object_spec.rb
|
155
179
|
- spec/emarsys/data_objects/condition_spec.rb
|
156
180
|
- spec/emarsys/data_objects/contact_list_spec.rb
|
@@ -175,4 +199,3 @@ test_files:
|
|
175
199
|
- spec/emarsys/response_spec.rb
|
176
200
|
- spec/emarsys_spec.rb
|
177
201
|
- spec/spec_helper.rb
|
178
|
-
has_rdoc:
|