em-midori 0.4.1.1 → 0.4.2

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
  SHA1:
3
- metadata.gz: fe164b2d39f66b8797b8617d376ac75190bb8aa5
4
- data.tar.gz: 769c292ec327ff80dd1675232beb4244676827ff
3
+ metadata.gz: c80a917fa69456955d10f10036886a7445bca15c
4
+ data.tar.gz: 28ecd05ea65723f67ba545e6be6e1f34a8f5030d
5
5
  SHA512:
6
- metadata.gz: 26b6bfe37110be05a7ea3bd669262315d70a67dae2f00508366fb4009fa787334efdd1a9693f2abbf760a6fa8d43135d9238f4c75c150d04a10d76149ab801dd
7
- data.tar.gz: 877fea0c0b5226ee01b5e1e6464afe4f0280def8215ca57992f8aeae42a4002f6e71a004b74e64d92e652df4bfb92be82ab9bb51e0a6fa982f7421ce74e8ba38
6
+ metadata.gz: a656d1190211f0e6498a09ad538e4ad22b35e00ef3ba1e92cb9b33b90f16de0d98bdfd186f0612fa42716ce5b17040410b2eabfe7942518ef4e8f860ef15b12d
7
+ data.tar.gz: '0487fa8725a8780fb981f60a93107a6f182c8274cf4ebb83526196cc879940ab882803e22dbdde9d93c6871c7889f1eeec67093f642c5fd19d9b7787e203e73a'
@@ -4,7 +4,7 @@
4
4
  {
5
5
  "path": ".",
6
6
  "folder_exclude_patterns": [".resources", "coverage"],
7
- "file_exclude_patterns": ["em-midori-*.gem","*.sublime-workspace","logo.png",".DS_Store","CONTRIBUTOR_COVENANT_CODE_OF_CONDUCT.md"]
7
+ "file_exclude_patterns": ["em-midori-*.gem","*.sublime-workspace","logo.png",".DS_Store","CODE_OF_CONDUCT.md","CONTRIBUTING.md"]
8
8
  }
9
9
  ],
10
10
  "settings":
@@ -3,9 +3,10 @@
3
3
  # @attr [String] ip client ip address
4
4
  # @attr [Integer] port client port
5
5
  # @attr [String] protocol protocol version of HTTP request
6
- # @attr [String] method HTTP method
6
+ # @attr [Symbol] method HTTP method
7
7
  # @attr [String] path request path
8
- # @attr [String] query_string request query string
8
+ # @attr [Hash | nil] query_param parameter parsed from query string
9
+ # @attr [String | nil] query_string request query string
9
10
  # @attr [Hash] header request header
10
11
  # @attr [String] body request body
11
12
  # @attr [Boolean] parsed whether the request header parsed
@@ -13,7 +14,7 @@
13
14
  # @attr [Hash] params params in the url
14
15
  class Midori::Request
15
16
  attr_accessor :ip, :port,
16
- :protocol, :method, :path, :query_string,
17
+ :protocol, :method, :path, :query_param, :query_string,
17
18
  :header, :body, :parsed, :body_parsed, :params
18
19
 
19
20
  # Init Request
@@ -32,7 +33,10 @@ class Midori::Request
32
33
  @header = @parser.headers
33
34
 
34
35
  @query_string = @path.match(/\?(.*?)$/)
35
- @query_string = @query_string[1] unless @query_string.nil?
36
+ unless @query_string.nil?
37
+ @query_string = @query_string[1]
38
+ @query_param = CGI::parse(@query_string)
39
+ end
36
40
  @path.gsub!(/\?(.*?)$/, '')
37
41
  @method = @method.to_sym
38
42
  @parsed = true
@@ -1,5 +1,5 @@
1
1
  # Midori Module
2
2
  module Midori
3
3
  # Current Version Code
4
- VERSION = '0.4.1.1'.freeze
4
+ VERSION = '0.4.2'.freeze
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: em-midori
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - HeckPsi Lab
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-27 00:00:00.000000000 Z
11
+ date: 2017-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: murasaki