nephos-server 0.1.12 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +28 -26
- data/version +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fcb7aa9582d5c9f6c31f3252e7f88fb3b377c4f8
|
4
|
+
data.tar.gz: 87ae300cdf0bf5393126f88e2405a5e0d00e3071
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 518e7c26b6ccc4cfcc88df7be28179821eaa33f4b6fd5f741b97f2001d1785a7d2c90ac0ba048203d8969dd68be2b96375a601f158411f367367b5b1322f1480
|
7
|
+
data.tar.gz: bf72f37accfbf6bc465d624c2dffe98c835857f4574319c9c226b2042bfd62eaaef78eaaff29166e71d9bc162502ec910dec2e489e0d4c5672e3bea77c9931f5
|
data/README.md
CHANGED
@@ -14,29 +14,6 @@ This is a simple web server, based on rack and puma, with a minimal help:
|
|
14
14
|
|
15
15
|
No templating, no database by default. They are extensions of your choice.
|
16
16
|
|
17
|
-
|
18
|
-
# TODO
|
19
|
-
|
20
|
-
## TODO v0.2
|
21
|
-
|
22
|
-
- Test
|
23
|
-
- Unitary tests
|
24
|
-
- rendering
|
25
|
-
- routing
|
26
|
-
- Documentation
|
27
|
-
- Render Api
|
28
|
-
- Routing
|
29
|
-
|
30
|
-
## TODO v1
|
31
|
-
- Improved Routing (more helper options)
|
32
|
-
- Improved Rendering (more options)
|
33
|
-
- Guide about
|
34
|
-
- Controllers
|
35
|
-
- Routing
|
36
|
-
- Api Creation
|
37
|
-
- Database creation
|
38
|
-
- Web HTML with templating
|
39
|
-
|
40
17
|
# Start
|
41
18
|
|
42
19
|
```sh
|
@@ -49,7 +26,14 @@ nephos-server -p 8080 # port is not required
|
|
49
26
|
|
50
27
|
# Documentation
|
51
28
|
|
52
|
-
##
|
29
|
+
## Guides
|
30
|
+
|
31
|
+
### [Render API](DOCUMENTATION/API_RENDER.md)
|
32
|
+
### [Routing GUIDE](DOCUMENTATION/GUIDE_ROUTING.md)
|
33
|
+
|
34
|
+
## Examples
|
35
|
+
|
36
|
+
### Controller
|
53
37
|
|
54
38
|
To create a controller, simply add it to ``controllers/``.
|
55
39
|
The basic code of a controller can be generated via ``nephos-generator controller NAME``.
|
@@ -62,7 +46,7 @@ class Example < Nephos::Controller
|
|
62
46
|
end
|
63
47
|
```
|
64
48
|
|
65
|
-
|
49
|
+
### Rendering
|
66
50
|
|
67
51
|
In a controller, use:
|
68
52
|
|
@@ -76,7 +60,7 @@ return {type: "image/jpeg", content: File.read("images/photo.jpg")}
|
|
76
60
|
return :empty
|
77
61
|
```
|
78
62
|
|
79
|
-
|
63
|
+
### Routing
|
80
64
|
|
81
65
|
Like in ``/routes.rb``, you have to route manually the api.
|
82
66
|
|
@@ -90,3 +74,21 @@ resource "infos" do
|
|
90
74
|
get url: "/", controller: "MainController", method: "root" # generate /infos
|
91
75
|
end
|
92
76
|
```
|
77
|
+
|
78
|
+
|
79
|
+
# Developers: TODO
|
80
|
+
|
81
|
+
## TODO v0.3
|
82
|
+
- Improve documentation (fix, coverage)
|
83
|
+
- Improve unitary test coverage
|
84
|
+
- Improve syntax coherence (router/render, file position, ...)
|
85
|
+
|
86
|
+
## TODO v1
|
87
|
+
- Improved Routing (more helper options)
|
88
|
+
- Improved Rendering (more options)
|
89
|
+
- Guide about
|
90
|
+
- Controllers
|
91
|
+
- Routing
|
92
|
+
- Api Creation
|
93
|
+
- Database creation
|
94
|
+
- Web HTML with templating
|
data/version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.2.0
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nephos-server
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- poulet_a
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-08-
|
11
|
+
date: 2015-08-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nomorebeer
|