bashly 0.7.4 → 0.7.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 111e5735cbcae769cf990a20aabd6d2868181251bf366b180d1e0325316a29b0
4
- data.tar.gz: 017c1fc803802af3c186b356e9720ed3fd362990ed30b455e12aa2b34b4be6a3
3
+ metadata.gz: 701ac68c31b0dc916b212886b694c8aef4994aabdd703cfffe5bd592a91d1989
4
+ data.tar.gz: c9968bd61faf7ffc1f52e9eefc65fa54a88ee09326238618809eb66e65a17fb0
5
5
  SHA512:
6
- metadata.gz: 743c31be7ec2553940700cda415dcbf377dcf6362b18edc4b3e292130024ddf6b3230e26d48603ca4e90ce17464dc71c07e685741614e5047b6f9570d369b8da
7
- data.tar.gz: 88ce26cb94af15fb3813b387d93723a60aea6487038eaeb467ee22e23ea3823cf5bfc06ed8cccab0e8a7d1f5a89a198a117a468516734bce8a92033462f6741a
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("#{Settings.source_dir}/bashly.yml").compose
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 config
13
+ YAML.load_file(config).compose
12
14
  else
13
15
  config
14
16
  end
@@ -7,7 +7,7 @@ module Bashly
7
7
  end
8
8
 
9
9
  def config
10
- @config ||= Bashly::Config.new "#{Settings.source_dir}/bashly.yml"
10
+ @config ||= Config.new "#{Settings.source_dir}/bashly.yml"
11
11
  end
12
12
  end
13
13
  end
@@ -1,3 +1,3 @@
1
1
  module Bashly
2
- VERSION = "0.7.4"
2
+ VERSION = "0.7.5"
3
3
  end
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
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-13 00:00:00.000000000 Z
11
+ date: 2022-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colsole