ttytest2 0.8.0 → 0.8.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: d3f08a4827e337de7e9124c7c0daf929922f9c6dfb573a03e88ee5e23b243cf9
4
- data.tar.gz: 1f4ae48c6dff1ce25ea0a22c6f29c188b98caee3efa2a512132e4c416a522185
3
+ metadata.gz: 7a35421907aa8999c90ba5e18959aa659bf6a9b14248ae46acddb7d18f1db0f5
4
+ data.tar.gz: bbf9762f20e681e29861f9f04090afa03c238fccee3ea6e3d2e8314fb6fa88c1
5
5
  SHA512:
6
- metadata.gz: edc7cb24ffec16991743b8dd104050f594f78a68ed44b88df91e2ce3ba52045dd0d37548b978a1bc47e0bd424d3dd8b1b75b9cce231f323bb6f860e2fb6ef7e4
7
- data.tar.gz: 8d7e3f220552cc6485fa848e046eb6711e18117f43d6fb99d1fdc1751391da3e0aa719cc5c50b34dd3a4256eb89e17fec5a3868d32084074909af68110570283
6
+ metadata.gz: 978ca3331442680de64cd74fdd9e7167526c4a521dc9ed41fdbd8e08d89d9caebb617d6427edb58b5bc79b1b0a522cbb4a54d0854a5f8a3953f22777adebc0d9
7
+ data.tar.gz: 4115b6301cba03d98b92a6b40f9264b3a0630f28421fae34d402bbfef941f6704895e6b73fee83ddde511b2523f602a16d351434366392a75a1e61457164432d
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module TTYtest
2
4
  # Represents the complete state of a {TTYtest::Terminal} at the time it was captured (contents, cursor position, etc).
3
5
  # @attr_reader [Integer] width the number of columns in the captured terminal
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module TTYtest
2
4
  # Assertions for ttytest2.
3
5
  module Matchers
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'forwardable'
2
4
  require 'ttytest/matchers'
3
5
  require 'ttytest/capture'
@@ -2,19 +2,20 @@
2
2
 
3
3
  module TTYtest
4
4
  module Tmux
5
+ # tmux session manager
5
6
  class Session
6
7
  # @api private
7
8
  def initialize(driver, name)
8
9
  @driver = driver
9
10
  @name = name
10
11
 
11
- ObjectSpace.define_finalizer(self, self.class.finalize(driver, name))
12
+ # ObjectSpace.define_finalizer(self, self.class.finalize(driver, name))
12
13
  end
13
14
 
14
15
  # @api private
15
- def self.finalize(driver, name)
16
- proc { driver.tmux(*%W[kill-session -t #{name}]) }
17
- end
16
+ # def self.finalize(driver, name)
17
+ # proc { driver.tmux(*%W[kill-session -t #{name}]) }
18
+ # end
18
19
 
19
20
  def capture
20
21
  contents = driver.tmux(*%W[capture-pane -t #{name} -p])
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module TTYtest
2
- VERSION = '0.8.0'.freeze
4
+ VERSION = '0.8.1'
3
5
  end
data/lib/ttytest.rb CHANGED
@@ -1,7 +1,10 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'forwardable'
2
4
  require 'ttytest/tmux/driver'
3
5
  require 'ttytest/tmux/session'
4
6
 
7
+ # ttytest2 main module
5
8
  module TTYtest
6
9
  class << self
7
10
  attr_accessor :driver, :default_max_wait_time
data/notes.txt CHANGED
@@ -1,7 +1,7 @@
1
1
  to push new version to github,
2
- git tag v0.8.0
2
+ git tag v0.8.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-0.8.0.gem
7
+ gem push ttytest2-0.8.1.gem
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ttytest2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Eski