bash_help 0.0.1

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 7ff4c4c051f5fa9d1f96998087be085f06544479c4fcf38f09d5ba90dd8ccd85
4
+ data.tar.gz: 36f5d4eb846b84e6aa351fe1caf43bf49a35375cf7376e5989946610a79fe35d
5
+ SHA512:
6
+ metadata.gz: 51f2afdc162955e236ef908ec9650b4cdd80170b1813a5a69455dca876b3344a2c2cc9720579026ec52d8c864f2f748deef744a06cbb18d806af01e9ce3f51d2
7
+ data.tar.gz: '0339edebea70af15bd2dbf121eefec588dffeedc0ca1b6671e7b5af20c4d56867088e0f8a72eaaa3509c86b74553bf9cb798721be8d61b29b2954b2aa04924b7'
data/lib/bash_help.rb ADDED
@@ -0,0 +1,8 @@
1
+ # all imports in this module are global.
2
+ # beware!
3
+ ## in your .bashrc, add this line to enable bash_help
4
+ # export RUBYOPT="-rbash_help"
5
+ # then, you can call any of the methods here anywhere in your #!/usr/bin/env ruby scripts, since it loads w/ the interpreter.
6
+
7
+ require_relative 'hello_module.rb'
8
+ require_relative 'bash_standins.rb'
@@ -0,0 +1,6 @@
1
+ ## standins for normal bash functionality, to make ruby better for scripting.
2
+
3
+ # $@ -> #{args}
4
+ def args
5
+ ARGV.join(' ')
6
+ end
@@ -0,0 +1,4 @@
1
+
2
+ def say_hello
3
+ puts "hello"
4
+ end
metadata ADDED
@@ -0,0 +1,44 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: bash_help
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Zack Fisher
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2023-05-22 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Bash scripting helpers for Ruby.
14
+ email: zackfisher@proton.me
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/bash_help.rb
20
+ - lib/bash_standins.rb
21
+ - lib/hello_module.rb
22
+ homepage: https://github.com/zack-fisher
23
+ licenses: []
24
+ metadata: {}
25
+ post_install_message:
26
+ rdoc_options: []
27
+ require_paths:
28
+ - lib
29
+ required_ruby_version: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 2.6.0
34
+ required_rubygems_version: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - ">="
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
39
+ requirements: []
40
+ rubygems_version: 3.3.5
41
+ signing_key:
42
+ specification_version: 4
43
+ summary: Bash scripting helpers for Ruby.
44
+ test_files: []