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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 181001de3a7f0d5f8242a3cab24970dca6f4719b0fe59cfaa44a26d82470284f
4
- data.tar.gz: b23613f42604cbe77f24bbc8565b4d2d3f6fe67ee15f87a10b17e5da84e0c2e5
3
+ metadata.gz: f8ad82d816cfb01c9d6fabc7af0aa953a6be7834f9ac07f858cd47480a6399c9
4
+ data.tar.gz: 528cac6ff84aa4c96eb65d51f487e4d91058722154c4dc53526901a1080eef3d
5
5
  SHA512:
6
- metadata.gz: df4ab691a55a64032c96c5707573d670fd3152f06bd588d4adda41def01e73fb822ed31c5dce6d5336b03130f574fa53f0279a9d0b3cad4430dd917b63056cc9
7
- data.tar.gz: f6ea169a9445e9521107813a96e959f0b9eb8dd36c0b213c58f35282146ca27617e2b957c50e04c503a7de241d7446084e5a8e16815f7e098ed7864453166854
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
@@ -7,7 +7,3 @@ group :development do
7
7
  gem 'pry'
8
8
  gem 'pry-byebug'
9
9
  end
10
-
11
- group :test do
12
- gem 'coveralls', require: false
13
- end
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`. 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
+ 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.0')
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'
@@ -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
  #
@@ -1,3 +1,3 @@
1
1
  module Backticks
2
- VERSION = "1.0.5"
2
+ VERSION = "1.0.6"
3
3
  end
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.5
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: 2023-03-04 00:00:00.000000000 Z
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.0'
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.2.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