agile-proxy 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (103) hide show
  1. checksums.yaml +7 -0
  2. data/.bowerrc +3 -0
  3. data/.gitignore +8 -0
  4. data/.rspec +2 -0
  5. data/.rubocop.yml +36 -0
  6. data/.travis.yml +8 -0
  7. data/Gemfile +4 -0
  8. data/Gemfile.lock +267 -0
  9. data/Guardfile +20 -0
  10. data/LICENSE +22 -0
  11. data/README.md +93 -0
  12. data/Rakefile +13 -0
  13. data/agile-proxy.gemspec +50 -0
  14. data/assets/index.html +39 -0
  15. data/assets/ui/app/HttpFlexibleProxyApi.js +31 -0
  16. data/assets/ui/app/app.js +1 -0
  17. data/assets/ui/app/controller/Stubs.js +64 -0
  18. data/assets/ui/app/controller/main.js +12 -0
  19. data/assets/ui/app/directive/AppEnhancedFormElement.js +21 -0
  20. data/assets/ui/app/directive/AppFor.js +16 -0
  21. data/assets/ui/app/directive/AppResponseEditor.js +54 -0
  22. data/assets/ui/app/model/RequestSpec.js +6 -0
  23. data/assets/ui/app/routes.js +10 -0
  24. data/assets/ui/app/service/Dialog.js +49 -0
  25. data/assets/ui/app/service/DomId.js +10 -0
  26. data/assets/ui/app/service/Error.js +7 -0
  27. data/assets/ui/app/service/Stub.js +36 -0
  28. data/assets/ui/app/view/404.html +2 -0
  29. data/assets/ui/app/view/dialog/error.html +10 -0
  30. data/assets/ui/app/view/dialog/yesNo.html +8 -0
  31. data/assets/ui/app/view/responses/editForm.html +78 -0
  32. data/assets/ui/app/view/status.html +1 -0
  33. data/assets/ui/app/view/stubs.html +19 -0
  34. data/assets/ui/app/view/stubs/edit.html +58 -0
  35. data/assets/ui/css/main.css +3 -0
  36. data/bin/agile_proxy +113 -0
  37. data/bower.json +27 -0
  38. data/config.yml +6 -0
  39. data/db.yml +10 -0
  40. data/db/migrations/20140818110800_create_users.rb +9 -0
  41. data/db/migrations/20140818134700_create_applications.rb +10 -0
  42. data/db/migrations/20140818135200_create_request_specs.rb +13 -0
  43. data/db/migrations/20140821115300_create_responses.rb +14 -0
  44. data/db/migrations/20140823082900_add_method_to_request_specs.rb +7 -0
  45. data/db/migrations/20140823083900_rename_request_spec_columns.rb +8 -0
  46. data/db/migrations/20141031072100_add_url_type_to_request_specs.rb +8 -0
  47. data/db/migrations/20141105125600_add_conditions_to_request_specs.rb +7 -0
  48. data/db/migrations/20141106083100_add_username_and_password_to_applications.rb +8 -0
  49. data/db/migrations/20141119143800_add_record_to_applications.rb +7 -0
  50. data/db/migrations/20141119174300_create_recordings.rb +18 -0
  51. data/db/schema.rb +78 -0
  52. data/examples/README.md +1 -0
  53. data/examples/facebook_api.html +59 -0
  54. data/examples/tumblr_api.html +22 -0
  55. data/lib/agile_proxy.rb +8 -0
  56. data/lib/agile_proxy/api/applications.rb +77 -0
  57. data/lib/agile_proxy/api/recordings.rb +52 -0
  58. data/lib/agile_proxy/api/request_specs.rb +85 -0
  59. data/lib/agile_proxy/api/root.rb +41 -0
  60. data/lib/agile_proxy/config.rb +63 -0
  61. data/lib/agile_proxy/handlers/handler.rb +43 -0
  62. data/lib/agile_proxy/handlers/proxy_handler.rb +110 -0
  63. data/lib/agile_proxy/handlers/request_handler.rb +57 -0
  64. data/lib/agile_proxy/handlers/stub_handler.rb +113 -0
  65. data/lib/agile_proxy/mitm.crt +22 -0
  66. data/lib/agile_proxy/mitm.key +27 -0
  67. data/lib/agile_proxy/model/application.rb +20 -0
  68. data/lib/agile_proxy/model/recording.rb +16 -0
  69. data/lib/agile_proxy/model/request_spec.rb +47 -0
  70. data/lib/agile_proxy/model/response.rb +56 -0
  71. data/lib/agile_proxy/model/user.rb +17 -0
  72. data/lib/agile_proxy/proxy_connection.rb +113 -0
  73. data/lib/agile_proxy/route.rb +106 -0
  74. data/lib/agile_proxy/router.rb +99 -0
  75. data/lib/agile_proxy/server.rb +85 -0
  76. data/lib/agile_proxy/servers/api.rb +41 -0
  77. data/lib/agile_proxy/servers/request_spec.rb +30 -0
  78. data/lib/agile_proxy/version.rb +6 -0
  79. data/load_proxy.js +39 -0
  80. data/log/.gitkeep +0 -0
  81. data/spec/common_helper.rb +32 -0
  82. data/spec/fixtures/test-server.crt +15 -0
  83. data/spec/fixtures/test-server.key +15 -0
  84. data/spec/integration/helpers/request_spec_helper.rb +60 -0
  85. data/spec/integration/specs/lib/server_spec.rb +407 -0
  86. data/spec/integration_spec_helper.rb +18 -0
  87. data/spec/spec_helper.rb +39 -0
  88. data/spec/support/test_server.rb +75 -0
  89. data/spec/unit/agile_proxy/api/applications_spec.rb +102 -0
  90. data/spec/unit/agile_proxy/api/common_helper.rb +31 -0
  91. data/spec/unit/agile_proxy/api/recordings_spec.rb +115 -0
  92. data/spec/unit/agile_proxy/api/request_specs_spec.rb +159 -0
  93. data/spec/unit/agile_proxy/handlers/handler_spec.rb +8 -0
  94. data/spec/unit/agile_proxy/handlers/proxy_handler_spec.rb +138 -0
  95. data/spec/unit/agile_proxy/handlers/request_handler_spec.rb +55 -0
  96. data/spec/unit/agile_proxy/handlers/stub_handler_spec.rb +154 -0
  97. data/spec/unit/agile_proxy/model/recording_spec.rb +0 -0
  98. data/spec/unit/agile_proxy/model/request_spec_spec.rb +45 -0
  99. data/spec/unit/agile_proxy/model/response_spec.rb +38 -0
  100. data/spec/unit/agile_proxy/server_spec.rb +88 -0
  101. data/spec/unit/agile_proxy/servers/api_spec.rb +31 -0
  102. data/spec/unit/agile_proxy/servers/request_spec_spec.rb +32 -0
  103. metadata +618 -0
