buff-shell_out 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CONTRIBUTING.md +14 -6
- data/README.md +27 -17
- data/buff-shell_out.gemspec +2 -2
- data/lib/buff/shell_out/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d632aabb83fba4eabfaa06e5d72f111932c1c9e9
|
4
|
+
data.tar.gz: 23d8bb4e501fb4d46c19ba9fc737852c49a7da0a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9f9c71da72e0225cd0b55e5f8d7f26db4c95bc930b7d84feff29e1bbc1f6851443a839d863126f96ebf84dcff0683b73192acea16f98eaf6f1e65d08562c710
|
7
|
+
data.tar.gz: 0ce6b314c6f53e2c08ab73aac9f06758dce264218de89199476da0db098ef294caeee3e81deba162c421667e2c4f019499036ba7bd08114928c2dcdc7e8bb345
|
data/CONTRIBUTING.md
CHANGED
@@ -4,21 +4,29 @@
|
|
4
4
|
|
5
5
|
### Install prerequisites
|
6
6
|
|
7
|
-
Install the latest version of [Bundler](http://
|
7
|
+
Install the latest version of [Bundler](http://bundler.io/)
|
8
8
|
|
9
|
-
|
9
|
+
```shell
|
10
|
+
$ gem install bundler
|
11
|
+
```
|
10
12
|
|
11
13
|
Clone the project
|
12
14
|
|
13
|
-
|
15
|
+
```shell
|
16
|
+
$ git clone git://github.com/berkshelf/buff-shell_out.git
|
17
|
+
```
|
14
18
|
|
15
19
|
and run:
|
16
20
|
|
17
|
-
|
18
|
-
|
21
|
+
```shell
|
22
|
+
$ cd buff-shell_out
|
23
|
+
$ bundle install
|
24
|
+
```
|
19
25
|
|
20
26
|
Bundler will install all gems and their dependencies required for testing and developing.
|
21
27
|
|
22
28
|
### Running unit (RSpec) tests
|
23
29
|
|
24
|
-
|
30
|
+
```shell
|
31
|
+
$ bundle exec guard start
|
32
|
+
```
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Buff::ShellOut
|
2
|
-
|
3
|
-
[![Build Status](https://travis-ci.org/berkshelf/buff-shell_out.svg?branch=master)](https://travis-ci.org/berkshelf/buff-shell_out)
|
2
|
+
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/buff-shell_out.svg)](http://badge.fury.io/rb/buff-shell_out) [![Build Status](https://travis-ci.org/berkshelf/buff-shell_out.svg?branch=master)](https://travis-ci.org/berkshelf/buff-shell_out)
|
4
4
|
|
5
5
|
Buff up your code with a mixin for issuing shell commands and collecting the output
|
6
6
|
|
@@ -8,37 +8,47 @@ Buff up your code with a mixin for issuing shell commands and collecting the out
|
|
8
8
|
|
9
9
|
Add this line to your application's Gemfile:
|
10
10
|
|
11
|
-
|
11
|
+
```ruby
|
12
|
+
gem 'buff-shell_out'
|
13
|
+
```
|
12
14
|
|
13
15
|
And then execute:
|
14
16
|
|
15
|
-
|
17
|
+
```shell
|
18
|
+
$ bundle
|
19
|
+
```
|
16
20
|
|
17
21
|
Or install it yourself as:
|
18
22
|
|
19
|
-
|
23
|
+
```shell
|
24
|
+
$ gem install buff-shell_out
|
25
|
+
```
|
20
26
|
|
21
27
|
## Usage
|
22
28
|
|
23
|
-
Using it as a mixin
|
29
|
+
Using it as a mixin:
|
24
30
|
|
25
|
-
|
31
|
+
```ruby
|
32
|
+
require 'buff/shell_out'
|
26
33
|
|
27
|
-
|
28
|
-
|
29
|
-
|
34
|
+
class PowerUp
|
35
|
+
include Buff::ShellOut
|
36
|
+
end
|
30
37
|
|
31
|
-
|
32
|
-
|
38
|
+
power_up = PowerUp.new
|
39
|
+
power_up.shell_out("ls") #=> <#Buff::ShellOut::Response @exitstatus=0, @stdout="...", @stderr="...">
|
40
|
+
```
|
33
41
|
|
34
|
-
Using it as a module
|
42
|
+
Using it as a module:
|
35
43
|
|
36
|
-
|
44
|
+
```ruby
|
45
|
+
require 'buff/shell_out'
|
37
46
|
|
38
|
-
|
47
|
+
Buff::ShellOut.shell_out("ls") #=> <#Buff::ShellOut::Response @exitstatus=0, @stdout="...", @stderr="...">
|
48
|
+
```
|
39
49
|
|
40
50
|
# Authors and Contributors
|
41
51
|
|
42
|
-
|
52
|
+
- Jamie Winsor ([jamie@vialstudios.com](mailto:jamie@vialstudios.com))
|
43
53
|
|
44
|
-
Thank you to all of our [Contributors](https://github.com/
|
54
|
+
Thank you to all of our [Contributors](https://github.com/berkshelf/buff-shell_out/graphs/contributors), testers, and users.
|
data/buff-shell_out.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ["jamie@vialstudios.com"]
|
11
11
|
spec.description = %q{A mixin for issuing shell commands and collecting the output}
|
12
12
|
spec.summary = %q{Buff up your code with a mixin for issuing shell commands and collecting the output}
|
13
|
-
spec.homepage = "https://github.com/
|
13
|
+
spec.homepage = "https://github.com/berkshelf/buff-shell_out"
|
14
14
|
spec.license = "Apache 2.0"
|
15
15
|
|
16
16
|
spec.files = `git ls-files`.split($/)
|
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
spec.required_ruby_version = ">= 2.2.0"
|
21
21
|
|
22
|
-
spec.add_dependency "buff-ruby_engine", "~>
|
22
|
+
spec.add_dependency "buff-ruby_engine", "~> 1.0"
|
23
23
|
|
24
24
|
spec.add_development_dependency "thor", "~> 0.19.1"
|
25
25
|
spec.add_development_dependency "bundler", "~> 1.3"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: buff-shell_out
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jamie Winsor
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: buff-ruby_engine
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: '1.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: '1.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: thor
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -173,7 +173,7 @@ files:
|
|
173
173
|
- spec/buff/shell_out/response_spec.rb
|
174
174
|
- spec/buff/shell_out_spec.rb
|
175
175
|
- spec/spec_helper.rb
|
176
|
-
homepage: https://github.com/
|
176
|
+
homepage: https://github.com/berkshelf/buff-shell_out
|
177
177
|
licenses:
|
178
178
|
- Apache 2.0
|
179
179
|
metadata: {}
|
@@ -193,7 +193,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
193
193
|
version: '0'
|
194
194
|
requirements: []
|
195
195
|
rubyforge_project:
|
196
|
-
rubygems_version: 2.
|
196
|
+
rubygems_version: 2.6.6
|
197
197
|
signing_key:
|
198
198
|
specification_version: 4
|
199
199
|
summary: Buff up your code with a mixin for issuing shell commands and collecting
|