umbra-rb 0.1.0.pre

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 9269f1f8cb887f1348c7dc266528db51ec778815e6a21d1ff262282507266fde
4
+ data.tar.gz: 2a3d3e3ec3d357427f231d97b5691c335db1563f7c0281241269f230c84417a2
5
+ SHA512:
6
+ metadata.gz: 53f1f7380ad448a9709ab73c01d201856a6441681f9f2db7e28193a77d9664a6f97dde71625858a6c9a63c2af2edf6fd503cc385273cb284e72024150347f61c
7
+ data.tar.gz: 4e6aa9dcd30e586763458b49e14504f4788809fe1b753778b7f0a3f1bda011bc6ea1a9347fee3db45fb3d214f53c91ebf8aac0b7f9e1699de1457b740e7a30c8
@@ -0,0 +1,55 @@
1
+ ruby: &ruby
2
+ image: carwow/ruby-ci:2.6
3
+
4
+ version: 2
5
+
6
+ jobs:
7
+ bundle:
8
+ working_directory: ~/umbra
9
+ docker:
10
+ - *ruby
11
+ steps:
12
+ - checkout
13
+ - restore_cache:
14
+ keys:
15
+ - bundle-{{ checksum "Gemfile.lock" }}
16
+ - bundle-
17
+ - run: |
18
+ bundle config --local path vendor/bundle &&
19
+ bundle check || bundle install --jobs=4 --retry=3
20
+ - save_cache:
21
+ key: bundle-{{ checksum "Gemfile.lock" }}
22
+ paths: [~/umbra/vendor/bundle]
23
+ - persist_to_workspace:
24
+ root: '~'
25
+ paths: [umbra]
26
+
27
+ rubocop:
28
+ working_directory: ~/umbra
29
+ docker:
30
+ - *ruby
31
+ steps:
32
+ - attach_workspace:
33
+ at: '~'
34
+ - run: bundle exec rubocop
35
+
36
+ tests:
37
+ working_directory: ~/umbra
38
+ docker:
39
+ - *ruby
40
+ steps:
41
+ - attach_workspace:
42
+ at: '~'
43
+ - run: |
44
+ bundle exec rspec
45
+
46
+ workflows:
47
+ version: 2
48
+ build:
49
+ jobs:
50
+ - bundle
51
+ - rubocop:
52
+ requires: [bundle]
53
+ - tests:
54
+ requires: [bundle]
55
+
data/.gitignore ADDED
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,6 @@
1
+ inherit_gem:
2
+ carwow_rubocop:
3
+ - default.yml
4
+
5
+ Metrics/MethodLength:
6
+ Max: 20
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ # Specify your gem's dependencies in umbra.gemspec
6
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,77 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ umbra-rb (0.1.0.pre)
5
+ multi_json (~> 1.13)
6
+ oj (~> 3.9)
7
+ redis (~> 4.1)
8
+ typhoeus (~> 1.3)
9
+
10
+ GEM
11
+ remote: https://rubygems.org/
12
+ specs:
13
+ ast (2.4.0)
14
+ carwow_rubocop (3.0.3)
15
+ rubocop (>= 0.68)
16
+ rubocop-performance
17
+ rubocop-rspec
18
+ coderay (1.1.2)
19
+ diff-lcs (1.3)
20
+ ethon (0.12.0)
21
+ ffi (>= 1.3.0)
22
+ ffi (1.11.1)
23
+ jaro_winkler (1.5.3)
24
+ method_source (0.9.2)
25
+ multi_json (1.13.1)
26
+ oj (3.9.1)
27
+ parallel (1.17.0)
28
+ parser (2.6.4.1)
29
+ ast (~> 2.4.0)
30
+ pry (0.12.2)
31
+ coderay (~> 1.1.0)
32
+ method_source (~> 0.9.0)
33
+ rainbow (3.0.0)
34
+ rake (10.5.0)
35
+ redis (4.1.3)
36
+ rspec (3.8.0)
37
+ rspec-core (~> 3.8.0)
38
+ rspec-expectations (~> 3.8.0)
39
+ rspec-mocks (~> 3.8.0)
40
+ rspec-core (3.8.2)
41
+ rspec-support (~> 3.8.0)
42
+ rspec-expectations (3.8.4)
43
+ diff-lcs (>= 1.2.0, < 2.0)
44
+ rspec-support (~> 3.8.0)
45
+ rspec-mocks (3.8.1)
46
+ diff-lcs (>= 1.2.0, < 2.0)
47
+ rspec-support (~> 3.8.0)
48
+ rspec-support (3.8.2)
49
+ rubocop (0.74.0)
50
+ jaro_winkler (~> 1.5.1)
51
+ parallel (~> 1.10)
52
+ parser (>= 2.6)
53
+ rainbow (>= 2.2.2, < 4.0)
54
+ ruby-progressbar (~> 1.7)
55
+ unicode-display_width (>= 1.4.0, < 1.7)
56
+ rubocop-performance (1.4.1)
57
+ rubocop (>= 0.71.0)
58
+ rubocop-rspec (1.35.0)
59
+ rubocop (>= 0.60.0)
60
+ ruby-progressbar (1.10.1)
61
+ typhoeus (1.3.1)
62
+ ethon (>= 0.9.0)
63
+ unicode-display_width (1.6.0)
64
+
65
+ PLATFORMS
66
+ ruby
67
+
68
+ DEPENDENCIES
69
+ bundler (~> 2.0)
70
+ carwow_rubocop
71
+ pry
72
+ rake (~> 10.0)
73
+ rspec (~> 3.0)
74
+ umbra-rb!
75
+
76
+ BUNDLED WITH
77
+ 2.0.2
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019 Christian Gregg
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,79 @@
1
+ # umbra :waning_crescent_moon:
2
+ ### A shadow requesting tool for rack-based apps
3
+
4
+ `umbra` is a rack middleware that allows you to create shadow requests via a redis pub/sub channel.
5
+
6
+ This can help you to build confidence in your infrasture by simulating elevated traffic in a controlled manner. Thereby allowing you to observe and monitor the limits of your systems.
7
+
8
+ # Installation
9
+
10
+ Add this to your `Gemfile`
11
+
12
+ ```ruby
13
+ gem 'umbra'
14
+ ```
15
+
16
+ And then execute:
17
+
18
+ $ bundle
19
+
20
+ Or install it yourself as:
21
+
22
+ $ gem install umbra
23
+
24
+
25
+ ## Usage
26
+
27
+ A minimal rack application using `umbra` would look like this:
28
+
29
+ ```ruby
30
+ # /config.ru
31
+ require 'rack'
32
+ require 'rack/lobster'
33
+ require 'umbra'
34
+
35
+ Umbra.configure
36
+
37
+ use Umbra::Middleware
38
+ run Rack::Lobster.new
39
+
40
+ ```
41
+
42
+ If using Rails you can achieve the same via an initializer:
43
+
44
+ ```ruby
45
+ # /config/initializers/umbra.rb
46
+ require 'umbra'
47
+
48
+ Umbra.configure
49
+
50
+ Rails.application.config.middleware.use(Umbra::Middleware)
51
+ ```
52
+
53
+ Then, in another process, you can start receiving each request via an `Umbra::Subscriber`.
54
+ `Umbra::Subscriber` can be initialized with anything response to `.call`. For example:
55
+
56
+ ```ruby
57
+ Umbra::Subscriber.new(
58
+ proc { |payload| puts "New Request: #{payload}" }
59
+ ).start
60
+ ```
61
+
62
+ The `payload` is the encoded request and response, as defined by the configured encoder. By default, this is `Umbra::Encoder`.
63
+
64
+ `umbra` also provides some helper classes for common use cases:
65
+
66
+ - `Umbra::RequestBuilder` takes the default encoding and returns a `Typhoeus::Request` object.
67
+ - `Umbra::ShadowRequester` can be configured to shadow requests `count:` times using a `pool:` of threads via a thread queue.
68
+ - More to come...
69
+
70
+
71
+ # Config
72
+
73
+ ## Contributing
74
+
75
+ Bug reports and pull requests are welcome on GitHub at https://github.com/carwow/umbra.
76
+
77
+ ## License
78
+
79
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
data/Rakefile ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bundler/gem_tasks'
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ task default: :spec
@@ -0,0 +1,28 @@
1
+ module Umbra
2
+ class Config
3
+ attr_accessor :publisher, :request_selector, :encoder, :error_handler, :redis_options
4
+
5
+ def self.default(&block)
6
+ new(
7
+ publisher: Publisher,
8
+ request_selector: RequestSelector,
9
+ encoder: Encoder,
10
+ error_handler: SuppressErrorHandler,
11
+ redis_options: {},
12
+ &block
13
+ )
14
+ end
15
+
16
+ private
17
+
18
+ def initialize(opts)
19
+ @publisher = opts.fetch(:publisher)
20
+ @request_selector = opts.fetch(:request_selector)
21
+ @encoder = opts.fetch(:encoder)
22
+ @error_handler = opts.fetch(:error_handler)
23
+ @redis_options = opts.fetch(:redis_options)
24
+
25
+ yield(self) if block_given?
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,60 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Umbra
4
+ class Encoder
5
+ def self.call(env, response)
6
+ new(env, response).call
7
+ end
8
+
9
+ def initialize(env, response)
10
+ @env = env
11
+ @status, @headers, @body = response
12
+ end
13
+
14
+ def call
15
+ MultiJson.dump(
16
+ 'request' => {
17
+ 'scheme' => @env.fetch('rack.url_scheme'),
18
+ 'host' => @env['HTTP_HOST'] || @env.fetch('SERVER_NAME'),
19
+ 'uri' => @env.fetch('REQUEST_URI'),
20
+ 'port' => @env.fetch('SERVER_PORT'),
21
+ 'method' => @env.fetch('REQUEST_METHOD'),
22
+ 'query' => @env.fetch('QUERY_STRING'),
23
+ 'script_name' => @env.fetch('SCRIPT_NAME'),
24
+ 'path_info' => @env.fetch('PATH_INFO'),
25
+ 'headers' => request_headers,
26
+ 'body' => request_body
27
+ },
28
+ 'response' => {
29
+ 'status' => @status,
30
+ 'headers' => @headers,
31
+ 'body' => body_string
32
+ }
33
+ )
34
+ end
35
+
36
+ private
37
+
38
+ def request_headers
39
+ @env.select { |k, _| k.start_with?('HTTP_') }
40
+ end
41
+
42
+ def request_body
43
+ io = @env.fetch('rack.input')
44
+
45
+ io.rewind
46
+ body = io.read
47
+ io.rewind
48
+
49
+ body
50
+ end
51
+
52
+ def body_string
53
+ str = []
54
+
55
+ @body.each { |x| str << x.to_s }
56
+
57
+ str.join('')
58
+ end
59
+ end
60
+ end
@@ -0,0 +1,15 @@
1
+ module Umbra
2
+ class Middleware
3
+ def initialize(app)
4
+ @app = app
5
+ end
6
+
7
+ def call(env)
8
+ response = @app.call(env)
9
+
10
+ Umbra.publish(env, response)
11
+
12
+ response
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,39 @@
1
+ module Umbra
2
+ class Publisher < SynchronousPublisher
3
+ class << self
4
+ def call(env, response)
5
+ start_once!
6
+
7
+ @queue.push(proc { super(env, response) })
8
+ end
9
+
10
+ private
11
+
12
+ def start_once!
13
+ LOCK.synchronize do
14
+ return if @started == Process.pid
15
+
16
+ @started = Process.pid
17
+ @queue = Queue.new
18
+
19
+ worker_thread = Thread.new do
20
+ while (x = @queue.pop)
21
+ break if x == STOP
22
+
23
+ x.call
24
+ end
25
+ end
26
+
27
+ at_exit do
28
+ @queue.push(STOP)
29
+ worker_thread.join
30
+ end
31
+ end
32
+ end
33
+ end
34
+
35
+ STOP = Object.new
36
+ LOCK = Mutex.new
37
+ private_constant :STOP, :LOCK
38
+ end
39
+ end
@@ -0,0 +1,53 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Umbra
4
+ class RequestBuilder
5
+ class << self
6
+ def call(env)
7
+ Typhoeus::Request.new(
8
+ base_url(env) + url(env),
9
+ method: method(env),
10
+ body: body(env),
11
+ headers: headers(env)
12
+ )
13
+ end
14
+
15
+ private
16
+
17
+ def headers(env)
18
+ request(env)
19
+ .fetch('headers')
20
+ .merge(Umbra::HEADER_KEY => Umbra::HEADER_VALUE)
21
+ .transform_keys { |key| key.split('_').drop(1).map(&:capitalize).join('-') }
22
+ end
23
+
24
+ def method(env)
25
+ request(env).fetch('method').downcase.to_sym
26
+ end
27
+
28
+ def body(env)
29
+ request(env).fetch('body')
30
+ end
31
+
32
+ def url(env)
33
+ request = request(env)
34
+ query = request.fetch('query')
35
+ path = request.fetch('script_name') + request.fetch('path_info')
36
+
37
+ query.empty? ? path : path + "?#{query}"
38
+ end
39
+
40
+ def base_url(env)
41
+ request = request(env)
42
+ scheme = request.fetch('scheme')
43
+ host = request.fetch('host')
44
+
45
+ "#{scheme}://#{host}"
46
+ end
47
+
48
+ def request(env)
49
+ env.fetch('request')
50
+ end
51
+ end
52
+ end
53
+ end
@@ -0,0 +1,44 @@
1
+ module Umbra
2
+ class ShadowRequester
3
+ def initialize(count: 1, pool: 1)
4
+ @count = count
5
+ @pool = pool
6
+ @queue = Queue.new
7
+ @stop = Object.new
8
+ @lock = Mutex.new
9
+ end
10
+
11
+ def call(env)
12
+ start_worker!
13
+
14
+ request = RequestBuilder.call(env)
15
+
16
+ @count.times { @queue.push(request) }
17
+ end
18
+
19
+ private
20
+
21
+ def start_worker!
22
+ @lock.synchronize do
23
+ return if @started
24
+
25
+ @started = true
26
+
27
+ workers = (1..@pool).map do |_|
28
+ Thread.new do
29
+ while (request = @queue.pop)
30
+ break if request == @stop
31
+
32
+ request.run
33
+ end
34
+ end
35
+ end
36
+
37
+ at_exit do
38
+ @pool.times { @queue.push(@stop) }
39
+ workers.map(&:join)
40
+ end
41
+ end
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,15 @@
1
+ module Umbra
2
+ class Subscriber
3
+ def initialize(worker)
4
+ @worker = worker
5
+ end
6
+
7
+ def start
8
+ Umbra.redis.subscribe(Umbra::CHANNEL) do |on|
9
+ on.message do |_, message|
10
+ @worker.call(MultiJson.load(message))
11
+ end
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,7 @@
1
+ module Umbra
2
+ class SynchronousPublisher
3
+ def self.call(env, response, encoder: Umbra.encoder, redis: Umbra.redis)
4
+ redis.publish(Umbra::CHANNEL, encoder.call(env, response))
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Umbra
4
+ VERSION = '0.1.0.pre'
5
+ end
data/lib/umbra.rb ADDED
@@ -0,0 +1,61 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'typhoeus'
4
+ require 'redis'
5
+ require 'multi_json'
6
+
7
+ module Umbra
8
+ autoload :Config, 'umbra/config'
9
+ autoload :Encoder, 'umbra/encoder'
10
+ autoload :Middleware, 'umbra/middleware'
11
+ autoload :Publisher, 'umbra/publisher'
12
+ autoload :Subscriber, 'umbra/subscriber'
13
+ autoload :RequestBuilder, 'umbra/request_builder'
14
+ autoload :ShadowRequester, 'umbra/shadow_requester'
15
+ autoload :SynchronousPublisher, 'umbra/synchronous_publisher'
16
+ autoload :Version, 'umbra/version'
17
+
18
+ CHANNEL = 'umbra_channel'
19
+ HEADER_KEY = 'HTTP_X_UMBRA_REQUEST'
20
+ HEADER_VALUE = 'true'
21
+
22
+ RequestSelector = proc { true }
23
+ SuppressErrorHandler = proc { nil }
24
+
25
+ class << self
26
+ attr_reader :config
27
+
28
+ def configure(&block)
29
+ @config = Config.default(&block)
30
+ end
31
+
32
+ def publish(env, response)
33
+ return if umbra_request?(env)
34
+ return unless @config
35
+ return unless @config.request_selector.call(env, response)
36
+
37
+ @config.publisher.call(env, response)
38
+ rescue StandardError => e
39
+ @config.error_handler.call(e, env, response)
40
+ end
41
+
42
+ def redis
43
+ @redis ||= Redis.new(@config.redis_options)
44
+ end
45
+
46
+ def encoder
47
+ @config.encoder
48
+ end
49
+
50
+ def reset!
51
+ @config = nil
52
+ @redis = nil
53
+ end
54
+
55
+ private
56
+
57
+ def umbra_request?(env)
58
+ env[HEADER_KEY] == HEADER_VALUE
59
+ end
60
+ end
61
+ end
Binary file
data/umbra-rb.gemspec ADDED
@@ -0,0 +1,38 @@
1
+ # frozen_string_literal: true
2
+
3
+ lib = File.expand_path('lib', __dir__)
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
+ require 'umbra/version'
6
+
7
+ Gem::Specification.new do |spec|
8
+ spec.name = 'umbra-rb'
9
+ spec.version = Umbra::VERSION
10
+ spec.authors = ['carwow Developers']
11
+ spec.email = ['developers@carwow.co.uk']
12
+
13
+ spec.summary = 'A shadow requesting library for rack based applications'
14
+ spec.homepage = 'https://github.com/carwow/umbra'
15
+ spec.license = 'MIT'
16
+
17
+ spec.metadata['allowed_push_host'] = 'https://rubygems.org'
18
+ spec.metadata['homepage_uri'] = spec.homepage
19
+ spec.metadata['source_code_uri'] = spec.homepage
20
+
21
+ # Specify which files should be added to the gem when it is released.
22
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
23
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
24
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
25
+ end
26
+ spec.require_paths = ['lib']
27
+
28
+ spec.add_development_dependency 'bundler', '~> 2.0'
29
+ spec.add_development_dependency 'carwow_rubocop'
30
+ spec.add_development_dependency 'pry'
31
+ spec.add_development_dependency 'rake', '~> 10.0'
32
+ spec.add_development_dependency 'rspec', '~> 3.0'
33
+
34
+ spec.add_dependency 'multi_json', '~> 1.13'
35
+ spec.add_dependency 'oj', '~> 3.9'
36
+ spec.add_dependency 'redis', '~> 4.1'
37
+ spec.add_dependency 'typhoeus', '~> 1.3'
38
+ end
metadata ADDED
@@ -0,0 +1,193 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: umbra-rb
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0.pre
5
+ platform: ruby
6
+ authors:
7
+ - carwow Developers
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2019-09-24 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2.0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: carwow_rubocop
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
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: pry
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
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: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '10.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '10.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '3.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '3.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: multi_json
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '1.13'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '1.13'
97
+ - !ruby/object:Gem::Dependency
98
+ name: oj
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '3.9'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '3.9'
111
+ - !ruby/object:Gem::Dependency
112
+ name: redis
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '4.1'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '4.1'
125
+ - !ruby/object:Gem::Dependency
126
+ name: typhoeus
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '1.3'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '1.3'
139
+ description:
140
+ email:
141
+ - developers@carwow.co.uk
142
+ executables: []
143
+ extensions: []
144
+ extra_rdoc_files: []
145
+ files:
146
+ - ".circleci/config.yml"
147
+ - ".gitignore"
148
+ - ".rspec"
149
+ - ".rubocop.yml"
150
+ - Gemfile
151
+ - Gemfile.lock
152
+ - LICENSE.txt
153
+ - README.md
154
+ - Rakefile
155
+ - lib/umbra.rb
156
+ - lib/umbra/config.rb
157
+ - lib/umbra/encoder.rb
158
+ - lib/umbra/middleware.rb
159
+ - lib/umbra/publisher.rb
160
+ - lib/umbra/request_builder.rb
161
+ - lib/umbra/shadow_requester.rb
162
+ - lib/umbra/subscriber.rb
163
+ - lib/umbra/synchronous_publisher.rb
164
+ - lib/umbra/version.rb
165
+ - umbra-0.1.0.pre.gem
166
+ - umbra-rb.gemspec
167
+ homepage: https://github.com/carwow/umbra
168
+ licenses:
169
+ - MIT
170
+ metadata:
171
+ allowed_push_host: https://rubygems.org
172
+ homepage_uri: https://github.com/carwow/umbra
173
+ source_code_uri: https://github.com/carwow/umbra
174
+ post_install_message:
175
+ rdoc_options: []
176
+ require_paths:
177
+ - lib
178
+ required_ruby_version: !ruby/object:Gem::Requirement
179
+ requirements:
180
+ - - ">="
181
+ - !ruby/object:Gem::Version
182
+ version: '0'
183
+ required_rubygems_version: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ">"
186
+ - !ruby/object:Gem::Version
187
+ version: 1.3.1
188
+ requirements: []
189
+ rubygems_version: 3.0.3
190
+ signing_key:
191
+ specification_version: 4
192
+ summary: A shadow requesting library for rack based applications
193
+ test_files: []