cexpect 0.3.0 → 0.4.2

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: beaafefd8da9cc27f26ca3ec0e6aa72c5d74e7c693d1fbd47fec019975636511
4
- data.tar.gz: 468e494c7a35350c51f629ba486888f107c69f009bbec7be43a388c8d94992a1
3
+ metadata.gz: e7fae5794c34490ab7a16d086ca647702d968488fcb16df1aa8ccb9f8f9e27fc
4
+ data.tar.gz: 87e1423fb76d080ea61b2600721be39dd22c44a98d6e242771ec9f8773542e16
5
5
  SHA512:
6
- metadata.gz: 81abfc895b814481b8cb1c261696f597f93833212eed8120f53ace4d16f7ed521f6533db05f23fad9c482a9494751a6b3b80984954898c515582d3618e0137be
7
- data.tar.gz: 939d84e0607b7bb23546cbdd9c8898b2fe9f6710613417e960128ef198cf173043acae2c150943c3dffc9d7f9bda93e1859dc4482cf3745bff2901bcf844b8cb
6
+ metadata.gz: 181add52f1ccecc153e2fd1609366669a8eb63436580a48d692eacd5cb03c23fd2a21487c5a507a847ec131d9189250bd1966e3d2dd8a53b56357cafa03bf270
7
+ data.tar.gz: '04329505213de3a6346ca0f0d9904689ec0e5058991386fbfe9c10ac2e0531230113c7570e645c615270b1fbb0c80d66e8e1d94b7bee62cee1d053ce9d5bdd8d'
data/.rubocop.yml CHANGED
@@ -4,13 +4,11 @@ AllCops:
4
4
  Exclude:
5
5
  - 'bin/{console,setup}' # not mine
6
6
  - 'Gemfile' # maintained through "bundle" command
7
+ NewCops: enable
7
8
 
8
9
  # TODO: Clean up tests
9
10
  RSpec/ExpectInHook:
10
11
  Enabled: false
11
- RSpec/FilePath:
12
- Exclude:
13
- - spec/cexpect_spec.rb
14
12
  RSpec/MessageSpies:
15
13
  Enabled: false
16
14
  RSpec/NestedGroups:
data/Gemfile CHANGED
@@ -3,8 +3,8 @@ source "https://rubygems.org"
3
3
  # Specify your gem's dependencies in cexpect.gemspec
4
4
  gemspec
5
5
 
