retest 2.2.0 → 2.2.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 +4 -4
- data/.github/workflows/ci.yml +13 -12
- data/Gemfile-3.4 +8 -0
- data/Gemfile-3.4.lock +71 -0
- data/Gemfile.lock +1 -1
- data/bin/list-ruby-versions +15 -0
- data/bin/start +3 -0
- data/lib/retest/version.rb +1 -1
- data/lib/retest/watcher.rb +16 -14
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d136e02d0fe9258511865619e208809547e4ab021ecd735755b3b76b0893ac6d
|
4
|
+
data.tar.gz: 5e93ba6847b556359e921cb8b4807676937708e8d8f55987b7cf6795082fe649
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a88d8f871d30a0d1bf74cf04dd19eed678290a74e2ccfa5454f8a8f70d3dafe5f83e76ec6e7177995be57527f54700137ae63995d48957e899e702aaf7607fe
|
7
|
+
data.tar.gz: c7527faa79a247c04de260cab878b40619de1a546980e8d2371c53c26c5056a5d9a8ad0dd489d4ebad63c6e3df2703c3fc6ed52748f40bf54699b2c4fdceb4a7
|
data/.github/workflows/ci.yml
CHANGED
@@ -20,23 +20,24 @@ jobs:
|
|
20
20
|
matrix:
|
21
21
|
os: [ubuntu-latest]
|
22
22
|
ruby:
|
23
|
-
- '2.5'
|
24
|
-
- '2.6'
|
25
|
-
- '2.7'
|
26
|
-
- '3.0'
|
27
|
-
- '3.1'
|
28
|
-
- '3.2'
|
29
|
-
- '3.3'
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
23
|
+
- version: '2.5'
|
24
|
+
- version: '2.6'
|
25
|
+
- version: '2.7'
|
26
|
+
- version: '3.0'
|
27
|
+
- version: '3.1'
|
28
|
+
- version: '3.2'
|
29
|
+
- version: '3.3'
|
30
|
+
- version: '3.4'
|
31
|
+
gemfile: Gemfile-3.4
|
32
|
+
name: Ruby ${{ matrix.ruby.version }} test (${{ matrix.os }})
|
33
|
+
env:
|
34
|
+
BUNDLE_GEMFILE: ${{ matrix.ruby.gemfile || 'Gemfile' }}
|
34
35
|
steps:
|
35
36
|
- uses: actions/checkout@v4
|
36
37
|
- name: Set up Ruby
|
37
38
|
uses: ruby/setup-ruby@v1
|
38
39
|
with:
|
39
|
-
ruby-version: ${{ matrix.ruby }}
|
40
|
+
ruby-version: ${{ matrix.ruby.version }}
|
40
41
|
bundler-cache: true
|
41
42
|
- run: bundle install
|
42
43
|
- run: bundle exec rake
|
data/Gemfile-3.4
ADDED
data/Gemfile-3.4.lock
ADDED
@@ -0,0 +1,71 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
retest (2.2.1)
|
5
|
+
listen (~> 3.9)
|
6
|
+
observer (~> 0.1)
|
7
|
+
string-similarity (~> 2.1)
|
8
|
+
tty-option (~> 0.1)
|
9
|
+
tty-prompt (~> 0.1)
|
10
|
+
|
11
|
+
GEM
|
12
|
+
remote: https://rubygems.org/
|
13
|
+
specs:
|
14
|
+
byebug (11.1.3)
|
15
|
+
ffi (1.17.1)
|
16
|
+
ffi (1.17.1-aarch64-linux-gnu)
|
17
|
+
ffi (1.17.1-aarch64-linux-musl)
|
18
|
+
ffi (1.17.1-arm-linux-gnu)
|
19
|
+
ffi (1.17.1-arm-linux-musl)
|
20
|
+
ffi (1.17.1-arm64-darwin)
|
21
|
+
ffi (1.17.1-x86-linux-gnu)
|
22
|
+
ffi (1.17.1-x86-linux-musl)
|
23
|
+
ffi (1.17.1-x86_64-darwin)
|
24
|
+
ffi (1.17.1-x86_64-linux-gnu)
|
25
|
+
ffi (1.17.1-x86_64-linux-musl)
|
26
|
+
listen (3.9.0)
|
27
|
+
rb-fsevent (~> 0.10, >= 0.10.3)
|
28
|
+
rb-inotify (~> 0.9, >= 0.9.10)
|
29
|
+
minitest (5.25.5)
|
30
|
+
observer (0.1.2)
|
31
|
+
pastel (0.8.0)
|
32
|
+
tty-color (~> 0.5)
|
33
|
+
rake (13.2.1)
|
34
|
+
rb-fsevent (0.11.2)
|
35
|
+
rb-inotify (0.11.1)
|
36
|
+
ffi (~> 1.0)
|
37
|
+
string-similarity (2.1.0)
|
38
|
+
tty-color (0.6.0)
|
39
|
+
tty-cursor (0.7.1)
|
40
|
+
tty-option (0.3.0)
|
41
|
+
tty-prompt (0.23.1)
|
42
|
+
pastel (~> 0.8)
|
43
|
+
tty-reader (~> 0.8)
|
44
|
+
tty-reader (0.9.0)
|
45
|
+
tty-cursor (~> 0.7)
|
46
|
+
tty-screen (~> 0.8)
|
47
|
+
wisper (~> 2.0)
|
48
|
+
tty-screen (0.8.2)
|
49
|
+
wisper (2.0.1)
|
50
|
+
|
51
|
+
PLATFORMS
|
52
|
+
aarch64-linux-gnu
|
53
|
+
aarch64-linux-musl
|
54
|
+
arm-linux-gnu
|
55
|
+
arm-linux-musl
|
56
|
+
arm64-darwin
|
57
|
+
ruby
|
58
|
+
x86-linux-gnu
|
59
|
+
x86-linux-musl
|
60
|
+
x86_64-darwin
|
61
|
+
x86_64-linux-gnu
|
62
|
+
x86_64-linux-musl
|
63
|
+
|
64
|
+
DEPENDENCIES
|
65
|
+
byebug
|
66
|
+
minitest (~> 5.0)
|
67
|
+
rake (~> 13.0)
|
68
|
+
retest!
|
69
|
+
|
70
|
+
BUNDLED WITH
|
71
|
+
2.6.6
|
data/Gemfile.lock
CHANGED
@@ -0,0 +1,15 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "rubygems"
|
4
|
+
|
5
|
+
`brew upgrade ruby-build`
|
6
|
+
|
7
|
+
ruby_list = `rbenv install --list-all`
|
8
|
+
|
9
|
+
puts ruby_list
|
10
|
+
.split("\n")
|
11
|
+
.select { |version| version =~ /^\d+\.\d+\.\d+$/ }
|
12
|
+
.select { |version| Gem::Version.new(version) >= Gem::Version.new("2.5") }
|
13
|
+
.group_by { |version| version[0..2] }
|
14
|
+
.transform_values { |version| version.max_by { |number| Gem::Version.new(number) } }
|
15
|
+
.values
|
data/bin/start
ADDED
data/lib/retest/version.rb
CHANGED
data/lib/retest/watcher.rb
CHANGED
@@ -41,13 +41,7 @@ module Retest
|
|
41
41
|
# Process group created with: pgroup: true
|
42
42
|
pid = Process.spawn(command, out: watch_wr, pgroup: true)
|
43
43
|
|
44
|
-
|
45
|
-
Process.kill("TERM", pid) if pid
|
46
|
-
watch_rd.close
|
47
|
-
watch_wr.close
|
48
|
-
end
|
49
|
-
|
50
|
-
Thread.new do
|
44
|
+
thread = Thread.new do
|
51
45
|
loop do
|
52
46
|
ready = IO.select([watch_rd])
|
53
47
|
readable_connections = ready[0]
|
@@ -68,6 +62,13 @@ module Retest
|
|
68
62
|
end
|
69
63
|
end
|
70
64
|
end
|
65
|
+
|
66
|
+
at_exit do
|
67
|
+
thread.exit
|
68
|
+
Process.kill("TERM", pid) if pid
|
69
|
+
watch_rd.close
|
70
|
+
watch_wr.close
|
71
|
+
end
|
71
72
|
end
|
72
73
|
end
|
73
74
|
|
@@ -86,13 +87,7 @@ module Retest
|
|
86
87
|
# Process group created with: pgroup: true
|
87
88
|
pid = Process.spawn(command, out: watch_wr, pgroup: true)
|
88
89
|
|
89
|
-
|
90
|
-
Process.kill("TERM", pid) if pid
|
91
|
-
watch_rd.close
|
92
|
-
watch_wr.close
|
93
|
-
end
|
94
|
-
|
95
|
-
Thread.new do
|
90
|
+
thread = Thread.new do
|
96
91
|
files = VersionControl.files(extensions: extensions).zip([]).to_h
|
97
92
|
|
98
93
|
loop do
|
@@ -125,6 +120,13 @@ module Retest
|
|
125
120
|
end
|
126
121
|
end
|
127
122
|
end
|
123
|
+
|
124
|
+
at_exit do
|
125
|
+
thread.exit
|
126
|
+
Process.kill("TERM", pid) if pid
|
127
|
+
watch_rd.close
|
128
|
+
watch_wr.close
|
129
|
+
end
|
128
130
|
end
|
129
131
|
end
|
130
132
|
end
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: retest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexandre Barret
|
8
|
-
autorequire:
|
9
8
|
bindir: exe
|
10
9
|
cert_chain: []
|
11
|
-
date: 2025-03-
|
10
|
+
date: 2025-03-17 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: string-similarity
|
@@ -80,7 +79,6 @@ dependencies:
|
|
80
79
|
- - "~>"
|
81
80
|
- !ruby/object:Gem::Version
|
82
81
|
version: '0.1'
|
83
|
-
description:
|
84
82
|
email:
|
85
83
|
- alex@abletech.nz
|
86
84
|
executables:
|
@@ -92,6 +90,8 @@ files:
|
|
92
90
|
- ".github/workflows/ci.yml"
|
93
91
|
- ".gitignore"
|
94
92
|
- Gemfile
|
93
|
+
- Gemfile-3.4
|
94
|
+
- Gemfile-3.4.lock
|
95
95
|
- Gemfile.lock
|
96
96
|
- LICENSE.txt
|
97
97
|
- README.md
|
@@ -100,7 +100,9 @@ files:
|
|
100
100
|
- bin/build/watchexec
|
101
101
|
- bin/console
|
102
102
|
- bin/debug
|
103
|
+
- bin/list-ruby-versions
|
103
104
|
- bin/setup
|
105
|
+
- bin/start
|
104
106
|
- bin/test/bundler-app
|
105
107
|
- bin/test/git-ruby
|
106
108
|
- bin/test/hanami-app
|
@@ -146,7 +148,6 @@ licenses:
|
|
146
148
|
metadata:
|
147
149
|
homepage_uri: https://github.com/AlexB52/retest
|
148
150
|
source_code_uri: https://github.com/AlexB52/retest
|
149
|
-
post_install_message:
|
150
151
|
rdoc_options: []
|
151
152
|
require_paths:
|
152
153
|
- lib
|
@@ -161,8 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
161
162
|
- !ruby/object:Gem::Version
|
162
163
|
version: '0'
|
163
164
|
requirements: []
|
164
|
-
rubygems_version: 3.
|
165
|
-
signing_key:
|
165
|
+
rubygems_version: 3.6.2
|
166
166
|
specification_version: 4
|
167
167
|
summary: A simple command line tool to watch file change and run its matching spec.
|
168
168
|
test_files: []
|