mxhero-api 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mxhero-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2013-08-09 00:00:00.000000000 Z
14
+ date: 2013-08-13 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: vcr
@@ -83,13 +83,12 @@ files:
83
83
  - test/fixtures/api/create_rule_alredy_exist.yml
84
84
  - test/fixtures/api/create_rule_for_domain.yml
85
85
  - test/fixtures/api/create_rule_success.yml
86
+ - test/fixtures/api/delete_rule.yml
86
87
  - test/fixtures/api/domain_by_id.yml
87
88
  - test/fixtures/api/domain_by_id_not_found.yml
88
89
  - test/fixtures/api/domain_rule.yml
89
90
  - test/fixtures/api/domains.yml
90
91
  - test/fixtures/api/rules_for_domain.yml
91
- - test/fixtures/api/service_create_footer.yml
92
- - test/fixtures/api/service_footer_for_domain.yml
93
92
  - test/fixtures/api/update_rule.yml
94
93
  - test/helper.rb
95
94
  - test/test_mxhero_api.rb
@@ -109,7 +108,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
109
108
  version: '0'
110
109
  segments:
111
110
  - 0
112
- hash: -3414232753320933996
111
+ hash: 1974219660962474472
113
112
  required_rubygems_version: !ruby/object:Gem::Requirement
114
113
  none: false
115
114
  requirements:
@@ -127,13 +126,12 @@ test_files:
127
126
  - test/fixtures/api/create_rule_alredy_exist.yml
128
127
  - test/fixtures/api/create_rule_for_domain.yml
129
128
  - test/fixtures/api/create_rule_success.yml
129
+ - test/fixtures/api/delete_rule.yml
130
130
  - test/fixtures/api/domain_by_id.yml
131
131
  - test/fixtures/api/domain_by_id_not_found.yml
132
132
  - test/fixtures/api/domain_rule.yml
133
133
  - test/fixtures/api/domains.yml
134
134
  - test/fixtures/api/rules_for_domain.yml
135
- - test/fixtures/api/service_create_footer.yml
136
- - test/fixtures/api/service_footer_for_domain.yml
137
135
  - test/fixtures/api/update_rule.yml
138
136
  - test/helper.rb
139
137
  - test/test_mxhero_api.rb
@@ -1,44 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: http://admin:password@localhost:8080/webapi/api/v1/rules
6
- body:
7
- encoding: UTF-8
8
- string: ! '{"domain":"tesla.com","twoWays":false,"enabled":true,"name":"Email
9
- footer - inside","created":"1370629428226","fromDirection":{"directionType":"domain","domain":"tesla.com","freeValue":"tesla.com"},"toDirection":{"directionType":"domain","domain":"tesla.com","freeValue":"tesla.com"},"properties":[{"propertyKey":"return.message","propertyValue":"A
10
- test with a <b>Footer</b> in strong"},{"propertyKey":"interParsing","propertyValue":false}],"component":"org.mxhero.feature.disclaimer"}'
11
- headers:
12
- Accept:
13
- - application/json
14
- Content-Type:
15
- - application/json
16
- Authorization:
17
- - Basic YWRtaW46cGFzc3dvcmQ=
18
- response:
19
- status:
20
- code: 500
21
- message: !binary |-
22
- SW50ZXJuYWwgU2VydmVyIEVycm9y
23
- headers:
24
- !binary "U2VydmVy":
25
- - !binary |-
26
- QXBhY2hlLUNveW90ZS8xLjE=
27
- !binary "Q29udGVudC1UeXBl":
28
- - !binary |-
29
- YXBwbGljYXRpb24vanNvbg==
30
- !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
31
- - !binary |-
32
- Y2h1bmtlZA==
33
- !binary "RGF0ZQ==":
34
- - !binary |-
35
- RnJpLCAwNyBKdW4gMjAxMyAxODoyMzo1MCBHTVQ=
36
- !binary "Q29ubmVjdGlvbg==":
37
- - !binary |-
38
- Y2xvc2U=
39
- body:
40
- encoding: US-ASCII
41
- string: ! '{"status":500,"code":500,"developerMessage":"rule.domain.admin.only","moreInfoUrl":"mailto:support@mxhero.com"}'
42
- http_version:
43
- recorded_at: Fri, 07 Jun 2013 18:23:49 GMT
44
- recorded_with: VCR 2.5.0
@@ -1,73 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: http://admin:password@localhost:8080/webapi/api/v1/domains/tesla.com/rules
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Accept:
11
- - application/json
12
- Content-Type:
13
- - application/json
14
- response:
15
- status:
16
- code: 200
17
- message: !binary |-
18
- T0s=
19
- headers:
20
- !binary "U2VydmVy":
21
- - !binary |-
22
- QXBhY2hlLUNveW90ZS8xLjE=
23
- !binary "Q29udGVudC1UeXBl":
24
- - !binary |-
25
- YXBwbGljYXRpb24vanNvbg==
26
- !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
27
- - !binary |-
28
- Y2h1bmtlZA==
29
- !binary "RGF0ZQ==":
30
- - !binary |-
31
- RnJpLCAzMSBNYXkgMjAxMyAwMjowNDo0OCBHTVQ=
32
- body:
33
- encoding: ASCII-8BIT
34
- string: !binary |-
35
- W3siaWQiOjEwNCwiZG9tYWluIjoidGVzbGEuY29tIiwibmFtZSI6ImFhYWFh
36
- IiwiY3JlYXRlZCI6MTM2OTk2MTc3NzAwMCwidXBkYXRlZCI6MTM2OTk2MTc3
37
- NzAwMCwiZW5hYmxlZCI6dHJ1ZSwidHdvV2F5cyI6ZmFsc2UsImFkbWluT3Jk
38
- ZXIiOm51bGwsImNvbXBvbmVudCI6Im9yZy5teGhlcm8uZmVhdHVyZS5kaXNj
39
- bGFpbWVyIiwiZnJvbURpcmVjdGlvbiI6eyJpZCI6MTk3LCJkaXJlY3Rpb25U
40
- eXBlIjoiZG9tYWluIiwiZnJlZVZhbHVlIjoidGVzbGEuY29tIiwiZG9tYWlu
41
- IjoidGVzbGEuY29tIiwiYWNjb3VudCI6bnVsbCwiZ3JvdXAiOm51bGx9LCJ0
42
- b0RpcmVjdGlvbiI6eyJpZCI6MTk4LCJkaXJlY3Rpb25UeXBlIjoiZG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