floodgate 0.0.17 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (18) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/floodgate/client.rb +6 -1
  4. data/lib/floodgate/config.rb +4 -0
  5. data/lib/floodgate/version.rb +1 -1
  6. data/spec/cassettes/Floodgate_Client/_add_ip_address/when_an_ip_address_is_specified/adds_it_to_the_list_of_allowed_ip_addresses.yml +35 -25
  7. data/spec/cassettes/Floodgate_Client/_allowed_ip_addresses/returns_the_allowed_ip_addresses.yml +21 -15
  8. data/spec/cassettes/Floodgate_Client/_close/changes_filter_traffic_from_false_to_true.yml +28 -20
  9. data/spec/cassettes/Floodgate_Client/_my_ip_address/is_an_ip_address.yml +4 -4
  10. data/spec/cassettes/Floodgate_Client/_open/changes_filter_traffic_from_true_to_false.yml +28 -20
  11. data/spec/cassettes/Floodgate_Client/_remove_ip_address/when_an_ip_address_is_specified/removes_it_from_the_list_of_allowed_ip_addresses.yml +28 -20
  12. data/spec/cassettes/Floodgate_Client/_set_redirect_url/when_a_redirect_url_is_specified/changes_the_redirect_url.yml +28 -20
  13. data/spec/cassettes/Floodgate_Client/_set_redirect_url/when_nil_is_specified/clears_the_redirect_url.yml +28 -20
  14. data/spec/cassettes/Floodgate_Client/_status/when_the_credentials_are_not_valid/returns_the_default_status.yml +7 -5
  15. data/spec/cassettes/Floodgate_Client/_status/when_the_credentials_are_valid/and_traffic_filtering_is_enabled/filter_traffic_is_true.yml +7 -5
  16. data/spec/cassettes/Floodgate_Client/_status/when_the_credentials_are_valid/and_traffic_filtering_is_not_enabled/filter_traffic_is_false.yml +7 -5
  17. data/spec/spec_helper.rb +2 -0
  18. metadata +2 -2
@@ -2,13 +2,15 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: put
5
- uri: https://floodgate-api-staging.herokuapp.com/api/v1/apps/9d2852cff163507330242460c0ca5eec
5
+ uri: http://staging.api.floodgate.io/api/apps/9d2852cff163507330242460c0ca5eec
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: app%5Bfilter_traffic%5D=true&api_token=f28b5848e158f96e96168aa37f0002f2
9
9
  headers:
10
10
  User-Agent:
11
11
  - FloodgateAgent
12
+ Accept:
13
+ - application/vnd.floodgate-v1+json
12
14
  Content-Type:
13
15
  - application/x-www-form-urlencoded
14
16
  response:
@@ -21,15 +23,15 @@ http_interactions:
21
23
  content-type:
22
24
  - application/json
23
25
  date:
24
- - Fri, 28 Feb 2014 17:18:01 GMT
26
+ - Mon, 03 Mar 2014 20:59:45 GMT
25
27
  etag:
26
28
  - "\"7771a307c8a2bc95dff054cd3bfcbf9c\""
27
29
  server:
28
30
  - WEBrick/1.3.1 (Ruby/2.1.0/2013-12-25)
29
31
  x-request-id:
30
- - 71c04dae-f0c0-419d-9fb3-6e96cb4507ae
32
+ - 9d47e478-ad37-41ef-9296-b02baef6266d
31
33
  x-runtime:
32
- - '0.055344'
34
+ - '0.013881'
33
35
  content-length:
34
36
  - '125'
35
37
  connection:
@@ -38,16 +40,18 @@ http_interactions:
38
40
  encoding: UTF-8
39
41
  string: "{\"allowed_ip_addresses\":[\"9.109.14.25\",\"164.249.198.56\"],\"filter_traffic\":true,\"name\":\"mutable-test-app\",\"redirect_url\":null}"
40
42
  http_version:
41
- recorded_at: Fri, 28 Feb 2014 17:18:01 GMT
43
+ recorded_at: Mon, 03 Mar 2014 20:59:45 GMT
42
44
  - request:
43
45
  method: get
44
- uri: https://floodgate-api-staging.herokuapp.com/api/v1/apps/9d2852cff163507330242460c0ca5eec/status?api_token=f28b5848e158f96e96168aa37f0002f2
46
+ uri: http://staging.api.floodgate.io/api/apps/9d2852cff163507330242460c0ca5eec/status?api_token=f28b5848e158f96e96168aa37f0002f2
45
47
  body:
