otto 1.4.0 → 1.6.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/.github/workflows/ci.yml +43 -4
- data/.gitignore +1 -0
- data/.rubocop.yml +1 -1
- data/Gemfile +12 -3
- data/Gemfile.lock +51 -8
- data/bin/rspec +16 -0
- data/docs/.gitignore +2 -0
- data/examples/mcp_demo/app.rb +56 -0
- data/examples/mcp_demo/config.ru +68 -0
- data/examples/mcp_demo/routes +9 -0
- data/lib/concurrent_cache_store.rb +68 -0
- data/lib/otto/helpers/validation.rb +83 -0
- data/lib/otto/mcp/auth/token.rb +76 -0
- data/lib/otto/mcp/protocol.rb +167 -0
- data/lib/otto/mcp/rate_limiting.rb +150 -0
- data/lib/otto/mcp/registry.rb +95 -0
- data/lib/otto/mcp/route_parser.rb +82 -0
- data/lib/otto/mcp/server.rb +196 -0
- data/lib/otto/mcp/validation.rb +119 -0
- data/lib/otto/response_handlers.rb +141 -0
- data/lib/otto/route.rb +120 -54
- data/lib/otto/route_definition.rb +187 -0
- data/lib/otto/route_handlers.rb +412 -0
- data/lib/otto/security/authentication.rb +289 -0
- data/lib/otto/security/config.rb +3 -1
- data/lib/otto/security/rate_limiting.rb +111 -0
- data/lib/otto/security/validator.rb +35 -74
- data/lib/otto/version.rb +1 -1
- data/lib/otto.rb +196 -3
- data/otto.gemspec +11 -6
- metadata +72 -19
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: otto
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Delano Mandelbaum
|
@@ -9,34 +9,20 @@ bindir: bin
|
|
9
9
|
cert_chain: []
|
10
10
|
date: 1980-01-02 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
|
-
- !ruby/object:Gem::Dependency
|
13
|
-
name: rexml
|
14
|
-
requirement: !ruby/object:Gem::Requirement
|
15
|
-
requirements:
|
16
|
-
- - ">="
|
17
|
-
- !ruby/object:Gem::Version
|
18
|
-
version: 3.3.6
|
19
|
-
type: :runtime
|
20
|
-
prerelease: false
|
21
|
-
version_requirements: !ruby/object:Gem::Requirement
|
22
|
-
requirements:
|
23
|
-
- - ">="
|
24
|
-
- !ruby/object:Gem::Version
|
25
|
-
version: 3.3.6
|
26
12
|
- !ruby/object:Gem::Dependency
|
27
13
|
name: ostruct
|
28
14
|
requirement: !ruby/object:Gem::Requirement
|
29
15
|
requirements:
|
30
|
-
- - "
|
16
|
+
- - "~>"
|
31
17
|
- !ruby/object:Gem::Version
|
32
|
-
version:
|
18
|
+
version: 0.6.3
|
33
19
|
type: :runtime
|
34
20
|
prerelease: false
|
35
21
|
version_requirements: !ruby/object:Gem::Requirement
|
36
22
|
requirements:
|
37
|
-
- - "
|
23
|
+
- - "~>"
|
38
24
|
- !ruby/object:Gem::Version
|
39
|
-
version:
|
25
|
+
version: 0.6.3
|
40
26
|
- !ruby/object:Gem::Dependency
|
41
27
|
name: rack
|
42
28
|
requirement: !ruby/object:Gem::Requirement
|
@@ -71,6 +57,54 @@ dependencies:
|
|
71
57
|
- - "~>"
|
72
58
|
- !ruby/object:Gem::Version
|
73
59
|
version: '0.7'
|
60
|
+
- !ruby/object:Gem::Dependency
|
61
|
+
name: rexml
|
62
|
+
requirement: !ruby/object:Gem::Requirement
|
63
|
+
requirements:
|
64
|
+
- - "~>"
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '3.3'
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: 3.3.6
|
70
|
+
type: :runtime
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - "~>"
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '3.3'
|
77
|
+
- - ">="
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: 3.3.6
|
80
|
+
- !ruby/object:Gem::Dependency
|
81
|
+
name: facets
|
82
|
+
requirement: !ruby/object:Gem::Requirement
|
83
|
+
requirements:
|
84
|
+
- - "~>"
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: '3.1'
|
87
|
+
type: :runtime
|
88
|
+
prerelease: false
|
89
|
+
version_requirements: !ruby/object:Gem::Requirement
|
90
|
+
requirements:
|
91
|
+
- - "~>"
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '3.1'
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: loofah
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
97
|
+
requirements:
|
98
|
+
- - "~>"
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
version: '2.20'
|
101
|
+
type: :runtime
|
102
|
+
prerelease: false
|
103
|
+
version_requirements: !ruby/object:Gem::Requirement
|
104
|
+
requirements:
|
105
|
+
- - "~>"
|
106
|
+
- !ruby/object:Gem::Version
|
107
|
+
version: '2.20'
|
74
108
|
description: 'Otto: Auto-define your rack-apps in plaintext.'
|
75
109
|
email: gems@solutious.com
|
76
110
|
executables: []
|
@@ -88,6 +122,8 @@ files:
|
|
88
122
|
- Gemfile.lock
|
89
123
|
- LICENSE.txt
|
90
124
|
- README.md
|
125
|
+
- bin/rspec
|
126
|
+
- docs/.gitignore
|
91
127
|
- examples/basic/app.rb
|
92
128
|
- examples/basic/config.ru
|
93
129
|
- examples/basic/routes
|
@@ -97,17 +133,34 @@ files:
|
|
97
133
|
- examples/helpers_demo/app.rb
|
98
134
|
- examples/helpers_demo/config.ru
|
99
135
|
- examples/helpers_demo/routes
|
136
|
+
- examples/mcp_demo/app.rb
|
137
|
+
- examples/mcp_demo/config.ru
|
138
|
+
- examples/mcp_demo/routes
|
100
139
|
- examples/security_features/app.rb
|
101
140
|
- examples/security_features/config.ru
|
102
141
|
- examples/security_features/routes
|
142
|
+
- lib/concurrent_cache_store.rb
|
103
143
|
- lib/otto.rb
|
104
144
|
- lib/otto/design_system.rb
|
105
145
|
- lib/otto/helpers/base.rb
|
106
146
|
- lib/otto/helpers/request.rb
|
107
147
|
- lib/otto/helpers/response.rb
|
148
|
+
- lib/otto/helpers/validation.rb
|
149
|
+
- lib/otto/mcp/auth/token.rb
|
150
|
+
- lib/otto/mcp/protocol.rb
|
151
|
+
- lib/otto/mcp/rate_limiting.rb
|
152
|
+
- lib/otto/mcp/registry.rb
|
153
|
+
- lib/otto/mcp/route_parser.rb
|
154
|
+
- lib/otto/mcp/server.rb
|
155
|
+
- lib/otto/mcp/validation.rb
|
156
|
+
- lib/otto/response_handlers.rb
|
108
157
|
- lib/otto/route.rb
|
158
|
+
- lib/otto/route_definition.rb
|
159
|
+
- lib/otto/route_handlers.rb
|
160
|
+
- lib/otto/security/authentication.rb
|
109
161
|
- lib/otto/security/config.rb
|
110
162
|
- lib/otto/security/csrf.rb
|
163
|
+
- lib/otto/security/rate_limiting.rb
|
111
164
|
- lib/otto/security/validator.rb
|
112
165
|
- lib/otto/static.rb
|
113
166
|
- lib/otto/version.rb
|