hanami-router 0.0.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +101 -0
- data/LICENSE.md +22 -0
- data/README.md +667 -9
- data/hanami-router.gemspec +18 -12
- data/lib/hanami-router.rb +1 -0
- data/lib/hanami/router.rb +1160 -3
- data/lib/hanami/router/version.rb +3 -2
- data/lib/hanami/routing/endpoint.rb +151 -0
- data/lib/hanami/routing/endpoint_resolver.rb +225 -0
- data/lib/hanami/routing/error.rb +7 -0
- data/lib/hanami/routing/force_ssl.rb +209 -0
- data/lib/hanami/routing/http_router.rb +187 -0
- data/lib/hanami/routing/namespace.rb +92 -0
- data/lib/hanami/routing/parsers.rb +71 -0
- data/lib/hanami/routing/parsing/json_parser.rb +28 -0
- data/lib/hanami/routing/parsing/parser.rb +58 -0
- data/lib/hanami/routing/recognized_route.rb +153 -0
- data/lib/hanami/routing/resource.rb +116 -0
- data/lib/hanami/routing/resource/action.rb +387 -0
- data/lib/hanami/routing/resource/nested.rb +39 -0
- data/lib/hanami/routing/resource/options.rb +74 -0
- data/lib/hanami/routing/resources.rb +48 -0
- data/lib/hanami/routing/resources/action.rb +150 -0
- data/lib/hanami/routing/route.rb +62 -0
- data/lib/hanami/routing/routes_inspector.rb +215 -0
- metadata +94 -16
- data/.gitignore +0 -9
- data/Gemfile +0 -4
- data/Rakefile +0 -2
- data/bin/console +0 -14
- data/bin/setup +0 -8
metadata
CHANGED
@@ -1,61 +1,138 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hanami-router
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luca Guidi
|
8
|
+
- Trung Lê
|
9
|
+
- Alfonso Uceda
|
8
10
|
autorequire:
|
9
|
-
bindir:
|
11
|
+
bindir: bin
|
10
12
|
cert_chain: []
|
11
|
-
date: 2016-01-
|
13
|
+
date: 2016-01-22 00:00:00.000000000 Z
|
12
14
|
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: http_router
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
18
|
+
requirements:
|
19
|
+
- - "~>"
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0.11'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
requirements:
|
26
|
+
- - "~>"
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
version: '0.11'
|
29
|
+
- !ruby/object:Gem::Dependency
|
30
|
+
name: hanami-utils
|
31
|
+
requirement: !ruby/object:Gem::Requirement
|
32
|
+
requirements:
|
33
|
+
- - "~>"
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: '0.7'
|
36
|
+
type: :runtime
|
37
|
+
prerelease: false
|
38
|
+
version_requirements: !ruby/object:Gem::Requirement
|
39
|
+
requirements:
|
40
|
+
- - "~>"
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '0.7'
|
13
43
|
- !ruby/object:Gem::Dependency
|
14
44
|
name: bundler
|
15
45
|
requirement: !ruby/object:Gem::Requirement
|
16
46
|
requirements:
|
17
47
|
- - "~>"
|
18
48
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
49
|
+
version: '1.5'
|
20
50
|
type: :development
|
21
51
|
prerelease: false
|
22
52
|
version_requirements: !ruby/object:Gem::Requirement
|
23
53
|
requirements:
|
24
54
|
- - "~>"
|
25
55
|
- !ruby/object:Gem::Version
|
26
|
-
version: '1.
|
56
|
+
version: '1.5'
|
57
|
+
- !ruby/object:Gem::Dependency
|
58
|
+
name: minitest
|
59
|
+
requirement: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - "~>"
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '5'
|
64
|
+
type: :development
|
65
|
+
prerelease: false
|
66
|
+
version_requirements: !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- - "~>"
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '5'
|
27
71
|
- !ruby/object:Gem::Dependency
|
28
72
|
name: rake
|
29
73
|
requirement: !ruby/object:Gem::Requirement
|
30
74
|
requirements:
|
31
75
|
- - "~>"
|
32
76
|
- !ruby/object:Gem::Version
|
33
|
-
version: '10
|
77
|
+
version: '10'
|
34
78
|
type: :development
|
35
79
|
prerelease: false
|
36
80
|
version_requirements: !ruby/object:Gem::Requirement
|
37
81
|
requirements:
|
38
82
|
- - "~>"
|
39
83
|
- !ruby/object:Gem::Version
|
40
|
-
version: '10
|
41
|
-
|
84
|
+
version: '10'
|
85
|
+
- !ruby/object:Gem::Dependency
|
86
|
+
name: rack-test
|
87
|
+
requirement: !ruby/object:Gem::Requirement
|
88
|
+
requirements:
|
89
|
+
- - "~>"
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: '0.6'
|
92
|
+
type: :development
|
93
|
+
prerelease: false
|
94
|
+
version_requirements: !ruby/object:Gem::Requirement
|
95
|
+
requirements:
|
96
|
+
- - "~>"
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: '0.6'
|
99
|
+
description: Rack compatible HTTP router for Ruby
|
42
100
|
email:
|
43
101
|
- me@lucaguidi.com
|
102
|
+
- trung.le@ruby-journal.com
|
103
|
+
- uceda73@gmail.com
|
44
104
|
executables: []
|
45
105
|
extensions: []
|
46
106
|
extra_rdoc_files: []
|
47
107
|
files:
|
48
|
-
-
|
49
|
-
-
|
108
|
+
- CHANGELOG.md
|
109
|
+
- LICENSE.md
|
50
110
|
- README.md
|
51
|
-
- Rakefile
|
52
|
-
- bin/console
|
53
|
-
- bin/setup
|
54
111
|
- hanami-router.gemspec
|
112
|
+
- lib/hanami-router.rb
|
55
113
|
- lib/hanami/router.rb
|
56
114
|
- lib/hanami/router/version.rb
|
115
|
+
- lib/hanami/routing/endpoint.rb
|
116
|
+
- lib/hanami/routing/endpoint_resolver.rb
|
117
|
+
- lib/hanami/routing/error.rb
|
118
|
+
- lib/hanami/routing/force_ssl.rb
|
119
|
+
- lib/hanami/routing/http_router.rb
|
120
|
+
- lib/hanami/routing/namespace.rb
|
121
|
+
- lib/hanami/routing/parsers.rb
|
122
|
+
- lib/hanami/routing/parsing/json_parser.rb
|
123
|
+
- lib/hanami/routing/parsing/parser.rb
|
124
|
+
- lib/hanami/routing/recognized_route.rb
|
125
|
+
- lib/hanami/routing/resource.rb
|
126
|
+
- lib/hanami/routing/resource/action.rb
|
127
|
+
- lib/hanami/routing/resource/nested.rb
|
128
|
+
- lib/hanami/routing/resource/options.rb
|
129
|
+
- lib/hanami/routing/resources.rb
|
130
|
+
- lib/hanami/routing/resources/action.rb
|
131
|
+
- lib/hanami/routing/route.rb
|
132
|
+
- lib/hanami/routing/routes_inspector.rb
|
57
133
|
homepage: http://hanamirb.org
|
58
|
-
licenses:
|
134
|
+
licenses:
|
135
|
+
- MIT
|
59
136
|
metadata: {}
|
60
137
|
post_install_message:
|
61
138
|
rdoc_options: []
|
@@ -65,7 +142,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
65
142
|
requirements:
|
66
143
|
- - ">="
|
67
144
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
145
|
+
version: 2.0.0
|
69
146
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
70
147
|
requirements:
|
71
148
|
- - ">="
|
@@ -76,5 +153,6 @@ rubyforge_project:
|
|
76
153
|
rubygems_version: 2.5.1
|
77
154
|
signing_key:
|
78
155
|
specification_version: 4
|
79
|
-
summary:
|
156
|
+
summary: Rack compatible HTTP router for Ruby and Hanami
|
80
157
|
test_files: []
|
158
|
+
has_rdoc:
|
data/.gitignore
DELETED
data/Gemfile
DELETED
data/Rakefile
DELETED
data/bin/console
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require "bundler/setup"
|
4
|
-
require "hanami/router"
|
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
|