Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ Bashly - Bash CLI Generator

Create beautiful bash scripts from simple YAML configuration.

[![Gem Version](https://badge.fury.io/rb/bashly.svg)](https://badge.fury.io/rb/bashly)
[![Build Status](https://travis-ci.com/DannyBen/bashly.svg?branch=master)](https://travis-ci.com/DannyBen/bashly)
[![Maintainability](https://api.codeclimate.com/v1/badges/8cf89047e50ca601e431/maintainability)](https://codeclimate.com/github/DannyBen/bashly/maintainability)

---

![demo](demo/cast.svg)

---
Expand Down Expand Up @@ -46,3 +52,6 @@ Contributing / Support

If you experience any issue, have a question or a suggestion, or if you wish
to contribute, feel free to [open an issue][issues].

[issues]: https://github.com/DannyBen/bashly/issues

4 changes: 2 additions & 2 deletions bashly.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Gem::Specification.new do |s|
s.license = 'MIT'
s.required_ruby_version = ">= 2.3.0"

s.add_runtime_dependency 'colsole', '~> 0.5'
s.add_runtime_dependency 'mister_bin', '~> 0.6'
s.add_runtime_dependency 'colsole', '~> 0.6'
s.add_runtime_dependency 'mister_bin', '~> 0.7'
s.add_runtime_dependency 'requires', '~> 0.1'
end
1 change: 1 addition & 0 deletions lib/bashly.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
require 'lp'
end

requires 'bashly/polyfills'
requires 'bashly/settings'
requires 'bashly/exceptions'
requires 'bashly/concerns'
Expand Down
10 changes: 10 additions & 0 deletions lib/bashly/polyfills/hash.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# :nocov:

# Required for Ruby < 2.4
if !Dir.respond_to? :empty?
class Dir
def self.empty?(path_name)
exist?(path_name) && (entries(path_name) - ['.', '..']).empty?
end
end
end
5 changes: 3 additions & 2 deletions spec/approvals/cli/error
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
Errno::ENOENT
Errno::ENOENT
No such file or directory @ rb_sysopen - src/bashly.yml
creating user files in src
creating user files in src