bashly 0.7.4 → 0.7.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/lib/bashly/commands/generate.rb +1 -3
- data/lib/bashly/config.rb +3 -1
- data/lib/bashly/libraries/completions.rb +1 -1
- data/lib/bashly/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 701ac68c31b0dc916b212886b694c8aef4994aabdd703cfffe5bd592a91d1989
|
|
4
|
+
data.tar.gz: c9968bd61faf7ffc1f52e9eefc65fa54a88ee09326238618809eb66e65a17fb0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dd50a1a52f24a5a7989266090827f21fa4265856d9319ab1eff288bab8e3bd2b0256efec8462387fe992f2adba175bbb50b2dd9b59e580e5b4a97f2aba9849dd
|
|
7
|
+
data.tar.gz: f40b18e9876e6297a1bcb8e14d9b364a88cb05f8db1fbaff31e3746f96961db581dbda6bd33a5a9147767c62afaab7caf7541fdde02167403d17ef4ec48933ff
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
module Bashly
|
|
2
2
|
module Commands
|
|
3
3
|
class Generate < Base
|
|
4
|
-
using ComposeRefinements
|
|
5
|
-
|
|
6
4
|
help "Generate the bash script and required files"
|
|
7
5
|
|
|
8
6
|
usage "bashly generate [--force --quiet --upgrade --wrap FUNCTION]"
|
|
@@ -118,7 +116,7 @@ module Bashly
|
|
|
118
116
|
end
|
|
119
117
|
|
|
120
118
|
def config
|
|
121
|
-
@config ||= Config.new
|
|
119
|
+
@config ||= Config.new "#{Settings.source_dir}/bashly.yml"
|
|
122
120
|
end
|
|
123
121
|
|
|
124
122
|
def command
|
data/lib/bashly/config.rb
CHANGED
|
@@ -4,11 +4,13 @@ module Bashly
|
|
|
4
4
|
# A convenience class to use either a hash or a filename as a configuration
|
|
5
5
|
# source
|
|
6
6
|
class Config
|
|
7
|
+
using ComposeRefinements
|
|
8
|
+
|
|
7
9
|
attr_reader :config
|
|
8
10
|
|
|
9
11
|
def self.new(config)
|
|
10
12
|
if config.is_a? String
|
|
11
|
-
YAML.load_file
|
|
13
|
+
YAML.load_file(config).compose
|
|
12
14
|
else
|
|
13
15
|
config
|
|
14
16
|
end
|
data/lib/bashly/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bashly
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.7.
|
|
4
|
+
version: 0.7.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Danny Ben Shitrit
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-02-
|
|
11
|
+
date: 2022-02-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: colsole
|