ttytest2 1.6.0 → 1.6.1

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: efba349f76f4726f156f95a655ead1afadfbcb9cce9ce06f15f87d9861186535
4
- data.tar.gz: '0853b6b8a00b864d1b53b0d8517b25ecb3337051d0e4e73cac7f9aa0d676b2cd'
3
+ metadata.gz: c0fa1c262560d5866fd2332698f84cbb437774be387ef9913129a4dcd58d6cfc
4
+ data.tar.gz: fefd7044be11778ab833440aac04b8ffce35ee2bd73c3d9f15e395e936d45b32
5
5
  SHA512:
6
- metadata.gz: aa99a3bab7f20c1c9568dde993bc466506087b19e136f8cb45b6617482cb5fc3c9af8344fddf21d591e5026c9a5b16ca4dd57f97c2717d2311a6993c8511ed54
7
- data.tar.gz: 9d754810ae1f74c45db37ae4ac1de7495dbc5b83e786c29fd8c5f9be9f91e57e895638555bee13920ce6705b27a35ae33e5b22c3e6e5f99f4b7f5041325ba21f
6
+ metadata.gz: 1c11961cf15fb34b8a5597e8e16bc3b138aedc4d99bdff553f10ef8438d06a752ee316a51a1b9443c519974a7c7475aaa7e17e281d1dfbc5aaa236c261c5b941
7
+ data.tar.gz: b8ff2913809b906c8fab6ef293a3c086546001622c4a1a7271efd54a6934d9176f0e94af87de78c013134b4d7b3ce4a3530d5e8782529cdf11b38a58776fbd9e
@@ -18,13 +18,14 @@ module TTYtest
18
18
  alias assert_screen assert_contents
19
19
 
20
20
  # Asserts the contents of the terminal at specified rows
21
+ # @param [Integer] row_start the row (starting from 0) to test against
22
+ # @param [Integer] row_end the last row to test against
21
23
  # @param [String] expected the expected contents of the terminal at specified rows. Trailing whitespace on each line is ignored
22
24
  # @raise [MatchError] if the terminal doesn't match the expected content
23
25
  def assert_contents_at(row_start, row_end, expected)
24
26
  validate(row_end)
25
- row_end += 1 if row_end.zero?
26
27
 
27
- matched, diff = get_diff(expected, rows.slice(row_start, row_end))
28
+ matched, diff = get_diff(expected, rows[row_start..row_end])
28
29
 
29
30
  return if matched
30
31
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TTYtest
4
- VERSION = '1.6.0'
4
+ VERSION = '1.6.1'
5
5
  end
data/notes.txt CHANGED
@@ -1,7 +1,7 @@
1
1
  to push new version to github
2
- git tag v1.6.0
2
+ git tag v1.6.1
3
3
  git push origin --tags
4
4
 
5
5
  to push new version to rubygems.org
6
6
  gem build ttytest2.gemspec
7
- gem push ttytest2-1.6.0.gem
7
+ gem push ttytest2-1.6.1.gem
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ttytest2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Eski
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-10-11 00:00:00.000000000 Z
11
+ date: 2025-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler