agoo 2.15.10 → 2.15.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +19 -3
- data/ext/agoo/page.c +505 -505
- data/ext/agoo/rserver.c +24 -15
- data/lib/agoo/version.rb +1 -1
- data/misc/flymd.md +581 -0
- data/misc/glue-diagram.svg +3 -0
- data/misc/glue.md +25 -0
- data/misc/optimize.md +100 -0
- data/misc/push.md +581 -0
- data/misc/rails.md +174 -0
- data/misc/song.md +268 -0
- metadata +19 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 003bb2255b4ec64d0ac60ed3ded56d8fa03ea6e7c646b4a7f617d27ac38ec509
|
4
|
+
data.tar.gz: 7393a5135b53fd14d71e6097298b861d556266ba2d3444d4ccdabd1b00079bce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55ca14d13c5d74a388fd4e0b072ae7929de5884d48cb9741c5d3e916e6c1042ca2bd03d36b1bddab075745f142161645d951dd6c16cc0e67474f4a54b6c4aeca
|
7
|
+
data.tar.gz: d2a7862e3180b9fc02078e17ce8f7b80aab3abf89e9b27f965ff82888df473cfaa1a82f47f2458b2005c56003ab505ee1365920a2b00e05506ea19bff3e03192
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,13 @@
|
|
2
2
|
|
3
3
|
All changes to the Agoo gem are documented here. Releases follow semantic versioning.
|
4
4
|
|
5
|
+
## [2.15.11] - 2024-06-04
|
6
|
+
|
7
|
+
### Fixed
|
8
|
+
|
9
|
+
- The server root parameter (asset root) no longer raises and error when `nil`.
|
10
|
+
- The server path handling behavior around the use of `/` has been improved.
|
11
|
+
|
5
12
|
## [2.15.10] - 2024-04-14
|
6
13
|
|
7
14
|
### Added
|
data/README.md
CHANGED
@@ -13,7 +13,7 @@ A High Performance HTTP Server for Ruby
|
|
13
13
|
```ruby
|
14
14
|
require 'agoo'
|
15
15
|
|
16
|
-
Agoo::Server.init(6464, 'root')
|
16
|
+
Agoo::Server.init(6464, './root')
|
17
17
|
|
18
18
|
class MyHandler
|
19
19
|
def call(req)
|
@@ -50,7 +50,7 @@ class Schema
|
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
|
-
Agoo::Server.init(6464, 'root', thread_count: 1, graphql: '/graphql')
|
53
|
+
Agoo::Server.init(6464, './root', thread_count: 1, graphql: '/graphql')
|
54
54
|
Agoo::Server.start()
|
55
55
|
Agoo::GraphQL.schema(Schema.new) {
|
56
56
|
Agoo::GraphQL.load(%^type Query { hello: String }^)
|
@@ -68,7 +68,7 @@ sleep
|
|
68
68
|
gem install agoo
|
69
69
|
```
|
70
70
|
|
71
|
-
## Using
|
71
|
+
## Using Agoo as a server for Rails
|
72
72
|
|
73
73
|
As agoo supports rack compatible apps you can use it for rails applications:
|
74
74
|
|
@@ -111,6 +111,22 @@ use of rack compatible gems such as Hanami and Rails. Agoo also supports WebSock
|
|
111
111
|
|
112
112
|
Agoo is not available on Windows.
|
113
113
|
|
114
|
+
## Getting Started
|
115
|
+
|
116
|
+
Some examples can be found in the `example` directory. Some other
|
117
|
+
documented walk through examples of using Agoo are in the `misc`
|
118
|
+
directory. These examples are described in markdown files. Some like
|
119
|
+
the [song](misc/song.md) example are simple while others like the
|
120
|
+
[glue](misc/glue.md) are more complex. The documented walk through
|
121
|
+
examples are:
|
122
|
+
|
123
|
+
- [flymd](misc/flymd.md) - realtime push
|
124
|
+
- [glue](misc/glue.md) - publish and subscribe
|
125
|
+
- [optimize](misc/optimize.md) - optimizing static asset use
|
126
|
+
- [push](misc/push.md) - push with Rack
|
127
|
+
- [rails](misc/rails.md) - faster rails
|
128
|
+
- [song](misc/song.md) - fun and simple GraphQL
|
129
|
+
|
114
130
|
## News
|
115
131
|
|
116
132
|
- Version 2.11.0 supports GraphQL subscriptions. TLS (SSL,HTTPS)
|