utils 0.30.1 → 0.31.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +1 -1
- data/bin/check-yaml +2 -2
- data/lib/utils/irb.rb +11 -5
- data/lib/utils/version.rb +1 -1
- data/utils.gemspec +6 -6
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d7f609e660eeda7da1508e1b1afddd1a3b01e7232153f59ba4ca4cc1b11b052
|
4
|
+
data.tar.gz: ba8ef55413f9b3890f4cfd239864c67e10fb81ac5314197932c451b2f69bdd7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ab8ae0a58b32aa3c78b6002bf6a4bde18cbaa99070a4dabeb198aabf2d1bc1a4b33856adb77fe0ac812220335ace5d8d802df267576b6e629c3b23524e670df
|
7
|
+
data.tar.gz: adcf4e93e2a3f6b507c4eea3ec2ab65c9d02054be2db6ed8ae9ca18803e39b33bb14e5578a2fb342124a5c300c8c7484740e63e4bea8a7b441a2b83fa03cea9f
|
data/Rakefile
CHANGED
data/bin/check-yaml
CHANGED
@@ -12,7 +12,7 @@ format = -> s {
|
|
12
12
|
|
13
13
|
if filename = ARGV.first
|
14
14
|
begin
|
15
|
-
yaml = YAML.
|
15
|
+
yaml = YAML.unsafe_load_file(filename).to_yaml
|
16
16
|
ENV['DEBUG'].to_i == 1 and puts yaml
|
17
17
|
puts 'ok'
|
18
18
|
rescue => e
|
@@ -23,7 +23,7 @@ if filename = ARGV.first
|
|
23
23
|
else
|
24
24
|
string = STDIN.read
|
25
25
|
begin
|
26
|
-
yaml = YAML.
|
26
|
+
yaml = YAML.unsafe_load(string).to_yaml
|
27
27
|
ENV['DEBUG'].to_i == 1 and puts yaml
|
28
28
|
puts 'ok'
|
29
29
|
rescue => e
|
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.1 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.1"
|
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-
|
11
|
+
s.date = "2022-08-04"
|
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
|
@@ -32,7 +32,7 @@ Gem::Specification.new do |s|
|
|
32
32
|
s.add_runtime_dependency(%q<infobar>.freeze, [">= 0"])
|
33
33
|
s.add_runtime_dependency(%q<mize>.freeze, [">= 0"])
|
34
34
|
s.add_runtime_dependency(%q<search_ui>.freeze, [">= 0"])
|
35
|
-
s.add_runtime_dependency(%q<all_images>.freeze, [">= 0"])
|
35
|
+
s.add_runtime_dependency(%q<all_images>.freeze, [">= 0.0.2"])
|
36
36
|
else
|
37
37
|
s.add_dependency(%q<gem_hadar>.freeze, ["~> 1.12.0"])
|
38
38
|
s.add_dependency(%q<tins>.freeze, ["~> 1.14"])
|
@@ -41,6 +41,6 @@ Gem::Specification.new do |s|
|
|
41
41
|
s.add_dependency(%q<infobar>.freeze, [">= 0"])
|
42
42
|
s.add_dependency(%q<mize>.freeze, [">= 0"])
|
43
43
|
s.add_dependency(%q<search_ui>.freeze, [">= 0"])
|
44
|
-
s.add_dependency(%q<all_images>.freeze, [">= 0"])
|
44
|
+
s.add_dependency(%q<all_images>.freeze, [">= 0.0.2"])
|
45
45
|
end
|
46
46
|
end
|
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.1
|
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-
|
11
|
+
date: 2022-08-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gem_hadar
|
@@ -114,14 +114,14 @@ dependencies:
|
|
114
114
|
requirements:
|
115
115
|
- - ">="
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
117
|
+
version: 0.0.2
|
118
118
|
type: :runtime
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version:
|
124
|
+
version: 0.0.2
|
125
125
|
description: This ruby gem provides some useful command line utilities
|
126
126
|
email: flori@ping.de
|
127
127
|
executables:
|
@@ -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
|