mailroute 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/lib/mailroute.rb +1 -0
- data/lib/mailroute/models/domain.rb +1 -1
- data/lib/mailroute/models/email_account.rb +18 -3
- data/lib/mailroute/models/timezone.rb +54 -0
- data/lib/mailroute/version.rb +1 -1
- data/spec/lib/mailroute/models/domain_spec.rb +15 -9
- data/spec/lib/mailroute/models/email_account_spec.rb +50 -6
- data/spec/lib/mailroute/models/policy_filter_spec.rb +1 -4
- data/spec/lib/mailroute/models/timezone_spec.rb +15 -0
- data/spec/vcr_cassettes/Mailroute_Domain/has_many_notification_tasks/should_be_able_to_create_a_new_task.yml +174 -0
- data/spec/vcr_cassettes/Mailroute_Domain/has_many_notification_tasks/should_have_many_notification_task.yml +172 -0
- data/spec/vcr_cassettes/Mailroute_EmailAccount/_set_password/should_set_the_password.yml +55 -63
- data/spec/vcr_cassettes/Mailroute_EmailAccount/has_many_notification_tasks/changing_active_notification_tasks/should_use_tasks_either_from_domain_or_from_the_email_account_itself.yml +341 -0
- data/spec/vcr_cassettes/Mailroute_EmailAccount/has_many_notification_tasks/should_be_able_to_create_a_new_task.yml +174 -0
- data/spec/vcr_cassettes/Mailroute_EmailAccount/has_many_notification_tasks/should_have_many_notification_task.yml +172 -0
- data/spec/vcr_cassettes/Mailroute_PolicyFilter/Mailroute_PolicyDomain/standard_mode/anti_spam_preset/.yml +104 -0
- data/spec/vcr_cassettes/Mailroute_PolicyFilter/Mailroute_PolicyUser/standard_mode/anti_spam_preset/.yml +104 -0
- metadata +21 -9
- data/Gemfile.lock +0 -87
- data/spec/vcr_cassettes/Mailroute_Domain/has_a_notification_task/should_have_notification_task.yml +0 -249
- data/spec/vcr_cassettes/Mailroute_EmailAccount/has_notification_task/should_have_notification_task.yml +0 -79
@@ -0,0 +1,104 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://admin-dev.mailroute.net/api/v1/policy_user/16395/
|
6
|
+
body:
|
7
|
+
string: ""
|
8
|
+
headers:
|
9
|
+
Accept:
|
10
|
+
- application/json
|
11
|
+
Authorization:
|
12
|
+
- ApiKey blablablablabla@example.com:5f64xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx8262
|
13
|
+
response:
|
14
|
+
status:
|
15
|
+
code: 200
|
16
|
+
message: OK
|
17
|
+
headers:
|
18
|
+
Content-Type:
|
19
|
+
- application/json; charset=utf-8
|
20
|
+
Connection:
|
21
|
+
- keep-alive
|
22
|
+
Vary:
|
23
|
+
- Accept, Cookie
|
24
|
+
- Accept-Encoding
|
25
|
+
Date:
|
26
|
+
- Mon, 20 May 2013 17:50:44 GMT
|
27
|
+
Cache-Control:
|
28
|
+
- no-cache
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
31
|
+
Server:
|
32
|
+
- nginx/1.2.8
|
33
|
+
body:
|
34
|
+
string: "{\"addr_extension_bad_header\": null, \"addr_extension_banned\": null, \"addr_extension_spam\": null, \"addr_extension_virus\": null, \"archive_quarantine_to\": null, \"bad_header_lover\": \"N\", \"bad_header_quarantine_to\": \"sql:\", \"banned_files_lover\": \"N\", \"banned_quarantine_to\": \"sql:\", \"bypass_banned_checks\": \"N\", \"bypass_header_checks\": \"N\", \"bypass_spam_checks\": \"N\", \"bypass_virus_checks\": \"N\", \"email_account\": \"/api/v1/email_account/7718/\", \"id\": 16395, \"message_size_limit\": 0, \"priority\": 1, \"resource_uri\": \"/api/v1/policy_user/16395/\", \"spam_kill_level\": 7.0, \"spam_lover\": \"N\", \"spam_quarantine_cutoff_level\": null, \"spam_quarantine_to\": \"sql:\", \"spam_subject_tag\": null, \"spam_subject_tag2\": \"\", \"spam_subject_tag3\": null, \"spam_tag2_level\": null, \"spam_tag3_level\": null, \"spam_tag_level\": -9999.0, \"unchecked_lover\": \"Y\", \"unchecked_quarantine_to\": null, \"use_domain_policy\": true, \"virus_lover\": \"N\", \"virus_quarantine_to\": \"sql:\", \"warnbadhrecip\": \"N\", \"warnbannedrecip\": \"N\", \"warnvirusrecip\": \"N\"}"
|
35
|
+
http_version:
|
36
|
+
recorded_at: Mon, 20 May 2013 17:50:44 GMT
|
37
|
+
- request:
|
38
|
+
method: put
|
39
|
+
uri: https://admin-dev.mailroute.net/api/v1/policy_user/16395/
|
40
|
+
body:
|
41
|
+
string: "{\"warnbannedrecip\":\"N\",\"spam_subject_tag3\":null,\"spam_subject_tag2\":\"\",\"bad_header_quarantine_to\":\"sql:\",\"addr_extension_virus\":null,\"warnbadhrecip\":\"N\",\"virus_quarantine_to\":\"sql:\",\"use_domain_policy\":true,\"unchecked_quarantine_to\":null,\"spam_quarantine_cutoff_level\":null,\"addr_extension_banned\":null,\"virus_lover\":\"N\",\"spam_tag_level\":-9999.0,\"banned_quarantine_to\":\"sql:\",\"bypass_header_checks\":\"N\",\"banned_files_lover\":\"N\",\"addr_extension_spam\":null,\"spam_lover\":\"N\",\"resource_uri\":\"/api/v1/policy_user/16395/\",\"spam_subject_tag\":null,\"spam_quarantine_to\":\"sql:\",\"message_size_limit\":0,\"addr_extension_bad_header\":null,\"unchecked_lover\":\"Y\",\"spam_tag2_level\":null,\"priority\":1,\"email_account\":\"/api/v1/email_account/7718/\",\"bad_header_lover\":\"N\",\"archive_quarantine_to\":null,\"anti_spam_preset\":\"standard\",\"warnvirusrecip\":\"N\",\"spam_kill_level\":7.0,\"id\":16395,\"bypass_spam_checks\":\"N\",\"bypass_banned_checks\":\"N\",\"spam_tag3_level\":null,\"bypass_virus_checks\":\"N\"}"
|
42
|
+
headers:
|
43
|
+
Accept:
|
44
|
+
- "*/*"
|
45
|
+
Authorization:
|
46
|
+
- ApiKey blablablablabla@example.com:5f64xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx8262
|
47
|
+
Content-Type:
|
48
|
+
- application/json
|
49
|
+
response:
|
50
|
+
status:
|
51
|
+
code: 202
|
52
|
+
message: ACCEPTED
|
53
|
+
headers:
|
54
|
+
Content-Type:
|
55
|
+
- application/json; charset=utf-8
|
56
|
+
Connection:
|
57
|
+
- keep-alive
|
58
|
+
Vary:
|
59
|
+
- Accept, Cookie
|
60
|
+
Date:
|
61
|
+
- Mon, 20 May 2013 17:50:50 GMT
|
62
|
+
Transfer-Encoding:
|
63
|
+
- chunked
|
64
|
+
Server:
|
65
|
+
- nginx/1.2.6
|
66
|
+
body:
|
67
|
+
string: "{\"addr_extension_bad_header\": null, \"addr_extension_banned\": null, \"addr_extension_spam\": null, \"addr_extension_virus\": null, \"anti_spam_preset\": \"standard\", \"archive_quarantine_to\": null, \"bad_header_lover\": \"N\", \"bad_header_quarantine_to\": \"sql:\", \"banned_files_lover\": \"N\", \"banned_quarantine_to\": \"sql:\", \"bypass_banned_checks\": \"N\", \"bypass_header_checks\": \"N\", \"bypass_spam_checks\": \"N\", \"bypass_virus_checks\": \"N\", \"email_account\": \"/api/v1/email_account/7718/\", \"id\": 16395, \"message_size_limit\": 0, \"pk\": \"16395\", \"priority\": 1, \"resource_uri\": \"/api/v1/policy_user/16395/\", \"spam_kill_level\": 7.0, \"spam_lover\": \"N\", \"spam_quarantine_cutoff_level\": null, \"spam_quarantine_to\": \"sql:\", \"spam_subject_tag\": null, \"spam_subject_tag2\": \"\", \"spam_subject_tag3\": null, \"spam_tag2_level\": null, \"spam_tag3_level\": null, \"spam_tag_level\": -9999.0, \"unchecked_lover\": \"Y\", \"unchecked_quarantine_to\": null, \"use_domain_policy\": true, \"virus_lover\": \"N\", \"virus_quarantine_to\": \"sql:\", \"warnbadhrecip\": \"N\", \"warnbannedrecip\": \"N\", \"warnvirusrecip\": \"N\"}"
|
68
|
+
http_version:
|
69
|
+
recorded_at: Mon, 20 May 2013 17:50:50 GMT
|
70
|
+
- request:
|
71
|
+
method: get
|
72
|
+
uri: https://admin-dev.mailroute.net/api/v1/policy_user/16395/
|
73
|
+
body:
|
74
|
+
string: ""
|
75
|
+
headers:
|
76
|
+
Accept:
|
77
|
+
- application/json
|
78
|
+
Authorization:
|
79
|
+
- ApiKey blablablablabla@example.com:5f64xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx8262
|
80
|
+
response:
|
81
|
+
status:
|
82
|
+
code: 200
|
83
|
+
message: OK
|
84
|
+
headers:
|
85
|
+
Content-Type:
|
86
|
+
- application/json; charset=utf-8
|
87
|
+
Connection:
|
88
|
+
- keep-alive
|
89
|
+
Vary:
|
90
|
+
- Accept, Cookie
|
91
|
+
- Accept-Encoding
|
92
|
+
Date:
|
93
|
+
- Mon, 20 May 2013 17:50:51 GMT
|
94
|
+
Cache-Control:
|
95
|
+
- no-cache
|
96
|
+
Transfer-Encoding:
|
97
|
+
- chunked
|
98
|
+
Server:
|
99
|
+
- nginx/1.2.6
|
100
|
+
body:
|
101
|
+
string: "{\"addr_extension_bad_header\": null, \"addr_extension_banned\": null, \"addr_extension_spam\": null, \"addr_extension_virus\": null, \"archive_quarantine_to\": null, \"bad_header_lover\": \"N\", \"bad_header_quarantine_to\": \"sql:\", \"banned_files_lover\": \"N\", \"banned_quarantine_to\": \"sql:\", \"bypass_banned_checks\": \"N\", \"bypass_header_checks\": \"N\", \"bypass_spam_checks\": \"N\", \"bypass_virus_checks\": \"N\", \"email_account\": \"/api/v1/email_account/7718/\", \"id\": 16395, \"message_size_limit\": 0, \"priority\": 1, \"resource_uri\": \"/api/v1/policy_user/16395/\", \"spam_kill_level\": 7.0, \"spam_lover\": \"N\", \"spam_quarantine_cutoff_level\": null, \"spam_quarantine_to\": \"sql:\", \"spam_subject_tag\": null, \"spam_subject_tag2\": \"\", \"spam_subject_tag3\": null, \"spam_tag2_level\": null, \"spam_tag3_level\": null, \"spam_tag_level\": -9999.0, \"unchecked_lover\": \"Y\", \"unchecked_quarantine_to\": null, \"use_domain_policy\": true, \"virus_lover\": \"N\", \"virus_quarantine_to\": \"sql:\", \"warnbadhrecip\": \"N\", \"warnbannedrecip\": \"N\", \"warnvirusrecip\": \"N\"}"
|
102
|
+
http_version:
|
103
|
+
recorded_at: Mon, 20 May 2013 17:50:52 GMT
|
104
|
+
recorded_with: VCR 2.5.0
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mailroute
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 6
|
10
|
+
version: 0.0.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Viktar Basharymau
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2013-05-
|
18
|
+
date: 2013-05-28 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: rest-client
|
@@ -186,7 +186,6 @@ files:
|
|
186
186
|
- .ruby-version
|
187
187
|
- .travis.yml
|
188
188
|
- Gemfile
|
189
|
-
- Gemfile.lock
|
190
189
|
- Guardfile
|
191
190
|
- LICENSE.txt
|
192
191
|
- README.md
|
@@ -223,6 +222,7 @@ files:
|
|
223
222
|
- lib/mailroute/models/policy_user.rb
|
224
223
|
- lib/mailroute/models/reseller.rb
|
225
224
|
- lib/mailroute/models/reseller_contact.rb
|
225
|
+
- lib/mailroute/models/timezone.rb
|
226
226
|
- lib/mailroute/models/wblist.rb
|
227
227
|
- lib/mailroute/version.rb
|
228
228
|
- mailroute.gemspec
|
@@ -246,6 +246,7 @@ files:
|
|
246
246
|
- spec/lib/mailroute/models/policy_filter_spec.rb
|
247
247
|
- spec/lib/mailroute/models/reseller_contact_spec.rb
|
248
248
|
- spec/lib/mailroute/models/reseller_spec.rb
|
249
|
+
- spec/lib/mailroute/models/timezone_spec.rb
|
249
250
|
- spec/lib/mailroute/models/wblist_spec.rb
|
250
251
|
- spec/spec_helper.rb
|
251
252
|
- spec/support/custom_matchers.rb
|
@@ -297,13 +298,14 @@ files:
|
|
297
298
|
- spec/vcr_cassettes/Mailroute_Domain/_create/should_save_all_attributes.yml
|
298
299
|
- spec/vcr_cassettes/Mailroute_Domain/_domain_aliases/should_return_a_list_of_its_domain_aliases.yml
|
299
300
|
- spec/vcr_cassettes/Mailroute_Domain/black_white_list/should_blacklist_and_whitelist_emails.yml
|
300
|
-
- spec/vcr_cassettes/Mailroute_Domain/has_a_notification_task/should_have_notification_task.yml
|
301
301
|
- spec/vcr_cassettes/Mailroute_Domain/has_a_policy/should_have_policy.yml
|
302
302
|
- spec/vcr_cassettes/Mailroute_Domain/has_many_aliases/should_list_create_and_delete_domain_aliases.yml
|
303
303
|
- spec/vcr_cassettes/Mailroute_Domain/has_many_contacts/should_list_create_and_delete_contacts.yml
|
304
304
|
- spec/vcr_cassettes/Mailroute_Domain/has_many_email_accounts/should_be_possible_to_bulk_create_email_accounts.yml
|
305
305
|
- spec/vcr_cassettes/Mailroute_Domain/has_many_email_accounts/should_list_and_create_email_accounts.yml
|
306
306
|
- spec/vcr_cassettes/Mailroute_Domain/has_many_mail_servers/should_list_create_and_delete_mail_servers.yml
|
307
|
+
- spec/vcr_cassettes/Mailroute_Domain/has_many_notification_tasks/should_be_able_to_create_a_new_task.yml
|
308
|
+
- spec/vcr_cassettes/Mailroute_Domain/has_many_notification_tasks/should_have_many_notification_task.yml
|
307
309
|
- spec/vcr_cassettes/Mailroute_Domain/has_many_outbound_servers/should_list_create_and_delete_outbound_servers.yml
|
308
310
|
- spec/vcr_cassettes/Mailroute_Domain/move_to_customer/should_move_domain_to_another_customer.yml
|
309
311
|
- spec/vcr_cassettes/Mailroute_DomainAlias/should_be_possible_to_create_read_update_and_delete_domain_aliases.yml
|
@@ -326,7 +328,9 @@ files:
|
|
326
328
|
- spec/vcr_cassettes/Mailroute_EmailAccount/black_white_list/should_blacklist_and_whitelist_emails.yml
|
327
329
|
- spec/vcr_cassettes/Mailroute_EmailAccount/has_contact/should_have_contact.yml
|
328
330
|
- spec/vcr_cassettes/Mailroute_EmailAccount/has_domain/should_have_domain.yml
|
329
|
-
- spec/vcr_cassettes/Mailroute_EmailAccount/
|
331
|
+
- spec/vcr_cassettes/Mailroute_EmailAccount/has_many_notification_tasks/changing_active_notification_tasks/should_use_tasks_either_from_domain_or_from_the_email_account_itself.yml
|
332
|
+
- spec/vcr_cassettes/Mailroute_EmailAccount/has_many_notification_tasks/should_be_able_to_create_a_new_task.yml
|
333
|
+
- spec/vcr_cassettes/Mailroute_EmailAccount/has_many_notification_tasks/should_have_many_notification_task.yml
|
330
334
|
- spec/vcr_cassettes/Mailroute_EmailAccount/has_policy/should_have_policy.yml
|
331
335
|
- spec/vcr_cassettes/Mailroute_EmailAccount/should_be_possible_to_create_read_update_and_delete_email_accounts.yml
|
332
336
|
- spec/vcr_cassettes/Mailroute_EmailAccountContact/CRUD/should_create_read_update_and_delete_email_account_contacts.yml
|
@@ -346,6 +350,7 @@ files:
|
|
346
350
|
- spec/vcr_cassettes/Mailroute_PolicyFilter/Mailroute_PolicyDomain/enabling_spam_filter/bypass_spam_checks/.yml
|
347
351
|
- spec/vcr_cassettes/Mailroute_PolicyFilter/Mailroute_PolicyDomain/enabling_virus_filter/bypass_virus_checks/.yml
|
348
352
|
- spec/vcr_cassettes/Mailroute_PolicyFilter/Mailroute_PolicyDomain/lenient_mode/anti_spam_preset/.yml
|
353
|
+
- spec/vcr_cassettes/Mailroute_PolicyFilter/Mailroute_PolicyDomain/standard_mode/anti_spam_preset/.yml
|
349
354
|
- spec/vcr_cassettes/Mailroute_PolicyFilter/Mailroute_PolicyDomain/unknown_mode/should_raise_argument_error.yml
|
350
355
|
- spec/vcr_cassettes/Mailroute_PolicyFilter/Mailroute_PolicyUser/aggressive_mode/anti_spam_preset/.yml
|
351
356
|
- spec/vcr_cassettes/Mailroute_PolicyFilter/Mailroute_PolicyUser/disabling_banned_filter/bypass_banned_checks/.yml
|
@@ -357,6 +362,7 @@ files:
|
|
357
362
|
- spec/vcr_cassettes/Mailroute_PolicyFilter/Mailroute_PolicyUser/enabling_spam_filter/bypass_spam_checks/.yml
|
358
363
|
- spec/vcr_cassettes/Mailroute_PolicyFilter/Mailroute_PolicyUser/enabling_virus_filter/bypass_virus_checks/.yml
|
359
364
|
- spec/vcr_cassettes/Mailroute_PolicyFilter/Mailroute_PolicyUser/lenient_mode/anti_spam_preset/.yml
|
365
|
+
- spec/vcr_cassettes/Mailroute_PolicyFilter/Mailroute_PolicyUser/standard_mode/anti_spam_preset/.yml
|
360
366
|
- spec/vcr_cassettes/Mailroute_PolicyFilter/Mailroute_PolicyUser/unknown_mode/should_raise_argument_error.yml
|
361
367
|
- spec/vcr_cassettes/Mailroute_Reseller/_admins/should_return_a_list_of_its_admins.yml
|
362
368
|
- spec/vcr_cassettes/Mailroute_Reseller/_all/should_accept_limit_keyword.yml
|
@@ -467,6 +473,7 @@ test_files:
|
|
467
473
|
- spec/lib/mailroute/models/policy_filter_spec.rb
|
468
474
|
- spec/lib/mailroute/models/reseller_contact_spec.rb
|
469
475
|
- spec/lib/mailroute/models/reseller_spec.rb
|
476
|
+
- spec/lib/mailroute/models/timezone_spec.rb
|
470
477
|
- spec/lib/mailroute/models/wblist_spec.rb
|
471
478
|
- spec/spec_helper.rb
|
472
479
|
- spec/support/custom_matchers.rb
|
@@ -518,13 +525,14 @@ test_files:
|
|
518
525
|
- spec/vcr_cassettes/Mailroute_Domain/_create/should_save_all_attributes.yml
|
519
526
|
- spec/vcr_cassettes/Mailroute_Domain/_domain_aliases/should_return_a_list_of_its_domain_aliases.yml
|
520
527
|
- spec/vcr_cassettes/Mailroute_Domain/black_white_list/should_blacklist_and_whitelist_emails.yml
|
521
|
-
- spec/vcr_cassettes/Mailroute_Domain/has_a_notification_task/should_have_notification_task.yml
|
522
528
|
- spec/vcr_cassettes/Mailroute_Domain/has_a_policy/should_have_policy.yml
|
523
529
|
- spec/vcr_cassettes/Mailroute_Domain/has_many_aliases/should_list_create_and_delete_domain_aliases.yml
|
524
530
|
- spec/vcr_cassettes/Mailroute_Domain/has_many_contacts/should_list_create_and_delete_contacts.yml
|
525
531
|
- spec/vcr_cassettes/Mailroute_Domain/has_many_email_accounts/should_be_possible_to_bulk_create_email_accounts.yml
|
526
532
|
- spec/vcr_cassettes/Mailroute_Domain/has_many_email_accounts/should_list_and_create_email_accounts.yml
|
527
533
|
- spec/vcr_cassettes/Mailroute_Domain/has_many_mail_servers/should_list_create_and_delete_mail_servers.yml
|
534
|
+
- spec/vcr_cassettes/Mailroute_Domain/has_many_notification_tasks/should_be_able_to_create_a_new_task.yml
|
535
|
+
- spec/vcr_cassettes/Mailroute_Domain/has_many_notification_tasks/should_have_many_notification_task.yml
|
528
536
|
- spec/vcr_cassettes/Mailroute_Domain/has_many_outbound_servers/should_list_create_and_delete_outbound_servers.yml
|
529
537
|
- spec/vcr_cassettes/Mailroute_Domain/move_to_customer/should_move_domain_to_another_customer.yml
|
530
538
|
- spec/vcr_cassettes/Mailroute_DomainAlias/should_be_possible_to_create_read_update_and_delete_domain_aliases.yml
|
@@ -547,7 +555,9 @@ test_files:
|
|
547
555
|
- spec/vcr_cassettes/Mailroute_EmailAccount/black_white_list/should_blacklist_and_whitelist_emails.yml
|
548
556
|
- spec/vcr_cassettes/Mailroute_EmailAccount/has_contact/should_have_contact.yml
|
549
557
|
- spec/vcr_cassettes/Mailroute_EmailAccount/has_domain/should_have_domain.yml
|
550
|
-
- spec/vcr_cassettes/Mailroute_EmailAccount/
|
558
|
+
- spec/vcr_cassettes/Mailroute_EmailAccount/has_many_notification_tasks/changing_active_notification_tasks/should_use_tasks_either_from_domain_or_from_the_email_account_itself.yml
|
559
|
+
- spec/vcr_cassettes/Mailroute_EmailAccount/has_many_notification_tasks/should_be_able_to_create_a_new_task.yml
|
560
|
+
- spec/vcr_cassettes/Mailroute_EmailAccount/has_many_notification_tasks/should_have_many_notification_task.yml
|
551
561
|
- spec/vcr_cassettes/Mailroute_EmailAccount/has_policy/should_have_policy.yml
|
552
562
|
- spec/vcr_cassettes/Mailroute_EmailAccount/should_be_possible_to_create_read_update_and_delete_email_accounts.yml
|
553
563
|
- spec/vcr_cassettes/Mailroute_EmailAccountContact/CRUD/should_create_read_update_and_delete_email_account_contacts.yml
|
@@ -567,6 +577,7 @@ test_files:
|
|
567
577
|
- spec/vcr_cassettes/Mailroute_PolicyFilter/Mailroute_PolicyDomain/enabling_spam_filter/bypass_spam_checks/.yml
|
568
578
|
- spec/vcr_cassettes/Mailroute_PolicyFilter/Mailroute_PolicyDomain/enabling_virus_filter/bypass_virus_checks/.yml
|
569
579
|
- spec/vcr_cassettes/Mailroute_PolicyFilter/Mailroute_PolicyDomain/lenient_mode/anti_spam_preset/.yml
|
580
|
+
- spec/vcr_cassettes/Mailroute_PolicyFilter/Mailroute_PolicyDomain/standard_mode/anti_spam_preset/.yml
|
570
581
|
- spec/vcr_cassettes/Mailroute_PolicyFilter/Mailroute_PolicyDomain/unknown_mode/should_raise_argument_error.yml
|
571
582
|
- spec/vcr_cassettes/Mailroute_PolicyFilter/Mailroute_PolicyUser/aggressive_mode/anti_spam_preset/.yml
|
572
583
|
- spec/vcr_cassettes/Mailroute_PolicyFilter/Mailroute_PolicyUser/disabling_banned_filter/bypass_banned_checks/.yml
|
@@ -578,6 +589,7 @@ test_files:
|
|
578
589
|
- spec/vcr_cassettes/Mailroute_PolicyFilter/Mailroute_PolicyUser/enabling_spam_filter/bypass_spam_checks/.yml
|
579
590
|
- spec/vcr_cassettes/Mailroute_PolicyFilter/Mailroute_PolicyUser/enabling_virus_filter/bypass_virus_checks/.yml
|
580
591
|
- spec/vcr_cassettes/Mailroute_PolicyFilter/Mailroute_PolicyUser/lenient_mode/anti_spam_preset/.yml
|
592
|
+
- spec/vcr_cassettes/Mailroute_PolicyFilter/Mailroute_PolicyUser/standard_mode/anti_spam_preset/.yml
|
581
593
|
- spec/vcr_cassettes/Mailroute_PolicyFilter/Mailroute_PolicyUser/unknown_mode/should_raise_argument_error.yml
|
582
594
|
- spec/vcr_cassettes/Mailroute_Reseller/_admins/should_return_a_list_of_its_admins.yml
|
583
595
|
- spec/vcr_cassettes/Mailroute_Reseller/_all/should_accept_limit_keyword.yml
|
data/Gemfile.lock
DELETED
@@ -1,87 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
mailroute (0.0.5)
|
5
|
-
activeresource
|
6
|
-
json_pure
|
7
|
-
rest-client
|
8
|
-
|
9
|
-
GEM
|
10
|
-
remote: https://rubygems.org/
|
11
|
-
specs:
|
12
|
-
activemodel (3.2.12)
|
13
|
-
activesupport (= 3.2.12)
|
14
|
-
builder (~> 3.0.0)
|
15
|
-
activeresource (3.2.12)
|
16
|
-
activemodel (= 3.2.12)
|
17
|
-
activesupport (= 3.2.12)
|
18
|
-
activesupport (3.2.12)
|
19
|
-
i18n (~> 0.6)
|
20
|
-
multi_json (~> 1.0)
|
21
|
-
addressable (2.3.3)
|
22
|
-
awesome_print (1.1.0)
|
23
|
-
builder (3.0.4)
|
24
|
-
coderay (1.0.9)
|
25
|
-
crack (0.3.2)
|
26
|
-
diff-lcs (1.2.1)
|
27
|
-
ffi (1.4.0)
|
28
|
-
guard (1.6.2)
|
29
|
-
listen (>= 0.6.0)
|
30
|
-
lumberjack (>= 1.0.2)
|
31
|
-
pry (>= 0.9.10)
|
32
|
-
terminal-table (>= 1.4.3)
|
33
|
-
thor (>= 0.14.6)
|
34
|
-
guard-rspec (2.4.1)
|
35
|
-
guard (>= 1.1)
|
36
|
-
rspec (~> 2.11)
|
37
|
-
i18n (0.6.2)
|
38
|
-
json_pure (1.7.7)
|
39
|
-
listen (0.7.3)
|
40
|
-
lumberjack (1.0.2)
|
41
|
-
method_source (0.8.1)
|
42
|
-
mime-types (1.21)
|
43
|
-
multi_json (1.6.1)
|
44
|
-
pry (0.9.12)
|
45
|
-
coderay (~> 1.0.5)
|
46
|
-
method_source (~> 0.8)
|
47
|
-
slop (~> 3.4)
|
48
|
-
rake (10.0.3)
|
49
|
-
rb-fsevent (0.9.3)
|
50
|
-
rb-inotify (0.9.0)
|
51
|
-
ffi (>= 0.5.0)
|
52
|
-
rest-client (1.6.7)
|
53
|
-
mime-types (>= 1.16)
|
54
|
-
rspec (2.13.0)
|
55
|
-
rspec-core (~> 2.13.0)
|
56
|
-
rspec-expectations (~> 2.13.0)
|
57
|
-
rspec-mocks (~> 2.13.0)
|
58
|
-
rspec-core (2.13.0)
|
59
|
-
rspec-expectations (2.13.0)
|
60
|
-
diff-lcs (>= 1.1.3, < 2.0)
|
61
|
-
rspec-mocks (2.13.0)
|
62
|
-
simplecov (0.7.1)
|
63
|
-
multi_json (~> 1.0)
|
64
|
-
simplecov-html (~> 0.7.1)
|
65
|
-
simplecov-html (0.7.1)
|
66
|
-
slop (3.4.3)
|
67
|
-
terminal-table (1.4.5)
|
68
|
-
thor (0.17.0)
|
69
|
-
vcr (2.4.0)
|
70
|
-
webmock (1.9.3)
|
71
|
-
addressable (>= 2.2.7)
|
72
|
-
crack (>= 0.3.2)
|
73
|
-
|
74
|
-
PLATFORMS
|
75
|
-
ruby
|
76
|
-
|
77
|
-
DEPENDENCIES
|
78
|
-
awesome_print
|
79
|
-
bundler
|
80
|
-
guard-rspec
|
81
|
-
mailroute!
|
82
|
-
rake
|
83
|
-
rb-fsevent
|
84
|
-
rb-inotify
|
85
|
-
simplecov
|
86
|
-
vcr
|
87
|
-
webmock
|
data/spec/vcr_cassettes/Mailroute_Domain/has_a_notification_task/should_have_notification_task.yml
DELETED
@@ -1,249 +0,0 @@
|
|
1
|
-
---
|
2
|
-
recorded_with: VCR 2.4.0
|
3
|
-
http_interactions:
|
4
|
-
- request:
|
5
|
-
method: get
|
6
|
-
uri: https://admin-dev.mailroute.net/api/v1/notification_task/57818/
|
7
|
-
body:
|
8
|
-
string: ""
|
9
|
-
headers:
|
10
|
-
Accept:
|
11
|
-
- application/json
|
12
|
-
Accept-Encoding:
|
13
|
-
- identity
|
14
|
-
Authorization:
|
15
|
-
- ApiKey blablablablabla@example.com:5f64xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx8262
|
16
|
-
User-Agent:
|
17
|
-
- Ruby
|
18
|
-
response:
|
19
|
-
status:
|
20
|
-
code: 404
|
21
|
-
message: NOT FOUND
|
22
|
-
headers:
|
23
|
-
Server:
|
24
|
-
- nginx/1.2.6
|
25
|
-
Connection:
|
26
|
-
- keep-alive
|
27
|
-
Vary:
|
28
|
-
- Accept-Encoding
|
29
|
-
- Cookie
|
30
|
-
Content-Type:
|
31
|
-
- text/html; charset=utf-8
|
32
|
-
Date:
|
33
|
-
- Thu, 21 Mar 2013 18:57:19 GMT
|
34
|
-
Transfer-Encoding:
|
35
|
-
- chunked
|
36
|
-
body:
|
37
|
-
string: |-
|
38
|
-
<!doctype html>
|
39
|
-
<title>not found</title>
|
40
|
-
|
41
|
-
<style>
|
42
|
-
body { text-align: center;}
|
43
|
-
h1 { font-size: 50px; }
|
44
|
-
body { font: 20px Constantia, 'Hoefler Text', "Adobe Caslon Pro", Baskerville, Georgia, Times, serif; color: #999; text-shadow: 2px 2px 2px rgba(200, 200, 200, 0.5); }
|
45
|
-
::-moz-selection{ background:#FF5E99; color:#fff; }
|
46
|
-
::selection { background:#FF5E99; color:#fff; }
|
47
|
-
details { display:block; }
|
48
|
-
a { color: rgb(36, 109, 56); text-decoration:none; }
|
49
|
-
a:hover { color: rgb(96, 73, 141) ; text-shadow: 2px 2px 2px rgba(36, 109, 56, 0.5); }
|
50
|
-
span[frown] { transform: rotate(90deg); display:inline-block; color: #bbb; }
|
51
|
-
</style>
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
<details>
|
56
|
-
<summary><h1>Not found</h1></summary>
|
57
|
-
<p><span frown>:(</span></p>
|
58
|
-
</details>
|
59
|
-
http_version:
|
60
|
-
recorded_at: Thu, 21 Mar 2013 18:57:19 GMT
|
61
|
-
- request:
|
62
|
-
method: get
|
63
|
-
uri: https://admin-dev.mailroute.net/api/v1/domain/4555/
|
64
|
-
body:
|
65
|
-
string: ""
|
66
|
-
headers:
|
67
|
-
Accept:
|
68
|
-
- application/json
|
69
|
-
Accept-Encoding:
|
70
|
-
- identity
|
71
|
-
Authorization:
|
72
|
-
- ApiKey blablablablabla@example.com:5f64xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx8262
|
73
|
-
User-Agent:
|
74
|
-
- Ruby
|
75
|
-
response:
|
76
|
-
status:
|
77
|
-
code: 200
|
78
|
-
message: OK
|
79
|
-
headers:
|
80
|
-
Server:
|
81
|
-
- nginx/1.2.6
|
82
|
-
Connection:
|
83
|
-
- keep-alive
|
84
|
-
Vary:
|
85
|
-
- Accept, Cookie
|
86
|
-
- Accept-Encoding
|
87
|
-
Cache-Control:
|
88
|
-
- no-cache
|
89
|
-
Content-Type:
|
90
|
-
- application/json; charset=utf-8
|
91
|
-
Date:
|
92
|
-
- Thu, 21 Mar 2013 19:00:44 GMT
|
93
|
-
Transfer-Encoding:
|
94
|
-
- chunked
|
95
|
-
body:
|
96
|
-
string: "{\"absolute_url\": \"/domain/4555/\", \"active\": true, \"created_at\": \"Thu, 21 Mar 2013 11:39:31 -0700\", \"customer\": \"/api/v1/customer/1300/\", \"deliveryport\": 25, \"hold_email\": false, \"id\": 4555, \"name\": \"apapap.example.com\", \"notification_task\": \"/api/v1/notification_domain_task/57818/\", \"outbound_enabled\": false, \"policy\": \"/api/v1/policy_domain/57885/\", \"resource_uri\": \"/api/v1/domain/4555/\", \"updated_at\": \"Thu, 21 Mar 2013 11:48:31 -0700\", \"userlist_complete\": false}"
|
97
|
-
http_version:
|
98
|
-
recorded_at: Thu, 21 Mar 2013 19:00:44 GMT
|
99
|
-
- request:
|
100
|
-
method: get
|
101
|
-
uri: https://admin-dev.mailroute.net/api/v1/notification_domain_task/57818/
|
102
|
-
body:
|
103
|
-
string: ""
|
104
|
-
headers:
|
105
|
-
Accept:
|
106
|
-
- application/json
|
107
|
-
Accept-Encoding:
|
108
|
-
- identity
|
109
|
-
Authorization:
|
110
|
-
- ApiKey blablablablabla@example.com:5f64xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx8262
|
111
|
-
User-Agent:
|
112
|
-
- Ruby
|
113
|
-
response:
|
114
|
-
status:
|
115
|
-
code: 200
|
116
|
-
message: OK
|
117
|
-
headers:
|
118
|
-
Server:
|
119
|
-
- nginx/1.2.6
|
120
|
-
Connection:
|
121
|
-
- keep-alive
|
122
|
-
Vary:
|
123
|
-
- Accept, Cookie
|
124
|
-
- Accept-Encoding
|
125
|
-
Cache-Control:
|
126
|
-
- no-cache
|
127
|
-
Content-Type:
|
128
|
-
- application/json; charset=utf-8
|
129
|
-
Date:
|
130
|
-
- Thu, 21 Mar 2013 19:00:45 GMT
|
131
|
-
Transfer-Encoding:
|
132
|
-
- chunked
|
133
|
-
body:
|
134
|
-
string: "{\"domain\": \"/api/v1/domain/4555/\", \"domain_bounce_unlisted\": false, \"enabled\": false, \"fri\": true, \"hour\": 7, \"id\": 57818, \"minute\": 0, \"mon\": true, \"priority\": 7, \"resource_uri\": \"/api/v1/notification_domain_task/57818/\", \"sat\": false, \"sun\": false, \"thu\": true, \"timezone\": null, \"tue\": true, \"wed\": true}"
|
135
|
-
http_version:
|
136
|
-
recorded_at: Thu, 21 Mar 2013 19:00:46 GMT
|
137
|
-
- request:
|
138
|
-
method: put
|
139
|
-
uri: https://admin-dev.mailroute.net/api/v1/notification_domain_task/57818/
|
140
|
-
body:
|
141
|
-
string: "{\"domain\":\"/api/v1/domain/4555/\",\"domain_bounce_unlisted\":false,\"enabled\":false,\"fri\":true,\"hour\":7,\"id\":57818,\"minute\":0,\"mon\":false,\"priority\":7,\"resource_uri\":\"/api/v1/notification_domain_task/57818/\",\"sat\":false,\"sun\":false,\"thu\":true,\"timezone\":null,\"tue\":true,\"wed\":true}"
|
142
|
-
headers:
|
143
|
-
Accept:
|
144
|
-
- "*/*"
|
145
|
-
Accept-Encoding:
|
146
|
-
- identity
|
147
|
-
Content-Type:
|
148
|
-
- application/json
|
149
|
-
Authorization:
|
150
|
-
- ApiKey blablablablabla@example.com:5f64xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx8262
|
151
|
-
User-Agent:
|
152
|
-
- Ruby
|
153
|
-
response:
|
154
|
-
status:
|
155
|
-
code: 202
|
156
|
-
message: ACCEPTED
|
157
|
-
headers:
|
158
|
-
Server:
|
159
|
-
- nginx/1.2.6
|
160
|
-
Connection:
|
161
|
-
- keep-alive
|
162
|
-
Vary:
|
163
|
-
- Accept, Cookie
|
164
|
-
Content-Type:
|
165
|
-
- application/json; charset=utf-8
|
166
|
-
Date:
|
167
|
-
- Thu, 21 Mar 2013 19:00:47 GMT
|
168
|
-
Transfer-Encoding:
|
169
|
-
- chunked
|
170
|
-
body:
|
171
|
-
string: "{\"domain\": \"/api/v1/domain/4555/\", \"domain_bounce_unlisted\": false, \"enabled\": false, \"fri\": true, \"hour\": 7, \"id\": 57818, \"minute\": 0, \"mon\": false, \"priority\": 7, \"resource_uri\": \"/api/v1/notification_domain_task/57818/\", \"sat\": false, \"sun\": false, \"thu\": true, \"timezone\": null, \"tue\": true, \"wed\": true}"
|
172
|
-
http_version:
|
173
|
-
recorded_at: Thu, 21 Mar 2013 19:00:47 GMT
|
174
|
-
- request:
|
175
|
-
method: get
|
176
|
-
uri: https://admin-dev.mailroute.net/api/v1/domain/4555/
|
177
|
-
body:
|
178
|
-
string: ""
|
179
|
-
headers:
|
180
|
-
Accept:
|
181
|
-
- application/json
|
182
|
-
Accept-Encoding:
|
183
|
-
- identity
|
184
|
-
Authorization:
|
185
|
-
- ApiKey blablablablabla@example.com:5f64xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx8262
|
186
|
-
User-Agent:
|
187
|
-
- Ruby
|
188
|
-
response:
|
189
|
-
status:
|
190
|
-
code: 200
|
191
|
-
message: OK
|
192
|
-
headers:
|
193
|
-
Server:
|
194
|
-
- nginx/1.2.6
|
195
|
-
Connection:
|
196
|
-
- keep-alive
|
197
|
-
Vary:
|
198
|
-
- Accept, Cookie
|
199
|
-
- Accept-Encoding
|
200
|
-
Cache-Control:
|
201
|
-
- no-cache
|
202
|
-
Content-Type:
|
203
|
-
- application/json; charset=utf-8
|
204
|
-
Date:
|
205
|
-
- Thu, 21 Mar 2013 19:00:48 GMT
|
206
|
-
Transfer-Encoding:
|
207
|
-
- chunked
|
208
|
-
body:
|
209
|
-
string: "{\"absolute_url\": \"/domain/4555/\", \"active\": true, \"created_at\": \"Thu, 21 Mar 2013 11:39:31 -0700\", \"customer\": \"/api/v1/customer/1300/\", \"deliveryport\": 25, \"hold_email\": false, \"id\": 4555, \"name\": \"apapap.example.com\", \"notification_task\": \"/api/v1/notification_domain_task/57818/\", \"outbound_enabled\": false, \"policy\": \"/api/v1/policy_domain/57885/\", \"resource_uri\": \"/api/v1/domain/4555/\", \"updated_at\": \"Thu, 21 Mar 2013 11:48:31 -0700\", \"userlist_complete\": false}"
|
210
|
-
http_version:
|
211
|
-
recorded_at: Thu, 21 Mar 2013 19:00:49 GMT
|
212
|
-
- request:
|
213
|
-
method: get
|
214
|
-
uri: https://admin-dev.mailroute.net/api/v1/notification_domain_task/57818/
|
215
|
-
body:
|
216
|
-
string: ""
|
217
|
-
headers:
|
218
|
-
Accept:
|
219
|
-
- application/json
|
220
|
-
Accept-Encoding:
|
221
|
-
- identity
|
222
|
-
Authorization:
|
223
|
-
- ApiKey blablablablabla@example.com:5f64xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx8262
|
224
|
-
User-Agent:
|
225
|
-
- Ruby
|
226
|
-
response:
|
227
|
-
status:
|
228
|
-
code: 200
|
229
|
-
message: OK
|
230
|
-
headers:
|
231
|
-
Server:
|
232
|
-
- nginx/1.2.6
|
233
|
-
Connection:
|
234
|
-
- keep-alive
|
235
|
-
Vary:
|
236
|
-
- Accept, Cookie
|
237
|
-
- Accept-Encoding
|
238
|
-
Cache-Control:
|
239
|
-
- no-cache
|
240
|
-
Content-Type:
|
241
|
-
- application/json; charset=utf-8
|
242
|
-
Date:
|
243
|
-
- Thu, 21 Mar 2013 19:00:50 GMT
|
244
|
-
Transfer-Encoding:
|
245
|
-
- chunked
|
246
|
-
body:
|
247
|
-
string: "{\"domain\": \"/api/v1/domain/4555/\", \"domain_bounce_unlisted\": false, \"enabled\": false, \"fri\": true, \"hour\": 7, \"id\": 57818, \"minute\": 0, \"mon\": false, \"priority\": 7, \"resource_uri\": \"/api/v1/notification_domain_task/57818/\", \"sat\": false, \"sun\": false, \"thu\": true, \"timezone\": null, \"tue\": true, \"wed\": true}"
|
248
|
-
http_version:
|
249
|
-
recorded_at: Thu, 21 Mar 2013 19:00:50 GMT
|