sitehub 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +6 -0
- data/.rspec +1 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +114 -0
- data/LICENSE +28 -0
- data/README.md +198 -0
- data/Rakefile +11 -0
- data/lib/sitehub.rb +9 -0
- data/lib/sitehub/builder.rb +82 -0
- data/lib/sitehub/collection.rb +35 -0
- data/lib/sitehub/collection/route_collection.rb +28 -0
- data/lib/sitehub/collection/split_route_collection.rb +50 -0
- data/lib/sitehub/collection/split_route_collection/split.rb +18 -0
- data/lib/sitehub/constants.rb +23 -0
- data/lib/sitehub/constants/http_header_keys.rb +25 -0
- data/lib/sitehub/constants/rack_http_header_keys.rb +17 -0
- data/lib/sitehub/cookie.rb +54 -0
- data/lib/sitehub/cookie/attribute.rb +22 -0
- data/lib/sitehub/cookie/flag.rb +22 -0
- data/lib/sitehub/cookie_rewriting.rb +35 -0
- data/lib/sitehub/forward_proxies.rb +50 -0
- data/lib/sitehub/forward_proxy.rb +67 -0
- data/lib/sitehub/forward_proxy_builder.rb +99 -0
- data/lib/sitehub/http_headers.rb +60 -0
- data/lib/sitehub/logging.rb +5 -0
- data/lib/sitehub/logging/access_logger.rb +74 -0
- data/lib/sitehub/logging/error_logger.rb +36 -0
- data/lib/sitehub/logging/log_entry.rb +14 -0
- data/lib/sitehub/logging/log_stash.rb +10 -0
- data/lib/sitehub/logging/log_wrapper.rb +23 -0
- data/lib/sitehub/middleware.rb +21 -0
- data/lib/sitehub/path_directive.rb +32 -0
- data/lib/sitehub/path_directives.rb +21 -0
- data/lib/sitehub/request_mapping.rb +43 -0
- data/lib/sitehub/resolver.rb +11 -0
- data/lib/sitehub/reverse_proxy.rb +53 -0
- data/lib/sitehub/rules.rb +13 -0
- data/lib/sitehub/string_sanitiser.rb +7 -0
- data/lib/sitehub/transaction_id.rb +16 -0
- data/lib/sitehub/version.rb +3 -0
- data/mem_usage.txt +1584 -0
- data/sitehub.gemspec +43 -0
- data/spec/basket_spec.rb +30 -0
- data/spec/sitehub/builder_spec.rb +203 -0
- data/spec/sitehub/collection/route_collection_spec.rb +91 -0
- data/spec/sitehub/collection/split_route_collection_spec.rb +111 -0
- data/spec/sitehub/collection_spec.rb +40 -0
- data/spec/sitehub/cookie/attribute_spec.rb +37 -0
- data/spec/sitehub/cookie/flag_spec.rb +27 -0
- data/spec/sitehub/cookie_rewriting_spec.rb +67 -0
- data/spec/sitehub/cookie_spec.rb +61 -0
- data/spec/sitehub/error_handling_spec.rb +21 -0
- data/spec/sitehub/forward_proxies_spec.rb +99 -0
- data/spec/sitehub/forward_proxy_builder_spec.rb +295 -0
- data/spec/sitehub/forward_proxy_spec.rb +138 -0
- data/spec/sitehub/http_headers_spec.rb +71 -0
- data/spec/sitehub/integration_spec.rb +21 -0
- data/spec/sitehub/logging/access_logger_spec.rb +127 -0
- data/spec/sitehub/logging/error_logger_spec.rb +80 -0
- data/spec/sitehub/logging/log_entry_spec.rb +34 -0
- data/spec/sitehub/logging/log_stash_spec.rb +21 -0
- data/spec/sitehub/logging/log_wrapper_spec.rb +33 -0
- data/spec/sitehub/middleware_spec.rb +69 -0
- data/spec/sitehub/path_directive_spec.rb +50 -0
- data/spec/sitehub/path_directives_spec.rb +45 -0
- data/spec/sitehub/request_mapping_spec.rb +71 -0
- data/spec/sitehub/resolver_spec.rb +15 -0
- data/spec/sitehub/reverse_proxy_spec.rb +105 -0
- data/spec/sitehub/transaction_id_spec.rb +28 -0
- data/spec/sitehub_spec.rb +19 -0
- data/spec/spec_helper.rb +26 -0
- data/spec/support/patch/rack/response.rb +25 -0
- data/spec/support/shared_contexts/async_context.rb +69 -0
- data/spec/support/shared_contexts/middleware_context.rb +51 -0
- data/spec/support/shared_contexts/rack_test_context.rb +12 -0
- data/spec/support/shared_contexts/sitehub_context.rb +25 -0
- data/spec/support/silent_warnings.rb +5 -0
- metadata +359 -0
@@ -0,0 +1,19 @@
|
|
1
|
+
describe SiteHub do
|
2
|
+
|
3
|
+
describe '::build' do
|
4
|
+
it 'gives you a configure sitehub to run in your config.ru' do
|
5
|
+
allow_any_instance_of(SiteHub::Builder).to receive(:build).and_return(:sitehub)
|
6
|
+
expect(described_class.build).to eq(:sitehub)
|
7
|
+
end
|
8
|
+
it 'passes your block on a sitehub builder' do
|
9
|
+
block_called = false
|
10
|
+
block = Proc.new do
|
11
|
+
block_called = true
|
12
|
+
end
|
13
|
+
|
14
|
+
described_class.build(&block)
|
15
|
+
expect(block_called).to eq(true)
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|
19
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
require 'rspec'
|
2
|
+
require 'rack/test'
|
3
|
+
require 'webmock/rspec'
|
4
|
+
$LOAD_PATH.unshift("#{__dir__}/..", "#{__dir__}/support")
|
5
|
+
|
6
|
+
require 'support/shared_contexts/async_context'
|
7
|
+
require 'support/shared_contexts/rack_test_context'
|
8
|
+
require 'support/shared_contexts/sitehub_context'
|
9
|
+
require 'support/shared_contexts/middleware_context'
|
10
|
+
require 'support/silent_warnings'
|
11
|
+
|
12
|
+
require 'support/patch/rack/response'
|
13
|
+
|
14
|
+
if ENV['coverage'] == 'true'
|
15
|
+
require 'simplecov'
|
16
|
+
SimpleCov.start do
|
17
|
+
add_filter '/spec/'
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
require 'lib/sitehub'
|
22
|
+
|
23
|
+
RSpec.configure do
|
24
|
+
include Rack::Test::Methods
|
25
|
+
WebMock.enable!
|
26
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
class Rack::Response
|
2
|
+
def cookies
|
3
|
+
cookies = {}
|
4
|
+
header['Set-Cookie'].lines.collect { |line| line.scan(/([\.\w]+)=([\.\w\/]+)/) }.each do |cookie_definition_array|
|
5
|
+
name_value_array = cookie_definition_array.delete_at(0)
|
6
|
+
name = name_value_array.first
|
7
|
+
value = name_value_array.last
|
8
|
+
data = cookie_definition_array.collect { |pair| [pair[0].to_sym, pair[1]] }.to_h
|
9
|
+
cookies[name] = {value: value}.merge(data)
|
10
|
+
end
|
11
|
+
cookies
|
12
|
+
end
|
13
|
+
|
14
|
+
def cookies_as_hash
|
15
|
+
cookies = {}
|
16
|
+
header['Set-Cookie'].lines.collect { |line| line.scan(/([\.\w]+)=([\.\w]+)/) }.each do |cookie_definition_array|
|
17
|
+
name_value_array = cookie_definition_array.delete_at(0)
|
18
|
+
name = name_value_array.first
|
19
|
+
value = name_value_array.last
|
20
|
+
data = cookie_definition_array.collect { |pair| [pair[0].to_sym, pair[1]] }.to_h
|
21
|
+
cookies[name] = {value: value}.merge(data)
|
22
|
+
end
|
23
|
+
cookies
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,69 @@
|
|
1
|
+
shared_context :async do
|
2
|
+
class Callback
|
3
|
+
attr_reader :response
|
4
|
+
|
5
|
+
def call *args
|
6
|
+
status, headers, body = *args.flatten.to_a
|
7
|
+
@response = Rack::Response.new(body, status, headers)
|
8
|
+
EventMachine.stop if EventMachine.reactor_running?
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
def callback
|
13
|
+
@callback ||= Callback.new
|
14
|
+
end
|
15
|
+
|
16
|
+
def async_response_handler
|
17
|
+
@async_response_handler ||= begin
|
18
|
+
instance_double(EM::DefaultDeferrable).tap do |handler|
|
19
|
+
allow(handler).to receive(:succeed) do |arg|
|
20
|
+
sitehub_response = arg[:downstream_response]
|
21
|
+
handler.instance_variable_set(:@arg, arg)
|
22
|
+
sitehub_response = sitehub_response.to_a
|
23
|
+
handler.instance_variable_set(:@last_response, Rack::Response.new(sitehub_response[2], sitehub_response[0], sitehub_response[1]))
|
24
|
+
EM.stop
|
25
|
+
end
|
26
|
+
|
27
|
+
def handler.last_response
|
28
|
+
@last_response
|
29
|
+
end
|
30
|
+
|
31
|
+
def handler.callback_args
|
32
|
+
@arg
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
def last_response
|
39
|
+
app.last_response
|
40
|
+
end
|
41
|
+
|
42
|
+
def async_middleware
|
43
|
+
Class.new do
|
44
|
+
def initialize app
|
45
|
+
@app = app
|
46
|
+
end
|
47
|
+
|
48
|
+
def last_response
|
49
|
+
callback.response
|
50
|
+
end
|
51
|
+
|
52
|
+
def callback
|
53
|
+
@callback ||= Callback.new
|
54
|
+
end
|
55
|
+
|
56
|
+
|
57
|
+
def call env
|
58
|
+
|
59
|
+
env['async.callback'] = callback
|
60
|
+
|
61
|
+
catch(:async) do
|
62
|
+
@app.call env
|
63
|
+
end
|
64
|
+
|
65
|
+
[200, {}, []]
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
shared_context :middleware_test do
|
2
|
+
|
3
|
+
include_context :rack_test
|
4
|
+
|
5
|
+
let(:inner_app){
|
6
|
+
proc{[200, {}, []]}
|
7
|
+
}
|
8
|
+
|
9
|
+
subject(:app) do
|
10
|
+
described_class.new(inner_app)
|
11
|
+
end
|
12
|
+
|
13
|
+
def collect_middleware rack_app
|
14
|
+
middleware = [rack_app]
|
15
|
+
while rack_app = rack_app.instance_variable_get(:@app)
|
16
|
+
middleware << rack_app
|
17
|
+
end
|
18
|
+
middleware
|
19
|
+
end
|
20
|
+
|
21
|
+
|
22
|
+
def find_middleware rack_app, clazz
|
23
|
+
return rack_app if rack_app.is_a?(clazz)
|
24
|
+
collect_middleware(rack_app).find{|middleware| middleware.is_a?(clazz)}
|
25
|
+
end
|
26
|
+
|
27
|
+
RSpec::Matchers.define :be_using do |expected, *args|
|
28
|
+
match do |actual|
|
29
|
+
!!find_middleware(actual, expected)
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
def create_middleware
|
34
|
+
Class.new do
|
35
|
+
attr_reader :app, :arg
|
36
|
+
def initialize app, arg=nil, &block
|
37
|
+
@app, @arg = app, arg
|
38
|
+
block.call if block
|
39
|
+
end
|
40
|
+
|
41
|
+
def call env
|
42
|
+
@app.call env
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|
47
|
+
|
48
|
+
let(:middleware) do
|
49
|
+
create_middleware
|
50
|
+
end
|
51
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
require 'stringio'
|
2
|
+
shared_context :site_hub do
|
3
|
+
|
4
|
+
let(:downstream_url){'http://localhost:12345'}
|
5
|
+
|
6
|
+
before do
|
7
|
+
stub_request(:get, downstream_url).to_return(:body => 'hello')
|
8
|
+
end
|
9
|
+
|
10
|
+
let(:builder) do
|
11
|
+
SiteHub::Builder.new.tap do |builder|
|
12
|
+
builder.access_logger StringIO.new
|
13
|
+
builder.error_logger StringIO.new
|
14
|
+
builder.proxy "/endpoint" => downstream_url
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
let(:rack_application) do
|
19
|
+
builder.build
|
20
|
+
end
|
21
|
+
|
22
|
+
let :app do
|
23
|
+
rack_application
|
24
|
+
end
|
25
|
+
end
|
metadata
ADDED
@@ -0,0 +1,359 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: sitehub
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.4.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Ladtech
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-01-08 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rack
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
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: uuid
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: em-http-request
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rack-ssl-enforcer
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rack-fiber_pool
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
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: faraday
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: em-synchrony
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: thin
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :runtime
|
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: bundler
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '1.5'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '1.5'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: rake
|
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: rspec
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - "~>"
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: 3.2.0
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - "~>"
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: 3.2.0
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: webmock
|
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: rack-test
|
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: geminabox
|
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: simplecov
|
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: memory_profiler
|
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: ruby-prof
|
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
|
+
description: A/B testing enabled HTTP proxy
|
252
|
+
email:
|
253
|
+
- team@lad-tech.com
|
254
|
+
executables: []
|
255
|
+
extensions: []
|
256
|
+
extra_rdoc_files: []
|
257
|
+
files:
|
258
|
+
- ".gitignore"
|
259
|
+
- ".rspec"
|
260
|
+
- Gemfile
|
261
|
+
- Gemfile.lock
|
262
|
+
- LICENSE
|
263
|
+
- README.md
|
264
|
+
- Rakefile
|
265
|
+
- lib/sitehub.rb
|
266
|
+
- lib/sitehub/builder.rb
|
267
|
+
- lib/sitehub/collection.rb
|
268
|
+
- lib/sitehub/collection/route_collection.rb
|
269
|
+
- lib/sitehub/collection/split_route_collection.rb
|
270
|
+
- lib/sitehub/collection/split_route_collection/split.rb
|
271
|
+
- lib/sitehub/constants.rb
|
272
|
+
- lib/sitehub/constants/http_header_keys.rb
|
273
|
+
- lib/sitehub/constants/rack_http_header_keys.rb
|
274
|
+
- lib/sitehub/cookie.rb
|
275
|
+
- lib/sitehub/cookie/attribute.rb
|
276
|
+
- lib/sitehub/cookie/flag.rb
|
277
|
+
- lib/sitehub/cookie_rewriting.rb
|
278
|
+
- lib/sitehub/forward_proxies.rb
|
279
|
+
- lib/sitehub/forward_proxy.rb
|
280
|
+
- lib/sitehub/forward_proxy_builder.rb
|
281
|
+
- lib/sitehub/http_headers.rb
|
282
|
+
- lib/sitehub/logging.rb
|
283
|
+
- lib/sitehub/logging/access_logger.rb
|
284
|
+
- lib/sitehub/logging/error_logger.rb
|
285
|
+
- lib/sitehub/logging/log_entry.rb
|
286
|
+
- lib/sitehub/logging/log_stash.rb
|
287
|
+
- lib/sitehub/logging/log_wrapper.rb
|
288
|
+
- lib/sitehub/middleware.rb
|
289
|
+
- lib/sitehub/path_directive.rb
|
290
|
+
- lib/sitehub/path_directives.rb
|
291
|
+
- lib/sitehub/request_mapping.rb
|
292
|
+
- lib/sitehub/resolver.rb
|
293
|
+
- lib/sitehub/reverse_proxy.rb
|
294
|
+
- lib/sitehub/rules.rb
|
295
|
+
- lib/sitehub/string_sanitiser.rb
|
296
|
+
- lib/sitehub/transaction_id.rb
|
297
|
+
- lib/sitehub/version.rb
|
298
|
+
- mem_usage.txt
|
299
|
+
- sitehub.gemspec
|
300
|
+
- spec/basket_spec.rb
|
301
|
+
- spec/sitehub/builder_spec.rb
|
302
|
+
- spec/sitehub/collection/route_collection_spec.rb
|
303
|
+
- spec/sitehub/collection/split_route_collection_spec.rb
|
304
|
+
- spec/sitehub/collection_spec.rb
|
305
|
+
- spec/sitehub/cookie/attribute_spec.rb
|
306
|
+
- spec/sitehub/cookie/flag_spec.rb
|
307
|
+
- spec/sitehub/cookie_rewriting_spec.rb
|
308
|
+
- spec/sitehub/cookie_spec.rb
|
309
|
+
- spec/sitehub/error_handling_spec.rb
|
310
|
+
- spec/sitehub/forward_proxies_spec.rb
|
311
|
+
- spec/sitehub/forward_proxy_builder_spec.rb
|
312
|
+
- spec/sitehub/forward_proxy_spec.rb
|
313
|
+
- spec/sitehub/http_headers_spec.rb
|
314
|
+
- spec/sitehub/integration_spec.rb
|
315
|
+
- spec/sitehub/logging/access_logger_spec.rb
|
316
|
+
- spec/sitehub/logging/error_logger_spec.rb
|
317
|
+
- spec/sitehub/logging/log_entry_spec.rb
|
318
|
+
- spec/sitehub/logging/log_stash_spec.rb
|
319
|
+
- spec/sitehub/logging/log_wrapper_spec.rb
|
320
|
+
- spec/sitehub/middleware_spec.rb
|
321
|
+
- spec/sitehub/path_directive_spec.rb
|
322
|
+
- spec/sitehub/path_directives_spec.rb
|
323
|
+
- spec/sitehub/request_mapping_spec.rb
|
324
|
+
- spec/sitehub/resolver_spec.rb
|
325
|
+
- spec/sitehub/reverse_proxy_spec.rb
|
326
|
+
- spec/sitehub/transaction_id_spec.rb
|
327
|
+
- spec/sitehub_spec.rb
|
328
|
+
- spec/spec_helper.rb
|
329
|
+
- spec/support/patch/rack/response.rb
|
330
|
+
- spec/support/shared_contexts/async_context.rb
|
331
|
+
- spec/support/shared_contexts/middleware_context.rb
|
332
|
+
- spec/support/shared_contexts/rack_test_context.rb
|
333
|
+
- spec/support/shared_contexts/sitehub_context.rb
|
334
|
+
- spec/support/silent_warnings.rb
|
335
|
+
homepage: ''
|
336
|
+
licenses:
|
337
|
+
- MIT
|
338
|
+
metadata: {}
|
339
|
+
post_install_message:
|
340
|
+
rdoc_options: []
|
341
|
+
require_paths:
|
342
|
+
- lib
|
343
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
344
|
+
requirements:
|
345
|
+
- - ">="
|
346
|
+
- !ruby/object:Gem::Version
|
347
|
+
version: '0'
|
348
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
349
|
+
requirements:
|
350
|
+
- - ">="
|
351
|
+
- !ruby/object:Gem::Version
|
352
|
+
version: '0'
|
353
|
+
requirements: []
|
354
|
+
rubyforge_project:
|
355
|
+
rubygems_version: 2.4.6
|
356
|
+
signing_key:
|
357
|
+
specification_version: 4
|
358
|
+
summary: A/B testing enabled HTTP proxy
|
359
|
+
test_files: []
|