chespirito 0.0.5 → 0.0.6

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: 20fa9bd6c4f6ac083d413dad7a922c742828b085c279dc87158298e993e70c4c
4
- data.tar.gz: e28284cf6523b591d37963dcc19a8991b8be5bbb36390c2d10b068d55a219768
3
+ metadata.gz: c6e57f131192cd5e4fccd6513926bf22c6221c51eacff85682a5900da9146a02
4
+ data.tar.gz: e26e3605892b0c75f78d5857317dab7fa9843fc67eb1c6a0a323aa582bf320d2
5
5
  SHA512:
6
- metadata.gz: fba07ce5f4fde7a1d1fd50e03b40c966a9b8d1101579c6f698ffd2ec604675c7b731cf10fc0055ca07704e595ef51ca8a5c6b86461c0c3f8919254b648cda481
7
- data.tar.gz: bb87273a7c007c59d1ae5de8997cb561e6fa251d119c3901b61b8c5bb221ded915cd81f505a45757c1dfda15cb8aa9c914217336dafd7b41d2e043dffb6e4ebd
6
+ metadata.gz: d03aa51776141a12f14e923bd5fd774bfd311afaa15f76ba59efe210f69b6c55e0ccec8ce5378b2d9a64ebf95cce4e1af04bb54a6f8dd106b5ab380d99f65f56
7
+ data.tar.gz: ad890bef910d07425723aa21eb60468e55c9106304f5cbd7cc1ed710e608978feea72a0e119a94c201335231c56152482359286732b6d2a886b27e3a19ac69b2
data/Gemfile.lock CHANGED
@@ -28,6 +28,7 @@ GEM
28
28
 
29
29
  PLATFORMS
30
30
  aarch64-linux
31
+ x86_64-linux
31
32
 
32
33
  DEPENDENCIES
33
34
  adelnor
data/chespirito.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'chespirito'
5
- spec.version = '0.0.5'
5
+ spec.version = '0.0.6'
6
6
  spec.summary = 'Chespirito Ruby web framework'
7
7
  spec.description = 'A dead simple, yet Rack-compatible, web framework written in Ruby'
8
8
  spec.authors = ['Leandro Proença']
@@ -21,7 +21,7 @@ module Chespirito
21
21
  rack_request = Rack::Request.new(env)
22
22
 
23
23
  body_params = rack_request.post? ? parse_body_params(rack_request.body.read,
24
- rack_request.env) : {}
24
+ rack_request) : {}
25
25
 
26
26
  params = rack_request.params.merge(body_params)
27
27
 
@@ -34,8 +34,10 @@ module Chespirito
34
34
  )
35
35
  end
36
36
 
37
- def self.parse_body_params(body_data, request_env)
38
- content_type = request_env['Content-Type'] || request_env['content-type']
37
+ def self.parse_body_params(body_data, rack_request)
38
+ content_type = rack_request.env['Content-Type'] ||
39
+ rack_request.env['content-type'] ||
40
+ rack_request.content_type
39
41
 
40
42
  case content_type
41
43
  in 'application/json'; JSON.parse(body_data)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chespirito
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leandro Proença
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-05 00:00:00.000000000 Z
11
+ date: 2024-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -76,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
76
  - !ruby/object:Gem::Version
77
77
  version: '0'
78
78
  requirements: []
79
- rubygems_version: 3.4.10
79
+ rubygems_version: 3.5.3
80
80
  signing_key:
81
81
  specification_version: 4
82
82
  summary: Chespirito Ruby web framework