46
48
  encoding: US-ASCII
47
49
  string: ''
48
50
  headers:
49
51
  User-Agent:
50
52
  - FloodgateAgent
53
+ Accept:
54
+ - application/vnd.floodgate-v1+json
51
55
  response:
52
56
  status:
53
57
  code: 200
@@ -58,15 +62,15 @@ http_interactions:
58
62
  content-type:
59
63
  - application/json
60
64
  date:
61
- - Fri, 28 Feb 2014 17:18:01 GMT
65
+ - Mon, 03 Mar 2014 20:59:45 GMT
62
66
  etag:
63
67
  - "\"7771a307c8a2bc95dff054cd3bfcbf9c\""
64
68
  server:
65
69
  - WEBrick/1.3.1 (Ruby/2.1.0/2013-12-25)
66
70
  x-request-id:
67
- - 72a5d8bd-0787-4f88-a111-bd549ed35ee5
71
+ - b698a198-78d8-45cc-9414-54c4e31e34aa
68
72
  x-runtime:
69
- - '0.014298'
73
+ - '0.008886'
70
74
  content-length:
71
75
  - '125'
72
76
  connection:
@@ -75,16 +79,18 @@ http_interactions:
75
79
  encoding: UTF-8
76
80
  string: "{\"allowed_ip_addresses\":[\"9.109.14.25\",\"164.249.198.56\"],\"filter_traffic\":true,\"name\":\"mutable-test-app\",\"redirect_url\":null}"
77
81
  http_version:
78
- recorded_at: Fri, 28 Feb 2014 17:18:01 GMT
82
+ recorded_at: Mon, 03 Mar 2014 20:59:45 GMT
79
83
  - request:
80
84
  method: put
81
- uri: https://floodgate-api-staging.herokuapp.com/api/v1/apps/9d2852cff163507330242460c0ca5eec
85
+ uri: http://staging.api.floodgate.io/api/apps/9d2852cff163507330242460c0ca5eec
82
86
  body:
83
87
  encoding: US-ASCII
84
88
  string: app%5Bfilter_traffic%5D=false&api_token=f28b5848e158f96e96168aa37f0002f2
85
89
  headers:
86
90
  User-Agent:
87
91
  - FloodgateAgent
92
+ Accept:
93
+ - application/vnd.floodgate-v1+json
88
94
  Content-Type:
89
95
  - application/x-www-form-urlencoded
90
96
  response:
@@ -97,15 +103,15 @@ http_interactions:
97
103
  content-type:
98
104
  - application/json
99
105
  date:
100
- - Fri, 28 Feb 2014 17:18:02 GMT
106
+ - Mon, 03 Mar 2014 20:59:46 GMT
101
107
  etag:
102
108
  - "\"5dcd96cc7b45b270738601bce30d703f\""
103
109
  server:
104
110
  - WEBrick/1.3.1 (Ruby/2.1.0/2013-12-25)
105
111
  x-request-id:
106
- - 31eaf3e7-0c3d-4c6f-a688-28bc15155d85
112
+ - 428940d4-c448-436a-a2d3-45f710240912
107
113
  x-runtime:
108
- - '0.024638'
114
+ - '0.018402'
109
115
  content-length:
110
116
  - '126'
111
117
  connection:
@@ -114,16 +120,18 @@ http_interactions:
114
120
  encoding: UTF-8
115
121
  string: "{\"allowed_ip_addresses\":[\"9.109.14.25\",\"164.249.198.56\"],\"filter_traffic\":false,\"name\":\"mutable-test-app\",\"redirect_url\":null}"
116
122
  http_version:
117
- recorded_at: Fri, 28 Feb 2014 17:18:02 GMT
123
+ recorded_at: Mon, 03 Mar 2014 20:59:46 GMT
118
124
  - request:
119
125
  method: get
120
- uri: https://floodgate-api-staging.herokuapp.com/api/v1/apps/9d2852cff163507330242460c0ca5eec/status?api_token=f28b5848e158f96e96168aa37f0002f2
126
+ uri: http://staging.api.floodgate.io/api/apps/9d2852cff163507330242460c0ca5eec/status?api_token=f28b5848e158f96e96168aa37f0002f2
121
127
  body:
122
128
  encoding: US-ASCII
123
129
  string: ''
124
130
  headers:
125
131
  User-Agent:
126
132
  - FloodgateAgent
