firebug 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop.yml +5 -2
- data/lib/action_dispatch/session/code_igniter_store.rb +3 -2
- data/lib/firebug.rb +1 -1
- data/lib/firebug/crypto.rb +2 -4
- data/lib/firebug/errors.rb +2 -0
- data/lib/firebug/string_io_reader.rb +1 -0
- data/lib/firebug/unserializer.rb +2 -3
- data/lib/firebug/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f325b82b912c9d5724034a312b99499f49183c3c59509c17144fbdca88e06f9
|
4
|
+
data.tar.gz: efdf4899b982206be40c8297169752aaf13914eb61e1f6109932ef99ba46f753
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8888b2e0cc06a0a1f21a981304c3eca2f73517f9e1f1e8b12a53d3faa87ab54ad4adc705273709deab22b85ed264f5c1ed6246de378f8f21f54b8914c1b68e2a
|
7
|
+
data.tar.gz: 9c55376cda286481b81b5a27c840c71c652c458dc71216de270f6ff9db044e561b47b4ff1c531af32414de4a592248149ad6fc74c4f26fb9ca045a88d9042e5b
|
data/.rubocop.yml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require: rubocop-rspec
|
2
2
|
|
3
3
|
AllCops:
|
4
|
-
TargetRubyVersion: 2.
|
4
|
+
TargetRubyVersion: 2.5
|
5
5
|
|
6
6
|
Exclude:
|
7
7
|
- 'bin/*'
|
@@ -14,7 +14,7 @@ Style/Documentation:
|
|
14
14
|
Enabled: false
|
15
15
|
|
16
16
|
Metrics/AbcSize:
|
17
|
-
Max:
|
17
|
+
Max: 20
|
18
18
|
|
19
19
|
Metrics/LineLength:
|
20
20
|
# Commonly used screens these days easily fit more than 80 characters.
|
@@ -31,6 +31,9 @@ Metrics/BlockLength:
|
|
31
31
|
Exclude:
|
32
32
|
- 'spec/**/*'
|
33
33
|
|
34
|
+
Metrics/CyclomaticComplexity:
|
35
|
+
Max: 8
|
36
|
+
|
34
37
|
Layout/SpaceAroundEqualsInParameterDefault:
|
35
38
|
# No space makes the method definition shorter and differentiates
|
36
39
|
# from a regular assignment.
|
@@ -1,12 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
module ActionDispatch
|
4
|
-
module Session
|
3
|
+
module ActionDispatch # :nodoc:
|
4
|
+
module Session # :nodoc:
|
5
5
|
require 'action_dispatch'
|
6
6
|
require_relative '../../firebug/session'
|
7
7
|
|
8
8
|
# A session store for Rails to handle Pyro sessions.
|
9
9
|
class CodeIgniterStore < AbstractStore
|
10
|
+
# The key name used to store the session model in the request env.
|
10
11
|
SESSION_RECORD_KEY = 'rack.session.record'
|
11
12
|
|
12
13
|
# @param [Object] app
|
data/lib/firebug.rb
CHANGED
data/lib/firebug/crypto.rb
CHANGED
@@ -65,13 +65,11 @@ module Firebug
|
|
65
65
|
end
|
66
66
|
end
|
67
67
|
|
68
|
-
# To prevent
|
68
|
+
# To prevent warnings about @opened being uninitialized.
|
69
69
|
class FirebugMcrypt < ::Mcrypt
|
70
|
-
# rubocop:disable
|
71
|
-
def initialize(algorithm, mode, key=nil, iv=nil, padding=nil)
|
70
|
+
def initialize(algorithm, mode, key=nil, iv=nil, padding=nil) # rubocop:disable UncommunicativeMethodParamName
|
72
71
|
@opened = nil
|
73
72
|
super
|
74
73
|
end
|
75
|
-
# rubocop:enable Naming/UncommunicativeMethodParamName
|
76
74
|
end
|
77
75
|
end
|
data/lib/firebug/errors.rb
CHANGED
data/lib/firebug/unserializer.rb
CHANGED
@@ -31,14 +31,14 @@ module Firebug
|
|
31
31
|
#
|
32
32
|
# @raise [ParserError]
|
33
33
|
# @return [Hash, Array, String, Integer, Float, nil]
|
34
|
-
def parse
|
34
|
+
def parse
|
35
35
|
ch = str.getc
|
36
36
|
return if ch.nil?
|
37
37
|
|
38
38
|
str.getc # : or ;
|
39
39
|
case ch
|
40
40
|
when 'a'
|
41
|
-
parse_enumerable
|
41
|
+
parse_enumerable.tap { str.getc }
|
42
42
|
when 's'
|
43
43
|
parse_string
|
44
44
|
when 'i'
|
@@ -63,7 +63,6 @@ module Firebug
|
|
63
63
|
return {} if size.zero?
|
64
64
|
|
65
65
|
val = Array.new(size) { [parse, parse] }
|
66
|
-
str.getc # }
|
67
66
|
if val[0][0].is_a?(Integer)
|
68
67
|
val.map! { |_, v| v }
|
69
68
|
else
|
data/lib/firebug/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: firebug
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Frase
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-03-
|
11
|
+
date: 2019-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|