floodgate 0.0.17 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 621093a8a4b974e511fb73f8938b409af2d76c7a
4
- data.tar.gz: 0fc8127549a587caf6541f688b6d5eb0887f37b6
3
+ metadata.gz: 2acbcaba8c280f385bae24f1bed6bd4db84c560b
4
+ data.tar.gz: 4b246d6f6d4ef52a995b478012c641350379e150
5
5
  SHA512:
6
- metadata.gz: 396725d71f36cd2c73a3f150b5c1f17c4ca62daebe571e8ec4722e2adef274a885591d5cd0badaaedc8a577c77371b888946d3c7de61a27eaa280fc61247ea1d
7
- data.tar.gz: 2e0ed41359f1dd9cb029ac1e505bfd680f0a82906ec27d221a18afceaf488183d06f4415a98905bf0b27b0b6a000b6660bb7ffd682cec858aa49638d5faa936d
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 see now have an allowed IP address.
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"]
@@ -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
- "https://floodgate-api-staging.herokuapp.com/api/v1/apps/#{Config.app_id}"
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
@@ -6,6 +6,10 @@ module Floodgate
6
6
  def reset
7
7
  @app_id = @api_token = nil
8
8
  end
9
+
10
+ def test?
11
+ ENV.has_key?('FLOODGATE_TEST_MODE')
12
+ end
9
13
  end
10
14
 
11
15
  attr_accessor \
@@ -1,3 +1,3 @@
1
1
  module Floodgate
2
- VERSION = "0.0.17"
2
+ VERSION = "0.3.0"
3
3
  end
@@ -2,13 +2,15 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: delete
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:17:57 GMT
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
- - a3e29587-c822-447e-8a97-57e2defb1ea7
32
+ - 15a4dc7c-8ec3-4d15-9f25-b707a032d92b
31
33
  x-runtime:
32
- - '0.011259'
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: Fri, 28 Feb 2014 17:17:57 GMT
43
+ recorded_at: Mon, 03 Mar 2014 20:59:40 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:17:57 GMT
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
- - 6c095f06-5c8c-4677-808a-378319b33c50
71
+ - 8008816d-8dcd-46d9-af9d-d006a3e1c22b
68
72
  x-runtime:
69
- - '0.017555'
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: Fri, 28 Feb 2014 17:17:57 GMT
82
+ recorded_at: Mon, 03 Mar 2014 20:59:40 GMT
79
83
  - request:
80
84
  method: post
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:17:58 GMT
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
- - 557239db-4638-4007-a4f7-ba334e05a10f
112
+ - 7879e990-d36b-4977-867a-d6e986c5ad8f
107
113
  x-runtime:
108
- - '0.048389'
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: Fri, 28 Feb 2014 17:17:58 GMT
123
+ recorded_at: Mon, 03 Mar 2014 20:59:41 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:17:58 GMT
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
- - e968943f-a74d-435b-8a9e-9bfc549019dd
151
+ - c719f61b-a44d-4f51-9553-9325cb5b08ac
144
152
  x-runtime:
145
- - '0.019461'
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: Fri, 28 Feb 2014 17:17:58 GMT
162
+ recorded_at: Mon, 03 Mar 2014 20:59:42 GMT
155
163
  - request:
156
164
  method: delete
157
- uri: https://floodgate-api-staging.herokuapp.com/api/v1/apps/9d2852cff163507330242460c0ca5eec/ip_addresses
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
- - Fri, 28 Feb 2014 17:17:58 GMT
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
- - 0e96f804-e649-4ed0-8c2f-071d037ba489
192
+ - 89fc5eb9-d70d-4819-8927-66f02236b111
183
193
  x-runtime:
184
- - '0.047728'
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: Fri, 28 Feb 2014 17:17:58 GMT
203
+ recorded_at: Mon, 03 Mar 2014 20:59:42 GMT
194
204
  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:17:59 GMT
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
- - 13093d13-9100-4ef4-a217-76ba4df90fa7
32
+ - 0d569d89-7741-4c37-90fc-890e65c56029
31
33
  x-runtime:
32
- - '0.027374'
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: Fri, 28 Feb 2014 17:17:59 GMT
43
+ recorded_at: Mon, 03 Mar 2014 20:59:42 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:17:59 GMT
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
- - ad59bc45-9011-4a2c-8ce4-4e0e6960325c
71
+ - e0daf42a-0e0f-4dce-ad8d-9fa442fb110b
68
72
  x-runtime:
69
- - '0.050096'
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: Fri, 28 Feb 2014 17:17:59 GMT
82
+ recorded_at: Mon, 03 Mar 2014 20:59:44 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:17:59 GMT
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
- - ecd1c836-9334-4ece-8780-273ed97ae795
112
+ - a337a031-b109-4f86-85e9-b70109ef3b9f
107
113
  x-runtime:
108
- - '0.073713'
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: Fri, 28 Feb 2014 17:17:59 GMT
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: 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=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
- - Fri, 28 Feb 2014 17:18:00 GMT
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
- - 1cb24af2-c391-4aa0-8cb1-58fe5d939816
32
+ - 65886e05-d615-4383-85a8-5c3e31ed86de
31
33
  x-runtime:
32
- - '0.018282'
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: Fri, 28 Feb 2014 17:18:00 GMT
43
+ recorded_at: Mon, 03 Mar 2014 20:59:44 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:00 GMT
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
- - 4c9287f0-97bc-4923-8769-86e52dcc2a18
71
+ - 78ed6eb2-9021-4e52-b958-967854674a82
68
72
  x-runtime:
69
- - '0.015105'
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: Fri, 28 Feb 2014 17:18:00 GMT
82
+ recorded_at: Mon, 03 Mar 2014 20:59:44 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=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
- - Fri, 28 Feb 2014 17:18:00 GMT
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
- - 1ad9e603-5f0e-4abe-8e1d-35488ad4d91b
112
+ - d59d10d6-cb02-4dce-a15e-270e4d481adb
107
113
  x-runtime:
108
- - '0.045982'
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: Fri, 28 Feb 2014 17:18:00 GMT
123
+ recorded_at: Mon, 03 Mar 2014 20:59:45 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:01 GMT
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
- - a6b786d9-a572-46d7-956a-9d0b2d62c038
151
+ - 61cfc262-a357-49ee-b1fa-767edd328e19
144
152
  x-runtime:
145
- - '0.016004'
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: Fri, 28 Feb 2014 17:18:01 GMT
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
- - Fri, 28 Feb 2014 20:32:56 GMT
20
+ - Mon, 03 Mar 2014 20:58:27 GMT
21
21
  content-type:
22
22
  - text/plain
23
23
  content-length:
24
- - '12'
24
+ - '15'
25
25
  body:
26
26
  encoding: UTF-8
27
27
  string: |
28
- 24.240.74.8
28
+ 216.26.107.114
29
29
  http_version:
30
- recorded_at: Fri, 28 Feb 2014 20:34:13 GMT
30
+ recorded_at: Mon, 03 Mar 2014 20:59:45 GMT
31
31
  recorded_with: VCR 2.8.0