133
+ Accept:
134
+ - application/vnd.floodgate-v1+json
127
135
  response:
128
136
  status:
129
137
  code: 200
@@ -134,15 +142,15 @@ http_interactions:
134
142
  content-type:
135
143
  - application/json
136
144
  date:
137
- - Fri, 28 Feb 2014 17:18:02 GMT
145
+ - Mon, 03 Mar 2014 20:59:46 GMT
138
146
  etag:
139
147
  - "\"5dcd96cc7b45b270738601bce30d703f\""
140
148
  server:
141
149
  - WEBrick/1.3.1 (Ruby/2.1.0/2013-12-25)
142
150
  x-request-id:
143
- - e703acfa-2011-4d52-8657-201c8ad14cca
151
+ - 1548c632-bb72-4295-a4d3-b2ce54ff2104
144
152
  x-runtime:
145
- - '0.007352'
153
+ - '0.013759'
146
154
  content-length:
147
155
  - '126'
148
156
  connection:
@@ -151,5 +159,5 @@ http_interactions:
151
159
  encoding: UTF-8
152
160
  string: "{\"allowed_ip_addresses\":[\"9.109.14.25\",\"164.249.198.56\"],\"filter_traffic\":false,\"name\":\"mutable-test-app\",\"redirect_url\":null}"
153
161
  http_version:
154
- recorded_at: Fri, 28 Feb 2014 17:18:02 GMT
162
+ recorded_at: Mon, 03 Mar 2014 20:59:46 GMT
155
163
  recorded_with: VCR 2.8.0
@@ -2,13 +2,15 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://floodgate-api-staging.herokuapp.com/api/v1/apps/9d2852cff163507330242460c0ca5eec/ip_addresses
5
+ uri: http://staging.api.floodgate.io/api/apps/9d2852cff163507330242460c0ca5eec/ip_addresses
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ip_address%5Bip_address%5D=1.1.1.1&api_token=f28b5848e158f96e96168aa37f0002f2
9
9
  headers:
10
10
  User-Agent:
11
11
  - FloodgateAgent
12
+ Accept:
13
+ - application/vnd.floodgate-v1+json
12
14
  Content-Type:
13
15
  - application/x-www-form-urlencoded
14
16
  response:
@@ -21,15 +23,15 @@ http_interactions:
21
23
  content-type:
22
24
  - application/json
23
25
  date:
24
- - Fri, 28 Feb 2014 17:18:02 GMT
26
+ - Mon, 03 Mar 2014 20:59:46 GMT
25
27
  etag:
26
28
  - "\"bbc66f5c6fff2775354263608d971d3a\""
27
29
  server:
28
30
  - WEBrick/1.3.1 (Ruby/2.1.0/2013-12-25)
29
31
  x-request-id:
30
- - b3101e6d-9ea3-47f4-b8c2-c20a4a4f735a
32
+ - 87f048f5-049c-44f2-840d-dec3ba2ec0d2
31
33
  x-runtime:
32
- - '0.035975'
34
+ - '0.020222'
33
35
  content-length:
34
36
  - '24'
35
37
  connection:
@@ -38,16 +40,18 @@ http_interactions:
38
40
  encoding: UTF-8
39
41
  string: "{\"ip_address\":\"1.1.1.1\"}"
40
42
  http_version:
41
- recorded_at: Fri, 28 Feb 2014 17:18:02 GMT
43
+ recorded_at: Mon, 03 Mar 2014 20:59:46 GMT
42
44
  - request:
43
45
  method: get
44
- uri: https://floodgate-api-staging.herokuapp.com/api/v1/apps/9d2852cff163507330242460c0ca5eec/status?api_token=f28b5848e158f96e96168aa37f0002f2
46
+ uri: http://staging.api.floodgate.io/api/apps/9d2852cff163507330242460c0ca5eec/status?api_token=f28b5848e158f96e96168aa37f0002f2
45
47
  body:
46
48
  encoding: US-ASCII
47
49
  string: ''
48
50
  headers:
49
51
  User-Agent:
50
52
  - FloodgateAgent
53
+ Accept:
54
+ - application/vnd.floodgate-v1+json
51
55
  response:
52
56
  status:
53
57
  code: 200
@@ -58,15 +62,15 @@ http_interactions:
58
62
  content-type:
59
63
  - application/json
60
64
  date:
61
- - Fri, 28 Feb 2014 17:18:03 GMT
65
+ - Mon, 03 Mar 2014 20:59:46 GMT
62
66
  etag:
