rails_request 0.1.1 → 0.1.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
  SHA256:
3
- metadata.gz: 632a63a64f7637f15c5718a4e1da46175e94e345e79119be8371936ac2d4da5a
4
- data.tar.gz: c9e81c7c5f69754913963bd2c94d4c8b035eae6fa9f1bb8608108832e4274c76
3
+ metadata.gz: 793b90fb852031e3098f92f0ab5da953cdf139b8d02988b7c526b439fdc6cd3a
4
+ data.tar.gz: 81865850add651675e3adb22b0f12681311c8f52055c147105262246cbd158af
5
5
  SHA512:
6
- metadata.gz: 152d59f2dd982ae93534d500319afa64051ba7824134bbf07159f0715375b77928e4c7aa3c5d3c4e544e126965820e86cf26f925c6582d26bde0bc33262d138f
7
- data.tar.gz: 54a7ae0e6bb1df5d860cae9b6081c31e6f03f31c8247535af6ca1cf7e748d231bf46393fb207d4332370f3c43f27e346a3341691be221106d1ba88b3c055da7d
6
+ metadata.gz: a1f672bf2ac410f365dd4edb02921f8b0810d0b6bc64f87a10ed59bc1eee3a6d5765725b6feef372c973dd303303348d547e61ded66f7cbf1c561d269d3a37c3
7
+ data.tar.gz: efe1e5ccb881b8fd7045e7a393279cb7d38dd8ce86b3489d45ef964a44cb66934941ba8f8468d735dbafdc4341977d87eb4f4f20ed395fc9dd127284f4ed2bed
data/README.md CHANGED
@@ -7,7 +7,7 @@ _Rails_ toolkit for debugging and inspecting requests.
7
7
  Add the gem to your `Gemfile`
8
8
 
9
9
  ```ruby
10
- gem 'rails_request', '~> 0.1.1'
10
+ gem 'rails_request', '~> 0.1.2'
11
11
  ```
12
12
 
13
13
  And rebuild your bundle:
@@ -31,6 +31,8 @@ module RailsRequest
31
31
  private
32
32
 
33
33
  def headers
34
+ return [] if @payload[:headers].nil?
35
+
34
36
  @payload[:headers]
35
37
  .select { |key, *_| key.start_with?('HTTP') }
36
38
  .map do |key, value|
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsRequest
4
- VERSION = '0.1.1'
4
+ VERSION = '0.1.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_request
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bob Farrell
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-24 00:00:00.000000000 Z
11
+ date: 2020-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler