backticks 1.0.2 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.ruby-version +1 -0
- data/.travis.yml +28 -6
- data/backticks.gemspec +3 -3
- data/lib/backticks/command.rb +6 -0
- data/lib/backticks/version.rb +1 -1
- metadata +19 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 8fdc95c7f7403e23a9522b5cddaded8b593bc7a34dd2f4cc98322d62e423b1f8
|
4
|
+
data.tar.gz: 6339ee417426c52b2837f3045e3e02e137559a0b2a9141dc905fc2b7df3f8934
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c757ab50b30effccd99f2be7dbc13b972cad6ad7a5c20d4ed2da34b5430d2dd35be351e2995379144f199b25145e9a5fb82c4b335a281d502ac1bfb56f58442
|
7
|
+
data.tar.gz: edea4d8a1b83f0c0bc619f53a39a51005d74fa760bc0db565aa75acbe75952311b89e62c51c31bfb2cf2811dff18ced28d9da1fddb669ad7f4d1bde95dc66183
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
3.0.0
|
data/.travis.yml
CHANGED
@@ -1,10 +1,32 @@
|
|
1
1
|
sudo: false
|
2
2
|
language: ruby
|
3
3
|
rvm:
|
4
|
-
- 2.0
|
5
|
-
- 2.1
|
6
|
-
- 2.2
|
7
|
-
- 2.3
|
8
|
-
- 2.4
|
9
|
-
|
4
|
+
- 2.0
|
5
|
+
- 2.1
|
6
|
+
- 2.2
|
7
|
+
- 2.3
|
8
|
+
- 2.4
|
9
|
+
- 2.7.1
|
10
|
+
- 3.0.0
|
11
|
+
|
12
|
+
jobs:
|
13
|
+
include:
|
14
|
+
- rvm: 2.0
|
15
|
+
before_install: gem install bundler -v 1.17.3
|
16
|
+
- rvm: 2.1
|
17
|
+
before_install: gem install bundler -v 1.17.3
|
18
|
+
- rvm: 2.2
|
19
|
+
before_install: gem install bundler -v 1.17.3
|
20
|
+
- rvm: 2.3
|
21
|
+
before_install: gem install bundler
|
22
|
+
- rvm: 2.4
|
23
|
+
before_install: gem install bundler
|
24
|
+
- rvm: 2.6
|
25
|
+
before_install: gem install bundler
|
26
|
+
- rvm: 2.7
|
27
|
+
before_install: gem install bundler
|
28
|
+
- rvm: 3.0
|
29
|
+
before_install: gem install bundler
|
30
|
+
dist: focal # Workaround for: https://github.com/rvm/rvm/issues/5133
|
31
|
+
|
10
32
|
script: bundle exec rake spec
|
data/backticks.gemspec
CHANGED
@@ -19,9 +19,9 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
20
|
spec.require_paths = ['lib']
|
21
21
|
|
22
|
-
spec.required_ruby_version = Gem::Requirement.new(
|
22
|
+
spec.required_ruby_version = Gem::Requirement.new('>= 2.0', '< 4.0')
|
23
23
|
|
24
|
-
spec.add_development_dependency 'bundler'
|
25
|
-
spec.add_development_dependency 'rake'
|
24
|
+
spec.add_development_dependency 'bundler'
|
25
|
+
spec.add_development_dependency 'rake'
|
26
26
|
spec.add_development_dependency 'rspec'
|
27
27
|
end
|
data/lib/backticks/command.rb
CHANGED
@@ -70,6 +70,11 @@ module Backticks
|
|
70
70
|
status.success?
|
71
71
|
end
|
72
72
|
|
73
|
+
# Determine whether output has been exhausted.
|
74
|
+
def eof?
|
75
|
+
@stdout.eof? && @stderr.eof?
|
76
|
+
end
|
77
|
+
|
73
78
|
# Provide a callback to monitor input and output in real time. This method
|
74
79
|
# saves a reference to block for later use; whenever the command generates
|
75
80
|
# output or receives input, the block is called back with the name of the
|
@@ -100,6 +105,7 @@ module Backticks
|
|
100
105
|
res = Process.waitpid(@pid, Process::WNOHANG)
|
101
106
|
if res
|
102
107
|
@status = $?
|
108
|
+
capture(nil) until eof?
|
103
109
|
return self
|
104
110
|
end
|
105
111
|
end
|
data/lib/backticks/version.rb
CHANGED
metadata
CHANGED
@@ -1,43 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: backticks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tony Spataro
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-03-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -61,6 +61,7 @@ extra_rdoc_files: []
|
|
61
61
|
files:
|
62
62
|
- ".gitignore"
|
63
63
|
- ".rspec"
|
64
|
+
- ".ruby-version"
|
64
65
|
- ".travis.yml"
|
65
66
|
- CHANGELOG.md
|
66
67
|
- CODE_OF_CONDUCT.md
|
@@ -80,24 +81,26 @@ homepage: https://github.com/xeger/backticks
|
|
80
81
|
licenses:
|
81
82
|
- MIT
|
82
83
|
metadata: {}
|
83
|
-
post_install_message:
|
84
|
+
post_install_message:
|
84
85
|
rdoc_options: []
|
85
86
|
require_paths:
|
86
87
|
- lib
|
87
88
|
required_ruby_version: !ruby/object:Gem::Requirement
|
88
89
|
requirements:
|
89
|
-
- - "
|
90
|
+
- - ">="
|
90
91
|
- !ruby/object:Gem::Version
|
91
92
|
version: '2.0'
|
93
|
+
- - "<"
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '4.0'
|
92
96
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
93
97
|
requirements:
|
94
98
|
- - ">="
|
95
99
|
- !ruby/object:Gem::Version
|
96
100
|
version: '0'
|
97
101
|
requirements: []
|
98
|
-
|
99
|
-
|
100
|
-
signing_key:
|
102
|
+
rubygems_version: 3.2.3
|
103
|
+
signing_key:
|
101
104
|
specification_version: 4
|
102
105
|
summary: Intuitive OOP wrapper for command-line processes
|
103
106
|
test_files: []
|