debugbar 0.4.0 → 0.4.1

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: 6aba562e1aed30badc070345aa43832a4446332e7106ec29fd8cb3b8ceffdcba
4
- data.tar.gz: 5bdc9a1ffe211db11e665f5fa07eb0a526da894b529ba091b78195e2dc6bafdf
3
+ metadata.gz: 8e785af28c739c6cc9e994f3b6d650f92301bb26ef35ed8b267229df4790c9e8
4
+ data.tar.gz: 16224fff5dc65878d274e265b362f9779320482dad8ede2833a2b83bf13e9bcf
5
5
  SHA512:
6
- metadata.gz: bce8023b7873a7d6975e7da731dbcdc67b29b1333d5995988c50b209ae0616e23dafa2201d6854fd5298fa738b85e34a89a4f7ee2439f25863dcb24a95061c02
7
- data.tar.gz: 47cf338f0bad77e1fa45e6d85f26cc25456adf592d10ee9ea8affe427d7c9a5fb0b74cd39b3f1e367070f43736ed14cfa7afd3ea24b36355255be258d5140327
6
+ metadata.gz: 45ceef2ea931c265152544862f2b13ac544cd76f8051bf60fb52027dede0c7e8dc7da70ab638c43442f711bb7c5a37247ada7b78c6b218be4994c0fb41f9beec
7
+ data.tar.gz: 7961b48ce065f62e6aab4d02583b0ce30d76fcaafa856b5e383d4dc8b4c20ea4dac4ed7304ba837596344637a17a60b9de4376e715efba7f06956dd8372b2480
data/build_fixtures.rb CHANGED
@@ -25,7 +25,8 @@ Net::HTTP.start('127.0.0.1', 3000) do |http|
25
25
  response = http.request Net::HTTP::Get.new('/_debugbar/poll')
26
26
  data = JSON.parse(response.body)
27
27
  data.each_with_index do |item, idx|
28
- name = ("%03d" % (idx +1)) + '-' + item['meta']['controller'] + '-' + item['meta']['action']
29
- File.write("#{fixtures_dir}/#{name}.json", JSON.pretty_generate(item))
28
+ filename = ("%03d" % (idx +1)) + '-' + item['meta']['controller'] + '-' + item['meta']['action'] + '.json'
29
+ puts "Writing #{filename}"
30
+ File.write("#{fixtures_dir}/#{filename}", JSON.pretty_generate(item))
30
31
  end
31
32
  end
@@ -32,6 +32,8 @@ module Debugbar
32
32
  end
33
33
 
34
34
  def self.from_rack(rack_res)
35
+ return nil if rack_res.nil?
36
+
35
37
  headers = rack_res.headers.to_h.transform_keys { |s| s.split('-').map(&:capitalize).join('-') }
36
38
 
37
39
  new(rack_res.status, headers, rack_res.body)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Debugbar
4
- VERSION = "0.4.0"
4
+ VERSION = "0.4.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: debugbar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julien Bourdeau