@@ -0,0 +1,88 @@
1
+ require 'spec_helper'
2
+
3
+ describe AgileProxy::Server do
4
+ let(:subject) { AgileProxy::Server.new }
5
+ let(:active_record_base_class) do
6
+ Class.new do
7
+ def self.establish_connection(_options)
8
+ end
9
+ class << self
10
+ attr_accessor :configurations
11
+ end
12
+ end
13
+ end
14
+ let(:request_spec_server_class) { Class.new }
15
+ let(:api_server_class) { Class.new }
16
+ let(:em_class) { Class.new }
17
+ let(:socket_class) { Class.new }
18
+ before :each do
19
+ stub_const('ActiveRecord::Base', active_record_base_class)
20
+ stub_const('::EM', em_class)
21
+ stub_const('AgileProxy::Servers::Api', api_server_class)
22
+ stub_const('AgileProxy::Servers::RequestSpec', request_spec_server_class)
23
+ end
24
+ context 'Initialization' do
25
+ context 'In test environment' do
26
+ before :each do
27
+ expect(AgileProxy.config).to receive(:environment).and_return 'test'
28
+ expect(active_record_base_class).to receive(:establish_connection).with('adapter' => 'sqlite3', 'database' => 'db/test.db')
29
+ end
30
+ it 'Should establish the correct active record connection according to the environment' do
31
+ subject
32
+
33
+ end
34
+ end
35
+ context 'In development environment' do
36
+ before :each do
37
+ expect(AgileProxy.config).to receive(:environment).and_return 'development'
38
+ expect(active_record_base_class).to receive(:establish_connection).with('adapter' => 'sqlite3', 'database' => 'db/development.db')
39
+ end
40
+ it 'Should establish the correct active record connection according to the environment' do
41
+ subject
42
+
43
+ end
44
+ end
45
+ end
46
+ context 'Starting the servers' do
47
+ it 'Should alias start to main_loop' do
48
+ expect(subject).to receive(:main_loop)
49
+ subject.start
50
+ end
51
+ end
52
+ context 'Within Main Loop' do
53
+
54
+ # Note that we are not really testing the main loop here - it is better tested using integration tests which exercise it properly
55
+ inner_loop = nil
56
+ error_handler = nil
57
+ before :each do
58
+ expect(em_class).to receive(:error_handler) do |&blk|
59
+ error_handler = blk
60
+ end
61
+ expect(api_server_class).to receive(:start).with('localhost', 3020)
62
+ expect_any_instance_of(request_spec_server_class).to receive(:port).at_least(:once).and_return '3100'
63
+ expect(em_class).to receive(:run) do |&blk|
64
+ inner_loop = blk
65
+ end
66
+ expect(request_spec_server_class).to receive(:start).and_return request_spec_server_class.new
67
+ subject.start
68
+ inner_loop.call
69
+ end
70
+ context 'Server accessors' do
71
+ it 'Should return something from url' do
72
+ expect(subject.url).to eql 'http://localhost:3100'
73
+ end
74
+ it 'Should return something from webserver_host' do
75
+ expect(subject.webserver_host).to eql 'localhost'
76
+ end
77
+ end
78
+ context 'Error handler' do
79
+ let(:exception) { StandardError.new('This is a test error') }
80
+ it 'Should output the errors to stdout' do
81
+ expect(subject).to receive(:puts).at_least(:once)
82
+ expect(exception).to receive(:backtrace).and_return %w(line1 line2)
83
+ error_handler.call(exception)
84
+ end
85
+ end
86
+
87
+ end
88
+ end
@@ -0,0 +1,31 @@
1
+ require 'spec_helper'
2
+ describe AgileProxy::Servers::Api do
3
+ let(:subject) { AgileProxy::Servers::Api }
4
+ let(:rack_builder_class) { Class.new }
5
+ let(:rack_server_class) { Class.new }
6
+ let(:rack_static_class) { Class.new }
7
+ let(:api_root_class) { Class.new }
8
+ before :each do
9
+ stub_const('Rack::Builder', rack_builder_class)
10
+ stub_const('Rack::Static', rack_static_class)
11
+ stub_const('Rack::Server', rack_server_class)
12
+ stub_const('AgileProxy::Api::Root', api_root_class)
13
+ end
14
+ it 'Should start a rack server when the start method is called' do
15
+ builder_block = nil
16
+ expect(rack_builder_class).to receive(:app) do |&blk|
17
+ builder_block = blk
18
+ rack_builder_class.new.instance_eval(&blk)
19
+ end
20
+ expect_any_instance_of(rack_builder_class).to receive(:use).with(rack_static_class, root: instance_of(String), urls: ['/ui'], index: 'index.html')
21
+ expect_any_instance_of(rack_builder_class).to receive(:map) do |_instance, path, &blk|
22
+ expect(path).to eql '/api'
23
+ expect_any_instance_of(rack_builder_class).to receive(:run).with(kind_of(api_root_class))
24
+ rack_builder_class.new.instance_eval(&blk)
25
+
26
+ end
27
+ expect(rack_server_class).to receive(:start)
28
+ subject.start('localhost', '3020')
29
+
30
+ end
31
+ end
@@ -0,0 +1,32 @@
1
+ require 'spec_helper'
2
+ describe AgileProxy::Servers::RequestSpec do
3
+ let(:subject) { AgileProxy::Servers::RequestSpec }
4
+ let(:event_machine_class) { Class.new }
5
+ let(:socket_class) { Class.new }
6
+ let(:proxy_connection_class) { Class.new }
7
+ let(:request_handler_class) { Class.new }
8
+ before :each do
9
+ stub_const('EM', event_machine_class)
10
+ stub_const('Socket', socket_class)
11
+ stub_const('AgileProxy::ProxyConnection', proxy_connection_class)
12
+ stub_const('AgileProxy::RequestHandler', request_handler_class)
13
+ end
14
+ context 'With started server' do
15
+ before :each do
16
+ expect(event_machine_class).to receive(:start_server).with('127.0.0.1', AgileProxy.config.proxy_port, proxy_connection_class) do |_host, _port, _connection_class, &blk|
17
+ connection_instance = proxy_connection_class.new
18
+ expect(connection_instance).to receive(:handler=).with(kind_of(request_handler_class))
19
+ blk.call(connection_instance)
20
+ end.and_return 'signature'
21
+ end
22
+ it 'Should start the server and return the instance' do
23
+ expect(subject.start).to be_a_kind_of(subject)
24
+ end
25
+ it 'Should return the port it is running on' do
26
+ expect(event_machine_class).to receive(:get_sockname).with('signature').and_return 'sockname'
27
+ expect(socket_class).to receive(:unpack_sockaddr_in).with('sockname').and_return ['3100']
28
+ expect(subject.start.port).to eql '3100'
29
+
30
+ end
31
+ end
32
+ end
metadata ADDED
@@ -0,0 +1,618 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: agile-proxy
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Gary Taylor
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-12-04 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rake
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rspec
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 3.1.0
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 3.1.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec-mocks
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 3.1.3
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 3.1.3
55
+ - !ruby/object:Gem::Dependency
56
+ name: faraday
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 0.9.0
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 0.9.0
69
+ - !ruby/object:Gem::Dependency
70
+ name: poltergeist
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: selenium-webdriver
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 2.43.0
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 2.43.0
97
+ - !ruby/object:Gem::Dependency
98
+ name: rack
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 1.5.2
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 1.5.2
111
+ - !ruby/object:Gem::Dependency
112
+ name: guard
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rb-inotify
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: pry
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: cucumber
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: airborne
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ - !ruby/object:Gem::Dependency
182
+ name: rest-client
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - ">="
193
+ - !ruby/object:Gem::Version
194
+ version: '0'
195
+ - !ruby/object:Gem::Dependency
196
+ name: require_all
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - ">="
200
+ - !ruby/object:Gem::Version
201
+ version: '0'
202
+ type: :development
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - ">="
207
+ - !ruby/object:Gem::Version
208
+ version: '0'
209
+ - !ruby/object:Gem::Dependency
210
+ name: faker
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - ">="
214
+ - !ruby/object:Gem::Version
215
+ version: '0'
216
+ type: :development
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - ">="
221
+ - !ruby/object:Gem::Version
222
+ version: '0'
223
+ - !ruby/object:Gem::Dependency
224
+ name: yard
225
+ requirement: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - ">="
228
+ - !ruby/object:Gem::Version
229
+ version: '0'
230
+ type: :development
231
+ prerelease: false
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - ">="
235
+ - !ruby/object:Gem::Version
236
+ version: '0'
237
+ - !ruby/object:Gem::Dependency
238
+ name: simplecov
239
+ requirement: !ruby/object:Gem::Requirement
240
+ requirements:
241
+ - - ">="
242
+ - !ruby/object:Gem::Version
243
+ version: '0'
244
+ type: :development
245
+ prerelease: false
246
+ version_requirements: !ruby/object:Gem::Requirement
247
+ requirements:
248
+ - - ">="
249
+ - !ruby/object:Gem::Version
250
+ version: '0'
251
+ - !ruby/object:Gem::Dependency
252
+ name: eventmachine
253
+ requirement: !ruby/object:Gem::Requirement
254
+ requirements:
255
+ - - "~>"
256
+ - !ruby/object:Gem::Version
257
+ version: 1.0.3
258
+ type: :runtime
259
+ prerelease: false
260
+ version_requirements: !ruby/object:Gem::Requirement
261
+ requirements:
262
+ - - "~>"
263
+ - !ruby/object:Gem::Version
264
+ version: 1.0.3
265
+ - !ruby/object:Gem::Dependency
266
+ name: em-synchrony
267
+ requirement: !ruby/object:Gem::Requirement
268
+ requirements:
269
+ - - "~>"
270
+ - !ruby/object:Gem::Version
271
+ version: 1.0.3
272
+ type: :runtime
273
+ prerelease: false
274
+ version_requirements: !ruby/object:Gem::Requirement
275
+ requirements:
276
+ - - "~>"
277
+ - !ruby/object:Gem::Version
278
+ version: 1.0.3
279
+ - !ruby/object:Gem::Dependency
280
+ name: em-http-request
281
+ requirement: !ruby/object:Gem::Requirement
282
+ requirements:
283
+ - - "~>"
284
+ - !ruby/object:Gem::Version
285
+ version: 1.1.2
286
+ type: :runtime
287
+ prerelease: false
288
+ version_requirements: !ruby/object:Gem::Requirement
289
+ requirements:
290
+ - - "~>"
291
+ - !ruby/object:Gem::Version
292
+ version: 1.1.2
293
+ - !ruby/object:Gem::Dependency
294
+ name: eventmachine_httpserver
295
+ requirement: !ruby/object:Gem::Requirement
296
+ requirements:
297
+ - - "~>"
298
+ - !ruby/object:Gem::Version
299
+ version: 0.2.1
300
+ type: :runtime
301
+ prerelease: false
302
+ version_requirements: !ruby/object:Gem::Requirement
303
+ requirements:
304
+ - - "~>"
305
+ - !ruby/object:Gem::Version
306
+ version: 0.2.1
307
+ - !ruby/object:Gem::Dependency
308
+ name: http_parser.rb
309
+ requirement: !ruby/object:Gem::Requirement
310
+ requirements:
311
+ - - "~>"
312
+ - !ruby/object:Gem::Version
313
+ version: 0.6.0
314
+ type: :runtime
315
+ prerelease: false
316
+ version_requirements: !ruby/object:Gem::Requirement
317
+ requirements:
318
+ - - "~>"
319
+ - !ruby/object:Gem::Version
320
+ version: 0.6.0
321
+ - !ruby/object:Gem::Dependency
322
+ name: multi_json
323
+ requirement: !ruby/object:Gem::Requirement
324
+ requirements:
325
+ - - ">="
326
+ - !ruby/object:Gem::Version
327
+ version: '0'
328
+ type: :runtime
329
+ prerelease: false
330
+ version_requirements: !ruby/object:Gem::Requirement
331
+ requirements:
332
+ - - ">="
333
+ - !ruby/object:Gem::Version
334
+ version: '0'
335
+ - !ruby/object:Gem::Dependency
336
+ name: thin
337
+ requirement: !ruby/object:Gem::Requirement
338
+ requirements:
339
+ - - "~>"
340
+ - !ruby/object:Gem::Version
341
+ version: 1.6.2
342
+ type: :runtime
343
+ prerelease: false
344
+ version_requirements: !ruby/object:Gem::Requirement
345
+ requirements:
346
+ - - "~>"
347
+ - !ruby/object:Gem::Version
348
+ version: 1.6.2
349
+ - !ruby/object:Gem::Dependency
350
+ name: grape
351
+ requirement: !ruby/object:Gem::Requirement
352
+ requirements:
353
+ - - "~>"
354
+ - !ruby/object:Gem::Version
355
+ version: 0.9.0
356
+ type: :runtime
357
+ prerelease: false
358
+ version_requirements: !ruby/object:Gem::Requirement
359
+ requirements:
360
+ - - "~>"
361
+ - !ruby/object:Gem::Version
362
+ version: 0.9.0
363
+ - !ruby/object:Gem::Dependency
364
+ name: activerecord
365
+ requirement: !ruby/object:Gem::Requirement
366
+ requirements:
367
+ - - "~>"
368
+ - !ruby/object:Gem::Version
369
+ version: 4.1.6
370
+ type: :runtime
371
+ prerelease: false
372
+ version_requirements: !ruby/object:Gem::Requirement
373
+ requirements:
374
+ - - "~>"
375
+ - !ruby/object:Gem::Version
376
+ version: 4.1.6
377
+ - !ruby/object:Gem::Dependency
378
+ name: sqlite3
379
+ requirement: !ruby/object:Gem::Requirement
380
+ requirements:
381
+ - - "~>"
382
+ - !ruby/object:Gem::Version
383
+ version: 1.3.10
384
+ type: :runtime
385
+ prerelease: false
386
+ version_requirements: !ruby/object:Gem::Requirement
387
+ requirements:
388
+ - - "~>"
389
+ - !ruby/object:Gem::Version
390
+ version: 1.3.10
391
+ - !ruby/object:Gem::Dependency
392
+ name: grape-kaminari
393
+ requirement: !ruby/object:Gem::Requirement
394
+ requirements:
395
+ - - "~>"
396
+ - !ruby/object:Gem::Version
397
+ version: 0.1.6
398
+ type: :runtime
399
+ prerelease: false
400
+ version_requirements: !ruby/object:Gem::Requirement
401
+ requirements:
402
+ - - "~>"
403
+ - !ruby/object:Gem::Version
404
+ version: 0.1.6
405
+ - !ruby/object:Gem::Dependency
406
+ name: shoulda-matchers
407
+ requirement: !ruby/object:Gem::Requirement
408
+ requirements:
409
+ - - ">="
410
+ - !ruby/object:Gem::Version
411
+ version: '0'
412
+ type: :runtime
413
+ prerelease: false
414
+ version_requirements: !ruby/object:Gem::Requirement
415
+ requirements:
416
+ - - ">="
417
+ - !ruby/object:Gem::Version
418
+ version: '0'
419
+ - !ruby/object:Gem::Dependency
420
+ name: flavour_saver
421
+ requirement: !ruby/object:Gem::Requirement
422
+ requirements:
423
+ - - ">="
424
+ - !ruby/object:Gem::Version
425
+ version: '0'
426
+ type: :runtime
427
+ prerelease: false
428
+ version_requirements: !ruby/object:Gem::Requirement
429
+ requirements:
430
+ - - ">="
431
+ - !ruby/object:Gem::Version
432
+ version: '0'
433
+ - !ruby/object:Gem::Dependency
434
+ name: thor
435
+ requirement: !ruby/object:Gem::Requirement
436
+ requirements:
437
+ - - ">="
438
+ - !ruby/object:Gem::Version
439
+ version: '0'
440
+ type: :runtime
441
+ prerelease: false
442
+ version_requirements: !ruby/object:Gem::Requirement
443
+ requirements:
444
+ - - ">="
445
+ - !ruby/object:Gem::Version
446
+ version: '0'
447
+ - !ruby/object:Gem::Dependency
448
+ name: rack-parser
449
+ requirement: !ruby/object:Gem::Requirement
450
+ requirements:
451
+ - - "~>"
452
+ - !ruby/object:Gem::Version
453
+ version: 0.6.1
454
+ type: :runtime
455
+ prerelease: false
456
+ version_requirements: !ruby/object:Gem::Requirement
457
+ requirements:
458
+ - - "~>"
459
+ - !ruby/object:Gem::Version
460
+ version: 0.6.1
461
+ description: An agile, programmable, controllable proxy server for use standalone
462
+ or as part of an integration test suite with clients for many languages
463
+ email:
464
+ - gary.taylor@hismessages.com
465
+ executables:
466
+ - agile_proxy
467
+ extensions: []
468
+ extra_rdoc_files: []
469
+ files:
470
+ - ".bowerrc"
471
+ - ".gitignore"
472
+ - ".rspec"
473
+ - ".rubocop.yml"
474
+ - ".travis.yml"
475
+ - Gemfile
476
+ - Gemfile.lock
477
+ - Guardfile
478
+ - LICENSE
479
+ - README.md
480
+ - Rakefile
481
+ - agile-proxy.gemspec
482
+ - assets/index.html
483
+ - assets/ui/app/HttpFlexibleProxyApi.js
484
+ - assets/ui/app/app.js
485
+ - assets/ui/app/controller/Stubs.js
486
+ - assets/ui/app/controller/main.js
487
+ - assets/ui/app/directive/AppEnhancedFormElement.js
488
+ - assets/ui/app/directive/AppFor.js
489
+ - assets/ui/app/directive/AppResponseEditor.js
490
+ - assets/ui/app/model/RequestSpec.js
491
+ - assets/ui/app/routes.js
492
+ - assets/ui/app/service/Dialog.js
493
+ - assets/ui/app/service/DomId.js
494
+ - assets/ui/app/service/Error.js
495
+ - assets/ui/app/service/Stub.js
496
+ - assets/ui/app/view/404.html
497
+ - assets/ui/app/view/dialog/error.html
498
+ - assets/ui/app/view/dialog/yesNo.html
499
+ - assets/ui/app/view/responses/editForm.html
500
+ - assets/ui/app/view/status.html
501
+ - assets/ui/app/view/stubs.html
502
+ - assets/ui/app/view/stubs/edit.html
503
+ - assets/ui/css/main.css
504
+ - bin/agile_proxy
505
+ - bower.json
506
+ - config.yml
507
+ - db.yml
508
+ - db/migrations/20140818110800_create_users.rb
509
+ - db/migrations/20140818134700_create_applications.rb
510
+ - db/migrations/20140818135200_create_request_specs.rb
511
+ - db/migrations/20140821115300_create_responses.rb
512
+ - db/migrations/20140823082900_add_method_to_request_specs.rb
513
+ - db/migrations/20140823083900_rename_request_spec_columns.rb
514
+ - db/migrations/20141031072100_add_url_type_to_request_specs.rb
515
+ - db/migrations/20141105125600_add_conditions_to_request_specs.rb
516
+ - db/migrations/20141106083100_add_username_and_password_to_applications.rb
517
+ - db/migrations/20141119143800_add_record_to_applications.rb
518
+ - db/migrations/20141119174300_create_recordings.rb
519
+ - db/schema.rb
520
+ - examples/README.md
521
+ - examples/facebook_api.html
522
+ - examples/tumblr_api.html
523
+ - lib/agile_proxy.rb
524
+ - lib/agile_proxy/api/applications.rb
525
+ - lib/agile_proxy/api/recordings.rb
526
+ - lib/agile_proxy/api/request_specs.rb
527
+ - lib/agile_proxy/api/root.rb
528
+ - lib/agile_proxy/config.rb
529
+ - lib/agile_proxy/handlers/handler.rb
530
+ - lib/agile_proxy/handlers/proxy_handler.rb
531
+ - lib/agile_proxy/handlers/request_handler.rb
532
+ - lib/agile_proxy/handlers/stub_handler.rb
533
+ - lib/agile_proxy/mitm.crt
534
+ - lib/agile_proxy/mitm.key
535
+ - lib/agile_proxy/model/application.rb
536
+ - lib/agile_proxy/model/recording.rb
537
+ - lib/agile_proxy/model/request_spec.rb
538
+ - lib/agile_proxy/model/response.rb
539
+ - lib/agile_proxy/model/user.rb
540
+ - lib/agile_proxy/proxy_connection.rb
541
+ - lib/agile_proxy/route.rb
542
+ - lib/agile_proxy/router.rb
543
+ - lib/agile_proxy/server.rb
544
+ - lib/agile_proxy/servers/api.rb
545
+ - lib/agile_proxy/servers/request_spec.rb
546
+ - lib/agile_proxy/version.rb
547
+ - load_proxy.js
548
+ - log/.gitkeep
549
+ - spec/common_helper.rb
550
+ - spec/fixtures/test-server.crt
551
+ - spec/fixtures/test-server.key
552
+ - spec/integration/helpers/request_spec_helper.rb
553
+ - spec/integration/specs/lib/server_spec.rb
554
+ - spec/integration_spec_helper.rb
555
+ - spec/spec_helper.rb
556
+ - spec/support/test_server.rb
557
+ - spec/unit/agile_proxy/api/applications_spec.rb
558
+ - spec/unit/agile_proxy/api/common_helper.rb
559
+ - spec/unit/agile_proxy/api/recordings_spec.rb
560
+ - spec/unit/agile_proxy/api/request_specs_spec.rb
561
+ - spec/unit/agile_proxy/handlers/handler_spec.rb
562
+ - spec/unit/agile_proxy/handlers/proxy_handler_spec.rb
563
+ - spec/unit/agile_proxy/handlers/request_handler_spec.rb
564
+ - spec/unit/agile_proxy/handlers/stub_handler_spec.rb
565
+ - spec/unit/agile_proxy/model/recording_spec.rb
566
+ - spec/unit/agile_proxy/model/request_spec_spec.rb
567
+ - spec/unit/agile_proxy/model/response_spec.rb
568
+ - spec/unit/agile_proxy/server_spec.rb
569
+ - spec/unit/agile_proxy/servers/api_spec.rb
570
+ - spec/unit/agile_proxy/servers/request_spec_spec.rb
571
+ homepage: https://github.com/garytaylor/agileproxy
572
+ licenses: []
573
+ metadata: {}
574
+ post_install_message:
575
+ rdoc_options: []
576
+ require_paths:
577
+ - lib
578
+ required_ruby_version: !ruby/object:Gem::Requirement
579
+ requirements:
580
+ - - ">="
581
+ - !ruby/object:Gem::Version
582
+ version: '0'
583
+ required_rubygems_version: !ruby/object:Gem::Requirement
584
+ requirements:
585
+ - - ">="
586
+ - !ruby/object:Gem::Version
587
+ version: '0'
588
+ requirements: []
589
+ rubyforge_project:
590
+ rubygems_version: 2.2.2
591
+ signing_key:
592
+ specification_version: 4
593
+ summary: An agile, programmable, controllable flexible proxy server for development
594
+ or test use
595
+ test_files:
596
+ - spec/common_helper.rb
597
+ - spec/fixtures/test-server.crt
598
+ - spec/fixtures/test-server.key
599
+ - spec/integration/helpers/request_spec_helper.rb
600
+ - spec/integration/specs/lib/server_spec.rb
601
+ - spec/integration_spec_helper.rb
602
+ - spec/spec_helper.rb
603
+ - spec/support/test_server.rb
604
+ - spec/unit/agile_proxy/api/applications_spec.rb
605
+ - spec/unit/agile_proxy/api/common_helper.rb
606
+ - spec/unit/agile_proxy/api/recordings_spec.rb
607
+ - spec/unit/agile_proxy/api/request_specs_spec.rb
608
+ - spec/unit/agile_proxy/handlers/handler_spec.rb
609
+ - spec/unit/agile_proxy/handlers/proxy_handler_spec.rb
610
+ - spec/unit/agile_proxy/handlers/request_handler_spec.rb
611
+ - spec/unit/agile_proxy/handlers/stub_handler_spec.rb
612
+ - spec/unit/agile_proxy/model/recording_spec.rb
613
+ - spec/unit/agile_proxy/model/request_spec_spec.rb
614
+ - spec/unit/agile_proxy/model/response_spec.rb
615
+ - spec/unit/agile_proxy/server_spec.rb
616
+ - spec/unit/agile_proxy/servers/api_spec.rb
617
+ - spec/unit/agile_proxy/servers/request_spec_spec.rb
618
+ has_rdoc: