puma 3.9.1-java → 3.10.0-java

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of puma might be problematic. Click here for more details.

data/Gemfile DELETED
@@ -1,14 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec
4
-
5
- gem "hoe"
6
- gem "hoe-git"
7
- gem "hoe-ignore"
8
- gem "rdoc"
9
- gem "rake-compiler"
10
-
11
- gem "rack", "< 3.0"
12
- gem "minitest", "~> 5.9"
13
-
14
- gem "jruby-openssl", :platform => "jruby"
@@ -1,78 +0,0 @@
1
- .github/issue_template.md
2
- DEPLOYMENT.md
3
- Gemfile
4
- History.md
5
- LICENSE
6
- Manifest.txt
7
- README.md
8
- Rakefile
9
- Release.md
10
- bin/puma
11
- bin/puma-wild
12
- bin/pumactl
13
- docs/nginx.md
14
- docs/signals.md
15
- docs/systemd.md
16
- ext/puma_http11/PumaHttp11Service.java
17
- ext/puma_http11/ext_help.h
18
- ext/puma_http11/extconf.rb
19
- ext/puma_http11/http11_parser.c
20
- ext/puma_http11/http11_parser.h
21
- ext/puma_http11/http11_parser.java.rl
22
- ext/puma_http11/http11_parser.rl
23
- ext/puma_http11/http11_parser_common.rl
24
- ext/puma_http11/io_buffer.c
25
- ext/puma_http11/mini_ssl.c
26
- ext/puma_http11/org/jruby/puma/Http11.java
27
- ext/puma_http11/org/jruby/puma/Http11Parser.java
28
- ext/puma_http11/org/jruby/puma/MiniSSL.java
29
- ext/puma_http11/puma_http11.c
30
- gemfiles/2.1-Gemfile
31
- lib/puma.rb
32
- lib/puma/accept_nonblock.rb
33
- lib/puma/app/status.rb
34
- lib/puma/binder.rb
35
- lib/puma/cli.rb
36
- lib/puma/client.rb
37
- lib/puma/cluster.rb
38
- lib/puma/commonlogger.rb
39
- lib/puma/compat.rb
40
- lib/puma/configuration.rb
41
- lib/puma/const.rb
42
- lib/puma/control_cli.rb
43
- lib/puma/convenient.rb
44
- lib/puma/daemon_ext.rb
45
- lib/puma/delegation.rb
46
- lib/puma/detect.rb
47
- lib/puma/dsl.rb
48
- lib/puma/events.rb
49
- lib/puma/io_buffer.rb
50
- lib/puma/java_io_buffer.rb
51
- lib/puma/jruby_restart.rb
52
- lib/puma/launcher.rb
53
- lib/puma/minissl.rb
54
- lib/puma/null_io.rb
55
- lib/puma/plugin.rb
56
- lib/puma/plugin/tmp_restart.rb
57
- lib/puma/rack/backports/uri/common_193.rb
58
- lib/puma/rack/builder.rb
59
- lib/puma/rack/urlmap.rb
60
- lib/puma/rack_default.rb
61
- lib/puma/reactor.rb
62
- lib/puma/runner.rb
63
- lib/puma/server.rb
64
- lib/puma/single.rb
65
- lib/puma/state_file.rb
66
- lib/puma/tcp_logger.rb
67
- lib/puma/thread_pool.rb
68
- lib/puma/util.rb
69
- lib/rack/handler/puma.rb
70
- puma.gemspec
71
- tools/jungle/README.md
72
- tools/jungle/init.d/README.md
73
- tools/jungle/init.d/puma
74
- tools/jungle/init.d/run-puma
75
- tools/jungle/upstart/README.md
76
- tools/jungle/upstart/puma-manager.conf
77
- tools/jungle/upstart/puma.conf
78
- tools/trickletest.rb
data/Rakefile DELETED
@@ -1,165 +0,0 @@
1
- require "bundler/setup"
2
- require "hoe"
3
- require "rake/extensiontask"
4
- require "rake/javaextensiontask"
5
-
6
- IS_JRUBY = defined?(RUBY_ENGINE) ? RUBY_ENGINE == "jruby" : false
7
-
8
- Hoe.plugin :git
9
- Hoe.plugin :ignore
10
-
11
- # Keep in sync with puma.gemspec
12
- HOE = Hoe.spec "puma" do
13
- self.readme_file = "README.md"
14
- self.urls = %w!http://puma.io https://github.com/puma/puma!
15
-
16
- license "BSD-3-Clause"
17
- developer 'Evan Phoenix', 'evan@phx.io'
18
-
19
- spec_extras[:extensions] = ["ext/puma_http11/extconf.rb"]
20
- spec_extras[:executables] = ['puma', 'pumactl']
21
- spec_extras[:homepage] = urls.first
22
-
23
- require_ruby_version ">= 1.9.3"
24
- end
25
-
26
- task :prerelease => [:clobber, :check_manifest, :test]
27
-
28
- # hoe/test and rake-compiler don't seem to play well together, so disable
29
- # hoe/test's .gemtest touch file thingy for now
30
- HOE.spec.files -= [".gemtest"]
31
-
32
- include Hoe::Git
33
-
34
- desc "Print the current changelog."
35
- task "changelog" do
36
- tag = ENV["FROM"] || git_tags.last
37
- range = [tag, "HEAD"].compact.join ".."
38
- cmd = "git log #{range} '--format=tformat:%B|||%aN|||%aE|||'"
39
- now = Time.new.strftime "%Y-%m-%d"
40
-
41
- changes = `#{cmd}`.split(/\|\|\|/).each_slice(3).map { |msg, author, email|
42
- msg.split(/\n/).reject { |s| s.empty? }.first
43
- }.flatten.compact
44
-
45
- $changes = Hash.new { |h,k| h[k] = [] }
46
-
47
- codes = {
48
- "!" => :major,
49
- "+" => :minor,
50
- "*" => :minor,
51
- "-" => :bug,
52
- "?" => :unknown,
53
- }
54
-
55
- codes_re = Regexp.escape codes.keys.join
56
-
57
- changes.each do |change|
58
- if change =~ /^\s*([#{codes_re}])\s*(.*)/ then
59
- code, line = codes[$1], $2
60
- else
61
- code, line = codes["?"], change.chomp
62
- end
63
-
64
- $changes[code] << line
65
- end
66
-
67
- puts "## #{ENV['VERSION'] || 'NEXT'} / #{now}"
68
- puts
69
- changelog_section :major
70
- changelog_section :minor
71
- changelog_section :bug
72
- changelog_section :unknown
73
- puts
74
- end
75
-
76
- # generate extension code using Ragel (C and Java)
77
- desc "Generate extension code (C and Java) using Ragel"
78
- task :ragel
79
-
80
- file 'ext/puma_http11/http11_parser.c' => ['ext/puma_http11/http11_parser.rl'] do |t|
81
- begin
82
- sh "ragel #{t.prerequisites.last} -C -G2 -I ext/puma_http11 -o #{t.name}"
83
- rescue
84
- fail "Could not build wrapper using Ragel (it failed or not installed?)"
85
- end
86
- end
87
- task :ragel => ['ext/puma_http11/http11_parser.c']
88
-
89
- file 'ext/puma_http11/org/jruby/puma/Http11Parser.java' => ['ext/puma_http11/http11_parser.java.rl'] do |t|
90
- begin
91
- sh "ragel #{t.prerequisites.last} -J -G2 -I ext/puma_http11 -o #{t.name}"
92
- rescue
93
- fail "Could not build wrapper using Ragel (it failed or not installed?)"
94
- end
95
- end
96
- task :ragel => ['ext/puma_http11/org/jruby/puma/Http11Parser.java']
97
-
98
- if !IS_JRUBY
99
-
100
- # compile extensions using rake-compiler
101
- # C (MRI, Rubinius)
102
- Rake::ExtensionTask.new("puma_http11", HOE.spec) do |ext|
103
- # place extension inside namespace
104
- ext.lib_dir = "lib/puma"
105
-
106
- ext.cross_compile = true
107
- ext.cross_platform = ['i386-mswin32-60', 'i386-mingw32']
108
- ext.cross_compiling do |spec|
109
- # add fat-binary stub only when cross compiling
110
- spec.files << "lib/puma/puma_http11.rb"
111
- end
112
-
113
- CLEAN.include "lib/puma/{1.8,1.9}"
114
- CLEAN.include "lib/puma/puma_http11.rb"
115
- end
116
-
117
- else
118
-
119
- # Java (JRuby)
120
- Rake::JavaExtensionTask.new("puma_http11", HOE.spec) do |ext|
121
- ext.lib_dir = "lib/puma"
122
- end
123
-
124
- end
125
-
126
- # the following is a fat-binary stub that will be used when
127
- # require 'puma/puma_http11' and will use either 1.8 or 1.9 version depending
128
- # on RUBY_VERSION
129
- file "lib/puma/puma_http11.rb" do |t|
130
- File.open(t.name, "w") do |f|
131
- f.puts "RUBY_VERSION =~ /(\d+.\d+)/"
132
- f.puts 'require "puma/#{$1}/puma_http11"'
133
- end
134
- end
135
-
136
- # tests require extension be compiled, but depend on the platform
137
- if IS_JRUBY
138
- task :test => [:java]
139
- else
140
- task :test => [:compile]
141
- end
142
-
143
- task :test => [:ensure_no_puma_gem]
144
- task :ensure_no_puma_gem do
145
- Bundler.with_clean_env do
146
- out = `gem list puma`.strip
147
- if !$?.success? || out != ""
148
- abort "No other puma version should be install to avoid false positives or lading it by accident but found #{out}"
149
- end
150
- end
151
- end
152
-
153
- namespace :test do
154
- desc "Run the integration tests"
155
- task :integration do
156
- sh "cd test/shell; sh run.sh"
157
- end
158
-
159
- desc "Run all tests"
160
- if defined?(JRUBY_VERSION) and ENV['TRAVIS']
161
- task :all => :test
162
- else
163
- task :all => [:test, "test:integration"]
164
- end
165
- end
data/Release.md DELETED
@@ -1,9 +0,0 @@
1
- # Release process
2
-
3
- Using "3.7.1" as a version string example.
4
-
5
- 1. `be rake release_sanity VERSION=3.7.1`
6
- 2. `be rake release VERSION=3.7.1`
7
- 3. Switch to latest JRuby version
8
- 4. `rake java gem`
9
- 5. `gem push pkg/puma-3.7.1-java.gem`
@@ -1,12 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gem "hoe"
4
- gem "hoe-git"
5
- gem "hoe-ignore"
6
- gem "rdoc"
7
- gem "rake-compiler"
8
-
9
- gem "rack", "~> 1.6"
10
- gem "minitest", '~> 5.9'
11
-
12
- gem "jruby-openssl", :platform => "jruby"
@@ -1,20 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
-
3
- # This is only used when puma is a git dep from Bundler, keep in sync with Rakefile
4
-
5
- version = File.read(File.expand_path("../lib/puma/const.rb", __FILE__))[/VERSION = "(\d+\.\d+\.\d+)"/, 1] || raise
6
-
7
- Gem::Specification.new do |s|
8
- s.name = "puma"
9
- s.version = version
10
- s.authors = ["Evan Phoenix"]
11
- s.description = "Puma is a simple, fast, threaded, and highly concurrent HTTP 1.1 server for Ruby/Rack applications. Puma is intended for use in both development and production environments. It's great for highly concurrent Ruby implementations such as Rubinius and JRuby as well as as providing process worker support to support CRuby well."
12
- s.summary = "Puma is a simple, fast, threaded, and highly concurrent HTTP 1.1 server for Ruby/Rack applications"
13
- s.email = ["evan@phx.io"]
14
- s.executables = ["puma", "pumactl"]
15
- s.extensions = ["ext/puma_http11/extconf.rb"]
16
- s.files = `git ls-files`.split($/)
17
- s.homepage = "http://puma.io"
18
- s.license = "BSD-3-Clause"
19
- s.required_ruby_version = Gem::Requirement.new(">= 1.9.3")
20
- end