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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8fbd5a9dfb24f6bda1c0a1f14541a19874ce2ba4947dfe9942968df5d95ce612
4
- data.tar.gz: 20cba9c06d691fdc45f397d458b638b5313f6fedf445ef42ef1f805df9cd8751
3
+ metadata.gz: 2f325b82b912c9d5724034a312b99499f49183c3c59509c17144fbdca88e06f9
4
+ data.tar.gz: efdf4899b982206be40c8297169752aaf13914eb61e1f6109932ef99ba46f753
5
5
  SHA512:
6
- metadata.gz: b055339ae79941d211791a4248fbdf88a3a1190ef214abb7e8e5d2d846e6075b662f104ee2e888f56302229146176d65fc658cd2944c6df8b24d0d0791b1d022
7
- data.tar.gz: d3dec6a39184d14ab579e1c286cd792100943b8e58a52a89b4237b3d6e0482653886840de227035b0feaf3019b38a81b1deb9cfba9a042ffe5eb1aeb0d8b362f
6
+ metadata.gz: 8888b2e0cc06a0a1f21a981304c3eca2f73517f9e1f1e8b12a53d3faa87ab54ad4adc705273709deab22b85ed264f5c1ed6246de378f8f21f54b8914c1b68e2a
7
+ data.tar.gz: 9c55376cda286481b81b5a27c840c71c652c458dc71216de270f6ff9db044e561b47b4ff1c531af32414de4a592248149ad6fc74c4f26fb9ca045a88d9042e5b
@@ -1,7 +1,7 @@
1
1
  require: rubocop-rspec
2
2
 
3
3
  AllCops:
4
- TargetRubyVersion: 2.4
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: 18
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
@@ -8,7 +8,7 @@ require_relative 'firebug/unserializer'
8
8
  require_relative 'firebug/configuration'
9
9
  require_relative 'action_dispatch/session/code_igniter_store'
10
10
 
11
- module Firebug
11
+ module Firebug # :nodoc:
12
12
  class << self
13
13
  attr_writer :configuration
14
14
 
@@ -65,13 +65,11 @@ module Firebug
65
65
  end
66
66
  end
67
67
 
68
- # To prevent errors about @opened being uninitialized.
68
+ # To prevent warnings about @opened being uninitialized.
69
69
  class FirebugMcrypt < ::Mcrypt
70
- # rubocop:disable Naming/UncommunicativeMethodParamName
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
@@ -1,6 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Firebug
4
+ # Base error class.
4
5
  FirebugError = Class.new(StandardError)
6
+ # An error unserializing a string.
5
7
  ParserError = Class.new(FirebugError)
6
8
  end
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Firebug
4
+ # Class for reading a string
4
5
  class StringIOReader < StringIO
5
6
  # Reads data from the buffer until +char+ is found.
6
7
  #
@@ -31,14 +31,14 @@ module Firebug
31
31
  #
32
32
  # @raise [ParserError]
33
33
  # @return [Hash, Array, String, Integer, Float, nil]
34
- def parse # rubocop:disable CyclomaticComplexity
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
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Firebug
4
4
  # The current version of Firebug
5
- VERSION = '1.2.0'
5
+ VERSION = '1.2.1'
6
6
  end
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.0
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-28 00:00:00.000000000 Z
11
+ date: 2019-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack