baze 1.1.1 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (7) hide show
  1. checksums.yaml +5 -5
  2. data/bin/dataurl +18 -0
  3. data/bin/primes +1 -1
  4. data/bin/rrtmux +0 -1
  5. data/bin/shost +1 -1
  6. data/bin/suc +0 -1
  7. metadata +9 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 8cbf73fde50470dd9adc667314de6a641c5422ae
4
- data.tar.gz: 8454583eeff8270774bca055e770d90bb2b1753b
2
+ SHA256:
3
+ metadata.gz: 05675caacff352e9b6bf1c8884caada07d431de331599530d500ec1fdb95205e
4
+ data.tar.gz: b368a075e2b4a8de30243ae96d2390217d8717d89ea6938fda3b18d4b997fe81
5
5
  SHA512:
6
- metadata.gz: 37b3c338bb05f806c5e45004e6392388b2845d432f1e301b3226dc7b466e023bfcc141a7bb77ae41bbd28c405eab3198793446b110e181d1294e76fa26a7b70c
7
- data.tar.gz: 6cc6b194fa4cbe588968dd07e48d62173b635c01e9b4e58fca802523fb99a25dbe9dc4f5f202dc1ebfb8caa391cb3924865024ef8c51f11e7dd7e9cb2328443b
6
+ metadata.gz: 0c955c5b1adc3cb40bd74c3bbafb8e79ea0a9132625fc0ed401c8622cffe77f02d082a1eabb2bb750da9cd621a4fe801ed3c989fb9f4acd0543ba1c12d1108fb
7
+ data.tar.gz: cc46c88e330ce8e38329a035e2c3ab5cbed280037413dd45f926b29de9811324bd391e263056ef0b4f28a7b118c3d943e8add4ca7e4721affe8874d264e3e87a
data/bin/dataurl ADDED
@@ -0,0 +1,18 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'optparse'
4
+ require 'base64'
5
+
6
+ rounds = 1
7
+
8
+ optparse = OptionParser.new do |opts|
9
+ opts.banner = "Usage: dataurl mime [path]\n" \
10
+ " Provides a data: URL for path or stdin"
11
+ end
12
+
13
+ optparse.parse!
14
+
15
+ mime = ARGV.shift
16
+ content = ARGF.read
17
+
18
+ puts "data:#{mime};base64,#{Base64.strict_encode64(content)}"
data/bin/primes CHANGED
@@ -12,6 +12,6 @@ r = Array.new max
12
12
  p i
13
13
  (2*i).step max, i do |j|
14
14
  r[j] = true
15
- end
15
+ end
16
16
  end
17
17
  end
data/bin/rrtmux CHANGED
@@ -8,7 +8,6 @@ def help
8
8
  end
9
9
 
10
10
  timeout = 0.125
11
-
12
11
  if ARGV.empty? or ARGV.find {|arg| arg == '-h' or arg == '--help'}
13
12
  help
14
13
  else
data/bin/shost CHANGED
@@ -33,7 +33,7 @@ ARGV.each do |host|
33
33
  end
34
34
  rescue SocketError => e
35
35
  if soft
36
- puts "#{host} FAILED"
36
+ STDERR.puts "#{host} FAILED"
37
37
  else
38
38
  raise e
39
39
  end
data/bin/suc CHANGED
@@ -1,6 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'socket'
4
3
  require 'optparse'
5
4
 
6
5
  reverse = false
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: baze
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pierre Carrier
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-12 00:00:00.000000000 Z
11
+ date: 2024-10-10 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description:
13
+ description:
14
14
  email:
15
15
  - pc@rrier.ca
16
16
  executables:
@@ -31,6 +31,7 @@ executables:
31
31
  - shellescape
32
32
  - statistik
33
33
  - cupa
34
+ - dataurl
34
35
  - fixperms
35
36
  extensions: []
36
37
  extra_rdoc_files: []
@@ -38,6 +39,7 @@ files:
38
39
  - COPYING
39
40
  - bin/cols
40
41
  - bin/cupa
42
+ - bin/dataurl
41
43
  - bin/fixperms
42
44
  - bin/hex2ip
43
45
  - bin/ip2hex
@@ -58,7 +60,7 @@ homepage: https://github.com/pcarrier/baze
58
60
  licenses:
59
61
  - ISC
60
62
  metadata: {}
61
- post_install_message:
63
+ post_install_message:
62
64
  rdoc_options: []
63
65
  require_paths:
64
66
  - lib
@@ -73,9 +75,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
75
  - !ruby/object:Gem::Version
74
76
  version: 1.2.0
75
77
  requirements: []
76
- rubyforge_project:
77
- rubygems_version: 2.5.2.3
78
- signing_key:
78
+ rubygems_version: 3.5.16
79
+ signing_key:
79
80
  specification_version: 4
80
81
  summary: Base utilities for POSIX system
81
82
  test_files: []