frontkick 0.2.0 → 0.2.1

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: e888a0eeabcd74cf8b17b95b4b8e2caa56eaef29
4
- data.tar.gz: bf94899be04073e6e1e5a85843c18372c60bbc57
3
+ metadata.gz: 31bf4f0ff734c3d2ac8271d060c6d5b255a1470b
4
+ data.tar.gz: 1089020ba94f6695eb54b560cd97036f8044e6c6
5
5
  SHA512:
6
- metadata.gz: c499e15431e89473e96a438f0c06ba84cf3900522a503822e107c24695c5401cac62d0a8066bd4afbc4f784d71766b4be0b550bbf9cd72c9d44a00529f987da2
7
- data.tar.gz: 3263adc248acab1001ee893ffdadfbe8dcca6037660838800b6035d382f69b82bb2cd4193fd0d2ba9e7dc315ffea575cc124545ab795725e9a94864d68ca144d
6
+ metadata.gz: 0b21c4060f641fdf47cf9c0f7f9517baa086b65b484a7c4d0a525aee09fae7980a8eb4d9d9ce22fddcfe21dbba6eaaf0da8bc5377b8cd55fffc30e44a5e0e316
7
+ data.tar.gz: 92738f33989470d52d74bfe3041ff757aeb3be3b6f48c7a3fa7f72d3948a8183ce11ee0b8d4ca80a902dd8c483026b93c7e8189df9044da998db60df35d4fac3
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # 0.2.1 (2013/09/13)
2
+
3
+ Changes:
4
+
5
+ - Change the internal interface of Frontkick::CommandResult
6
+
1
7
  # 0.2.0 (2013/09/13)
2
8
 
3
9
  Changes:
@@ -38,10 +38,10 @@ module Frontkick
38
38
  out.close if out and !out.closed?
39
39
  err.close if err and !err.closed?
40
40
  wait_thr.kill if wait_thr and !wait_thr.stop?
41
- lock_fd.flock(File::LOCK_UN)
41
+ lock_fd.flock(File::LOCK_UN) if lock_fd
42
42
  end
43
43
 
44
- CommandResult.new(stdout, stderr, exit_code, duration)
44
+ CommandResult.new(:stdout => stdout, :stderr => stderr, :exit_code => exit_code, :duration => duration)
45
45
  end
46
46
 
47
47
  def self.process_wait(pid)
@@ -2,11 +2,11 @@ module Frontkick
2
2
  class CommandResult
3
3
  attr_accessor :stdout, :stderr, :exit_code, :duration
4
4
 
5
- def initialize(stdout, stderr, exit_code, duration)
6
- @stdout = stdout
7
- @stderr = stderr
8
- @exit_code = exit_code
9
- @duration = duration
5
+ def initialize(params)
6
+ @stdout = params[:stdout] || ""
7
+ @stderr = params[:stderr] || ""
8
+ @exit_code = params[:exit_code] || 0
9
+ @duration = params[:duration] || 0
10
10
  end
11
11
 
12
12
  def output
@@ -1,3 +1,3 @@
1
1
  module Frontkick
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: frontkick
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Naotoshi Seo
@@ -98,4 +98,3 @@ specification_version: 4
98
98
  summary: Execute a command simply!
99
99
  test_files:
100
100
  - spec/spec_helper.rb
101
- has_rdoc: