yaframework 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -1
- data/lib/yaframework/base.rb +5 -2
- data/lib/yaframework/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1023ffdf696fe0cca466c59e707504d1087fd4433d1cfaf44d17a0e7056d4196
|
4
|
+
data.tar.gz: 93dd4318d8a209a8dd40fc5a1b2d9dc8e3d233a1fa92f4e3883f0ca74067e71e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d3eab3431ab7170cfe6367a258b33b32404abcb97ac8f8853bf9a4959cd6528b92edfbe014ee9a8e14afe6b7a445fe76dd198787ff7b927162dc6217a4192886
|
7
|
+
data.tar.gz: 0b5701763d06e37cb4f71ec494e38280998110ca698dd00ce9c1ea31373204a561028f9ee14dcdb6e7f604c28dbe76b17447c3306f025eeb2c56ee1e8d61e29c
|
data/.rubocop.yml
CHANGED
data/lib/yaframework/base.rb
CHANGED
@@ -4,8 +4,7 @@ require "rack"
|
|
4
4
|
|
5
5
|
module Yaframework
|
6
6
|
class Base
|
7
|
-
attr_reader :routes,
|
8
|
-
:request
|
7
|
+
attr_reader :routes, :request, :response, :params, :env
|
9
8
|
|
10
9
|
def initialize
|
11
10
|
@routes = {}
|
@@ -19,6 +18,10 @@ module Yaframework
|
|
19
18
|
|
20
19
|
def call(env)
|
21
20
|
@request = Rack::Request.new(env)
|
21
|
+
@response = Rack::Response.new
|
22
|
+
@params = request.params
|
23
|
+
@env = env
|
24
|
+
|
22
25
|
verb = @request.request_method
|
23
26
|
path = @request.path_info
|
24
27
|
|
data/lib/yaframework/version.rb
CHANGED