bashly 0.3.5 → 0.3.6

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: 95bc5fa6ee6c14e2e4cd269aecbfef7af9f005e7837c182c2f222d4640778e40
4
- data.tar.gz: c8214a96d5d63094cb6f86e07022022f30b471da362b4aa087fe16ddaf96aada
3
+ metadata.gz: ffda5465535e873bf8f7beea1491d33ffd9e417adcd7cd2a79d8798e24fad6e2
4
+ data.tar.gz: 4b4f2a5fe32494fd4527b88be16d5f3b414ce46f07eb421397f5f3715da2351e
5
5
  SHA512:
6
- metadata.gz: e25fd6d234783d9eb96a5e4f4a5bcc836740cbb6ee5ff2f5486a4fcea376a5e61c31f6b5eb762693708225ee8b2a2aac3d163d23d37d07dfe902687ee8d4a22b
7
- data.tar.gz: 8bc3e1595cdb52c6001d55600f7fb4a1fda2d7d525b933641e04f4041de694354895eeb37d0e53d6c0cdc286b632643dfb812c8fb40cf958e93f94a5a005dcf5
6
+ metadata.gz: 1fba52e408663920eb145112f9c80bc0a6ce4731f017688ca299c8fad975c4bd4ef2fc8e330cf6e5452f797502a44a43342a95ccf9e95b50935c378a56ade85a
7
+ data.tar.gz: 4670e9c1b054c36cbb91d1c2264d37f4011ab8e242b0b47b5e07c85558d463fa806a299fa88f5c6b0aa2b61fc44b4fae7641727549f910aa3c9047b087ebaec1
data/README.md CHANGED
@@ -7,7 +7,7 @@ Bashly - Bash CLI Framework and Generator
7
7
  Create beautiful bash scripts from simple YAML configuration
8
8
 
9
9
  [![Gem Version](https://badge.fury.io/rb/bashly.svg)](https://badge.fury.io/rb/bashly)
10
- [![Build Status](https://travis-ci.com/DannyBen/bashly.svg?branch=master)](https://travis-ci.com/DannyBen/bashly)
10
+ [![Build Status](https://github.com/DannyBen/bashly/workflows/Test/badge.svg)](https://github.com/DannyBen/bashly/actions?query=workflow%3ATest)
11
11
  [![Maintainability](https://api.codeclimate.com/v1/badges/8cf89047e50ca601e431/maintainability)](https://codeclimate.com/github/DannyBen/bashly/maintainability)
12
12
 
13
13
  ---
@@ -4,6 +4,9 @@ module Bashly
4
4
  module Renderable
5
5
  def render(view)
6
6
  template = File.read view_path(view)
7
+ # TODO: This new format is only supported in Ruby >= 2.6
8
+ # So for now, we keep the old deprecated syntax
9
+ # ERB.new(template, trim_mode: '%-').result(binding)
7
10
  ERB.new(template, nil, '%-').result(binding)
8
11
  end
9
12
 
@@ -38,7 +38,7 @@ module Bashly
38
38
  return [] unless options["commands"]
39
39
  options["commands"].map do |options|
40
40
  options['parents'] = parents + [name]
41
- command = Command.new options
41
+ Command.new options
42
42
  end
43
43
  end
44
44
 
@@ -7,4 +7,6 @@ if !Dir.respond_to? :empty?
7
7
  exist?(path_name) && (entries(path_name) - ['.', '..']).empty?
8
8
  end
9
9
  end
10
- end
10
+ end
11
+
12
+ # :nocov:
@@ -1,3 +1,3 @@
1
1
  module Bashly
2
- VERSION = "0.3.5"
2
+ VERSION = "0.3.6"
3
3
  end
@@ -6,7 +6,7 @@ case "$1" in
6
6
  --version | -v )
7
7
  <%- end -%>
8
8
  version_command
9
- exit 1
9
+ exit
10
10
  ;;
11
11
 
12
12
  <%- if short_flag_exist? "-h" -%>
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.3.5
4
+ version: 0.3.6
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: 2019-12-23 00:00:00.000000000 Z
11
+ date: 2020-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colsole