capybara_test_helpers 1.0.2 → 1.0.3
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/CHANGELOG.md +4 -0
- data/lib/capybara_test_helpers/benchmark_helpers.rb +2 -9
- data/lib/capybara_test_helpers/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: 6f4a30d6c705cf0796a86df659b86b09f110a545e910a38185409ddaed812645
|
4
|
+
data.tar.gz: 6e76655a1cc49c9b5242d023bb4085cf3aed55ae9fa4bbbf9db5b8deb21b3f8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d23884f2f698a54b637786ebe9afd9ea5f723405672713ca5e26f474076a3d956aad1257e8f3303ee0ec47339f2a7feb75ff41f772d2ed3af261856243c1aa7
|
7
|
+
data.tar.gz: 65851bd3bf3fec126c3d91cf111eed65e1e093540e06fb9e9b1b8e2b1fb4102dbc2f4cdd157d0da97aae6cce4c1273a7096770ecff23cb8eeaea7666dc8431b5
|
data/CHANGELOG.md
CHANGED
@@ -4,16 +4,11 @@ require 'active_support/concern'
|
|
4
4
|
require 'active_support/core_ext/numeric/time'
|
5
5
|
require 'rainbow'
|
6
6
|
|
7
|
-
begin
|
8
|
-
require 'amazing_print'
|
9
|
-
rescue LoadError
|
10
|
-
end
|
11
|
-
|
12
7
|
# rubocop:disable Style/ClassVars
|
13
8
|
|
14
9
|
# Public: Keeps track of the running time for user-defined helpers, useful as a
|
15
10
|
# way to keep track of the executed methods, and to easily spot slow operations.
|
16
|
-
module BenchmarkHelpers
|
11
|
+
module CapybaraTestHelpers::BenchmarkHelpers
|
17
12
|
extend ActiveSupport::Concern
|
18
13
|
|
19
14
|
included do
|
@@ -45,10 +40,8 @@ private
|
|
45
40
|
|
46
41
|
# Internal: Indents nested method calls, and adds color to make it readable.
|
47
42
|
def _benchmark_str(method_name:, args:, kwargs:, time:)
|
43
|
+
args += [kwargs] unless kwargs.empty?
|
48
44
|
args_str = args.map(&:inspect)
|
49
|
-
unless kwargs.empty?
|
50
|
-
args_str.push kwargs.respond_to?(:awesome_inspect) ? kwargs.awesome_inspect(multiline: false, ruby19_syntax: true)[2..-3] : kwargs.inspect
|
51
|
-
end
|
52
45
|
[
|
53
46
|
' ' * @@indentation_level,
|
54
47
|
Rainbow(self.class.name.chomp('TestHelper') + '#').slategray.rjust(40),
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capybara_test_helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maximo Mussini
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-11-
|
11
|
+
date: 2020-11-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|