63
67
  - "\"56afa4fe0c249466945b8b5763f2a93a\""
64
68
  server:
65
69
  - WEBrick/1.3.1 (Ruby/2.1.0/2013-12-25)
66
70
  x-request-id:
67
- - 7b7aa478-6291-4dfa-8a80-e6d086c7645a
71
+ - 897e8188-3fb5-409c-8598-1a515e2711e5
68
72
  x-runtime:
69
- - '0.012695'
73
+ - '0.011261'
70
74
  content-length:
71
75
  - '136'
72
76
  connection:
@@ -75,16 +79,18 @@ http_interactions:
75
79
  encoding: UTF-8
76
80
  string: "{\"allowed_ip_addresses\":[\"9.109.14.25\",\"164.249.198.56\",\"1.1.1.1\"],\"filter_traffic\":false,\"name\":\"mutable-test-app\",\"redirect_url\":null}"
77
81
  http_version:
78
- recorded_at: Fri, 28 Feb 2014 17:18:03 GMT
82
+ recorded_at: Mon, 03 Mar 2014 20:59:46 GMT
79
83
  - request:
80
84
  method: delete
81
- uri: https://floodgate-api-staging.herokuapp.com/api/v1/apps/9d2852cff163507330242460c0ca5eec/ip_addresses
85
+ uri: http://staging.api.floodgate.io/api/apps/9d2852cff163507330242460c0ca5eec/ip_addresses
82
86
  body:
83
87
  encoding: US-ASCII
84
88
  string: ip_address%5Bip_address%5D=1.1.1.1&api_token=f28b5848e158f96e96168aa37f0002f2
85
89
  headers:
86
90
  User-Agent:
87
91
  - FloodgateAgent
92
+ Accept:
93
+ - application/vnd.floodgate-v1+json
88
94
  Content-Type:
89
95
  - application/x-www-form-urlencoded
90
96
  response:
@@ -97,15 +103,15 @@ http_interactions:
97
103
  content-type:
98
104
  - application/json
99
105
  date:
100
- - Fri, 28 Feb 2014 17:18:03 GMT
106
+ - Mon, 03 Mar 2014 20:59:47 GMT
101
107
  etag:
102
108
  - "\"23e8cc0c8abfb81d69429dfc9203ea60\""
103
109
  server:
104
110
  - WEBrick/1.3.1 (Ruby/2.1.0/2013-12-25)
105
111
  x-request-id:
106
- - 6f3c6d86-e70c-480c-aec9-33ba6e13a0eb
112
+ - dfdc8c37-aad0-4d2e-a215-b31c167acd67
107
113
  x-runtime:
108
- - '0.061535'
114
+ - '0.018081'
109
115
  content-length:
110
116
  - '43'
111
117
  connection:
@@ -114,16 +120,18 @@ http_interactions:
114
120
  encoding: UTF-8
115
121
  string: "{\"ip_addresses\":[{\"ip_address\":\"1.1.1.1\"}]}"
116
122
  http_version:
117
- recorded_at: Fri, 28 Feb 2014 17:18:03 GMT
123
+ recorded_at: Mon, 03 Mar 2014 20:59:47 GMT
118
124
  - request:
119
125
  method: get
120
- uri: https://floodgate-api-staging.herokuapp.com/api/v1/apps/9d2852cff163507330242460c0ca5eec/status?api_token=f28b5848e158f96e96168aa37f0002f2
126
+ uri: http://staging.api.floodgate.io/api/apps/9d2852cff163507330242460c0ca5eec/status?api_token=f28b5848e158f96e96168aa37f0002f2
121
127
  body:
122
128
  encoding: US-ASCII
123
129
  string: ''
124
130
  headers:
125
131
  User-Agent:
126
132
  - FloodgateAgent
133
+ Accept:
134
+ - application/vnd.floodgate-v1+json
127
135
  response:
128
136
  status:
129
137
  code: 200
@@ -134,15 +142,15 @@ http_interactions:
134
142
  content-type:
135
143
  - application/json
136
144
  date:
137
- - Fri, 28 Feb 2014 17:18:03 GMT
145
+ - Mon, 03 Mar 2014 20:59:47 GMT
138
146
  etag:
139
147
  - "\"5dcd96cc7b45b270738601bce30d703f\""
140
148
  server:
141
149
  - WEBrick/1.3.1 (Ruby/2.1.0/2013-12-25)
