frontkick 0.5.5 → 0.5.6

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: 15b843028a22925691e8f1746f64512fcc4b5e41
4
- data.tar.gz: 365e8d2f64e51103895af090c1ea5ef14cd66fb9
3
+ metadata.gz: 63b7b2198e42097421d10d7239c37e2e54a8dfb3
4
+ data.tar.gz: 43d83e3462ef85f1eec58cbf1100444b394b7463
5
5
  SHA512:
6
- metadata.gz: dd1f32da4df783699687b209a3475f47f07dcf4b973090784a3601dc00ae2f07893300c08eb51b88e9c0df68b69b8987468dabb34a71c310631547a07c5838ec
7
- data.tar.gz: 5e870eb23d7ccaba8655134131fac61f3653f8ac98bf1f16b0b30e68558474dfec6e28bfb5d16c611cb0537695836aa8acea5ba131b19b87912dcb7655f607f8
6
+ metadata.gz: f745524870d4a7c8a6a99555ef146e9c6bac60b0110d40cf3462b5c7061bddc5087d2daffa8a095c3916517c935f12abfe10680ea493e05b7c35a53d1c0cbcf6
7
+ data.tar.gz: 2581b317c4a408e85099b7ee495cb5d8905c4df200d0de74880376b5eec456a1b2775903c713e70818ac2b4c8698f8e30f492c842c5991f0bcad7d512972de18
@@ -1,3 +1,9 @@
1
+ # 0.5.6 (2017/04/10)
2
+
3
+ Fixes:
4
+
5
+ - Fix `undefined local variable or method 'command'` occurs on timeout
6
+
1
7
  # 0.5.5 (2017/03/20)
2
8
 
3
9
  Enhancements:
@@ -109,7 +109,7 @@ module Frontkick
109
109
  exit_code = wait_thr.value.exitstatus
110
110
  process_wait(pid)
111
111
  end
112
- raise Frontkick::Timeout.new(pid, command, opts[:timeout_kill])
112
+ raise Frontkick::Timeout.new(pid, Shellwords.shelljoin(cmd_array), opts[:timeout_kill])
113
113
  ensure
114
114
  stdin.close if stdin and !stdin.closed?
115
115
  stdout.close if stdout and !stdout.closed?
@@ -1,3 +1,3 @@
1
1
  module Frontkick
2
- VERSION = "0.5.5"
2
+ VERSION = "0.5.6"
3
3
  end
@@ -0,0 +1,10 @@
1
+ require 'spec_helper'
2
+
3
+ RSpec.describe Frontkick::Command do
4
+ describe '.exec' do
5
+ describe 'timeout option' do
6
+ subject { described_class.exec('sleep 2 && ls /hoge', timeout: 1) }
7
+ it { expect { subject }.to raise_error Frontkick::Timeout }
8
+ end
9
+ end
10
+ end
@@ -5,6 +5,8 @@ require "pry"
5
5
  ROOT = File.dirname(__FILE__)
6
6
  Dir[File.expand_path("support/**/*.rb", ROOT)].each {|f| require f }
7
7
 
8
+ require 'frontkick'
9
+
8
10
  RSpec.configure do |config|
9
11
  config.treat_symbols_as_metadata_keys_with_true_values = true
10
12
  config.run_all_when_everything_filtered = true
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.5.5
4
+ version: 0.5.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Naotoshi Seo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-20 00:00:00.000000000 Z
11
+ date: 2017-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -87,6 +87,7 @@ files:
87
87
  - lib/frontkick/error.rb
88
88
  - lib/frontkick/result.rb
89
89
  - lib/frontkick/version.rb
90
+ - spec/frontkick/command_spec.rb
90
91
  - spec/spec_helper.rb
91
92
  homepage: https://github.com/sonots/frontkick
92
93
  licenses: []
@@ -107,9 +108,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
107
108
  version: '0'
108
109
  requirements: []
109
110
  rubyforge_project:
110
- rubygems_version: 2.5.1
111
+ rubygems_version: 2.4.5
111
112
  signing_key:
112
113
  specification_version: 4
113
114
  summary: Execute a command simply!
114
115
  test_files:
116
+ - spec/frontkick/command_spec.rb
115
117
  - spec/spec_helper.rb