flon 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/flon/api.rb +26 -2
  3. data/lib/flon/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dadeb3b4469a7ee38098b5e24548f525a32fa08d2577a8f67a64175f34d965e3
4
- data.tar.gz: fe9c3d073b64a8bb443f1ce9b87d33889cb3c2750d255df3979b05563b3bfb42
3
+ metadata.gz: 8ee60b02eefeb3a8f87ee4192c46812b52fec4c16329cc42bdc7d3cc157b3db3
4
+ data.tar.gz: 891a30be0b35214ba4a9b4217db5eb8437d30b59d6910cc281c08bc13dcfe84b
5
5
  SHA512:
6
- metadata.gz: 15663df435d9955f82ddc991955537919007a7e0c220dd380d435f8ba8cfc1593352155a5f7eed8dcb74efa2632ef295bda620dd8fc68e5d1beaa50f17f0c2a8
7
- data.tar.gz: f10055e8e158a2a9a7f9c72c51a469d408558c9bec5c46d4ceee7a9c59b8af50dbdd359dc7b5fe008b69e86e86f1e2b58ca8348ada6f93c4ad1b735250b513c8
6
+ metadata.gz: 352125d3bcac412efd6b2cfcd09cb2ef68a61109882ecd6b7a7e7ec7e7ca9fc8dc37b032e1f04d67d6d2b02cdd185df1307d4d8dd18cc8da9b2f1bcc2a17a992
7
+ data.tar.gz: 3bbc63e9bd01e19ab241930341490aaa937d6a76e83000cdd7be47b3ee6058d46fe39e13069c15d44891caae6f956f44fa33739dfe5110a05dc716b6fd5f2247
@@ -7,9 +7,33 @@ require 'uri'
7
7
  module Flon
8
8
  # Represents a request.
9
9
  class Request
10
- attr_reader :body, :headers, :method, :params, :path, :query_params,
11
- :route_params, :url
10
+ # @return [String] the body of the request
11
+ attr_reader :body
12
12
 
13
+ # @return [Hash{String => String}] the headers of the request
14
+ attr_reader :headers
15
+
16
+ # @return [Symbol] the request's method as a lowercase symbol
17
+ attr_reader :method
18
+
19
+ # @return [Hash{String => String}] the merged hash of {route_params} and
20
+ # {query_params}. Route parameters take precedence
21
+ attr_reader :params
22
+
23
+ # @return [String] the request's path
24
+ attr_reader :path
25
+
26
+ # @return [Hash{Symbol => String}] the query parameters from the query
27
+ # string
28
+ attr_reader :query_params
29
+
30
+ # @return [Hash{Symbol => String}] the route parameters
31
+ attr_reader :route_params
32
+
33
+ # @return [URI] the URL associated with this request
34
+ attr_reader :url
35
+
36
+ # @api private
13
37
  def initialize(method, rack_request, route_params, body)
14
38
  @body = body
15
39
  @headers = rack_request.env
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Flon
4
4
  # Flon's version.
5
- VERSION = '0.3.0'
5
+ VERSION = '0.3.1'
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - unleashy
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-09-13 00:00:00.000000000 Z
11
+ date: 2019-09-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mustermann