142
150
  x-request-id:
143
- - 2519a960-3a64-44df-b851-2bc855f6b166
151
+ - 13612707-edd3-4848-9175-a6495d11252c
144
152
  x-runtime:
145
- - '0.056913'
153
+ - '0.009065'
146
154
  content-length:
147
155
  - '126'
148
156
  connection:
@@ -151,5 +159,5 @@ http_interactions:
151
159
  encoding: UTF-8
152
160
  string: "{\"allowed_ip_addresses\":[\"9.109.14.25\",\"164.249.198.56\"],\"filter_traffic\":false,\"name\":\"mutable-test-app\",\"redirect_url\":null}"
153
161
  http_version:
154
- recorded_at: Fri, 28 Feb 2014 17:18:03 GMT
162
+ recorded_at: Mon, 03 Mar 2014 20:59:47 GMT
155
163
  recorded_with: VCR 2.8.0
@@ -2,13 +2,15 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: put
5
- uri: https://floodgate-api-staging.herokuapp.com/api/v1/apps/9d2852cff163507330242460c0ca5eec
5
+ uri: http://staging.api.floodgate.io/api/apps/9d2852cff163507330242460c0ca5eec
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: app%5Bredirect_url%5D&api_token=f28b5848e158f96e96168aa37f0002f2
9
9
  headers:
10
10
  User-Agent:
11
11
  - FloodgateAgent
12
+ Accept:
13
+ - application/vnd.floodgate-v1+json
12
14
  Content-Type:
13
15
  - application/x-www-form-urlencoded
14
16
  response:
@@ -21,15 +23,15 @@ http_interactions:
21
23
  content-type:
22
24
  - application/json
23
25
  date:
24
- - Fri, 28 Feb 2014 17:18:04 GMT
26
+ - Mon, 03 Mar 2014 20:59:47 GMT
25
27
  etag:
26
28
  - "\"5dcd96cc7b45b270738601bce30d703f\""
27
29
  server:
28
30
  - WEBrick/1.3.1 (Ruby/2.1.0/2013-12-25)
29
31
  x-request-id:
30
- - 1da5d81d-a01b-4b70-96c2-c7d6ed375382
32
+ - 0b94a80b-9b74-4ca5-affb-585835c257ed
31
33
  x-runtime:
32
- - '0.017138'
34
+ - '0.017700'
33
35
  content-length:
34
36
  - '126'
35
37
  connection:
@@ -38,16 +40,18 @@ http_interactions:
38
40
  encoding: UTF-8
39
41
  string: "{\"allowed_ip_addresses\":[\"9.109.14.25\",\"164.249.198.56\"],\"filter_traffic\":false,\"name\":\"mutable-test-app\",\"redirect_url\":null}"
40
42
  http_version:
41
- recorded_at: Fri, 28 Feb 2014 17:18:04 GMT
43
+ recorded_at: Mon, 03 Mar 2014 20:59:47 GMT
42
44
  - request:
43
45
  method: get
44
- uri: https://floodgate-api-staging.herokuapp.com/api/v1/apps/9d2852cff163507330242460c0ca5eec/status?api_token=f28b5848e158f96e96168aa37f0002f2
46
+ uri: http://staging.api.floodgate.io/api/apps/9d2852cff163507330242460c0ca5eec/status?api_token=f28b5848e158f96e96168aa37f0002f2
45
47
  body:
46
48
  encoding: US-ASCII
47
49
  string: ''
48
50
  headers:
49
51
  User-Agent:
50
52
  - FloodgateAgent
53
+ Accept:
54
+ - application/vnd.floodgate-v1+json
51
55
  response:
52
56
  status:
53
57
  code: 200
@@ -58,15 +62,15 @@ http_interactions:
58
62
  content-type:
59
63
  - application/json
60
64
  date:
61
- - Fri, 28 Feb 2014 17:18:04 GMT
65
+ - Mon, 03 Mar 2014 20:59:47 GMT
62
66
  etag:
63
67
  - "\"5dcd96cc7b45b270738601bce30d703f\""
64
68
  server:
65
69
  - WEBrick/1.3.1 (Ruby/2.1.0/2013-12-25)
66
70
  x-request-id:
67
- - f01f5c5a-5c83-4d7a-a2ee-a6cc43c64b48
71
+ - 24996128-1172-470d-a8bf-5b54936d4d3b
68
72
  x-runtime:
69
- - '0.069831'
73
+ - '0.010516'
70
74
  content-length:
