Skip to content

Commit 9d4ea5a

Browse files
authored
Merge pull request #1 from DannyBen/check-pr
Release fixes and travis test
2 parents 0847ce4 + f3ee2a7 commit 9d4ea5a

5 files changed

Lines changed: 25 additions & 4 deletions

File tree

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ Bashly - Bash CLI Generator
33

44
Create beautiful bash scripts from simple YAML configuration.
55

6+
[![Gem Version](https://badge.fury.io/rb/bashly.svg)](https://badge.fury.io/rb/bashly)
7+
[![Build Status](https://travis-ci.com/DannyBen/bashly.svg?branch=master)](https://travis-ci.com/DannyBen/bashly)
8+
[![Maintainability](https://api.codeclimate.com/v1/badges/8cf89047e50ca601e431/maintainability)](https://codeclimate.com/github/DannyBen/bashly/maintainability)
9+
10+
---
11+
612
![demo](demo/cast.svg)
713

814
---
@@ -46,3 +52,6 @@ Contributing / Support
4652

4753
If you experience any issue, have a question or a suggestion, or if you wish
4854
to contribute, feel free to [open an issue][issues].
55+
56+
[issues]: https://github.com/DannyBen/bashly/issues
57+

bashly.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Gem::Specification.new do |s|
1717
s.license = 'MIT'
1818
s.required_ruby_version = ">= 2.3.0"
1919

20-
s.add_runtime_dependency 'colsole', '~> 0.5'
21-
s.add_runtime_dependency 'mister_bin', '~> 0.6'
20+
s.add_runtime_dependency 'colsole', '~> 0.6'
21+
s.add_runtime_dependency 'mister_bin', '~> 0.7'
2222
s.add_runtime_dependency 'requires', '~> 0.1'
2323
end

lib/bashly.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
require 'lp'
66
end
77

8+
requires 'bashly/polyfills'
89
requires 'bashly/settings'
910
requires 'bashly/exceptions'
1011
requires 'bashly/concerns'

lib/bashly/polyfills/hash.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# :nocov:
2+
3+
# Required for Ruby < 2.4
4+
if !Dir.respond_to? :empty?
5+
class Dir
6+
def self.empty?(path_name)
7+
exist?(path_name) && (entries(path_name) - ['.', '..']).empty?
8+
end
9+
end
10+
end

spec/approvals/cli/error

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
Errno::ENOENT
1+
Errno::ENOENT
22
No such file or directory @ rb_sysopen - src/bashly.yml
3-
creating user files in src
3+
creating user files in src
4+


0 commit comments

Comments
 (0)