rubyshell 1.0.0 → 1.1.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 90f9ebf7c21774ab58cacb92b34525a94884e2ca087a3cb2307a6f3cf45dde7e
4
- data.tar.gz: 9a75183f34a96c7755c3b1e2a8057d75b4e113a9c9f860905807090336456850
3
+ metadata.gz: 92236debc6db9910906ad252418dba0a4ac9ddf0daf38db48da5e1e4c32271de
4
+ data.tar.gz: bea76bd0b7facd9c3f17a1183a9f4a879a03010993be67ac10fc0801ddd3e8bc
5
5
  SHA512:
6
- metadata.gz: a86a05dc7ebd4a5eacba2c90a61a03033fe6367e2ace6bef2638a7a606be62c7630b1fada06cf3981c18772cc40680cda953408af8e7c8776155a4dd4644f83b
7
- data.tar.gz: 9869197ad8eaff074eb74f5eea166bffa2f1ff70f0b28e5f8530230bc74279e186a3d5238df595881b3a1962f10f6db8ce0e98a12c0643d3da9afb901af08fb7
6
+ metadata.gz: f6bc249bfb8be17588835d14ed078479454f0c233b0f37858462c7031455ace9469e226bae1acbee9a557675dba3631316101179163e9fca567e03a23e7f446c
7
+ data.tar.gz: 4222c04f51a013f242331a5679578fbb1cd40daafa8f8dba11c53ab7c76658a28f7104909987511fdb1a557a0a5140b22424eee79b599d635056a7f028bf9382
data/README.md CHANGED
@@ -1,24 +1,67 @@
1
- # Rubysh
1
+ <h1 align="center">
2
+ <img alt="RubyShell" src="./docs/images/rubyshelllogo.png" width="60%">
3
+ </h1>
4
+
5
+ <h3 align="center">✨ Rubist way to create shell scripts ✨</h3>
6
+
7
+ <p align="center">
8
+ <a href="https://rubygems.org/gems/rubyshell">
9
+ <img src="https://img.shields.io/gem/v/rubyshell?color=red&logo=ruby" alt="Gem Version">
10
+ </a>
11
+ <a href="https://rubygems.org/gems/rubyshell">
12
+ <img src="https://img.shields.io/gem/dt/rubyshell.svg?label=Downloads&colorA=004d99&colorB=0073e6" alt="Gem Version">
13
+ </a>
14
+ <a href="https://github.com/albertalef/rubysh/actions">
15
+ <img src="https://github.com/albertalef/rubysh/workflows/CI/badge.svg" alt="Build Status">
16
+ </a>
17
+ <a href="https://opensource.org/licenses/MIT">
18
+ <img src="https://img.shields.io/badge/license-MIT-green.svg" alt="License">
19
+ </a>
20
+
21
+ <p align="center">
22
+ <a href="Examples">Examples</a>
23
+ ·
24
+ <a href="Instalation">Instalation</a>
25
+ ·
26
+ <a href="Documentation">Documentation</a>
27
+ ·
28
+ <a href="Contributing">Contributing</a>
29
+ </p>
30
+ </p>
31
+ <br />
32
+ <br />
33
+
34
+ ```ruby
35
+ cd "/log" do
36
+ ls.each_line do |line|
37
+ puts cat(line)
38
+ end
39
+ end
40
+ ```
41
+
42
+ Yes, that’s valid Ruby!
43
+ `ls` and `cat` are just shell commands, but **RubyShell** makes them behave like Ruby methods.
2
44
 
3
- TODO: Delete this and the text below, and describe your gem
45
+ ## Usage
4
46
 
5
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/rubysh`. To experiment with that code, run `bin/console` for an interactive prompt.
6
47
 
7
- ## Installation
8
48
 
9
- TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
49
+ ## Installation
10
50
 
11
51
  Install the gem and add to the application's Gemfile by executing:
12
52
 
13
- $ bundle add UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
53
+ $ bundle add rubyshell
14
54
 
15
55
  If bundler is not being used to manage dependencies, install the gem by executing:
16
56
 
17
- $ gem install UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
57
+ $ gem install rubyshell
18
58
 
19
- ## Usage
59
+ ## Todo
20
60
 
21
- TODO: Write usage instructions here
61
+ - [ ] Usage
62
+ - [ ] More examples
63
+ - [ ] Tests
64
+ - [ ] Github Action
22
65
 
23
66
  ## Development
24
67
 
@@ -28,7 +71,13 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
28
71
 
29
72
  ## Contributing
30
73
 
31
- Bug reports and pull requests are welcome on GitHub at https://github.com/albertalef/rubysh. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/rubysh/blob/master/CODE_OF_CONDUCT.md).
74
+ Bug reports and pull requests are welcome on GitHub at https://github.com/albertalef/rubyshell. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/albertalef/rubyshell/blob/master/CODE_OF_CONDUCT.md).
75
+
76
+ ## Sponsors
77
+
78
+ <a href="https://avantsoft.com.br">
79
+ <img alt="Avantsoft" src="./docs/images/LogoAvantsoft.png" width="40%">
80
+ </a>
32
81
 
33
82
  ## License
34
83
 
@@ -36,4 +85,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
36
85
 
37
86
  ## Code of Conduct
38
87
 
39
- Everyone interacting in the Rubysh project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/rubysh/blob/master/CODE_OF_CONDUCT.md).
88
+ Everyone interacting in the Rubysh project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/albertalef/rubyshell/blob/master/CODE_OF_CONDUCT.md).
@@ -6,7 +6,11 @@ module RubyShell
6
6
  end
7
7
 
8
8
  def handle_chain(operator, chainer)
9
- @parts = [*@parts, operator.to_s, *chainer.parts]
9
+ @parts = [
10
+ *@parts,
11
+ operator.to_s,
12
+ *(chainer.is_a?(RubyShell::Chainer) ? chainer.parts : chainer),
13
+ ]
10
14
 
11
15
  self
12
16
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubyShell
4
- VERSION = "1.0.0"
4
+ VERSION = "1.1.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubyshell
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - albertalef
@@ -9,7 +9,7 @@ bindir: bin
9
9
  cert_chain: []
10
10
  date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies: []
12
- description: A long description, short for now
12
+ description: A rubist way to run shell commands
13
13
  email:
14
14
  - albertalef@protonmail.com
15
15
  executables: []