71
75
  - '126'
72
76
  connection:
@@ -75,16 +79,18 @@ http_interactions:
75
79
  encoding: UTF-8
76
80
  string: "{\"allowed_ip_addresses\":[\"9.109.14.25\",\"164.249.198.56\"],\"filter_traffic\":false,\"name\":\"mutable-test-app\",\"redirect_url\":null}"
77
81
  http_version:
78
- recorded_at: Fri, 28 Feb 2014 17:18:04 GMT
82
+ recorded_at: Mon, 03 Mar 2014 20:59:47 GMT
79
83
  - request:
80
84
  method: put
81
- uri: https://floodgate-api-staging.herokuapp.com/api/v1/apps/9d2852cff163507330242460c0ca5eec
85
+ uri: http://staging.api.floodgate.io/api/apps/9d2852cff163507330242460c0ca5eec
82
86
  body:
83
87
  encoding: US-ASCII
84
88
  string: app%5Bredirect_url%5D=http%3A%2F%2Fexample.com&api_token=f28b5848e158f96e96168aa37f0002f2
85
89
  headers:
86
90
  User-Agent:
87
91
  - FloodgateAgent
92
+ Accept:
93
+ - application/vnd.floodgate-v1+json
88
94
  Content-Type:
89
95
  - application/x-www-form-urlencoded
90
96
  response:
@@ -97,15 +103,15 @@ http_interactions:
97
103
  content-type:
98
104
  - application/json
99
105
  date:
100
- - Fri, 28 Feb 2014 17:18:04 GMT
106
+ - Mon, 03 Mar 2014 20:59:47 GMT
101
107
  etag:
102
108
  - "\"e095bacd98a20e55860f5d335f67baee\""
103
109
  server:
104
110
  - WEBrick/1.3.1 (Ruby/2.1.0/2013-12-25)
105
111
  x-request-id:
106
- - 25693407-f3b6-4f59-8baa-a2debffc2e9b
112
+ - c9ba691e-7907-4cb1-9551-2e46cbcd79ed
107
113
  x-runtime:
108
- - '0.068925'
114
+ - '0.020074'
109
115
  content-length:
110
116
  - '142'
111
117
  connection:
@@ -114,16 +120,18 @@ http_interactions:
114
120
  encoding: UTF-8
115
121
  string: "{\"allowed_ip_addresses\":[\"9.109.14.25\",\"164.249.198.56\"],\"filter_traffic\":false,\"name\":\"mutable-test-app\",\"redirect_url\":\"http://example.com\"}"
116
122
  http_version:
117
- recorded_at: Fri, 28 Feb 2014 17:18:04 GMT
123
+ recorded_at: Mon, 03 Mar 2014 20:59:47 GMT
118
124
  - request:
119
125
  method: get
120
- uri: https://floodgate-api-staging.herokuapp.com/api/v1/apps/9d2852cff163507330242460c0ca5eec/status?api_token=f28b5848e158f96e96168aa37f0002f2
126
+ uri: http://staging.api.floodgate.io/api/apps/9d2852cff163507330242460c0ca5eec/status?api_token=f28b5848e158f96e96168aa37f0002f2
121
127
  body:
122
128
  encoding: US-ASCII
123
129
  string: ''
124
130
  headers:
125
131
  User-Agent:
126
132
  - FloodgateAgent
133
+ Accept:
134
+ - application/vnd.floodgate-v1+json
127
135
  response:
128
136
  status:
129
137
  code: 200
@@ -134,15 +142,15 @@ http_interactions:
134
142
  content-type:
135
143
  - application/json
136
144
  date:
137
- - Fri, 28 Feb 2014 17:18:05 GMT
145
+ - Mon, 03 Mar 2014 20:59:48 GMT
138
146
  etag:
139
147
  - "\"e095bacd98a20e55860f5d335f67baee\""
140
148
  server:
141
149
  - WEBrick/1.3.1 (Ruby/2.1.0/2013-12-25)
142
150
  x-request-id:
143
- - 75114466-f0e3-4231-8334-e060c37bca95
151
+ - 41316655-2cea-417e-9c0c-09c50b504fbb
144
152
  x-runtime:
145
- - '0.032777'
153
+ - '0.013517'
146
154
  content-length:
147
155
  - '142'
148
156
  connection:
@@ -151,5 +159,5 @@ http_interactions:
151
159
  encoding: UTF-8
