l42_my_ruby 0.1.4 → 0.1.5
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/bin/mv_pfx_by_now +7 -0
- data/lib/l42/interfaces/pfx_by_now.rb +28 -0
- data/lib/l42/version.rb +1 -1
- metadata +8 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4938cb9057c2b175d94365f78099bd19aeed2635d429db074fb60524e5c8a271
|
4
|
+
data.tar.gz: bdc033b44f684c1ed42abdc89261beea32704184332f97e23148a04e61e7606d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d59faa935852bde2cfad6bb494ba4840f492d0a20c226e220cc02ae52004e4aa06fc1921c269f5e82a9638c54223a6d5f78718be68754050f9ad774b4d0dd9dd
|
7
|
+
data.tar.gz: 46e4cad75820294c553c48b588784dc45f7147b592ebbdc33772178bdad2863435d53abec9ad1666180176a3679be85555da0e2ab616f873bb039827c4b72426
|
data/bin/mv_pfx_by_now
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'lab42/rgxargs'
|
4
|
+
require 'securerandom'
|
5
|
+
module L42
|
6
|
+
module Interfaces
|
7
|
+
module PfxByNow
|
8
|
+
extend self
|
9
|
+
|
10
|
+
def call(files)
|
11
|
+
now = Time.now.to_i.to_s(16)
|
12
|
+
[
|
13
|
+
:stdout,
|
14
|
+
files.map(&_pfx_by_now(now))
|
15
|
+
]
|
16
|
+
end
|
17
|
+
|
18
|
+
private
|
19
|
+
|
20
|
+
def _pfx_by_now(now)
|
21
|
+
->file do
|
22
|
+
["mv", file.inspect, [now, file].join("_").inspect ].join(" ")
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
# SPDX-License-Identifier: Apache-2.0
|
data/lib/l42/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: l42_my_ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Dober
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-08-
|
11
|
+
date: 2022-08-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lab42_rgxargs
|
@@ -30,6 +30,7 @@ description: |
|
|
30
30
|
Binaries and libs which make Ruby awesome (for me)
|
31
31
|
email: robert.dober@gmail.com
|
32
32
|
executables:
|
33
|
+
- mv_pfx_by_now
|
33
34
|
- mv_to_random
|
34
35
|
- mv_with_ts
|
35
36
|
- tx_send
|
@@ -38,11 +39,13 @@ extra_rdoc_files: []
|
|
38
39
|
files:
|
39
40
|
- LICENSE
|
40
41
|
- README.md
|
42
|
+
- bin/mv_pfx_by_now
|
41
43
|
- bin/mv_to_random
|
42
44
|
- bin/mv_with_ts
|
43
45
|
- bin/tx_send
|
44
46
|
- lib/l42.rb
|
45
47
|
- lib/l42/data_class.rb
|
48
|
+
- lib/l42/interfaces/pfx_by_now.rb
|
46
49
|
- lib/l42/interfaces/to_random.rb
|
47
50
|
- lib/l42/interfaces/tx_send.rb
|
48
51
|
- lib/l42/interfaces/with_ts.rb
|
@@ -52,7 +55,7 @@ homepage: https://github.com/robertdober/l42_my_ruby
|
|
52
55
|
licenses:
|
53
56
|
- Apache-2.0
|
54
57
|
metadata: {}
|
55
|
-
post_install_message:
|
58
|
+
post_install_message:
|
56
59
|
rdoc_options: []
|
57
60
|
require_paths:
|
58
61
|
- lib
|
@@ -68,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
68
71
|
version: '0'
|
69
72
|
requirements: []
|
70
73
|
rubygems_version: 3.3.7
|
71
|
-
signing_key:
|
74
|
+
signing_key:
|
72
75
|
specification_version: 4
|
73
76
|
summary: All my Ruby Code
|
74
77
|
test_files: []
|