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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e7a479f2bf2f12810b9b16491e1e23977b71231de949e482f85ab8347a46a75e
4
- data.tar.gz: 95547e19dc23c7afee15973f2423fe51145b24a04fba435b6efdbe51d0ce3531
3
+ metadata.gz: 1023ffdf696fe0cca466c59e707504d1087fd4433d1cfaf44d17a0e7056d4196
4
+ data.tar.gz: 93dd4318d8a209a8dd40fc5a1b2d9dc8e3d233a1fa92f4e3883f0ca74067e71e
5
5
  SHA512:
6
- metadata.gz: 484558b99bd73c24686ed9b46b5ed90209e4cee5dd85337068768f7634b60f8f05174f35f2ccc5b5ebfb832159007461d1209f7156dd52ee1718f8652187493e
7
- data.tar.gz: e88e02703af13cf829d97e47bcde0023a69865a778f4a071622499ff3227f60f83047b6de2da513591ff466510f8ae704d32f890eac2375311eb61d19cfdfc09
6
+ metadata.gz: d3eab3431ab7170cfe6367a258b33b32404abcb97ac8f8853bf9a4959cd6528b92edfbe014ee9a8e14afe6b7a445fe76dd198787ff7b927162dc6217a4192886
7
+ data.tar.gz: 0b5701763d06e37cb4f71ec494e38280998110ca698dd00ce9c1ea31373204a561028f9ee14dcdb6e7f604c28dbe76b17447c3306f025eeb2c56ee1e8d61e29c
data/.rubocop.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  AllCops:
2
- TargetRubyVersion: 2.5
2
+ TargetRubyVersion: 2.4
3
3
 
4
4
  Style/StringLiterals:
5
5
  Enabled: true
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Yaframework
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yaframework
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - maxbarsukov