152
160
  string: "{\"allowed_ip_addresses\":[\"9.109.14.25\",\"164.249.198.56\"],\"filter_traffic\":false,\"name\":\"mutable-test-app\",\"redirect_url\":\"http://example.com\"}"
153
161
  http_version:
154
- recorded_at: Fri, 28 Feb 2014 17:18:05 GMT
162
+ recorded_at: Mon, 03 Mar 2014 20:59:48 GMT
155
163
  recorded_with: VCR 2.8.0
@@ -2,13 +2,15 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: put
5
- uri: https://floodgate-api-staging.herokuapp.com/api/v1/apps/9d2852cff163507330242460c0ca5eec
5
+ uri: http://staging.api.floodgate.io/api/apps/9d2852cff163507330242460c0ca5eec
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: app%5Bredirect_url%5D=http%3A%2F%2Fexample.com&api_token=f28b5848e158f96e96168aa37f0002f2
9
9
  headers:
10
10
  User-Agent:
11
11
  - FloodgateAgent
12
+ Accept:
13
+ - application/vnd.floodgate-v1+json
12
14
  Content-Type:
13
15
  - application/x-www-form-urlencoded
14
16
  response:
@@ -21,15 +23,15 @@ http_interactions:
21
23
  content-type:
22
24
  - application/json
23
25
  date:
24
- - Fri, 28 Feb 2014 17:18:05 GMT
26
+ - Mon, 03 Mar 2014 20:59:48 GMT
25
27
  etag:
26
28
  - "\"e095bacd98a20e55860f5d335f67baee\""
27
29
  server:
28
30
  - WEBrick/1.3.1 (Ruby/2.1.0/2013-12-25)
29
31
  x-request-id:
30
- - 387804d2-6ec8-4e7a-a240-e95accdeead3
32
+ - 754aa9d8-6493-4401-be0d-d82391b3e283
31
33
  x-runtime:
32
- - '0.157111'
34
+ - '0.013382'
33
35
  content-length:
34
36
  - '142'
35
37
  connection:
@@ -38,16 +40,18 @@ http_interactions:
38
40
  encoding: UTF-8
39
41
  string: "{\"allowed_ip_addresses\":[\"9.109.14.25\",\"164.249.198.56\"],\"filter_traffic\":false,\"name\":\"mutable-test-app\",\"redirect_url\":\"http://example.com\"}"
40
42
  http_version:
41
- recorded_at: Fri, 28 Feb 2014 17:18:05 GMT
43
+ recorded_at: Mon, 03 Mar 2014 20:59:48 GMT
42
44
  - request:
43
45
  method: get
44
- uri: https://floodgate-api-staging.herokuapp.com/api/v1/apps/9d2852cff163507330242460c0ca5eec/status?api_token=f28b5848e158f96e96168aa37f0002f2
46
+ uri: http://staging.api.floodgate.io/api/apps/9d2852cff163507330242460c0ca5eec/status?api_token=f28b5848e158f96e96168aa37f0002f2
45
47
  body:
46
48
  encoding: US-ASCII
47
49
  string: ''
48
50
  headers:
49
51
  User-Agent:
50
52
  - FloodgateAgent
53
+ Accept:
54
+ - application/vnd.floodgate-v1+json
51
55
  response:
52
56
  status:
53
57
  code: 200
@@ -58,15 +62,15 @@ http_interactions:
58
62
  content-type:
59
63
  - application/json
60
64
  date:
61
- - Fri, 28 Feb 2014 17:18:05 GMT
65
+ - Mon, 03 Mar 2014 20:59:48 GMT
62
66
  etag:
63
67
  - "\"e095bacd98a20e55860f5d335f67baee\""
64
68
  server:
65
69
  - WEBrick/1.3.1 (Ruby/2.1.0/2013-12-25)
66
70
  x-request-id:
67
- - c2043d3c-8cea-414e-9ea2-389fc30e68df
71
+ - b2d3454c-488f-4ac3-a45c-29fa97f59299
68
72
  x-runtime:
69
- - '0.051087'
73
+ - '0.010297'
70
74
  content-length:
71
75
  - '142'
72
76
  connection:
@@ -75,16 +79,18 @@ http_interactions:
75
79
  encoding: UTF-8
76
80
  string: "{\"allowed_ip_addresses\":[\"9.109.14.25\",\"164.249.198.56\"],\"filter_traffic\":false,\"name\":\"mutable-test-app\",\"redirect_url\":\"http://example.com\"}"
