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 +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/frontkick/command.rb +1 -1
- data/lib/frontkick/version.rb +1 -1
- data/spec/frontkick/command_spec.rb +10 -0
- data/spec/spec_helper.rb +2 -0
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63b7b2198e42097421d10d7239c37e2e54a8dfb3
|
4
|
+
data.tar.gz: 43d83e3462ef85f1eec58cbf1100444b394b7463
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f745524870d4a7c8a6a99555ef146e9c6bac60b0110d40cf3462b5c7061bddc5087d2daffa8a095c3916517c935f12abfe10680ea493e05b7c35a53d1c0cbcf6
|
7
|
+
data.tar.gz: 2581b317c4a408e85099b7ee495cb5d8905c4df200d0de74880376b5eec456a1b2775903c713e70818ac2b4c8698f8e30f492c842c5991f0bcad7d512972de18
|
data/CHANGELOG.md
CHANGED
data/lib/frontkick/command.rb
CHANGED
@@ -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,
|
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?
|
data/lib/frontkick/version.rb
CHANGED
@@ -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
|
data/spec/spec_helper.rb
CHANGED
@@ -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.
|
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-
|
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
|
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
|