backticks 1.0.5 → 1.0.6
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 +4 -4
- data/.github/workflows/ci.yml +23 -0
- data/.github/workflows/release.yml +18 -0
- data/Gemfile +0 -4
- data/README.md +6 -3
- data/backticks.gemspec +1 -1
- data/lib/backticks/runner.rb +7 -0
- data/lib/backticks/version.rb +1 -1
- metadata +6 -5
- data/.travis.yml +0 -32
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f8ad82d816cfb01c9d6fabc7af0aa953a6be7834f9ac07f858cd47480a6399c9
|
|
4
|
+
data.tar.gz: 528cac6ff84aa4c96eb65d51f487e4d91058722154c4dc53526901a1080eef3d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 245dcbdf35b2e4dd5ef731a9ffb39bc90ed73dd478e703b16556327ad31c9993ce82adba714b05bdbd4c6012cf0e5cb5e982b8f7884331278323db9fc2b4cb15
|
|
7
|
+
data.tar.gz: d5058f58b5b5911e67ecf4ed42aae6867087a6a190d4e611b52ee5c19e2d194588c3874739bea539862b2d745b87118821b981c6b9a1078f16b5fdf65a590b21
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [master]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [master]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
test:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
timeout-minutes: 10
|
|
13
|
+
strategy:
|
|
14
|
+
fail-fast: false
|
|
15
|
+
matrix:
|
|
16
|
+
ruby: ['3.2', '3.3', 'head']
|
|
17
|
+
steps:
|
|
18
|
+
- uses: actions/checkout@v4
|
|
19
|
+
- uses: ruby/setup-ruby@v1
|
|
20
|
+
with:
|
|
21
|
+
ruby-version: ${{ matrix.ruby }}
|
|
22
|
+
bundler-cache: true
|
|
23
|
+
- run: bundle exec rake spec
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [published]
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
publish:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
permissions:
|
|
11
|
+
id-token: write
|
|
12
|
+
steps:
|
|
13
|
+
- uses: actions/checkout@v4
|
|
14
|
+
- uses: ruby/setup-ruby@v1
|
|
15
|
+
with:
|
|
16
|
+
ruby-version: '3.3'
|
|
17
|
+
bundler-cache: true
|
|
18
|
+
- uses: rubygems/release-gem@v1
|
data/Gemfile
CHANGED
data/README.md
CHANGED
|
@@ -78,7 +78,7 @@ To use pipes for all I/O streams, enable buffering on the Runner:
|
|
|
78
78
|
# at initialize-time
|
|
79
79
|
r = Backticks::Runner.new(buffered:true)
|
|
80
80
|
|
|
81
|
-
# or later on
|
|
81
|
+
# or later on, to change the bahvior
|
|
82
82
|
r.buffered = false
|
|
83
83
|
|
|
84
84
|
# you can also specify invididual stream names to buffer
|
|
@@ -87,7 +87,8 @@ r.buffered = [:stderr]
|
|
|
87
87
|
|
|
88
88
|
When you read the `buffered` attribute of a Runner, it returns the list of
|
|
89
89
|
stream names that are buffered; this means that even if you _write_ a boolean
|
|
90
|
-
to this attribute, you will _read_ an Array of Symbol.
|
|
90
|
+
to this attribute, you will _read_ an Array of Symbol. You can call `buffered?`
|
|
91
|
+
to get a boolean result instead.
|
|
91
92
|
|
|
92
93
|
### Interactivity and Real-Time Capture
|
|
93
94
|
|
|
@@ -156,7 +157,9 @@ escaping and shell safety.
|
|
|
156
157
|
|
|
157
158
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
|
158
159
|
|
|
159
|
-
To install this gem onto your local machine, run `bundle exec rake install`.
|
|
160
|
+
To install this gem onto your local machine, run `bundle exec rake install`.
|
|
161
|
+
|
|
162
|
+
To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
|
160
163
|
|
|
161
164
|
## Contributing
|
|
162
165
|
|
data/backticks.gemspec
CHANGED
|
@@ -19,7 +19,7 @@ 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('>= 2.0', '< 4.
|
|
22
|
+
spec.required_ruby_version = Gem::Requirement.new('>= 2.0', '< 4.1')
|
|
23
23
|
|
|
24
24
|
spec.add_development_dependency 'bundler'
|
|
25
25
|
spec.add_development_dependency 'rake'
|
data/lib/backticks/runner.rb
CHANGED
|
@@ -65,6 +65,13 @@ module Backticks
|
|
|
65
65
|
self.interactive = options[:interactive]
|
|
66
66
|
end
|
|
67
67
|
|
|
68
|
+
# Determine whether buffering is enabled.
|
|
69
|
+
#
|
|
70
|
+
# @return [true,false]
|
|
71
|
+
def buffered?
|
|
72
|
+
!!buffered
|
|
73
|
+
end
|
|
74
|
+
|
|
68
75
|
# Control which streams are buffered (i.e. use a pipe) and which are
|
|
69
76
|
# unbuffered (i.e. use a pseudo-TTY).
|
|
70
77
|
#
|
data/lib/backticks/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
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.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tony Spataro
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-03-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -59,10 +59,11 @@ executables: []
|
|
|
59
59
|
extensions: []
|
|
60
60
|
extra_rdoc_files: []
|
|
61
61
|
files:
|
|
62
|
+
- ".github/workflows/ci.yml"
|
|
63
|
+
- ".github/workflows/release.yml"
|
|
62
64
|
- ".gitignore"
|
|
63
65
|
- ".rspec"
|
|
64
66
|
- ".ruby-version"
|
|
65
|
-
- ".travis.yml"
|
|
66
67
|
- CHANGELOG.md
|
|
67
68
|
- CODE_OF_CONDUCT.md
|
|
68
69
|
- Gemfile
|
|
@@ -92,14 +93,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
92
93
|
version: '2.0'
|
|
93
94
|
- - "<"
|
|
94
95
|
- !ruby/object:Gem::Version
|
|
95
|
-
version: '4.
|
|
96
|
+
version: '4.1'
|
|
96
97
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
97
98
|
requirements:
|
|
98
99
|
- - ">="
|
|
99
100
|
- !ruby/object:Gem::Version
|
|
100
101
|
version: '0'
|
|
101
102
|
requirements: []
|
|
102
|
-
rubygems_version: 3.
|
|
103
|
+
rubygems_version: 3.5.22
|
|
103
104
|
signing_key:
|
|
104
105
|
specification_version: 4
|
|
105
106
|
summary: Intuitive OOP wrapper for command-line processes
|
data/.travis.yml
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
sudo: false
|
|
2
|
-
language: ruby
|
|
3
|
-
rvm:
|
|
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
|
-
|
|
32
|
-
script: bundle exec rake spec
|