rubypitaya 2.6.2 → 2.6.3

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: c672f796a231d14e126b7b42d980075f76ebfb7d83852dd96c5688fac04985b8
4
- data.tar.gz: e2ec6f586610ceb65133db1bcd95af57a564d7383b970d4663bb4e1795e63560
3
+ metadata.gz: 2b367c2b1b6a1bbd272c216dc53b07444bc76ee014126735d2e815299910dfea
4
+ data.tar.gz: 626cbd30f338f766de59000a1a7b659d6086e7b64b80c9c6090c05c9e493f908
5
5
  SHA512:
6
- metadata.gz: af40b96540235382accc8d85c00058f15f2c2a65106fe02777ffbcca2836f818f010775c31b578ffb51f09714d4626e8317d2c1531da0efa1598233d60bc33ff
7
- data.tar.gz: 7eaa5717f33fcbe317683d95bca06cede05512974dca832372f0b14124fbef365ba15afc1c34cfaa666ded32b855891850c91fa2c4487c391591c40cadb39aa2
6
+ metadata.gz: e17f34d833d731125d1a1940b235f5966dba02b82a9b8688cd825bae0902816296bc39c0a8dc0c9be7a13368ca145cbc339b16634ae758b8475ce0c8392eed82
7
+ data.tar.gz: cead4eea29f929c9cde46fa007967052bb735f83088359b59360fbd15402b9ae87c9ca84ded405ed3e4d1653ae11ee8a505a6f8ec5c3052beb7a0f9328658b60
@@ -1,6 +1,6 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- gem 'rubypitaya', '2.6.2'
3
+ gem 'rubypitaya', '2.6.3'
4
4
 
5
5
  group :development do
6
6
  gem 'pry', '0.12.2'
@@ -69,7 +69,7 @@ GEM
69
69
  rspec-support (~> 3.8.0)
70
70
  rspec-support (3.8.3)
71
71
  ruby2_keywords (0.0.2)
72
- rubypitaya (2.6.2)
72
+ rubypitaya (2.6.3)
73
73
  activerecord (= 6.0.2)
74
74
  etcdv3 (= 0.10.2)
75
75
  eventmachine (= 1.2.7)
@@ -106,7 +106,7 @@ DEPENDENCIES
106
106
  listen (= 3.2.1)
107
107
  pry (= 0.12.2)
108
108
  rspec (= 3.8.0)
109
- rubypitaya (= 2.6.2)
109
+ rubypitaya (= 2.6.3)
110
110
 
111
111
  BUNDLED WITH
112
112
  1.17.2
@@ -17,8 +17,10 @@ module RubyPitaya
17
17
  @setup = settings.setup
18
18
  @config = settings.config
19
19
 
20
- request_body = request.body.read
21
- @params.merge!(JSON.parse(request_body)) if !request_body.blank?
20
+ if request.content_type == 'aplication/json'
21
+ request_body = request.body.read
22
+ @params.merge!(JSON.parse(request_body)) if !request_body.blank?
23
+ end
22
24
 
23
25
  @params = Parameters.new(@params)
24
26
  end
@@ -1,3 +1,3 @@
1
1
  module RubyPitaya
2
- VERSION = '2.6.2'
2
+ VERSION = '2.6.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubypitaya
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.2
4
+ version: 2.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luciano Prestes Cavalcanti