shotgun3 1.0.0 → 1.2.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 +4 -4
- data/Rakefile +4 -4
- data/bin/shotgun +9 -1
- data/shotgun3.gemspec +4 -4
- metadata +12 -11
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b0d077cbcde3b28dc2a01dd72ca068e06877d92cb02ff6e2f979dc13a23a7a62
|
|
4
|
+
data.tar.gz: aac81c57596c2f75a5f6e8fa7f310b2ed81cdc462cecc0f4ff0c80324186787f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4ff00d32d1cb255cdf75e2a791d3a3957725f2494c5d0f98ab2435f0c032f33cbfcba9ee93d4ae6fb0903c8c6585e31caae5399378d8beb3ca7dcb23f0644053
|
|
7
|
+
data.tar.gz: 445b0d33d2ee7cab5f8ac2e3e8ea622c323a71c3dd89893d2d76bd5536e69080c46b3cae36f8e618721c6c9c4f7dc2559dc3afe1c3b180da3ad923afb4f1b324
|
data/Rakefile
CHANGED
|
@@ -5,7 +5,7 @@ task :default => [:test]
|
|
|
5
5
|
|
|
6
6
|
Rake::TestTask.new(:test) do |t|
|
|
7
7
|
t.test_files = FileList['test/test_shotgun_*.rb']
|
|
8
|
-
t.ruby_opts = ['-rubygems'] if defined? Gem
|
|
8
|
+
t.ruby_opts = ['-r rubygems'] if defined? Gem
|
|
9
9
|
end
|
|
10
10
|
|
|
11
11
|
desc "build manual"
|
|
@@ -15,7 +15,7 @@ task :man do
|
|
|
15
15
|
end
|
|
16
16
|
|
|
17
17
|
require 'rubygems'
|
|
18
|
-
SPEC = eval(File.read('
|
|
18
|
+
SPEC = eval(File.read('shotgun3.gemspec'))
|
|
19
19
|
PACK = "#{SPEC.name}-#{SPEC.version}"
|
|
20
20
|
|
|
21
21
|
desc 'build packages'
|
|
@@ -23,8 +23,8 @@ task :package => %W[pkg/#{PACK}.gem pkg/#{PACK}.tar.gz]
|
|
|
23
23
|
|
|
24
24
|
directory 'pkg/'
|
|
25
25
|
|
|
26
|
-
file "pkg/#{PACK}.gem" => %w[pkg/
|
|
27
|
-
sh "gem build
|
|
26
|
+
file "pkg/#{PACK}.gem" => %w[pkg/ shotgun3.gemspec] + SPEC.files do |f|
|
|
27
|
+
sh "gem build shotgun3.gemspec"
|
|
28
28
|
mv File.basename(f.name), f.name
|
|
29
29
|
end
|
|
30
30
|
|
data/bin/shotgun
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
require 'optparse'
|
|
4
4
|
|
|
5
|
+
begin
|
|
6
|
+
require 'rackup'
|
|
7
|
+
puts "Using the new Rackup::Handler"
|
|
8
|
+
rescue LoadError
|
|
9
|
+
puts "Rackup is not available using Rack::Handler"
|
|
10
|
+
end
|
|
11
|
+
|
|
5
12
|
env = ENV['RACK_ENV'] || 'development'
|
|
6
13
|
host = ENV['HOST'] || '127.0.0.1'
|
|
7
14
|
port = ENV['PORT'] || 9393
|
|
@@ -109,7 +116,8 @@ require 'rack'
|
|
|
109
116
|
require 'shotgun'
|
|
110
117
|
|
|
111
118
|
require 'thin' if server.to_s.downcase == 'thin'
|
|
112
|
-
|
|
119
|
+
handler = defined?(Rackup::Handler) ? Rackup::Handler : Rack::Handler
|
|
120
|
+
server = handler.get(server) || handler.default
|
|
113
121
|
|
|
114
122
|
app =
|
|
115
123
|
Rack::Builder.new do
|
data/shotgun3.gemspec
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Gem::Specification.new do |s|
|
|
2
2
|
s.name = 'shotgun3'
|
|
3
|
-
s.version = '1.
|
|
3
|
+
s.version = '1.2.0'
|
|
4
4
|
|
|
5
|
-
s.description = "Reloading Rack development server (Ruby 3 compatible)"
|
|
6
|
-
s.summary = "This is probably a temporary fork, until the official gem supports Ruby 3. There's already a pending PR for this change but it's been there for a while"
|
|
5
|
+
s.description = "Reloading Rack development server (Ruby 3 and Rack 3 compatible)"
|
|
6
|
+
s.summary = "This is probably a temporary fork, until the official gem supports Ruby 3 and Rack 3. There's already a pending PR for this change but it's been there for a while"
|
|
7
7
|
|
|
8
8
|
s.license = "MIT"
|
|
9
9
|
|
|
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
|
|
|
14
14
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
|
15
15
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
|
16
16
|
|
|
17
|
-
s.add_dependency 'rack', '~>
|
|
17
|
+
s.add_dependency 'rack', '~> 3.0'
|
|
18
18
|
|
|
19
19
|
s.homepage = "https://github.com/rtomayko/shotgun"
|
|
20
20
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: shotgun3
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ryan Tomayko
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2022-11-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rack
|
|
@@ -16,15 +16,15 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '
|
|
19
|
+
version: '3.0'
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '
|
|
27
|
-
description: Reloading Rack development server (Ruby 3 compatible)
|
|
26
|
+
version: '3.0'
|
|
27
|
+
description: Reloading Rack development server (Ruby 3 and Rack 3 compatible)
|
|
28
28
|
email: rtomayko@gmail.com
|
|
29
29
|
executables:
|
|
30
30
|
- shotgun
|
|
@@ -58,7 +58,7 @@ homepage: https://github.com/rtomayko/shotgun
|
|
|
58
58
|
licenses:
|
|
59
59
|
- MIT
|
|
60
60
|
metadata: {}
|
|
61
|
-
post_install_message:
|
|
61
|
+
post_install_message:
|
|
62
62
|
rdoc_options: []
|
|
63
63
|
require_paths:
|
|
64
64
|
- lib
|
|
@@ -73,11 +73,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
73
73
|
- !ruby/object:Gem::Version
|
|
74
74
|
version: '0'
|
|
75
75
|
requirements: []
|
|
76
|
-
rubygems_version: 3.
|
|
77
|
-
signing_key:
|
|
76
|
+
rubygems_version: 3.2.22
|
|
77
|
+
signing_key:
|
|
78
78
|
specification_version: 4
|
|
79
|
-
summary: This is probably a temporary fork, until the official gem supports Ruby 3
|
|
80
|
-
There's already a pending PR for this change but it's been there for
|
|
79
|
+
summary: This is probably a temporary fork, until the official gem supports Ruby 3
|
|
80
|
+
and Rack 3. There's already a pending PR for this change but it's been there for
|
|
81
|
+
a while
|
|
81
82
|
test_files:
|
|
82
83
|
- test/big.ru
|
|
83
84
|
- test/boom.ru
|