formie 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/rake.yml +1 -3
- data/.ruby-version +1 -1
- data/Gemfile.lock +92 -94
- data/MIT-LICENSE +1 -1
- data/README.md +1 -2
- data/formie.gemspec +0 -3
- data/lib/formie/version.rb +2 -1
- metadata +3 -32
- data/.watchr +0 -59
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ebf7737de8d4afca91ebff32ec0bfb2164f52964e5a4c611fb6957d31576ba70
|
4
|
+
data.tar.gz: 402816d39d77d39b74914fdca1d33d83e47f8ee548324cd314a86fce59806848
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5db6b5b77f7fa7cfdd2370768fa9e5410ae2fcca5d483a9733658f8cff19f716513f1b67245dd9cc52eced89709fa10de8a97eb39a5c273911ebd58a913b7901
|
7
|
+
data.tar.gz: 76a452db8870277aefe56e004ff540149b529df31010aae0d57695126623cfe34eaf09f38f049bfd4a4584e909c68267d8f8f437b24fcb2a339bcbd9041cb866
|
data/.github/workflows/rake.yml
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# see also https://github.com/whitequark/parser/blob/master/.github/workflows/test.yml
|
2
2
|
name: Rake
|
3
3
|
|
4
|
-
#on: [push, pull_request]
|
5
4
|
on: [push]
|
6
5
|
|
7
6
|
jobs:
|
@@ -10,8 +9,7 @@ jobs:
|
|
10
9
|
fail-fast: false
|
11
10
|
matrix:
|
12
11
|
os: [ubuntu-latest]
|
13
|
-
|
14
|
-
ruby: ["2.7", "3.0", "3.1", head]
|
12
|
+
ruby: ["2.7", "3.0", "3.2", head]
|
15
13
|
test_command: ["bundle exec rake test"]
|
16
14
|
runs-on: ${{ matrix.os }}
|
17
15
|
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby-3.
|
1
|
+
ruby-3.2.2
|
data/Gemfile.lock
CHANGED
@@ -1,77 +1,77 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
formie (1.
|
4
|
+
formie (1.1.1)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
|
-
actioncable (7.0.4)
|
10
|
-
actionpack (= 7.0.4)
|
11
|
-
activesupport (= 7.0.4)
|
9
|
+
actioncable (7.0.4.3)
|
10
|
+
actionpack (= 7.0.4.3)
|
11
|
+
activesupport (= 7.0.4.3)
|
12
12
|
nio4r (~> 2.0)
|
13
13
|
websocket-driver (>= 0.6.1)
|
14
|
-
actionmailbox (7.0.4)
|
15
|
-
actionpack (= 7.0.4)
|
16
|
-
activejob (= 7.0.4)
|
17
|
-
activerecord (= 7.0.4)
|
18
|
-
activestorage (= 7.0.4)
|
19
|
-
activesupport (= 7.0.4)
|
14
|
+
actionmailbox (7.0.4.3)
|
15
|
+
actionpack (= 7.0.4.3)
|
16
|
+
activejob (= 7.0.4.3)
|
17
|
+
activerecord (= 7.0.4.3)
|
18
|
+
activestorage (= 7.0.4.3)
|
19
|
+
activesupport (= 7.0.4.3)
|
20
20
|
mail (>= 2.7.1)
|
21
21
|
net-imap
|
22
22
|
net-pop
|
23
23
|
net-smtp
|
24
|
-
actionmailer (7.0.4)
|
25
|
-
actionpack (= 7.0.4)
|
26
|
-
actionview (= 7.0.4)
|
27
|
-
activejob (= 7.0.4)
|
28
|
-
activesupport (= 7.0.4)
|
24
|
+
actionmailer (7.0.4.3)
|
25
|
+
actionpack (= 7.0.4.3)
|
26
|
+
actionview (= 7.0.4.3)
|
27
|
+
activejob (= 7.0.4.3)
|
28
|
+
activesupport (= 7.0.4.3)
|
29
29
|
mail (~> 2.5, >= 2.5.4)
|
30
30
|
net-imap
|
31
31
|
net-pop
|
32
32
|
net-smtp
|
33
33
|
rails-dom-testing (~> 2.0)
|
34
|
-
actionpack (7.0.4)
|
35
|
-
actionview (= 7.0.4)
|
36
|
-
activesupport (= 7.0.4)
|
34
|
+
actionpack (7.0.4.3)
|
35
|
+
actionview (= 7.0.4.3)
|
36
|
+
activesupport (= 7.0.4.3)
|
37
37
|
rack (~> 2.0, >= 2.2.0)
|
38
38
|
rack-test (>= 0.6.3)
|
39
39
|
rails-dom-testing (~> 2.0)
|
40
40
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
41
|
-
actiontext (7.0.4)
|
42
|
-
actionpack (= 7.0.4)
|
43
|
-
activerecord (= 7.0.4)
|
44
|
-
activestorage (= 7.0.4)
|
45
|
-
activesupport (= 7.0.4)
|
41
|
+
actiontext (7.0.4.3)
|
42
|
+
actionpack (= 7.0.4.3)
|
43
|
+
activerecord (= 7.0.4.3)
|
44
|
+
activestorage (= 7.0.4.3)
|
45
|
+
activesupport (= 7.0.4.3)
|
46
46
|
globalid (>= 0.6.0)
|
47
47
|
nokogiri (>= 1.8.5)
|
48
|
-
actionview (7.0.4)
|
49
|
-
activesupport (= 7.0.4)
|
48
|
+
actionview (7.0.4.3)
|
49
|
+
activesupport (= 7.0.4.3)
|
50
50
|
builder (~> 3.1)
|
51
51
|
erubi (~> 1.4)
|
52
52
|
rails-dom-testing (~> 2.0)
|
53
53
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
54
|
-
activejob (7.0.4)
|
55
|
-
activesupport (= 7.0.4)
|
54
|
+
activejob (7.0.4.3)
|
55
|
+
activesupport (= 7.0.4.3)
|
56
56
|
globalid (>= 0.3.6)
|
57
|
-
activemodel (7.0.4)
|
58
|
-
activesupport (= 7.0.4)
|
59
|
-
activerecord (7.0.4)
|
60
|
-
activemodel (= 7.0.4)
|
61
|
-
activesupport (= 7.0.4)
|
62
|
-
activestorage (7.0.4)
|
63
|
-
actionpack (= 7.0.4)
|
64
|
-
activejob (= 7.0.4)
|
65
|
-
activerecord (= 7.0.4)
|
66
|
-
activesupport (= 7.0.4)
|
57
|
+
activemodel (7.0.4.3)
|
58
|
+
activesupport (= 7.0.4.3)
|
59
|
+
activerecord (7.0.4.3)
|
60
|
+
activemodel (= 7.0.4.3)
|
61
|
+
activesupport (= 7.0.4.3)
|
62
|
+
activestorage (7.0.4.3)
|
63
|
+
actionpack (= 7.0.4.3)
|
64
|
+
activejob (= 7.0.4.3)
|
65
|
+
activerecord (= 7.0.4.3)
|
66
|
+
activesupport (= 7.0.4.3)
|
67
67
|
marcel (~> 1.0)
|
68
68
|
mini_mime (>= 1.1.0)
|
69
|
-
activesupport (7.0.4)
|
69
|
+
activesupport (7.0.4.3)
|
70
70
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
71
71
|
i18n (>= 1.6, < 2)
|
72
72
|
minitest (>= 5.1)
|
73
73
|
tzinfo (~> 2.0)
|
74
|
-
addressable (2.8.
|
74
|
+
addressable (2.8.4)
|
75
75
|
public_suffix (>= 2.0.2, < 6.0)
|
76
76
|
appraisal (2.4.1)
|
77
77
|
bundler
|
@@ -79,7 +79,7 @@ GEM
|
|
79
79
|
thor (>= 0.14.0)
|
80
80
|
ast (2.4.2)
|
81
81
|
builder (3.2.4)
|
82
|
-
capybara (3.
|
82
|
+
capybara (3.39.0)
|
83
83
|
addressable
|
84
84
|
matrix
|
85
85
|
mini_mime (>= 0.1.3)
|
@@ -92,20 +92,20 @@ GEM
|
|
92
92
|
activesupport (>= 3.0.0)
|
93
93
|
railties (>= 3.0.0)
|
94
94
|
thor (>= 0.14.6)
|
95
|
-
concurrent-ruby (1.
|
95
|
+
concurrent-ruby (1.2.2)
|
96
96
|
crass (1.0.6)
|
97
|
-
date (3.3.
|
97
|
+
date (3.3.3)
|
98
98
|
docile (1.4.0)
|
99
|
-
erubi (1.
|
100
|
-
globalid (1.
|
99
|
+
erubi (1.12.0)
|
100
|
+
globalid (1.1.0)
|
101
101
|
activesupport (>= 5.0)
|
102
102
|
i18n (1.12.0)
|
103
103
|
concurrent-ruby (~> 1.0)
|
104
104
|
json (2.6.3)
|
105
|
-
loofah (2.
|
105
|
+
loofah (2.20.0)
|
106
106
|
crass (~> 1.0.2)
|
107
107
|
nokogiri (>= 1.5.9)
|
108
|
-
mail (2.8.
|
108
|
+
mail (2.8.1)
|
109
109
|
mini_mime (>= 0.1.1)
|
110
110
|
net-imap
|
111
111
|
net-pop
|
@@ -114,8 +114,8 @@ GEM
|
|
114
114
|
matrix (0.4.2)
|
115
115
|
method_source (1.0.0)
|
116
116
|
mini_mime (1.1.2)
|
117
|
-
minitest (5.
|
118
|
-
net-imap (0.3.
|
117
|
+
minitest (5.18.0)
|
118
|
+
net-imap (0.3.4)
|
119
119
|
date
|
120
120
|
net-protocol
|
121
121
|
net-pop (0.1.2)
|
@@ -124,100 +124,98 @@ GEM
|
|
124
124
|
timeout
|
125
125
|
net-smtp (0.3.3)
|
126
126
|
net-protocol
|
127
|
-
nio4r (2.5.
|
128
|
-
nokogiri (1.
|
127
|
+
nio4r (2.5.9)
|
128
|
+
nokogiri (1.14.3-x86_64-linux)
|
129
129
|
racc (~> 1.4)
|
130
130
|
observr (1.0.5)
|
131
131
|
parallel (1.22.1)
|
132
|
-
parser (3.
|
132
|
+
parser (3.2.2.0)
|
133
133
|
ast (~> 2.4.1)
|
134
134
|
public_suffix (5.0.1)
|
135
|
-
racc (1.6.
|
136
|
-
rack (2.2.4)
|
137
|
-
rack-test (2.0
|
135
|
+
racc (1.6.2)
|
136
|
+
rack (2.2.6.4)
|
137
|
+
rack-test (2.1.0)
|
138
138
|
rack (>= 1.3)
|
139
|
-
rails (7.0.4)
|
140
|
-
actioncable (= 7.0.4)
|
141
|
-
actionmailbox (= 7.0.4)
|
142
|
-
actionmailer (= 7.0.4)
|
143
|
-
actionpack (= 7.0.4)
|
144
|
-
actiontext (= 7.0.4)
|
145
|
-
actionview (= 7.0.4)
|
146
|
-
activejob (= 7.0.4)
|
147
|
-
activemodel (= 7.0.4)
|
148
|
-
activerecord (= 7.0.4)
|
149
|
-
activestorage (= 7.0.4)
|
150
|
-
activesupport (= 7.0.4)
|
139
|
+
rails (7.0.4.3)
|
140
|
+
actioncable (= 7.0.4.3)
|
141
|
+
actionmailbox (= 7.0.4.3)
|
142
|
+
actionmailer (= 7.0.4.3)
|
143
|
+
actionpack (= 7.0.4.3)
|
144
|
+
actiontext (= 7.0.4.3)
|
145
|
+
actionview (= 7.0.4.3)
|
146
|
+
activejob (= 7.0.4.3)
|
147
|
+
activemodel (= 7.0.4.3)
|
148
|
+
activerecord (= 7.0.4.3)
|
149
|
+
activestorage (= 7.0.4.3)
|
150
|
+
activesupport (= 7.0.4.3)
|
151
151
|
bundler (>= 1.15.0)
|
152
|
-
railties (= 7.0.4)
|
152
|
+
railties (= 7.0.4.3)
|
153
153
|
rails-dom-testing (2.0.3)
|
154
154
|
activesupport (>= 4.2.0)
|
155
155
|
nokogiri (>= 1.6)
|
156
|
-
rails-html-sanitizer (1.
|
156
|
+
rails-html-sanitizer (1.5.0)
|
157
157
|
loofah (~> 2.19, >= 2.19.1)
|
158
|
-
railties (7.0.4)
|
159
|
-
actionpack (= 7.0.4)
|
160
|
-
activesupport (= 7.0.4)
|
158
|
+
railties (7.0.4.3)
|
159
|
+
actionpack (= 7.0.4.3)
|
160
|
+
activesupport (= 7.0.4.3)
|
161
161
|
method_source
|
162
162
|
rake (>= 12.2)
|
163
163
|
thor (~> 1.0)
|
164
164
|
zeitwerk (~> 2.5)
|
165
165
|
rainbow (3.1.1)
|
166
166
|
rake (13.0.6)
|
167
|
-
regexp_parser (2.
|
167
|
+
regexp_parser (2.8.0)
|
168
168
|
rexml (3.2.5)
|
169
169
|
ricecream (0.2.1)
|
170
|
-
rubocop (1.
|
170
|
+
rubocop (1.50.2)
|
171
171
|
json (~> 2.3)
|
172
172
|
parallel (~> 1.10)
|
173
|
-
parser (>= 3.
|
173
|
+
parser (>= 3.2.0.0)
|
174
174
|
rainbow (>= 2.2.2, < 4.0)
|
175
175
|
regexp_parser (>= 1.8, < 3.0)
|
176
176
|
rexml (>= 3.2.5, < 4.0)
|
177
|
-
rubocop-ast (>= 1.
|
177
|
+
rubocop-ast (>= 1.28.0, < 2.0)
|
178
178
|
ruby-progressbar (~> 1.7)
|
179
|
-
unicode-display_width (>=
|
180
|
-
rubocop-ast (1.
|
181
|
-
parser (>= 3.
|
182
|
-
ruby-progressbar (1.
|
183
|
-
simplecov (0.
|
179
|
+
unicode-display_width (>= 2.4.0, < 3.0)
|
180
|
+
rubocop-ast (1.28.0)
|
181
|
+
parser (>= 3.2.1.0)
|
182
|
+
ruby-progressbar (1.13.0)
|
183
|
+
simplecov (0.22.0)
|
184
184
|
docile (~> 1.1)
|
185
185
|
simplecov-html (~> 0.11)
|
186
186
|
simplecov_json_formatter (~> 0.1)
|
187
187
|
simplecov-html (0.12.3)
|
188
188
|
simplecov_json_formatter (0.1.4)
|
189
|
-
slim (
|
190
|
-
temple (
|
191
|
-
tilt (>= 2.0.6, < 2.
|
192
|
-
spring (4.1.
|
193
|
-
sqlite3 (1.
|
194
|
-
temple (0.
|
189
|
+
slim (5.1.0)
|
190
|
+
temple (~> 0.10.0)
|
191
|
+
tilt (>= 2.0.6, < 2.2)
|
192
|
+
spring (4.1.1)
|
193
|
+
sqlite3 (1.6.2-x86_64-linux)
|
194
|
+
temple (0.10.0)
|
195
195
|
thor (1.2.1)
|
196
|
-
tilt (2.0
|
197
|
-
timeout (0.3.
|
198
|
-
tzinfo (2.0.
|
196
|
+
tilt (2.1.0)
|
197
|
+
timeout (0.3.2)
|
198
|
+
tzinfo (2.0.6)
|
199
199
|
concurrent-ruby (~> 1.0)
|
200
|
-
unicode-display_width (2.
|
200
|
+
unicode-display_width (2.4.2)
|
201
201
|
websocket-driver (0.7.5)
|
202
202
|
websocket-extensions (>= 0.1.0)
|
203
203
|
websocket-extensions (0.1.5)
|
204
204
|
xpath (3.2.0)
|
205
205
|
nokogiri (~> 1.8)
|
206
|
-
zeitwerk (2.6.
|
206
|
+
zeitwerk (2.6.7)
|
207
207
|
|
208
208
|
PLATFORMS
|
209
209
|
x86_64-linux
|
210
210
|
|
211
211
|
DEPENDENCIES
|
212
212
|
appraisal
|
213
|
-
bundler
|
214
213
|
capybara
|
215
214
|
combustion
|
216
215
|
formie!
|
217
216
|
minitest
|
218
217
|
observr
|
219
218
|
rails
|
220
|
-
rake
|
221
219
|
ricecream
|
222
220
|
rubocop
|
223
221
|
simplecov
|
@@ -226,4 +224,4 @@ DEPENDENCIES
|
|
226
224
|
sqlite3
|
227
225
|
|
228
226
|
BUNDLED WITH
|
229
|
-
2.
|
227
|
+
2.4.10
|
data/MIT-LICENSE
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
The MIT License (MIT)
|
2
2
|
|
3
|
-
Copyright (c) 2011-
|
3
|
+
Copyright (c) 2011-2023 Dittmar Krall (www.matiq.com)
|
4
4
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining
|
6
6
|
a copy of this software and associated documentation files (the
|
data/README.md
CHANGED
@@ -62,7 +62,6 @@ before_filter do
|
|
62
62
|
end
|
63
63
|
```
|
64
64
|
|
65
|
-
|
66
65
|
## Examples (see also tests)
|
67
66
|
|
68
67
|
```ruby
|
@@ -103,7 +102,7 @@ span Hello Slim
|
|
103
102
|
|
104
103
|
## Miscellaneous
|
105
104
|
|
106
|
-
Copyright (c) 2009-
|
105
|
+
Copyright (c) 2009-2023 Dittmar Krall (www.matiq.com),
|
107
106
|
released under the MIT license:
|
108
107
|
|
109
108
|
* https://opensource.org/licenses/MIT
|
data/formie.gemspec
CHANGED
@@ -23,11 +23,8 @@ Gem::Specification.new do |s|
|
|
23
23
|
s.files = `git ls-files -z`.split("\x0")
|
24
24
|
s.require_paths = ["lib"]
|
25
25
|
|
26
|
-
s.add_development_dependency "bundler"
|
27
|
-
s.add_development_dependency "rake"
|
28
26
|
s.add_development_dependency "appraisal"
|
29
27
|
s.add_development_dependency "combustion"
|
30
|
-
|
31
28
|
s.add_development_dependency "minitest"
|
32
29
|
s.add_development_dependency "sqlite3"
|
33
30
|
end
|
data/lib/formie/version.rb
CHANGED
metadata
CHANGED
@@ -1,43 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: formie
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dittmar Krall
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-04-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: bundler
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
20
|
-
type: :development
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ">="
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: rake
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
41
13
|
- !ruby/object:Gem::Dependency
|
42
14
|
name: appraisal
|
43
15
|
requirement: !ruby/object:Gem::Requirement
|
@@ -109,7 +81,6 @@ files:
|
|
109
81
|
- ".gitignore"
|
110
82
|
- ".ruby-gemset"
|
111
83
|
- ".ruby-version"
|
112
|
-
- ".watchr"
|
113
84
|
- Appraisals
|
114
85
|
- Gemfile
|
115
86
|
- Gemfile.lock
|
@@ -174,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
174
145
|
- !ruby/object:Gem::Version
|
175
146
|
version: '0'
|
176
147
|
requirements: []
|
177
|
-
rubygems_version: 3.
|
148
|
+
rubygems_version: 3.4.10
|
178
149
|
signing_key:
|
179
150
|
specification_version: 4
|
180
151
|
summary: Formie is like a Rails helper, but uses the notation of a partial.
|
data/.watchr
DELETED
@@ -1,59 +0,0 @@
|
|
1
|
-
TESTING = %w[test]
|
2
|
-
HH = "#" * 22 unless defined?(HH)
|
3
|
-
H = "#" * 5 unless defined?(H)
|
4
|
-
|
5
|
-
def usage
|
6
|
-
puts <<-EOS
|
7
|
-
Ctrl-\\ or ctrl-4 Running all tests
|
8
|
-
Ctrl-C Exit
|
9
|
-
EOS
|
10
|
-
end
|
11
|
-
|
12
|
-
def run(cmd)
|
13
|
-
puts "#{HH} #{Time.now} #{HH}"
|
14
|
-
puts "#{H} #{cmd}"
|
15
|
-
system "/usr/bin/time --format '#{HH} Elapsed time %E' #{cmd}"
|
16
|
-
end
|
17
|
-
|
18
|
-
def run_it(type, file)
|
19
|
-
case type
|
20
|
-
when "test" then run %(bundle exec ruby -I test #{file})
|
21
|
-
# when 'spec'; run %(rspec -X #{file})
|
22
|
-
else; puts "#{H} unknown type: #{type}, file: #{file}"
|
23
|
-
end
|
24
|
-
end
|
25
|
-
|
26
|
-
def run_all_tests
|
27
|
-
puts "\n#{HH} Running all tests #{HH}\n"
|
28
|
-
TESTING.each { |dir| run "bundle exec rake #{dir}" if File.exist?(dir) }
|
29
|
-
end
|
30
|
-
|
31
|
-
def run_matching_files(base)
|
32
|
-
base = base.split("_").first
|
33
|
-
TESTING.each { |type|
|
34
|
-
files = Dir["#{type}/**/*.rb"].select { |file| file =~ /#{base}_.*.rb/ }
|
35
|
-
run_it type, files.join(" ") unless files.empty?
|
36
|
-
}
|
37
|
-
end
|
38
|
-
|
39
|
-
TESTING.each { |type|
|
40
|
-
watch("#{type}/#{type}_helper.rb") { run_all_tests }
|
41
|
-
watch("lib/.*.rb") { run_all_tests }
|
42
|
-
watch("#{type}/.*/*_#{type}.rb") { |match| run_it type, match[0] }
|
43
|
-
watch("#{type}/data/(.*).rb") { |match|
|
44
|
-
m1 = match[1]
|
45
|
-
run_matching_files("#{type}/#{m1}/#{m1}_#{type}.rb")
|
46
|
-
}
|
47
|
-
}
|
48
|
-
|
49
|
-
%w[rb erb haml slim].each { |type|
|
50
|
-
watch(".*/(.*).#{type}") { |match|
|
51
|
-
run_matching_files(match[1])
|
52
|
-
}
|
53
|
-
}
|
54
|
-
|
55
|
-
# Ctrl-\ or ctrl-4
|
56
|
-
Signal.trap("QUIT") { run_all_tests }
|
57
|
-
# Ctrl-C
|
58
|
-
Signal.trap("INT") { abort("Interrupted\n") }
|
59
|
-
usage
|