etalon 0.1.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +12 -0
- data/.ruby-version +1 -1
- data/.travis.yml +0 -2
- data/CHANGELOG.md +16 -1
- data/Gemfile.lock +43 -38
- data/README.md +4 -2
- data/etalon.gemspec +4 -5
- data/lib/etalon.rb +2 -2
- data/lib/etalon/version.rb +1 -1
- metadata +19 -32
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f7030cd5a80ea7819a30645a0c95cb733aa482ddf4b42f9860885a5a4910b76
|
4
|
+
data.tar.gz: 1f6c53cdd03b03decaa3ee2eab91b11232dd348b66fe98cc04695e413c989ca4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3cc06a2b87b70313dfd5db955286dfc4df322be9bc6df22adf9bdd869932663876fceee08fb8d94c45cc7f73c69e01a5efbde5dc31f20c99eda65b905f78dadb
|
7
|
+
data.tar.gz: b977e5d264ddda7f4929299d07bffb9103620d247150c00034b4ad2826a258a792dfd0cf54929f451e98e84e91f88968d683d842665ac3b24bad6fcc6575f6dd
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
3.0.2
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -6,8 +6,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
-
##
|
9
|
+
## 1.0.0 - July 15, 2021
|
10
|
+
|
11
|
+
### Change (backward incompatible)
|
12
|
+
|
13
|
+
- Require activesupport 5.2.x because earlier releases are no longer
|
14
|
+
maintained for security fixes. This is likely a breaking change if you
|
15
|
+
depend on an outdated version of Rails or Active Support, but you should
|
16
|
+
seriously consider upgrading and keep an eye on the [Rails maintenance
|
17
|
+
policy][rmp].
|
18
|
+
- Add compatibility with Ruby 3.0
|
19
|
+
|
20
|
+
[rmp]: https://guides.rubyonrails.org/maintenance_policy.html
|
21
|
+
|
22
|
+
## 0.1.0 - February 05, 2019
|
23
|
+
|
10
24
|
### Added
|
25
|
+
|
11
26
|
- `Etalon.time` method which accepts a string title as its first argument
|
12
27
|
and a block argument which will store calls matching the same title and
|
13
28
|
compare their minimum, maximum, and average execution time but also the
|
data/Gemfile.lock
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
etalon (
|
5
|
-
activesupport (
|
4
|
+
etalon (1.0.0)
|
5
|
+
activesupport (>= 5.2)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
@@ -12,61 +12,66 @@ GEM
|
|
12
12
|
i18n (>= 0.7, < 2)
|
13
13
|
minitest (~> 5.1)
|
14
14
|
tzinfo (~> 1.1)
|
15
|
-
ast (2.4.
|
16
|
-
byebug (10.0.2)
|
15
|
+
ast (2.4.2)
|
17
16
|
concurrent-ruby (1.0.5)
|
18
|
-
diff-lcs (1.
|
17
|
+
diff-lcs (1.4.4)
|
19
18
|
i18n (1.1.1)
|
20
19
|
concurrent-ruby (~> 1.0)
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
ast (~> 2.4.0)
|
26
|
-
powerpack (0.1.2)
|
20
|
+
minitest (5.14.4)
|
21
|
+
parallel (1.20.1)
|
22
|
+
parser (3.0.2.0)
|
23
|
+
ast (~> 2.4.1)
|
27
24
|
rainbow (3.0.0)
|
28
|
-
rake (
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
rspec-
|
33
|
-
|
34
|
-
rspec-
|
35
|
-
rspec-
|
25
|
+
rake (13.0.6)
|
26
|
+
regexp_parser (2.1.1)
|
27
|
+
rexml (3.2.5)
|
28
|
+
rspec (3.10.0)
|
29
|
+
rspec-core (~> 3.10.0)
|
30
|
+
rspec-expectations (~> 3.10.0)
|
31
|
+
rspec-mocks (~> 3.10.0)
|
32
|
+
rspec-core (3.10.1)
|
33
|
+
rspec-support (~> 3.10.0)
|
34
|
+
rspec-expectations (3.10.1)
|
36
35
|
diff-lcs (>= 1.2.0, < 2.0)
|
37
|
-
rspec-support (~> 3.
|
38
|
-
rspec-mocks (3.
|
36
|
+
rspec-support (~> 3.10.0)
|
37
|
+
rspec-mocks (3.10.2)
|
39
38
|
diff-lcs (>= 1.2.0, < 2.0)
|
40
|
-
rspec-support (~> 3.
|
41
|
-
rspec-support (3.
|
42
|
-
rubocop (
|
43
|
-
jaro_winkler (~> 1.5.1)
|
39
|
+
rspec-support (~> 3.10.0)
|
40
|
+
rspec-support (3.10.2)
|
41
|
+
rubocop (1.18.3)
|
44
42
|
parallel (~> 1.10)
|
45
|
-
parser (>=
|
46
|
-
powerpack (~> 0.1)
|
43
|
+
parser (>= 3.0.0.0)
|
47
44
|
rainbow (>= 2.2.2, < 4.0)
|
45
|
+
regexp_parser (>= 1.8, < 3.0)
|
46
|
+
rexml
|
47
|
+
rubocop-ast (>= 1.7.0, < 2.0)
|
48
48
|
ruby-progressbar (~> 1.7)
|
49
|
-
unicode-display_width (
|
50
|
-
|
51
|
-
|
52
|
-
|
49
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
50
|
+
rubocop-ast (1.7.0)
|
51
|
+
parser (>= 3.0.1.1)
|
52
|
+
rubocop-performance (1.11.4)
|
53
|
+
rubocop (>= 1.7.0, < 2.0)
|
54
|
+
rubocop-ast (>= 0.4.0)
|
55
|
+
ruby-progressbar (1.11.0)
|
56
|
+
standard (1.1.5)
|
57
|
+
rubocop (= 1.18.3)
|
58
|
+
rubocop-performance (= 1.11.4)
|
53
59
|
thread_safe (0.3.6)
|
54
60
|
tzinfo (1.2.5)
|
55
61
|
thread_safe (~> 0.1)
|
56
|
-
unicode-display_width (
|
57
|
-
yard (0.9.
|
62
|
+
unicode-display_width (2.0.0)
|
63
|
+
yard (0.9.26)
|
58
64
|
|
59
65
|
PLATFORMS
|
60
66
|
ruby
|
61
67
|
|
62
68
|
DEPENDENCIES
|
63
|
-
bundler (~>
|
64
|
-
byebug (~> 10.0)
|
69
|
+
bundler (~> 2.2)
|
65
70
|
etalon!
|
66
|
-
rake (~>
|
71
|
+
rake (~> 13.0)
|
67
72
|
rspec (~> 3.8)
|
68
|
-
standard (~>
|
73
|
+
standard (~> 1.1)
|
69
74
|
yard (~> 0.9)
|
70
75
|
|
71
76
|
BUNDLED WITH
|
72
|
-
|
77
|
+
2.2.24
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Etalon [![Build Status][ci-badge]][ci-url]
|
1
|
+
# Etalon [![Build Status][ci-badge]][ci-url] [![Gem Version][gem-badge]][gem-url]
|
2
2
|
|
3
3
|
A simple tool to instrument Ruby code and output basic metrics to a
|
4
4
|
logger or store them in a hash.
|
@@ -50,7 +50,7 @@ Etalon.activate
|
|
50
50
|
=> true
|
51
51
|
|
52
52
|
Etalon.print_timings
|
53
|
-
=> {:making_taters=>["count: 1", "min: 0", "max: 400", "mean: 400.0", "deviation: 0
|
53
|
+
=> {:making_taters=>["count: 1", "min: 0", "max: 400", "mean: 400.0", "deviation: ±0%", "top 5: [400]"]}
|
54
54
|
```
|
55
55
|
|
56
56
|
If `Rails.logger` is available, Etalon will also output the following with
|
@@ -77,3 +77,5 @@ See [contribution guidelines][contributions].
|
|
77
77
|
[contributions]: https://github.com/olivierlacan/etalon/blob/master/CONTRIBUTING.md
|
78
78
|
[ci-badge]: https://travis-ci.org/olivierlacan/etalon.svg?branch=master
|
79
79
|
[ci-url]: https://travis-ci.org/olivierlacan/etalon
|
80
|
+
[gem-badge]: https://img.shields.io/gem/v/etalon.svg?style=flat
|
81
|
+
[gem-url]: https://rubygems.org/gems/etalon
|
data/etalon.gemspec
CHANGED
@@ -32,12 +32,11 @@ Gem::Specification.new do |spec|
|
|
32
32
|
spec.require_paths = ["lib"]
|
33
33
|
spec.metadata["yard.run"] = "yri"
|
34
34
|
|
35
|
-
spec.add_dependency "activesupport", "
|
35
|
+
spec.add_dependency "activesupport", ">= 5.2"
|
36
36
|
|
37
|
-
spec.add_development_dependency "
|
38
|
-
spec.add_development_dependency "
|
37
|
+
spec.add_development_dependency "rake", "~> 13.0"
|
38
|
+
spec.add_development_dependency "bundler", "~> 2.2"
|
39
39
|
spec.add_development_dependency "rspec", "~> 3.8"
|
40
40
|
spec.add_development_dependency "yard", "~> 0.9"
|
41
|
-
spec.add_development_dependency "
|
42
|
-
spec.add_development_dependency "standard", "~> 0.0"
|
41
|
+
spec.add_development_dependency "standard", "~> 1.1"
|
43
42
|
end
|
data/lib/etalon.rb
CHANGED
data/lib/etalon/version.rb
CHANGED
metadata
CHANGED
@@ -1,57 +1,57 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: etalon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Olivier Lacan
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-07-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '5.
|
19
|
+
version: '5.2'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '5.
|
26
|
+
version: '5.2'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '13.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '13.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '2.2'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '2.2'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rspec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -80,34 +80,20 @@ dependencies:
|
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0.9'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: byebug
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - "~>"
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '10.0'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - "~>"
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '10.0'
|
97
83
|
- !ruby/object:Gem::Dependency
|
98
84
|
name: standard
|
99
85
|
requirement: !ruby/object:Gem::Requirement
|
100
86
|
requirements:
|
101
87
|
- - "~>"
|
102
88
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
89
|
+
version: '1.1'
|
104
90
|
type: :development
|
105
91
|
prerelease: false
|
106
92
|
version_requirements: !ruby/object:Gem::Requirement
|
107
93
|
requirements:
|
108
94
|
- - "~>"
|
109
95
|
- !ruby/object:Gem::Version
|
110
|
-
version: '
|
96
|
+
version: '1.1'
|
111
97
|
description: A very simple tool to instrument Ruby code and output basic metrics to
|
112
98
|
a logger or store them in a hash.
|
113
99
|
email:
|
@@ -116,6 +102,7 @@ executables: []
|
|
116
102
|
extensions: []
|
117
103
|
extra_rdoc_files: []
|
118
104
|
files:
|
105
|
+
- ".github/dependabot.yml"
|
119
106
|
- ".gitignore"
|
120
107
|
- ".rspec"
|
121
108
|
- ".ruby-version"
|
@@ -141,7 +128,7 @@ metadata:
|
|
141
128
|
source_code_uri: https://github.com/olivierlacan/etalon
|
142
129
|
changelog_uri: https://github.com/olivierlacan/etalon/blob/master/CHANGELOG.md
|
143
130
|
yard.run: yri
|
144
|
-
post_install_message:
|
131
|
+
post_install_message:
|
145
132
|
rdoc_options: []
|
146
133
|
require_paths:
|
147
134
|
- lib
|
@@ -156,8 +143,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
156
143
|
- !ruby/object:Gem::Version
|
157
144
|
version: '0'
|
158
145
|
requirements: []
|
159
|
-
rubygems_version: 3.
|
160
|
-
signing_key:
|
146
|
+
rubygems_version: 3.2.22
|
147
|
+
signing_key:
|
161
148
|
specification_version: 4
|
162
149
|
summary: A very simple tool to instrument Ruby code
|
163
150
|
test_files: []
|