77
81
  http_version:
78
- recorded_at: Fri, 28 Feb 2014 17:18:06 GMT
82
+ recorded_at: Mon, 03 Mar 2014 20:59:48 GMT
79
83
  - request:
80
84
  method: put
81
- uri: https://floodgate-api-staging.herokuapp.com/api/v1/apps/9d2852cff163507330242460c0ca5eec
85
+ uri: http://staging.api.floodgate.io/api/apps/9d2852cff163507330242460c0ca5eec
82
86
  body:
83
87
  encoding: US-ASCII
84
88
  string: app%5Bredirect_url%5D&api_token=f28b5848e158f96e96168aa37f0002f2
85
89
  headers:
86
90
  User-Agent:
87
91
  - FloodgateAgent
92
+ Accept:
93
+ - application/vnd.floodgate-v1+json
88
94
  Content-Type:
89
95
  - application/x-www-form-urlencoded
90
96
  response:
@@ -97,15 +103,15 @@ http_interactions:
97
103
  content-type:
98
104
  - application/json
99
105
  date:
100
- - Fri, 28 Feb 2014 17:18:06 GMT
106
+ - Mon, 03 Mar 2014 20:59:48 GMT
101
107
  etag:
102
108
  - "\"5dcd96cc7b45b270738601bce30d703f\""
103
109
  server:
104
110
  - WEBrick/1.3.1 (Ruby/2.1.0/2013-12-25)
105
111
  x-request-id:
106
- - 13e13b1f-c11c-4c7c-b00d-03d99522aa5e
112
+ - b45b1547-9bb5-4129-8d32-9830d4ed9df0
107
113
  x-runtime:
108
- - '0.078110'
114
+ - '0.020837'
109
115
  content-length:
110
116
  - '126'
111
117
  connection:
@@ -114,16 +120,18 @@ http_interactions:
114
120
  encoding: UTF-8
115
121
  string: "{\"allowed_ip_addresses\":[\"9.109.14.25\",\"164.249.198.56\"],\"filter_traffic\":false,\"name\":\"mutable-test-app\",\"redirect_url\":null}"
116
122
  http_version:
117
- recorded_at: Fri, 28 Feb 2014 17:18:06 GMT
123
+ recorded_at: Mon, 03 Mar 2014 20:59:48 GMT
118
124
  - request:
119
125
  method: get
120
- uri: https://floodgate-api-staging.herokuapp.com/api/v1/apps/9d2852cff163507330242460c0ca5eec/status?api_token=f28b5848e158f96e96168aa37f0002f2
126
+ uri: http://staging.api.floodgate.io/api/apps/9d2852cff163507330242460c0ca5eec/status?api_token=f28b5848e158f96e96168aa37f0002f2
121
127
  body:
122
128
  encoding: US-ASCII
123
129
  string: ''
124
130
  headers:
125
131
  User-Agent:
126
132
  - FloodgateAgent
133
+ Accept:
134
+ - application/vnd.floodgate-v1+json
127
135
  response:
128
136
  status:
129
137
  code: 200
@@ -134,15 +142,15 @@ http_interactions:
134
142
  content-type:
135
143
  - application/json
136
144
  date:
137
- - Fri, 28 Feb 2014 17:18:06 GMT
145
+ - Mon, 03 Mar 2014 20:59:48 GMT
138
146
  etag:
139
147
  - "\"5dcd96cc7b45b270738601bce30d703f\""
140
148
  server:
141
149
  - WEBrick/1.3.1 (Ruby/2.1.0/2013-12-25)
142
150
  x-request-id:
143
- - 67d6a331-585f-4fea-a576-5ccd986d2e18
151
+ - acb559ae-ac71-4a7f-87fa-57d0a4a1bb7a
144
152
  x-runtime:
145
- - '0.040286'
153
+ - '0.008915'
146
154
  content-length:
147
155
  - '126'
148
156
  connection:
@@ -151,5 +159,5 @@ http_interactions:
151
159
  encoding: UTF-8
152
160
  string: "{\"allowed_ip_addresses\":[\"9.109.14.25\",\"164.249.198.56\"],\"filter_traffic\":false,\"name\":\"mutable-test-app\",\"redirect_url\":null}"
153
161
  http_version:
154
- recorded_at: Fri, 28 Feb 2014 17:18:06 GMT
162
+ recorded_at: Mon, 03 Mar 2014 20:59:48 GMT
155
163
  recorded_with: VCR 2.8.0