reifier 0.1.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.
- checksums.yaml +7 -0
- data/.gitignore +10 -0
- data/.travis.yml +4 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +45 -0
- data/Rakefile +10 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/rack/handler/reifier.rb +16 -0
- data/lib/reifier.rb +83 -0
- data/lib/reifier/request.rb +95 -0
- data/lib/reifier/response.rb +46 -0
- data/lib/reifier/server.rb +61 -0
- data/lib/reifier/version.rb +3 -0
- data/reifier.gemspec +39 -0
- metadata +172 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 2ef0dbfbe852ecb662c263830e7f6d3203cc9142
|
4
|
+
data.tar.gz: 5c3bff16df006254617c1db3dcb25137a405f986
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 04e3c84227f271e0d9425bb2c16ea2b7082f8a5ee2178e076cdce7027b3d045a5f964b0c06ecf7d2590a682cd6fbe3fcf33d08745b183f7b69a7877d0f74b837
|
7
|
+
data.tar.gz: b614d7e7e1781a66954abbaca89b23d80696d8bc1a446a2ba106a57309d308e1f297409f1a4fdc776d903c256e376a04750a56bbcd0ff32e53a784e8e797ecd0
|
data/.gitignore
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 Benny Klotz
|
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,45 @@
|
|
1
|
+
# Reifier
|
2
|
+
|
3
|
+
reify
|
4
|
+
|
5
|
+
/ˈriːɪˌfaɪ/
|
6
|
+
|
7
|
+
(transitive) to consider or make (an abstract idea or concept) real or concrete
|
8
|
+
|
9
|
+
## Installation
|
10
|
+
|
11
|
+
Add this line to your application's Gemfile:
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
gem 'reifier'
|
15
|
+
```
|
16
|
+
|
17
|
+
And then execute:
|
18
|
+
|
19
|
+
$ bundle
|
20
|
+
|
21
|
+
Or install it yourself as:
|
22
|
+
|
23
|
+
$ gem install reifier
|
24
|
+
|
25
|
+
## Usage
|
26
|
+
|
27
|
+
Use it through rackup:
|
28
|
+
|
29
|
+
$ rackup -s reifier
|
30
|
+
|
31
|
+
## Development
|
32
|
+
|
33
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
34
|
+
|
35
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
36
|
+
|
37
|
+
## Contributing
|
38
|
+
|
39
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/tak1n/reifier.
|
40
|
+
|
41
|
+
|
42
|
+
## License
|
43
|
+
|
44
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
45
|
+
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "reifier"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
require "pry"
|
11
|
+
Pry.start
|
12
|
+
|
13
|
+
# require "irb"
|
14
|
+
# IRB.start
|
data/bin/setup
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'rack/handler'
|
2
|
+
require 'reifier'
|
3
|
+
|
4
|
+
module Rack
|
5
|
+
module Handler
|
6
|
+
module Reifier
|
7
|
+
def self.run(app, options = {})
|
8
|
+
puts "Reifier #{::Reifier::VERSION} starting.."
|
9
|
+
server = ::Reifier::Server.new(app, options)
|
10
|
+
server.start
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
register :reifier, Reifier
|
15
|
+
end
|
16
|
+
end
|
data/lib/reifier.rb
ADDED
@@ -0,0 +1,83 @@
|
|
1
|
+
require 'socket'
|
2
|
+
require 'stringio'
|
3
|
+
require 'concurrent'
|
4
|
+
|
5
|
+
require 'reifier/server'
|
6
|
+
require 'reifier/request'
|
7
|
+
require 'reifier/response'
|
8
|
+
require 'reifier/version'
|
9
|
+
|
10
|
+
module Reifier
|
11
|
+
CRLF = "\x0d\x0a".freeze
|
12
|
+
|
13
|
+
# Taken from https://github.com/puma/puma/blob/master/lib/puma/const.rb#L10
|
14
|
+
# Every standard HTTP code mapped to the appropriate message.
|
15
|
+
# Generated with:
|
16
|
+
# curl -s https://www.iana.org/assignments/http-status-codes/http-status-codes-1.csv | \
|
17
|
+
# ruby -ne 'm = /^(\d{3}),(?!Unassigned|\(Unused\))([^,]+)/.match($_) and \
|
18
|
+
# puts "#{m[1]} => \x27#{m[2].strip}\x27,"'
|
19
|
+
HTTP_STATUS_CODES = {
|
20
|
+
100 => 'Continue',
|
21
|
+
101 => 'Switching Protocols',
|
22
|
+
102 => 'Processing',
|
23
|
+
200 => 'OK',
|
24
|
+
201 => 'Created',
|
25
|
+
202 => 'Accepted',
|
26
|
+
203 => 'Non-Authoritative Information',
|
27
|
+
204 => 'No Content',
|
28
|
+
205 => 'Reset Content',
|
29
|
+
206 => 'Partial Content',
|
30
|
+
207 => 'Multi-Status',
|
31
|
+
208 => 'Already Reported',
|
32
|
+
226 => 'IM Used',
|
33
|
+
300 => 'Multiple Choices',
|
34
|
+
301 => 'Moved Permanently',
|
35
|
+
302 => 'Found',
|
36
|
+
303 => 'See Other',
|
37
|
+
304 => 'Not Modified',
|
38
|
+
305 => 'Use Proxy',
|
39
|
+
307 => 'Temporary Redirect',
|
40
|
+
308 => 'Permanent Redirect',
|
41
|
+
400 => 'Bad Request',
|
42
|
+
401 => 'Unauthorized',
|
43
|
+
402 => 'Payment Required',
|
44
|
+
403 => 'Forbidden',
|
45
|
+
404 => 'Not Found',
|
46
|
+
405 => 'Method Not Allowed',
|
47
|
+
406 => 'Not Acceptable',
|
48
|
+
407 => 'Proxy Authentication Required',
|
49
|
+
408 => 'Request Timeout',
|
50
|
+
409 => 'Conflict',
|
51
|
+
410 => 'Gone',
|
52
|
+
411 => 'Length Required',
|
53
|
+
412 => 'Precondition Failed',
|
54
|
+
413 => 'Payload Too Large',
|
55
|
+
414 => 'URI Too Long',
|
56
|
+
415 => 'Unsupported Media Type',
|
57
|
+
416 => 'Range Not Satisfiable',
|
58
|
+
417 => 'Expectation Failed',
|
59
|
+
422 => 'Unprocessable Entity',
|
60
|
+
423 => 'Locked',
|
61
|
+
424 => 'Failed Dependency',
|
62
|
+
426 => 'Upgrade Required',
|
63
|
+
428 => 'Precondition Required',
|
64
|
+
429 => 'Too Many Requests',
|
65
|
+
431 => 'Request Header Fields Too Large',
|
66
|
+
500 => 'Internal Server Error',
|
67
|
+
501 => 'Not Implemented',
|
68
|
+
502 => 'Bad Gateway',
|
69
|
+
503 => 'Service Unavailable',
|
70
|
+
504 => 'Gateway Timeout',
|
71
|
+
505 => 'HTTP Version Not Supported',
|
72
|
+
506 => 'Variant Also Negotiates',
|
73
|
+
507 => 'Insufficient Storage',
|
74
|
+
508 => 'Loop Detected',
|
75
|
+
510 => 'Not Extended',
|
76
|
+
511 => 'Network Authentication Required'
|
77
|
+
}
|
78
|
+
|
79
|
+
POST = 'POST'.freeze
|
80
|
+
PUT = 'PUT'.freeze
|
81
|
+
|
82
|
+
HTTPParseError = Class.new(StandardError)
|
83
|
+
end
|
@@ -0,0 +1,95 @@
|
|
1
|
+
module Reifier
|
2
|
+
class Request
|
3
|
+
attr_reader :request_method, :request_path, :protocol, :request_uri
|
4
|
+
|
5
|
+
def initialize(options)
|
6
|
+
@body = StringIO.new('')
|
7
|
+
@options = options
|
8
|
+
end
|
9
|
+
|
10
|
+
def handle(socket)
|
11
|
+
handle_request_line(socket)
|
12
|
+
handle_headers(socket)
|
13
|
+
|
14
|
+
handle_body(socket) if request_with_body?
|
15
|
+
end
|
16
|
+
|
17
|
+
def rack_env
|
18
|
+
# See http://www.rubydoc.info/github/rack/rack/master/file/SPEC
|
19
|
+
env = {
|
20
|
+
'rack.version' => Rack.version.split('.'),
|
21
|
+
'rack.errors' => STDERR,
|
22
|
+
'rack.multithread' => true,
|
23
|
+
'rack.multiprocess' => false,
|
24
|
+
'rack.run_once' => false,
|
25
|
+
'rack.input' => @body.set_encoding(Encoding::ASCII_8BIT),
|
26
|
+
'rack.url_scheme' => @protocol.split('/').first.downcase,
|
27
|
+
'rack.hijack?' => false,
|
28
|
+
'REQUEST_METHOD' => @request_method,
|
29
|
+
'REQUEST_PATH' => @request_path,
|
30
|
+
'REQUEST_URI' => @request_uri,
|
31
|
+
'SCRIPT_NAME' => '',
|
32
|
+
'PATH_INFO' => @request_path,
|
33
|
+
'QUERY_STRING' => @query_string,
|
34
|
+
'SERVER_PROTOCOL' => @protocol,
|
35
|
+
'SERVER_SOFTWARE' => "Reifier #{Reifier::VERSION}",
|
36
|
+
'SERVER_NAME' => @options[:Host],
|
37
|
+
'SERVER_PORT' => @options[:Port].to_s
|
38
|
+
}
|
39
|
+
|
40
|
+
@headers.each do |k, v|
|
41
|
+
# The environment must not contain the keys HTTP_CONTENT_TYPE or HTTP_CONTENT_LENGTH (use the versions without HTTP_).
|
42
|
+
# see http://www.rubydoc.info/github/rack/rack/master/file/SPEC
|
43
|
+
if k == 'CONTENT_LENGTH' || k == 'CONTENT_TYPE'
|
44
|
+
env[k] = v
|
45
|
+
else
|
46
|
+
env["HTTP_#{k}"] = v
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
env
|
51
|
+
end
|
52
|
+
|
53
|
+
private
|
54
|
+
|
55
|
+
def handle_request_line(socket)
|
56
|
+
# It is possible that gets returns nil
|
57
|
+
# "Returns nil if called at end of file" see http://ruby-doc.org/core-2.3.0/IO.html#method-i-gets
|
58
|
+
request_line = socket.gets
|
59
|
+
raise EOFError unless request_line
|
60
|
+
raise HTTPParseError unless request_line.include?('HTTP')
|
61
|
+
|
62
|
+
request_line_array = request_line.split
|
63
|
+
|
64
|
+
@request_method = request_line_array[0]
|
65
|
+
@request_path = request_line_array[1].split('?')[0]
|
66
|
+
@query_string = request_line_array[1].split('?')[1] || ''
|
67
|
+
@protocol = request_line_array[2]
|
68
|
+
|
69
|
+
@request_uri = request_line_array[1]
|
70
|
+
end
|
71
|
+
|
72
|
+
def handle_headers(socket)
|
73
|
+
@headers = {}
|
74
|
+
|
75
|
+
while (line = socket.gets)
|
76
|
+
break if line == CRLF
|
77
|
+
if line.include?('Host')
|
78
|
+
@headers['HOST'] = line.gsub('Host: ', '').strip.chomp
|
79
|
+
else
|
80
|
+
key = line.split(':').first.tr('-', '_').upcase
|
81
|
+
value = line.split(':').last.strip.chomp
|
82
|
+
@headers[key] = value
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
def handle_body(socket)
|
88
|
+
@body = StringIO.new(socket.readpartial(@headers['CONTENT_LENGTH'].to_i))
|
89
|
+
end
|
90
|
+
|
91
|
+
def request_with_body?
|
92
|
+
(@request_method == POST || @request_method == PUT) && @headers['CONTENT_LENGTH']
|
93
|
+
end
|
94
|
+
end
|
95
|
+
end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
module Reifier
|
2
|
+
class Response
|
3
|
+
attr_accessor :request_method, :request_uri, :status, :headers, :body, :protocol
|
4
|
+
|
5
|
+
def handle(socket)
|
6
|
+
handle_request_line(socket)
|
7
|
+
handle_headers(socket)
|
8
|
+
handle_body(socket)
|
9
|
+
end
|
10
|
+
|
11
|
+
def <<(rack_return)
|
12
|
+
@status = rack_return[0]
|
13
|
+
@headers = rack_return[1]
|
14
|
+
@body = rack_return[2]
|
15
|
+
end
|
16
|
+
|
17
|
+
private
|
18
|
+
|
19
|
+
def handle_request_line(socket)
|
20
|
+
socket.write "#{@protocol} #{@status} #{HTTP_STATUS_CODES[@status]}" + CRLF
|
21
|
+
end
|
22
|
+
|
23
|
+
def handle_headers(socket)
|
24
|
+
headers = ''
|
25
|
+
@headers.each do |k, v|
|
26
|
+
headers << "#{k}: #{v}" + CRLF
|
27
|
+
end
|
28
|
+
headers << 'Connection: close' + CRLF
|
29
|
+
headers << CRLF
|
30
|
+
|
31
|
+
socket.write headers
|
32
|
+
end
|
33
|
+
|
34
|
+
def handle_body(socket)
|
35
|
+
body = ''
|
36
|
+
@body.each do |chunk|
|
37
|
+
body << chunk
|
38
|
+
end
|
39
|
+
|
40
|
+
body << CRLF
|
41
|
+
|
42
|
+
socket.write body
|
43
|
+
socket.close
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
@@ -0,0 +1,61 @@
|
|
1
|
+
module Reifier
|
2
|
+
class Server
|
3
|
+
def initialize(app, options = {})
|
4
|
+
@app = app
|
5
|
+
@options = options
|
6
|
+
end
|
7
|
+
|
8
|
+
def start
|
9
|
+
Thread.abort_on_exception = true
|
10
|
+
Signal.trap 'SIGINT' do
|
11
|
+
puts "\nCleaning up nothing for now..."
|
12
|
+
exit
|
13
|
+
end
|
14
|
+
|
15
|
+
server = TCPServer.new(@options[:Host], @options[:Port])
|
16
|
+
pool = Concurrent::FixedThreadPool.new(5)
|
17
|
+
|
18
|
+
puts "# Environment: #{@options[:environment]}"
|
19
|
+
puts "# Listening on tcp://#{@options[:Host]}:#{@options[:Port]}"
|
20
|
+
puts "# PID: #{Process.pid}"
|
21
|
+
|
22
|
+
loop do
|
23
|
+
socket = server.accept
|
24
|
+
socket.setsockopt(Socket::IPPROTO_TCP, Socket::TCP_NODELAY, 1)
|
25
|
+
|
26
|
+
pool.post do
|
27
|
+
begin
|
28
|
+
request = Request.new(@options)
|
29
|
+
response = Response.new
|
30
|
+
|
31
|
+
request.handle(socket)
|
32
|
+
|
33
|
+
response.request_method = request.request_method
|
34
|
+
response.request_uri = request.request_uri
|
35
|
+
response.protocol = request.protocol
|
36
|
+
|
37
|
+
response << @app.call(request.rack_env)
|
38
|
+
|
39
|
+
response.handle(socket)
|
40
|
+
|
41
|
+
log(request, response) if @options[:environment] == 'development'
|
42
|
+
rescue EOFError
|
43
|
+
puts 'Request Line is empty'
|
44
|
+
rescue HTTPParseError
|
45
|
+
puts 'Request Line must include HTTP (HTTPS enabled?)'
|
46
|
+
rescue Errno::EPIPE
|
47
|
+
puts 'Writing to client failed :|'
|
48
|
+
ensure
|
49
|
+
socket.close
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
private
|
56
|
+
|
57
|
+
def log(request, response)
|
58
|
+
puts "[#{Time.now}] \"#{request.request_method} #{request.request_path} #{request.protocol}\" #{response.status}"
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
data/reifier.gemspec
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'reifier/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "reifier"
|
8
|
+
spec.version = Reifier::VERSION
|
9
|
+
spec.authors = ["Benny Klotz"]
|
10
|
+
spec.email = ["benny.klotz92@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{A threaded rack app server written in pure ruby}
|
13
|
+
spec.description = %q{A rack app server written in pure ruby}
|
14
|
+
spec.homepage = "https://github.com/tak1n/reifier"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
|
18
|
+
# delete this section to allow pushing this gem to any host.
|
19
|
+
if spec.respond_to?(:metadata)
|
20
|
+
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
|
21
|
+
else
|
22
|
+
raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
|
23
|
+
end
|
24
|
+
|
25
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
26
|
+
spec.bindir = "exe"
|
27
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
28
|
+
spec.require_paths = ["lib"]
|
29
|
+
|
30
|
+
spec.add_dependency 'concurrent-ruby', '~> 1.0'
|
31
|
+
|
32
|
+
spec.add_development_dependency 'bundler', '~> 1.11'
|
33
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
34
|
+
spec.add_development_dependency 'minitest', '~> 5.0'
|
35
|
+
spec.add_development_dependency 'pry', '~> 0.10'
|
36
|
+
spec.add_development_dependency 'minitest-reporters', '~> 1.1'
|
37
|
+
spec.add_development_dependency 'rubocop', '~> 0.37'
|
38
|
+
spec.add_development_dependency 'rack'
|
39
|
+
end
|
metadata
ADDED
@@ -0,0 +1,172 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: reifier
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Benny Klotz
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-02-15 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: concurrent-ruby
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.11'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.11'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '10.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '10.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: minitest
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '5.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '5.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: pry
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0.10'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0.10'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: minitest-reporters
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1.1'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '1.1'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rubocop
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0.37'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0.37'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rack
|
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
|
+
description: A rack app server written in pure ruby
|
126
|
+
email:
|
127
|
+
- benny.klotz92@gmail.com
|
128
|
+
executables: []
|
129
|
+
extensions: []
|
130
|
+
extra_rdoc_files: []
|
131
|
+
files:
|
132
|
+
- ".gitignore"
|
133
|
+
- ".travis.yml"
|
134
|
+
- Gemfile
|
135
|
+
- LICENSE.txt
|
136
|
+
- README.md
|
137
|
+
- Rakefile
|
138
|
+
- bin/console
|
139
|
+
- bin/setup
|
140
|
+
- lib/rack/handler/reifier.rb
|
141
|
+
- lib/reifier.rb
|
142
|
+
- lib/reifier/request.rb
|
143
|
+
- lib/reifier/response.rb
|
144
|
+
- lib/reifier/server.rb
|
145
|
+
- lib/reifier/version.rb
|
146
|
+
- reifier.gemspec
|
147
|
+
homepage: https://github.com/tak1n/reifier
|
148
|
+
licenses:
|
149
|
+
- MIT
|
150
|
+
metadata:
|
151
|
+
allowed_push_host: https://rubygems.org
|
152
|
+
post_install_message:
|
153
|
+
rdoc_options: []
|
154
|
+
require_paths:
|
155
|
+
- lib
|
156
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
157
|
+
requirements:
|
158
|
+
- - ">="
|
159
|
+
- !ruby/object:Gem::Version
|
160
|
+
version: '0'
|
161
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
162
|
+
requirements:
|
163
|
+
- - ">="
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: '0'
|
166
|
+
requirements: []
|
167
|
+
rubyforge_project:
|
168
|
+
rubygems_version: 2.5.1
|
169
|
+
signing_key:
|
170
|
+
specification_version: 4
|
171
|
+
summary: A threaded rack app server written in pure ruby
|
172
|
+
test_files: []
|