6
- gem "rake", "~> 12.0"
7
- gem "rspec", "~> 3.0"
8
-
9
- gem "rubocop", "~> 0.82.0"
10
- gem "rubocop-rspec", "~> 1.38"
6
+ gem "rake", "~> 13.2"
7
+ gem "rspec", "~> 3.13"
8
+ gem "rspec-support", "~> 3.13.1"
9
+ gem "rubocop", "~> 1.65"
10
+ gem "rubocop-rspec", "~> 3.0"
data/Gemfile.lock CHANGED
@@ -1,55 +1,68 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cexpect (0.3.0)
4
+ cexpect (0.4.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
9
  ast (2.4.2)
10
- diff-lcs (1.4.4)
11
- jaro_winkler (1.5.4)
12
- parallel (1.20.1)
13
- parser (3.0.1.1)
10
+ diff-lcs (1.5.1)
11
+ json (2.7.2)
12
+ language_server-protocol (3.17.0.3)
13
+ parallel (1.26.3)
14
+ parser (3.3.4.2)
14
15
  ast (~> 2.4.1)
15
- rainbow (3.0.0)
16
- rake (12.3.3)
17
- rexml (3.2.5)
18
- rspec (3.10.0)
19
- rspec-core (~> 3.10.0)
20
- rspec-expectations (~> 3.10.0)
21
- rspec-mocks (~> 3.10.0)
22
- rspec-core (3.10.1)
23
- rspec-support (~> 3.10.0)
24
- rspec-expectations (3.10.1)
16
+ racc
17
+ racc (1.8.1)
18
+ rainbow (3.1.1)
19
+ rake (13.2.1)
20
+ regexp_parser (2.9.2)
21
+ rexml (3.3.6)
22
+ strscan
23
+ rspec (3.13.0)
24
+ rspec-core (~> 3.13.0)
25
+ rspec-expectations (~> 3.13.0)
26
+ rspec-mocks (~> 3.13.0)
27
+ rspec-core (3.13.0)
28
+ rspec-support (~> 3.13.0)
29
+ rspec-expectations (3.13.2)
25
30
  diff-lcs (>= 1.2.0, < 2.0)
26
- rspec-support (~> 3.10.0)
27
- rspec-mocks (3.10.2)
31
+ rspec-support (~> 3.13.0)
32
+ rspec-mocks (3.13.1)
28
33
  diff-lcs (>= 1.2.0, < 2.0)
29
- rspec-support (~> 3.10.0)
30
- rspec-support (3.10.2)
31
- rubocop (0.82.0)
32
- jaro_winkler (~> 1.5.1)
34
+ rspec-support (~> 3.13.0)
35
+ rspec-support (3.13.1)
36
+ rubocop (1.65.1)
37
+ json (~> 2.3)
38
+ language_server-protocol (>= 3.17.0)
33
39
  parallel (~> 1.10)
34
- parser (>= 2.7.0.1)
40
+ parser (>= 3.3.0.2)
35
41
  rainbow (>= 2.2.2, < 4.0)
36
- rexml
42
+ regexp_parser (>= 2.4, < 3.0)
43
+ rexml (>= 3.2.5, < 4.0)
44
+ rubocop-ast (>= 1.31.1, < 2.0)
37
45
  ruby-progressbar (~> 1.7)
38
- unicode-display_width (>= 1.4.0, < 2.0)
39
- rubocop-rspec (1.41.0)
40
- rubocop (>= 0.68.1)
41
- ruby-progressbar (1.11.0)
42
- unicode-display_width (1.7.0)
46
+ unicode-display_width (>= 2.4.0, < 3.0)
47
+ rubocop-ast (1.32.1)
48
+ parser (>= 3.3.1.0)
49
+ rubocop-rspec (3.0.4)
50
+ rubocop (~> 1.61)
51
+ ruby-progressbar (1.13.0)
52
+ strscan (3.1.0)
53
+ unicode-display_width (2.5.0)
43
54
 
44
55
  PLATFORMS
45
56
  ruby
57
+ x86_64-darwin-23
46
58
 
47
59
  DEPENDENCIES
48
60
  cexpect!
49
- rake (~> 12.0)
50
- rspec (~> 3.0)
51
- rubocop (~> 0.82.0)
52
- rubocop-rspec (~> 1.38)
61
+ rake (~> 13.2)
62
+ rspec (~> 3.13)
63
+ rspec-support (~> 3.13.1)
64
+ rubocop (~> 1.65)
65
+ rubocop-rspec (~> 3.0)
53
66
 
54
67
  BUNDLED WITH
55
- 2.1.4
68
+ 2.5.17
data/cexpect.gemspec CHANGED
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # rubocop: disable Gemspec/RequireMFA
4
+
3
5
  require_relative 'lib/cexpect/version'
4
6
 
5
7
  Gem::Specification.new do |spec|
@@ -9,11 +11,11 @@ Gem::Specification.new do |spec|
9
11
  spec.email = ['christer@janssons.org']
10
12
 
11
13
  spec.summary = 'An improved expect method'
12
- spec.description = 'An expect method with more reasonable return' \
13
- ' values and logging functionality'
14
+ spec.description = 'An expect method with more reasonable return ' \
15
+ 'values and logging functionality'
14
16
  spec.homepage = 'https://github.com/kondensatorn/cexpect'
15
17
  spec.license = 'BSD-2-Clause'
16
- spec.required_ruby_version = Gem::Requirement.new('>= 2.3.0')
18
+ spec.required_ruby_version = Gem::Requirement.new('>= 3.0.0')
17
19
 
18
20
  spec.metadata['homepage_uri'] = spec.homepage
19
21
  spec.metadata['source_code_uri'] = spec.homepage
@@ -30,3 +32,5 @@ Gem::Specification.new do |spec|
30
32
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
31
33
  spec.require_paths = ['lib']
32
34
  end
35
+
36
+ # rubocop: enable Gemspec/RequireMFA
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CExpect
4
- VERSION = '0.3.0'
4
+ VERSION = '0.4.2'
5
5
  end
data/lib/cexpect.rb CHANGED
@@ -59,7 +59,7 @@ module CExpect
59
59
  def getc(timeout)
60
60
  rd = __getobj__
61
61
 
62
- return nil if !IO.select([rd], nil, nil, timeout) || eof?
62
+ return nil if !rd.wait_readable(timeout) || eof?
63
63
 
64
64
  rd.getc.chr
65
65
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cexpect
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christer Jansson
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-08-18 00:00:00.000000000 Z
11
+ date: 2024-08-24 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: An expect method with more reasonable return values and logging functionality
14
14
  email:
@@ -41,7 +41,7 @@ metadata:
41
41
  homepage_uri: https://github.com/kondensatorn/cexpect
42
42
  source_code_uri: https://github.com/kondensatorn/cexpect
43
43
  changelog_uri: https://github.com/kondensatorn/cexpect/CHANGELOG.md
44
- post_install_message:
44
+ post_install_message:
45
45
  rdoc_options: []
46
46
  require_paths:
47
47
  - lib
@@ -49,15 +49,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
49
49
  requirements:
50
50
  - - ">="
51
51
  - !ruby/object:Gem::Version
52
- version: 2.3.0
52
+ version: 3.0.0
53
53
  required_rubygems_version: !ruby/object:Gem::Requirement
54
54
  requirements:
55
55
  - - ">="
56
56
  - !ruby/object:Gem::Version
57
57
  version: '0'
58
58
  requirements: []
59
- rubygems_version: 3.1.6
60
- signing_key:
59
+ rubygems_version: 3.5.15
60
+ signing_key:
61
61
  specification_version: 4
62
62
  summary: An improved expect method
63
63
  test_files: []