floodgate 0.0.17 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/floodgate/client.rb +6 -1
- data/lib/floodgate/config.rb +4 -0
- data/lib/floodgate/version.rb +1 -1
- 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
- data/spec/cassettes/Floodgate_Client/_allowed_ip_addresses/returns_the_allowed_ip_addresses.yml +21 -15
- data/spec/cassettes/Floodgate_Client/_close/changes_filter_traffic_from_false_to_true.yml +28 -20
- data/spec/cassettes/Floodgate_Client/_my_ip_address/is_an_ip_address.yml +4 -4
- data/spec/cassettes/Floodgate_Client/_open/changes_filter_traffic_from_true_to_false.yml +28 -20
- 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
- data/spec/cassettes/Floodgate_Client/_set_redirect_url/when_a_redirect_url_is_specified/changes_the_redirect_url.yml +28 -20
- data/spec/cassettes/Floodgate_Client/_set_redirect_url/when_nil_is_specified/clears_the_redirect_url.yml +28 -20
- data/spec/cassettes/Floodgate_Client/_status/when_the_credentials_are_not_valid/returns_the_default_status.yml +7 -5
- data/spec/cassettes/Floodgate_Client/_status/when_the_credentials_are_valid/and_traffic_filtering_is_enabled/filter_traffic_is_true.yml +7 -5
- data/spec/cassettes/Floodgate_Client/_status/when_the_credentials_are_valid/and_traffic_filtering_is_not_enabled/filter_traffic_is_false.yml +7 -5
- data/spec/spec_helper.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2acbcaba8c280f385bae24f1bed6bd4db84c560b
|
4
|
+
data.tar.gz: 4b246d6f6d4ef52a995b478012c641350379e150
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e08e14d96b37209037e8ef26130837123d2b7b308aa0b82138dc4ee71863845f1226882c866a3aedf52c6bba471c9a81dadff5549b226830f2274d2ef51afd1
|
7
|
+
data.tar.gz: 6a4a15c84e85908c129d58c842a3104cec80d1a0d0488f2e74fce00087e06c2dfbbf2156261e680fd01c449bd849828a315379aa4c85abad0ef6afc72b7ae3be
|
data/README.md
CHANGED
@@ -62,7 +62,7 @@ But, wait! How do we get in to smoke test? You'll need to determine what your IP
|
|
62
62
|
|
63
63
|
$ rake floodgate:ip_address:add_me
|
64
64
|
|
65
|
-
Checking its status we
|
65
|
+
Checking its status we now have an allowed IP address.
|
66
66
|
|
67
67
|
$ rake floodgate:status
|
68
68
|
allowed_ip_addresses: ["24.240.74.8"]
|
data/lib/floodgate/client.rb
CHANGED
@@ -105,8 +105,12 @@ module Floodgate
|
|
105
105
|
response.body
|
106
106
|
end
|
107
107
|
|
108
|
+
def self.host_name
|
109
|
+
Config.test? ? 'staging.api.floodgate.io' : 'api.floodgate.io'
|
110
|
+
end
|
111
|
+
|
108
112
|
def self.base_url
|
109
|
-
"
|
113
|
+
"http://#{host_name}/api/apps/#{Config.app_id}"
|
110
114
|
end
|
111
115
|
|
112
116
|
def self.user_agent
|
@@ -122,6 +126,7 @@ module Floodgate
|
|
122
126
|
builder.use Faraday::Adapter::NetHttp
|
123
127
|
end
|
124
128
|
|
129
|
+
conn.headers[:accept] = 'application/vnd.floodgate-v1+json'
|
125
130
|
conn.headers[:user_agent] = user_agent
|
126
131
|
|
127
132
|
conn
|
data/lib/floodgate/config.rb
CHANGED
data/lib/floodgate/version.rb
CHANGED
@@ -2,13 +2,15 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: delete
|
5
|
-
uri:
|
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
|
-
-
|
26
|
+
- Mon, 03 Mar 2014 20:59:40 GMT
|
25
27
|
etag:
|
26
28
|
- "\"d751713988987e9331980363e24189ce\""
|
27
29
|
server:
|
28
30
|
- WEBrick/1.3.1 (Ruby/2.1.0/2013-12-25)
|
29
31
|
x-request-id:
|
30
|
-
-
|
32
|
+
- 15a4dc7c-8ec3-4d15-9f25-b707a032d92b
|
31
33
|
x-runtime:
|
32
|
-
- '0.
|
34
|
+
- '0.010360'
|
33
35
|
content-length:
|
34
36
|
- '2'
|
35
37
|
connection:
|
@@ -38,16 +40,18 @@ http_interactions:
|
|
38
40
|
encoding: UTF-8
|
39
41
|
string: "[]"
|
40
42
|
http_version:
|
41
|
-
recorded_at:
|
43
|
+
recorded_at: Mon, 03 Mar 2014 20:59:40 GMT
|
42
44
|
- request:
|
43
45
|
method: get
|
44
|
-
uri:
|
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
|
-
-
|
65
|
+
- Mon, 03 Mar 2014 20:59:40 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
|
-
-
|
71
|
+
- 8008816d-8dcd-46d9-af9d-d006a3e1c22b
|
68
72
|
x-runtime:
|
69
|
-
- '0.
|
73
|
+
- '0.009033'
|
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:
|
82
|
+
recorded_at: Mon, 03 Mar 2014 20:59:40 GMT
|
79
83
|
- request:
|
80
84
|
method: post
|
81
|
-
uri:
|
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
|
-
-
|
106
|
+
- Mon, 03 Mar 2014 20:59:41 GMT
|
101
107
|
etag:
|
102
108
|
- "\"bbc66f5c6fff2775354263608d971d3a\""
|
103
109
|
server:
|
104
110
|
- WEBrick/1.3.1 (Ruby/2.1.0/2013-12-25)
|
105
111
|
x-request-id:
|
106
|
-
-
|
112
|
+
- 7879e990-d36b-4977-867a-d6e986c5ad8f
|
107
113
|
x-runtime:
|
108
|
-
- '0.
|
114
|
+
- '0.020858'
|
109
115
|
content-length:
|
110
116
|
- '24'
|
111
117
|
connection:
|
@@ -114,16 +120,18 @@ http_interactions:
|
|
114
120
|
encoding: UTF-8
|
115
121
|
string: "{\"ip_address\":\"1.1.1.1\"}"
|
116
122
|
http_version:
|
117
|
-
recorded_at:
|
123
|
+
recorded_at: Mon, 03 Mar 2014 20:59:41 GMT
|
118
124
|
- request:
|
119
125
|
method: get
|
120
|
-
uri:
|
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
|
-
-
|
145
|
+
- Mon, 03 Mar 2014 20:59:41 GMT
|
138
146
|
etag:
|
139
147
|
- "\"56afa4fe0c249466945b8b5763f2a93a\""
|
140
148
|
server:
|
141
149
|
- WEBrick/1.3.1 (Ruby/2.1.0/2013-12-25)
|
142
150
|
x-request-id:
|
143
|
-
-
|
151
|
+
- c719f61b-a44d-4f51-9553-9325cb5b08ac
|
144
152
|
x-runtime:
|
145
|
-
- '0.
|
153
|
+
- '0.340406'
|
146
154
|
content-length:
|
147
155
|
- '136'
|
148
156
|
connection:
|
@@ -151,16 +159,18 @@ http_interactions:
|
|
151
159
|
encoding: UTF-8
|
152
160
|
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}"
|
153
161
|
http_version:
|
154
|
-
recorded_at:
|
162
|
+
recorded_at: Mon, 03 Mar 2014 20:59:42 GMT
|
155
163
|
- request:
|
156
164
|
method: delete
|
157
|
-
uri:
|
165
|
+
uri: http://staging.api.floodgate.io/api/apps/9d2852cff163507330242460c0ca5eec/ip_addresses
|
158
166
|
body:
|
159
167
|
encoding: US-ASCII
|
160
168
|
string: ip_address%5Bip_address%5D=1.1.1.1&api_token=f28b5848e158f96e96168aa37f0002f2
|
161
169
|
headers:
|
162
170
|
User-Agent:
|
163
171
|
- FloodgateAgent
|
172
|
+
Accept:
|
173
|
+
- application/vnd.floodgate-v1+json
|
164
174
|
Content-Type:
|
165
175
|
- application/x-www-form-urlencoded
|
166
176
|
response:
|
@@ -173,15 +183,15 @@ http_interactions:
|
|
173
183
|
content-type:
|
174
184
|
- application/json
|
175
185
|
date:
|
176
|
-
-
|
186
|
+
- Mon, 03 Mar 2014 20:59:42 GMT
|
177
187
|
etag:
|
178
188
|
- "\"23e8cc0c8abfb81d69429dfc9203ea60\""
|
179
189
|
server:
|
180
190
|
- WEBrick/1.3.1 (Ruby/2.1.0/2013-12-25)
|
181
191
|
x-request-id:
|
182
|
-
-
|
192
|
+
- 89fc5eb9-d70d-4819-8927-66f02236b111
|
183
193
|
x-runtime:
|
184
|
-
- '0.
|
194
|
+
- '0.017356'
|
185
195
|
content-length:
|
186
196
|
- '43'
|
187
197
|
connection:
|
@@ -190,5 +200,5 @@ http_interactions:
|
|
190
200
|
encoding: UTF-8
|
191
201
|
string: "{\"ip_addresses\":[{\"ip_address\":\"1.1.1.1\"}]}"
|
192
202
|
http_version:
|
193
|
-
recorded_at:
|
203
|
+
recorded_at: Mon, 03 Mar 2014 20:59:42 GMT
|
194
204
|
recorded_with: VCR 2.8.0
|
data/spec/cassettes/Floodgate_Client/_allowed_ip_addresses/returns_the_allowed_ip_addresses.yml
CHANGED
@@ -2,13 +2,15 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri:
|
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
|
-
-
|
26
|
+
- Mon, 03 Mar 2014 20:59:42 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
|
-
-
|
32
|
+
- 0d569d89-7741-4c37-90fc-890e65c56029
|
31
33
|
x-runtime:
|
32
|
-
- '0.
|
34
|
+
- '0.015566'
|
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:
|
43
|
+
recorded_at: Mon, 03 Mar 2014 20:59:42 GMT
|
42
44
|
- request:
|
43
45
|
method: get
|
44
|
-
uri:
|
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
|
-
-
|
65
|
+
- Mon, 03 Mar 2014 20:59:44 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
|
-
-
|
71
|
+
- e0daf42a-0e0f-4dce-ad8d-9fa442fb110b
|
68
72
|
x-runtime:
|
69
|
-
- '0.
|
73
|
+
- '0.012061'
|
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:
|
82
|
+
recorded_at: Mon, 03 Mar 2014 20:59:44 GMT
|
79
83
|
- request:
|
80
84
|
method: delete
|
81
|
-
uri:
|
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
|
-
-
|
106
|
+
- Mon, 03 Mar 2014 20:59:44 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
|
-
-
|
112
|
+
- a337a031-b109-4f86-85e9-b70109ef3b9f
|
107
113
|
x-runtime:
|
108
|
-
- '0.
|
114
|
+
- '0.016916'
|
109
115
|
content-length:
|
110
116
|
- '43'
|
111
117
|
connection:
|
@@ -114,5 +120,5 @@ 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:
|
123
|
+
recorded_at: Mon, 03 Mar 2014 20:59:44 GMT
|
118
124
|
recorded_with: VCR 2.8.0
|
@@ -2,13 +2,15 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: put
|
5
|
-
uri:
|
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=false&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
|
-
-
|
26
|
+
- Mon, 03 Mar 2014 20:59:44 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
|
-
-
|
32
|
+
- 65886e05-d615-4383-85a8-5c3e31ed86de
|
31
33
|
x-runtime:
|
32
|
-
- '0.
|
34
|
+
- '0.013629'
|
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:
|
43
|
+
recorded_at: Mon, 03 Mar 2014 20:59:44 GMT
|
42
44
|
- request:
|
43
45
|
method: get
|
44
|
-
uri:
|
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
|
-
-
|
65
|
+
- Mon, 03 Mar 2014 20:59:44 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
|
-
-
|
71
|
+
- 78ed6eb2-9021-4e52-b958-967854674a82
|
68
72
|
x-runtime:
|
69
|
-
- '0.
|
73
|
+
- '0.014493'
|
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:
|
82
|
+
recorded_at: Mon, 03 Mar 2014 20:59:44 GMT
|
79
83
|
- request:
|
80
84
|
method: put
|
81
|
-
uri:
|
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=true&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
|
-
-
|
106
|
+
- Mon, 03 Mar 2014 20:59:45 GMT
|
101
107
|
etag:
|
102
108
|
- "\"7771a307c8a2bc95dff054cd3bfcbf9c\""
|
103
109
|
server:
|
104
110
|
- WEBrick/1.3.1 (Ruby/2.1.0/2013-12-25)
|
105
111
|
x-request-id:
|
106
|
-
-
|
112
|
+
- d59d10d6-cb02-4dce-a15e-270e4d481adb
|
107
113
|
x-runtime:
|
108
|
-
- '0.
|
114
|
+
- '0.017799'
|
109
115
|
content-length:
|
110
116
|
- '125'
|
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\":true,\"name\":\"mutable-test-app\",\"redirect_url\":null}"
|
116
122
|
http_version:
|
117
|
-
recorded_at:
|
123
|
+
recorded_at: Mon, 03 Mar 2014 20:59:45 GMT
|
118
124
|
- request:
|
119
125
|
method: get
|
120
|
-
uri:
|
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
|
-
-
|
145
|
+
- Mon, 03 Mar 2014 20:59:45 GMT
|
138
146
|
etag:
|
139
147
|
- "\"7771a307c8a2bc95dff054cd3bfcbf9c\""
|
140
148
|
server:
|
141
149
|
- WEBrick/1.3.1 (Ruby/2.1.0/2013-12-25)
|
142
150
|
x-request-id:
|
143
|
-
-
|
151
|
+
- 61cfc262-a357-49ee-b1fa-767edd328e19
|
144
152
|
x-runtime:
|
145
|
-
- '0.
|
153
|
+
- '0.009023'
|
146
154
|
content-length:
|
147
155
|
- '125'
|
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\":true,\"name\":\"mutable-test-app\",\"redirect_url\":null}"
|
153
161
|
http_version:
|
154
|
-
recorded_at:
|
162
|
+
recorded_at: Mon, 03 Mar 2014 20:59:45 GMT
|
155
163
|
recorded_with: VCR 2.8.0
|
@@ -17,15 +17,15 @@ http_interactions:
|
|
17
17
|
server:
|
18
18
|
- MochiWeb/1.0 (Any of you quaids got a smint?)
|
19
19
|
date:
|
20
|
-
-
|
20
|
+
- Mon, 03 Mar 2014 20:58:27 GMT
|
21
21
|
content-type:
|
22
22
|
- text/plain
|
23
23
|
content-length:
|
24
|
-
- '
|
24
|
+
- '15'
|
25
25
|
body:
|
26
26
|
encoding: UTF-8
|
27
27
|
string: |
|
28
|
-
|
28
|
+
216.26.107.114
|
29
29
|
http_version:
|
30
|
-
recorded_at:
|
30
|
+
recorded_at: Mon, 03 Mar 2014 20:59:45 GMT
|
31
31
|
recorded_with: VCR 2.8.0
|