frontkick 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 80f32a160d3cb458803d44610038b46b2cc44c45
4
- data.tar.gz: 287cc2731f34b20491c2a393f989de3331a0595d
3
+ metadata.gz: afbcaf599563d9ebb1395512e65ce021d9f314e6
4
+ data.tar.gz: 203a79a478f3bc6acccb641160ca2ba73af1049d
5
5
  SHA512:
6
- metadata.gz: 0fb3abaea0d98bb9b56307a2238175d0b9492187df951e55c42cdceefd61e87f03c0d0a330d58a95c341f551b8207b381b74c4b4f40ff51be255bed447cb4ede
7
- data.tar.gz: ddf1580bee90302d724d4ae9739e2ce46345581df2d2fd4858163ea78a27cb06f7998d8ea095549fd4f1cfc15290b4c484297203eeb4b2450350fe9bab57fdae
6
+ metadata.gz: 7a42da35a826093ba55a28d1494531f52a727b7d8f0b4af13d3faf607a7426f02c58bf8fad3e49b0305e2d5ce656b0eb08737620ce3cf33c50962f39456e4e6d
7
+ data.tar.gz: 79a39227fbf5051c94afd63cdf50c3852c1ac218b626028b34004715d6b7bf8d191355d586cfc333726402ae466f6776a3d7b0ef4da72c4b65b1aac61fcf2342
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # 0.3.3 (2014/06/04)
2
+
3
+ Changes:
4
+
5
+ - Rename `Frontkick::CommandResult` to `Frontkick::Result`
6
+ - Keep `Frontkick::CommandResult` for lower version compatibility
7
+
1
8
  # 0.3.2 (2014/05/27)
2
9
 
3
10
  Fixes:
data/README.md CHANGED
@@ -2,7 +2,14 @@
2
2
 
3
3
  testing ruby: 1.9.2, 1.9.3, 2.0.0;
4
4
 
5
- Frontkick is a gem to execute a command and obtain exit\_code, stdout, stderr simply, wheres, `system` does not provide all of them.
5
+ Frontkick is a gem to execute a command and obtain exit\_code, stdout, stderr simply.
6
+
7
+ ## What is This For?
8
+
9
+ Ruby's `Kernel.#system` method does not return STDOUT and STDERR.
10
+ Ruby's back quote (``) returns STDOUT, but does not return STDERR.
11
+
12
+ With frontkick, you can easily get the exit code, STDOUT, and STDERR.
6
13
 
7
14
  ## USAGE
8
15
 
@@ -36,7 +36,7 @@ module Frontkick
36
36
  lock_fd.flock(File::LOCK_UN) if lock_fd
37
37
  end
38
38
 
39
- CommandResult.new(:stdout => stdout, :stderr => stderr, :exit_code => exit_code, :duration => duration)
39
+ Result.new(:stdout => stdout, :stderr => stderr, :exit_code => exit_code, :duration => duration)
40
40
  end
41
41
 
42
42
  def self.process_wait(pid)
@@ -1,5 +1,5 @@
1
1
  module Frontkick
2
- class CommandResult
2
+ class Result
3
3
  attr_accessor :stdout, :stderr, :exit_code, :duration
4
4
  alias :status :exit_code
5
5
  alias :status= :exit_code=
@@ -23,4 +23,5 @@ module Frontkick
23
23
  @exit_code == 0
24
24
  end
25
25
  end
26
+ CommandResult = Result # for lower version compatibility
26
27
  end
@@ -1,3 +1,3 @@
1
1
  module Frontkick
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
3
3
  end
data/lib/frontkick.rb CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
  require 'frontkick/version'
3
3
  require 'frontkick/error'
4
4
  require 'frontkick/command'
5
- require 'frontkick/command_result'
5
+ require 'frontkick/result'
6
6
 
7
7
  module Frontkick
8
8
  def self.exec(cmd, opts = {})
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.2
4
+ version: 0.3.3
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-05-27 00:00:00.000000000 Z
11
+ date: 2014-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -70,8 +70,8 @@ files:
70
70
  - frontkick.gemspec
71
71
  - lib/frontkick.rb
72
72
  - lib/frontkick/command.rb
73
- - lib/frontkick/command_result.rb
74
73
  - lib/frontkick/error.rb
74
+ - lib/frontkick/result.rb
75
75
  - lib/frontkick/version.rb
76
76
  - spec/spec_helper.rb
77
77
  homepage: https://github.com/sonots/frontkick