frontkick 0.3.4 → 0.3.5

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
  SHA1:
3
- metadata.gz: 5cb9b445262c3f7b278593b0bbb6bf54a14664e6
4
- data.tar.gz: 6f557263aa916e8b293334da3e594931b552b721
3
+ metadata.gz: 60f95541b62fdc0a191da6d51f297f809b737f52
4
+ data.tar.gz: f4a733e629822159ef9199cc54fbeca4fba221b3
5
5
  SHA512:
6
- metadata.gz: f28fa5899334a518182cbce05bf4628001bc97c0cbe5e0997ecbbd2ccee374d5f4822a74ad22bce5fb09cd2e4e333bbe41181f118a24444dd3b3d5d68968228b
7
- data.tar.gz: 4284c8e05039f6b3e478b3dc75959b715546a52efc82c9c5fbab27c03fc691f13a5b640e29bff07155d8f28ffa4cf7ec6970e9d169be83b20b7aec2416be776e
6
+ metadata.gz: b9d959c6869e3a069aca2b1eb6f5596fb5e919ae0a1a2471ff014af01e25e73c8262181a671e91516a5523f771783eba32189ae2fe322bcc26328b238b0a34b7
7
+ data.tar.gz: 85c4a12db6391cbeb5d1fc18d7d1317384d7c64ffe41232bc8c2532b31e36e374cdcc07baa2007708fda1dea86bfd4f5f70d86c9a0194024b9dceb13613256cb
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ # 0.3.5 (2015/08/13)
2
+
3
+ Enhancements:
4
+
5
+ - Enhance compatibility with Open3 Result::Status
6
+ - alias :success? to :successful?
7
+ - alias :exitstatus to :exit_code
8
+
1
9
  # 0.3.4 (2014/07/30)
2
10
 
3
11
  Enhancements:
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.stdout #=> stdout output of the command
23
- puts result.stderr #=> stderr output of the command
24
- puts result.exit_code #=> exit_code of the command
25
- puts result.duration #=> the time used to execute the command
26
- puts result.status #=> alias to exit_code
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
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Frontkick
2
- VERSION = "0.3.4"
2
+ VERSION = "0.3.5"
3
3
  end
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
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: 2014-07-30 00:00:00.000000000 Z
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.0
96
+ rubygems_version: 2.2.2
97
97
  signing_key:
98
98
  specification_version: 4
99
99
  summary: Execute a command simply!