rack-jet_router 1.1.1 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGES.md +52 -0
- data/MIT-LICENSE +1 -1
- data/README.md +207 -52
- data/bench/Gemfile +13 -0
- data/bench/Rakefile.rb +11 -0
- data/bench/bench.rb +367 -0
- data/lib/rack/jet_router.rb +432 -208
- data/rack-jet_router.gemspec +21 -18
- data/test/builder_test.rb +631 -0
- data/test/misc_test.rb +23 -0
- data/test/router_test.rb +597 -0
- data/test/run_all.rb +6 -0
- data/test/{test_helper.rb → shared.rb} +8 -3
- metadata +36 -42
- data/Rakefile +0 -58
- data/test/rack/jet_router_test.rb +0 -670
metadata
CHANGED
@@ -1,78 +1,70 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-jet_router
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
8
|
-
autorequire:
|
7
|
+
- kwatch
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: oktest
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '1'
|
20
20
|
type: :development
|
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: '
|
26
|
+
version: '1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: benchmarker
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '1'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
41
|
-
|
42
|
-
|
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
|
-
description: 'Super-fast router class for Rack application, derived from Keight.rb.
|
40
|
+
version: '1'
|
41
|
+
description: |
|
42
|
+
Super-fast router class for Rack application, derived from Keight.rb.
|
56
43
|
|
57
|
-
|
58
|
-
email:
|
59
|
-
- kwa(at)kuwata-lab.com
|
44
|
+
See for details.
|
45
|
+
email: kwatch@gmail.com
|
60
46
|
executables: []
|
61
47
|
extensions: []
|
62
48
|
extra_rdoc_files: []
|
63
49
|
files:
|
50
|
+
- CHANGES.md
|
64
51
|
- MIT-LICENSE
|
65
52
|
- README.md
|
66
|
-
-
|
53
|
+
- bench/Gemfile
|
54
|
+
- bench/Rakefile.rb
|
55
|
+
- bench/bench.rb
|
67
56
|
- lib/rack/jet_router.rb
|
68
57
|
- rack-jet_router.gemspec
|
69
|
-
- test/
|
70
|
-
- test/
|
58
|
+
- test/builder_test.rb
|
59
|
+
- test/misc_test.rb
|
60
|
+
- test/router_test.rb
|
61
|
+
- test/run_all.rb
|
62
|
+
- test/shared.rb
|
71
63
|
homepage: https://github.com/kwatch/rack-jet_router
|
72
64
|
licenses:
|
73
|
-
- MIT
|
65
|
+
- MIT
|
74
66
|
metadata: {}
|
75
|
-
post_install_message:
|
67
|
+
post_install_message:
|
76
68
|
rdoc_options: []
|
77
69
|
require_paths:
|
78
70
|
- lib
|
@@ -80,16 +72,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
80
72
|
requirements:
|
81
73
|
- - ">="
|
82
74
|
- !ruby/object:Gem::Version
|
83
|
-
version: '2.
|
75
|
+
version: '2.4'
|
84
76
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
85
77
|
requirements:
|
86
78
|
- - ">="
|
87
79
|
- !ruby/object:Gem::Version
|
88
80
|
version: '0'
|
89
81
|
requirements: []
|
90
|
-
|
91
|
-
|
92
|
-
signing_key:
|
82
|
+
rubygems_version: 3.4.10
|
83
|
+
signing_key:
|
93
84
|
specification_version: 4
|
94
85
|
summary: Super-fast router class for Rack
|
95
|
-
test_files:
|
86
|
+
test_files:
|
87
|
+
- test/builder_test.rb
|
88
|
+
- test/misc_test.rb
|
89
|
+
- test/router_test.rb
|
data/Rakefile
DELETED
@@ -1,58 +0,0 @@
|
|
1
|
-
require "bundler/gem_tasks"
|
2
|
-
require "rake/testtask"
|
3
|
-
|
4
|
-
Rake::TestTask.new(:test) do |t|
|
5
|
-
t.libs << "test"
|
6
|
-
t.libs << "lib"
|
7
|
-
t.test_files = FileList['test/**/*_test.rb']
|
8
|
-
end
|
9
|
-
|
10
|
-
task :default => :test
|
11
|
-
|
12
|
-
|
13
|
-
desc "show how to release"
|
14
|
-
task :help do
|
15
|
-
puts <<END
|
16
|
-
How to release:
|
17
|
-
|
18
|
-
$ git checkout dev
|
19
|
-
$ git diff
|
20
|
-
$ which ruby
|
21
|
-
$ rake test # for confirmation
|
22
|
-
$ git checkout -b rel-1.0 # or git checkout rel-1.0
|
23
|
-
$ rake edit rel=1.0.0
|
24
|
-
$ git diff
|
25
|
-
$ git commit -a -m "release preparation for 1.0.0"
|
26
|
-
$ rake build # for confirmation
|
27
|
-
$ rake install # for confirmation
|
28
|
-
$ #rake release
|
29
|
-
$ gem push pkg/rack-jet_router-1.0.0.gem
|
30
|
-
$ git tag v1.0.0
|
31
|
-
$ git push -u origin rel-1.0
|
32
|
-
$ git push --tags
|
33
|
-
END
|
34
|
-
|
35
|
-
end
|
36
|
-
|
37
|
-
|
38
|
-
desc "edit files (for release preparation)"
|
39
|
-
task :edit do
|
40
|
-
rel = ENV['rel'] or
|
41
|
-
raise "ERROR: 'rel' environment variable expected."
|
42
|
-
filenames = Dir[*%w[lib/**/*.rb test/**/*_test.rb test/test_helper.rb *.gemspec]]
|
43
|
-
filenames << 'README.md'
|
44
|
-
filenames.each do |fname|
|
45
|
-
File.open(fname, 'r+', encoding: 'utf-8') do |f|
|
46
|
-
content = f.read()
|
47
|
-
x = content.gsub!(/\$Release:.*?\$/, "$Release: #{rel} $")
|
48
|
-
if x.nil?
|
49
|
-
puts "[_] #{fname}"
|
50
|
-
else
|
51
|
-
puts "[C] #{fname}"
|
52
|
-
f.rewind()
|
53
|
-
f.truncate(0)
|
54
|
-
f.write(content)
|
55
|
-
end
|
56
|
-
end
|
57
|
-
end
|
58
|
-
end
|