frontkick 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +7 -5
- data/lib/frontkick/result.rb +3 -0
- data/lib/frontkick/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 60f95541b62fdc0a191da6d51f297f809b737f52
|
4
|
+
data.tar.gz: f4a733e629822159ef9199cc54fbeca4fba221b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9d959c6869e3a069aca2b1eb6f5596fb5e919ae0a1a2471ff014af01e25e73c8262181a671e91516a5523f771783eba32189ae2fe322bcc26328b238b0a34b7
|
7
|
+
data.tar.gz: 85c4a12db6391cbeb5d1fc18d7d1317384d7c64ffe41232bc8c2532b31e36e374cdcc07baa2007708fda1dea86bfd4f5f70d86c9a0194024b9dceb13613256cb
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -19,11 +19,13 @@ With frontkick, you can easily get the exit code, STDOUT, and STDERR.
|
|
19
19
|
|
20
20
|
result = Frontkick.exec("echo *")
|
21
21
|
puts result.successful? #=> true if exit_code is 0
|
22
|
-
puts result.
|
23
|
-
puts result.
|
24
|
-
puts result.
|
25
|
-
puts result.
|
26
|
-
puts result.status
|
22
|
+
puts result.success? #=> alias to successful?
|
23
|
+
puts result.stdout #=> stdout output of the command
|
24
|
+
puts result.stderr #=> stderr output of the command
|
25
|
+
puts result.exit_code #=> exit_code of the command
|
26
|
+
puts result.status #=> alias to exit_code
|
27
|
+
puts result.exitstatus #=> alias to exit_code
|
28
|
+
puts result.duration #=> the time used to execute the command
|
27
29
|
|
28
30
|
### Escape Command
|
29
31
|
|
data/lib/frontkick/result.rb
CHANGED
@@ -3,6 +3,8 @@ module Frontkick
|
|
3
3
|
attr_accessor :stdout, :stderr, :exit_code, :duration
|
4
4
|
alias :status :exit_code
|
5
5
|
alias :status= :exit_code=
|
6
|
+
alias :exitstatus :exit_code # for compatibility with Open3 Process::Status
|
7
|
+
alias :exitstatus= :exit_code= # for compatibility with Open3 Process::Status
|
6
8
|
|
7
9
|
def initialize(params)
|
8
10
|
@stdout = params[:stdout] || ""
|
@@ -22,6 +24,7 @@ module Frontkick
|
|
22
24
|
def successful?
|
23
25
|
@exit_code == 0
|
24
26
|
end
|
27
|
+
alias :success? :successful? # for compatibility with Open3 Process::Status
|
25
28
|
end
|
26
29
|
CommandResult = Result # for lower version compatibility
|
27
30
|
end
|
data/lib/frontkick/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: frontkick
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Naotoshi Seo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-08-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -93,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
93
93
|
version: '0'
|
94
94
|
requirements: []
|
95
95
|
rubyforge_project:
|
96
|
-
rubygems_version: 2.2.
|
96
|
+
rubygems_version: 2.2.2
|
97
97
|
signing_key:
|
98
98
|
specification_version: 4
|
99
99
|
summary: Execute a command simply!
|