mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Change name of parser extension to puma_http11
This commit is contained in:
parent
4f69300f77
commit
40dac162a2
14 changed files with 8 additions and 9 deletions
|
@ -1,6 +0,0 @@
|
||||||
require 'mkmf'
|
|
||||||
|
|
||||||
dir_config("http11")
|
|
||||||
have_library("c", "main")
|
|
||||||
|
|
||||||
create_makefile("http11")
|
|
5
ext/puma_http11/extconf.rb
Normal file
5
ext/puma_http11/extconf.rb
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
require 'mkmf'
|
||||||
|
|
||||||
|
dir_config("puma_http11")
|
||||||
|
|
||||||
|
create_makefile("puma_http11")
|
|
@ -453,7 +453,7 @@ VALUE HttpParser_body(VALUE self) {
|
||||||
return http->body;
|
return http->body;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Init_http11()
|
void Init_puma_http11()
|
||||||
{
|
{
|
||||||
|
|
||||||
VALUE mPuma = rb_define_module("Puma");
|
VALUE mPuma = rb_define_module("Puma");
|
|
@ -6,7 +6,7 @@ require 'puma/thread_pool'
|
||||||
require 'puma/const'
|
require 'puma/const'
|
||||||
require 'puma/events'
|
require 'puma/events'
|
||||||
|
|
||||||
require 'http11'
|
require 'puma_http11'
|
||||||
|
|
||||||
require 'socket'
|
require 'socket'
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
require 'rake/extensiontask'
|
require 'rake/extensiontask'
|
||||||
|
|
||||||
# build http11 C extension
|
# build http11 C extension
|
||||||
Rake::ExtensionTask.new('http11', HOE.spec) do |ext|
|
Rake::ExtensionTask.new('puma_http11', HOE.spec) do |ext|
|
||||||
# define target for extension (supporting fat binaries)
|
# define target for extension (supporting fat binaries)
|
||||||
if RUBY_PLATFORM =~ /mingw|mswin/ then
|
if RUBY_PLATFORM =~ /mingw|mswin/ then
|
||||||
RUBY_VERSION =~ /(\d+\.\d+)/
|
RUBY_VERSION =~ /(\d+\.\d+)/
|
||||||
|
|
Loading…
Add table
Reference in a new issue