rack-mini-profiler 1.1.0 → 1.1.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: b2764a7d1387cba061653cb89ddd4088ce5c4f83c8b094e0798378d45b3c7f8c
4
- data.tar.gz: 5bd9f160a6b95d203f5a23226023a5f5f415e9eace61a3244858b9954e08f818
3
+ metadata.gz: 218654859652cf8b2880281028b2e9038fc98729179e69d18a50d6a551db74ca
4
+ data.tar.gz: 1327b7e9be36b375167d3cb4545559f3bce7913cddf8dd7983a629629fcc6f97
5
5
  SHA512:
6
- metadata.gz: 100fb4ccda742c715ea51c7c8b52c427bdc2a368feffadada41a00af108258e348f018336afb51f591a7df1866a4a15fce587d9edaf1f0fd71928f53511c96b6
7
- data.tar.gz: 274f3325b95217b956e7b997a7098698e7697e9f5907305167244935ac82fcbe4cbe54e4adf7330967b01452f39be0e867576d61ae76a6096daa8dca97049b5d
6
+ metadata.gz: cc46de1991564f624ed3ba1ce5176c1ffeebf3602f7372c4b0e3349d3caa145cd9eb60442fc84450cb1d6bc4e2f106f47119ff9b684e71779bbd47aedf3365d8
7
+ data.tar.gz: bb01320c9d1aa42aa963b1b4a957912d40b25314973403d26db61fec2f3b413cc62ecd2afafb74f3c5c74d43de7fb595ead352c596f98fd947be082ec608f7ca
data/CHANGELOG.md CHANGED
@@ -1,11 +1,16 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.1.1 2019-22-10
4
+
5
+ - [FIX] correct JavaScript fetch support header iteration (Jorge Manrubia)
6
+
3
7
  ## 1.1.0 2019-10-01
4
8
 
5
9
  - [FEATURE] remove jQuery dependency, switch template library to dot.js
6
10
  - [FEATURE] disable all sensitive debugging methods by default (env, memory profiling) can be enabled with enable_advanced_debugging_tools.
7
11
  - [FIX] when conditionally requiring rack mini profiler, asset precompile could fail
8
12
  - [FEATURE] `/rack-mini-profiler/requests` can be used to monitor all requests for apps that do not have a UI (like API apps)
13
+ - [SECURITY] XSS injection in `?pp=help` via rogue uri
9
14
 
10
15
  ## 1.0.2 2019-02-05
11
16
 
data/lib/html/includes.js CHANGED
@@ -851,8 +851,7 @@ var MiniProfiler = (function() {
851
851
  try {
852
852
  // look for x-mini-profile-ids
853
853
  var entries = response.headers.entries();
854
- for (var i = 0; i < entries.length; i++) {
855
- var pair = entries[i];
854
+ for (var pair of entries) {
856
855
  if (pair[0] && pair[0].toLowerCase() == "x-miniprofiler-ids") {
857
856
  var ids = pair[1].split(",");
858
857
  fetchResults(ids);
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  module Rack
3
3
  class MiniProfiler
4
- ASSET_VERSION = '0ade3000608cde95db93022b6576d63a'
4
+ ASSET_VERSION = '78c6284a16ddee0a374b89ee28505049'
5
5
  end
6
6
  end
@@ -10,8 +10,10 @@ module Rack
10
10
  def initialize(args = nil)
11
11
  require 'dalli' unless defined? Dalli
12
12
  args ||= {}
13
+
13
14
  @prefix = args[:prefix] || "MPMemcacheStore"
14
15
  @prefix += "-#{Rack::MiniProfiler::VERSION}"
16
+
15
17
  @client = args[:client] || Dalli::Client.new
16
18
  @expires_in_seconds = args[:expires_in] || EXPIRES_IN_SECONDS
17
19
  end
@@ -58,7 +58,7 @@ module Rack
58
58
  end
59
59
 
60
60
  def initialize_locks
61
- @token_lock = Mutex.new
61
+ @token_lock = Mutex.new
62
62
  @timer_struct_lock = Mutex.new
63
63
  @user_view_lock = Mutex.new
64
64
  @timer_struct_cache = {}
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rack
4
4
  class MiniProfiler
5
- VERSION = '1.1.0'
5
+ VERSION = '1.1.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-mini-profiler
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Saffron
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2019-10-01 00:00:00.000000000 Z
13
+ date: 2019-10-22 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rack