utils 0.30.2 → 0.31.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/utils/irb.rb +11 -5
- data/lib/utils/version.rb +1 -1
- data/utils.gemspec +4 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 179415991e7136ab50780748a49823c11905022e23abf3b93ab1fff0f131895a
|
4
|
+
data.tar.gz: efed6c516054a75c03bd6dabacc03ed5272ea652f394320d72d00e6afb70abfc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c331a48cb93f205e4ae4ad4223a667dd8c674085e05bb90258bdcc0ff4594ae9de2b9a875b3c0fbb9e8d0a69fab1a36e6da1623aae73ea099ed74c99526b0c94
|
7
|
+
data.tar.gz: 51abb2ed1e3d8f1eff078f43acb55dc447964573800fbaa85306458338945b5dfbe6c9bed440db968835e1f473bd1774490eb90f375f984212d012b9922a7f90
|
data/lib/utils/irb.rb
CHANGED
@@ -250,17 +250,23 @@ module Utils
|
|
250
250
|
nil
|
251
251
|
end
|
252
252
|
|
253
|
-
def irb_time
|
253
|
+
def irb_time(n = 1)
|
254
254
|
s = Time.now
|
255
|
-
|
255
|
+
n.times do
|
256
|
+
yield
|
257
|
+
end
|
256
258
|
d = Time.now - s
|
257
|
-
|
259
|
+
if n == 1
|
260
|
+
warn "Took %.3fs seconds." % d
|
261
|
+
else
|
262
|
+
warn "Took %.3fs seconds, %.3fs per call (avg)." % [ d, d / n ]
|
263
|
+
end
|
258
264
|
d
|
259
265
|
end
|
260
266
|
|
261
|
-
def irb_time_tap
|
267
|
+
def irb_time_tap(n = 1)
|
262
268
|
r = nil
|
263
|
-
irb_time { r = yield }
|
269
|
+
irb_time(n) { r = yield }
|
264
270
|
r
|
265
271
|
end
|
266
272
|
|
data/lib/utils/version.rb
CHANGED
data/utils.gemspec
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
# stub: utils 0.
|
2
|
+
# stub: utils 0.31.0 ruby lib
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "utils".freeze
|
6
|
-
s.version = "0.
|
6
|
+
s.version = "0.31.0"
|
7
7
|
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
9
9
|
s.require_paths = ["lib".freeze]
|
10
10
|
s.authors = ["Florian Frank".freeze]
|
11
|
-
s.date = "2022-07-
|
11
|
+
s.date = "2022-07-15"
|
12
12
|
s.description = "This ruby gem provides some useful command line utilities".freeze
|
13
13
|
s.email = "flori@ping.de".freeze
|
14
14
|
s.executables = ["ascii7".freeze, "blameline".freeze, "check-yaml".freeze, "classify".freeze, "create_cstags".freeze, "create_tags".freeze, "discover".freeze, "edit".freeze, "edit_wait".freeze, "enum".freeze, "fix-brew".freeze, "git-empty".freeze, "git-versions".freeze, "irb_connect".freeze, "json_check".freeze, "long_lines".freeze, "myex".freeze, "number_files".freeze, "on_change".freeze, "path".freeze, "probe".freeze, "rd2md".freeze, "search".freeze, "sedit".freeze, "serve".freeze, "ssh-tunnel".freeze, "ssl_cert_info".freeze, "strip_spaces".freeze, "untest".freeze, "utils-utilsrc".freeze, "vcf2alias".freeze]
|
@@ -17,7 +17,7 @@ Gem::Specification.new do |s|
|
|
17
17
|
s.homepage = "http://github.com/flori/utils".freeze
|
18
18
|
s.licenses = ["GPL-2.0".freeze]
|
19
19
|
s.rdoc_options = ["--title".freeze, "Utils - Some useful command line utilities".freeze, "--main".freeze, "README.md".freeze]
|
20
|
-
s.rubygems_version = "3.
|
20
|
+
s.rubygems_version = "3.2.33".freeze
|
21
21
|
s.summary = "Some useful command line utilities".freeze
|
22
22
|
|
23
23
|
if s.respond_to? :specification_version then
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.31.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Florian Frank
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-07-
|
11
|
+
date: 2022-07-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gem_hadar
|
@@ -252,7 +252,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
252
252
|
- !ruby/object:Gem::Version
|
253
253
|
version: '0'
|
254
254
|
requirements: []
|
255
|
-
rubygems_version: 3.
|
255
|
+
rubygems_version: 3.2.33
|
256
256
|
signing_key:
|
257
257
|
specification_version: 4
|
258
258
|
summary: Some useful command line utilities
|