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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0fb791760ce141b660f228dde7b375ab1cc8da1517bfb73037a5f62fa131f688
4
- data.tar.gz: 38d7da2d8215dc9e4dc4588247295a953c3130729a621e537b6dc607617a40f0
3
+ metadata.gz: 5f7030cd5a80ea7819a30645a0c95cb733aa482ddf4b42f9860885a5a4910b76
4
+ data.tar.gz: 1f6c53cdd03b03decaa3ee2eab91b11232dd348b66fe98cc04695e413c989ca4
5
5
  SHA512:
6
- metadata.gz: e46a28737336f6c99d0e97c218a2c66913b9cee61e34fccaed6d531dcd6bd8ba1ca5141a567a189ae4637203705ac0091aebfb3fe31c1e89d67469dae0f0f64a
7
- data.tar.gz: 55270db263194c75f3afcb0bb4ea7ab1e3fdedb67197a72234e80f7f401b53026496602468a075d303b7510c9b5cab37098cde48c0629f47d6b562c323b09bf1
6
+ metadata.gz: 3cc06a2b87b70313dfd5db955286dfc4df322be9bc6df22adf9bdd869932663876fceee08fb8d94c45cc7f73c69e01a5efbde5dc31f20c99eda65b905f78dadb
7
+ data.tar.gz: b977e5d264ddda7f4929299d07bffb9103620d247150c00034b4ad2826a258a792dfd0cf54929f451e98e84e91f88968d683d842665ac3b24bad6fcc6575f6dd
@@ -0,0 +1,12 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: bundler
4
+ directory: "/"
5
+ schedule:
6
+ interval: daily
7
+ time: "04:00"
8
+ open-pull-requests-limit: 10
9
+ ignore:
10
+ - dependency-name: activesupport
11
+ versions:
12
+ - 6.x
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.5.3
1
+ 3.0.2
data/.travis.yml CHANGED
@@ -5,5 +5,3 @@ rvm:
5
5
  - 2.4.2
6
6
  - 2.3.8
7
7
  - 2.2.10
8
- - jruby
9
- - truffleruby
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
- ## 0.1.0 - October 31, 2018
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 (0.1.0)
5
- activesupport (> 5.0)
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.0)
16
- byebug (10.0.2)
15
+ ast (2.4.2)
17
16
  concurrent-ruby (1.0.5)
18
- diff-lcs (1.3)
17
+ diff-lcs (1.4.4)
19
18
  i18n (1.1.1)
20
19
  concurrent-ruby (~> 1.0)
21
- jaro_winkler (1.5.2)
22
- minitest (5.11.3)
23
- parallel (1.13.0)
24
- parser (2.6.0.0)
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 (10.5.0)
29
- rspec (3.8.0)
30
- rspec-core (~> 3.8.0)
31
- rspec-expectations (~> 3.8.0)
32
- rspec-mocks (~> 3.8.0)
33
- rspec-core (3.8.0)
34
- rspec-support (~> 3.8.0)
35
- rspec-expectations (3.8.2)
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.8.0)
38
- rspec-mocks (3.8.0)
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.8.0)
41
- rspec-support (3.8.0)
42
- rubocop (0.63.1)
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 (>= 2.5, != 2.5.1.1)
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 (~> 1.4.0)
50
- ruby-progressbar (1.10.0)
51
- standard (0.0.26)
52
- rubocop (>= 0.63)
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 (1.4.1)
57
- yard (0.9.16)
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 (~> 1.16)
64
- byebug (~> 10.0)
69
+ bundler (~> 2.2)
65
70
  etalon!
66
- rake (~> 10.0)
71
+ rake (~> 13.0)
67
72
  rspec (~> 3.8)
68
- standard (~> 0.0)
73
+ standard (~> 1.1)
69
74
  yard (~> 0.9)
70
75
 
71
76
  BUNDLED WITH
72
- 1.17.3
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.0", "top 5: [400]"]}
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", "> 5.0"
35
+ spec.add_dependency "activesupport", ">= 5.2"
36
36
 
37
- spec.add_development_dependency "bundler", "~> 1.16"
38
- spec.add_development_dependency "rake", "~> 10.0"
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 "byebug", "~> 10.0"
42
- spec.add_development_dependency "standard", "~> 0.0"
41
+ spec.add_development_dependency "standard", "~> 1.1"
43
42
  end
data/lib/etalon.rb CHANGED
@@ -160,8 +160,8 @@ module Etalon
160
160
  end
161
161
  end
162
162
 
163
- def parameterize(*args)
164
- ActiveSupport::Inflector.parameterize(*args)
163
+ def parameterize(*args, **kwargs, &block)
164
+ ActiveSupport::Inflector.parameterize(*args, **kwargs, &block)
165
165
  end
166
166
  end
167
167
  end
@@ -1,3 +1,3 @@
1
1
  module Etalon
2
- VERSION = "0.1.0" #:no-doc
2
+ VERSION = "1.0.0" #:no-doc
3
3
  end
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: 0.1.0
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: 2019-02-05 00:00:00.000000000 Z
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.0'
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.0'
26
+ version: '5.2'
27
27
  - !ruby/object:Gem::Dependency
28
- name: bundler
28
+ name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.16'
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: '1.16'
40
+ version: '13.0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: rake
42
+ name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '10.0'
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: '10.0'
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: '0.0'
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: '0.0'
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.0.2
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: []