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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +28 -26
  3. data/version +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9ef589e2b56701d6cdac117476c0672b3cf0aced
4
- data.tar.gz: 1dc8dbfcb20cdbb48ea3692731561136068dcd19
3
+ metadata.gz: fcb7aa9582d5c9f6c31f3252e7f88fb3b377c4f8
4
+ data.tar.gz: 87ae300cdf0bf5393126f88e2405a5e0d00e3071
5
5
  SHA512:
6
- metadata.gz: a4a2e21ee155c0350c9c2727262fea00005bcfb9588b8b42ce1ba830290c783daff6e527afa748a34539761005ba6f01bd33393350bee6781826325e8ed237af
7
- data.tar.gz: 773200898dc45b06b7c8cb4f82ab39a35539ae5b5698e4dbf1ceb7c773506633e5ca6c74cb9c16099ae22b5e7699d5c3034d6368b79e1c79b78d40a7b18c3c69
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
- ## Controller
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
- ## Rendering
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
- ## Routing
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.12
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.1.12
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-24 00:00:00.000000000 Z
11
+ date: 2015-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nomorebeer