formie 1.0.3 → 1.1.0

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: bf05276e31376fb6d74565fe62bb9cfed4cfa2a600b4ef7cc84e4494c92fe1b0
4
- data.tar.gz: f81c854c7a58241e819605905661e5e43a38b96f05845ca03d8676cb565c9f4e
3
+ metadata.gz: cfe4a0b9ed817eb315c1e2a747746a8cbf0089d8f48998df22f1d1bdbab6af9a
4
+ data.tar.gz: 79b1686a7d0069eb6d5a8fc5efe09d249fba17d52b046cba3a53d42deb5514c7
5
5
  SHA512:
6
- metadata.gz: 8451254fcb9bff1ecbe3ddc467205aeda8d3f2f27271cd89b4a2e23f3ee864efcd62c1378c3b5e819a8e371761e0dc972935d17afa7b95dff7006492e8fd4cca
7
- data.tar.gz: 8fa8f33c7a3324ed2c8ff7bfa20a7a432d8723a9a22a3eefa68c43508e70c4fca2237cc5d1d7b67c73bb8f6c294638959615e1305674f7186293548c27b3c880
6
+ metadata.gz: 565548b5914977f2fa2244cc46852f303601a66f446191f52d0f1b19256bbe45f9cc834deeca13b3d7e6f2b40d55e481a31b5579f3b2bd829cf51b5a995a4573
7
+ data.tar.gz: 5123b2894e320641887f809de931e8bda8e2ef209b470b0d9224d9dc0fec976e671966a06439f515f44359afc11bd1c3d4fad0828b5361aea1e7f272f306860c
@@ -0,0 +1,28 @@
1
+ # see also https://github.com/whitequark/parser/blob/master/.github/workflows/test.yml
2
+ name: Rake
3
+
4
+ #on: [push, pull_request]
5
+ on: [push]
6
+
7
+ jobs:
8
+ test:
9
+ strategy:
10
+ fail-fast: false
11
+ matrix:
12
+ os: [ubuntu-latest]
13
+ # Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0'
14
+ ruby: ["2.7", "3.0", "3.1", head]
15
+ test_command: ["bundle exec rake test"]
16
+ runs-on: ${{ matrix.os }}
17
+
18
+ steps:
19
+ - uses: actions/checkout@v3
20
+ - uses: ruby/setup-ruby@v1
21
+ with:
22
+ ruby-version: ${{ matrix.ruby }}
23
+ - name: Bundle install
24
+ run: |
25
+ bundle config path /home/runner/bundle
26
+ bundle install
27
+ bundle update
28
+ - run: ${{ matrix.test_command }}
data/.ruby-gemset CHANGED
@@ -1 +1 @@
1
- rails-6.0
1
+ rails-7.0
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-2.6.6
1
+ ruby-3.1.3
data/.watchr CHANGED
@@ -1,5 +1,6 @@
1
- HH = '#' * 22 unless defined?(HH)
2
- H = '#' * 5 unless defined?(H)
1
+ TESTING = %w[test]
2
+ HH = "#" * 22 unless defined?(HH)
3
+ H = "#" * 5 unless defined?(H)
3
4
 
4
5
  def usage
5
6
  puts <<-EOS
@@ -16,33 +17,43 @@ end
16
17
 
17
18
  def run_it(type, file)
18
19
  case type
19
- when 'test'; run %(ruby -I test #{file})
20
- # when 'spec'; run %(rspec -X #{file})
21
- else; puts "#{H} unknown type: #{type}, file: #{file}"
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}"
22
23
  end
23
24
  end
24
25
 
25
26
  def run_all_tests
26
27
  puts "\n#{HH} Running all tests #{HH}\n"
27
- %w[test spec].each { |dir| run "rake #{dir}" if File.exist?(dir) }
28
+ TESTING.each { |dir| run "bundle exec rake #{dir}" if File.exist?(dir) }
28
29
  end
29
30
 
30
31
  def run_matching_files(base)
31
- base = base.split('_').first
32
- %w[test spec].each { |type|
33
- files = Dir["#{type}/**/*.rb"].select { |file| file =~ /#{base}_.*\.rb/ }
34
- run_it type, files.join(' ') unless files.empty?
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?
35
36
  }
36
37
  end
37
38
 
38
- %w[test spec].each { |type|
39
- watch("#{type}/#{type}_helper\.rb") { run_all_tests }
40
- watch('lib/.*\.rb') { run_all_tests }
41
- watch("#{type}/.*/*_#{type}\.rb") { |match| run_it type, match[0] }
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
+ }
42
53
  }
43
54
 
44
55
  # Ctrl-\ or ctrl-4
45
- Signal.trap('QUIT') { run_all_tests }
56
+ Signal.trap("QUIT") { run_all_tests }
46
57
  # Ctrl-C
47
- Signal.trap('INT') { abort("Interrupted\n") }
58
+ Signal.trap("INT") { abort("Interrupted\n") }
48
59
  usage
data/Appraisals CHANGED
@@ -1,15 +1,25 @@
1
- appraise 'rails-6.0' do
2
- gem 'rails', '~> 6.0.0'
1
+ appraise "rails-7.0" do
2
+ gem "rails", "~> 7.0"
3
+ gem "dryer-config", "~> 7.0"
3
4
  end
4
5
 
5
- appraise 'rails-5.2' do
6
- gem 'rails', '~> 5.2.0'
6
+ appraise "rails-6.1" do
7
+ gem "rails", "~> 6.1"
8
+ gem "dryer-config", "~> 6.0"
7
9
  end
8
10
 
9
- #appraise 'rails-5.1' do
11
+ # appraise "rails-6.0" do
12
+ # gem "rails", "~> 6.0"
13
+ # end
14
+ #
15
+ # appraise 'rails-5.2' do
16
+ # gem 'rails', '~> 5.2.0'
17
+ # end
18
+ #
19
+ # appraise 'rails-5.1' do
10
20
  # gem 'rails', '~> 5.1'
11
- #end
21
+ # end
12
22
  #
13
- #appraise 'rails-5.0' do
23
+ # appraise 'rails-5.0' do
14
24
  # gem 'rails', '~> 5.0.0'
15
- #end
25
+ # end
data/Gemfile CHANGED
@@ -1,12 +1,14 @@
1
- source 'https://rubygems.org'
1
+ source "https://rubygems.org"
2
2
  gemspec
3
3
 
4
- gem 'rails'
4
+ gem "rails"
5
5
 
6
6
  group :test do
7
- gem 'observr'
8
- gem 'rubocop', require: false
9
- gem 'simplecov', require: false
10
- gem 'capybara'
11
- gem 'slim'
7
+ gem "capybara"
8
+ gem "observr"
9
+ gem "ricecream"
10
+ gem "rubocop", require: false
11
+ gem "simplecov", require: false
12
+ gem "slim"
13
+ gem "spring"
12
14
  end
data/Gemfile.lock CHANGED
@@ -1,205 +1,229 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- formie (1.0.3)
4
+ formie (1.0.4)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- actioncable (6.0.3.2)
10
- actionpack (= 6.0.3.2)
9
+ actioncable (7.0.4)
10
+ actionpack (= 7.0.4)
11
+ activesupport (= 7.0.4)
11
12
  nio4r (~> 2.0)
12
13
  websocket-driver (>= 0.6.1)
13
- actionmailbox (6.0.3.2)
14
- actionpack (= 6.0.3.2)
15
- activejob (= 6.0.3.2)
16
- activerecord (= 6.0.3.2)
17
- activestorage (= 6.0.3.2)
18
- activesupport (= 6.0.3.2)
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)
19
20
  mail (>= 2.7.1)
20
- actionmailer (6.0.3.2)
21
- actionpack (= 6.0.3.2)
22
- actionview (= 6.0.3.2)
23
- activejob (= 6.0.3.2)
21
+ net-imap
22
+ net-pop
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
29
  mail (~> 2.5, >= 2.5.4)
30
+ net-imap
31
+ net-pop
32
+ net-smtp
25
33
  rails-dom-testing (~> 2.0)
26
- actionpack (6.0.3.2)
27
- actionview (= 6.0.3.2)
28
- activesupport (= 6.0.3.2)
29
- rack (~> 2.0, >= 2.0.8)
34
+ actionpack (7.0.4)
35
+ actionview (= 7.0.4)
36
+ activesupport (= 7.0.4)
37
+ rack (~> 2.0, >= 2.2.0)
30
38
  rack-test (>= 0.6.3)
31
39
  rails-dom-testing (~> 2.0)
32
40
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
33
- actiontext (6.0.3.2)
34
- actionpack (= 6.0.3.2)
35
- activerecord (= 6.0.3.2)
36
- activestorage (= 6.0.3.2)
37
- activesupport (= 6.0.3.2)
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)
46
+ globalid (>= 0.6.0)
38
47
  nokogiri (>= 1.8.5)
39
- actionview (6.0.3.2)
40
- activesupport (= 6.0.3.2)
48
+ actionview (7.0.4)
49
+ activesupport (= 7.0.4)
41
50
  builder (~> 3.1)
42
51
  erubi (~> 1.4)
43
52
  rails-dom-testing (~> 2.0)
44
53
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
45
- activejob (6.0.3.2)
46
- activesupport (= 6.0.3.2)
54
+ activejob (7.0.4)
55
+ activesupport (= 7.0.4)
47
56
  globalid (>= 0.3.6)
48
- activemodel (6.0.3.2)
49
- activesupport (= 6.0.3.2)
50
- activerecord (6.0.3.2)
51
- activemodel (= 6.0.3.2)
52
- activesupport (= 6.0.3.2)
53
- activestorage (6.0.3.2)
54
- actionpack (= 6.0.3.2)
55
- activejob (= 6.0.3.2)
56
- activerecord (= 6.0.3.2)
57
- marcel (~> 0.3.1)
58
- activesupport (6.0.3.2)
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)
67
+ marcel (~> 1.0)
68
+ mini_mime (>= 1.1.0)
69
+ activesupport (7.0.4)
59
70
  concurrent-ruby (~> 1.0, >= 1.0.2)
60
- i18n (>= 0.7, < 2)
61
- minitest (~> 5.1)
62
- tzinfo (~> 1.1)
63
- zeitwerk (~> 2.2, >= 2.2.2)
64
- addressable (2.7.0)
65
- public_suffix (>= 2.0.2, < 5.0)
66
- appraisal (2.3.0)
71
+ i18n (>= 1.6, < 2)
72
+ minitest (>= 5.1)
73
+ tzinfo (~> 2.0)
74
+ addressable (2.8.1)
75
+ public_suffix (>= 2.0.2, < 6.0)
76
+ appraisal (2.4.1)
67
77
  bundler
68
78
  rake
69
79
  thor (>= 0.14.0)
70
- ast (2.4.1)
80
+ ast (2.4.2)
71
81
  builder (3.2.4)
72
- capybara (3.33.0)
82
+ capybara (3.38.0)
73
83
  addressable
84
+ matrix
74
85
  mini_mime (>= 0.1.3)
75
86
  nokogiri (~> 1.8)
76
87
  rack (>= 1.6.0)
77
88
  rack-test (>= 0.6.3)
78
- regexp_parser (~> 1.5)
89
+ regexp_parser (>= 1.5, < 3.0)
79
90
  xpath (~> 3.2)
80
- combustion (1.3.0)
91
+ combustion (1.3.7)
81
92
  activesupport (>= 3.0.0)
82
93
  railties (>= 3.0.0)
83
94
  thor (>= 0.14.6)
84
- concurrent-ruby (1.1.6)
95
+ concurrent-ruby (1.1.10)
85
96
  crass (1.0.6)
86
- docile (1.3.2)
87
- erubi (1.9.0)
88
- globalid (0.4.2)
89
- activesupport (>= 4.2.0)
90
- i18n (1.8.4)
97
+ date (3.3.2)
98
+ docile (1.4.0)
99
+ erubi (1.11.0)
100
+ globalid (1.0.0)
101
+ activesupport (>= 5.0)
102
+ i18n (1.12.0)
91
103
  concurrent-ruby (~> 1.0)
92
- loofah (2.6.0)
104
+ json (2.6.3)
105
+ loofah (2.19.1)
93
106
  crass (~> 1.0.2)
94
107
  nokogiri (>= 1.5.9)
95
- mail (2.7.1)
108
+ mail (2.8.0)
96
109
  mini_mime (>= 0.1.1)
97
- marcel (0.3.3)
98
- mimemagic (~> 0.3.2)
110
+ net-imap
111
+ net-pop
112
+ net-smtp
113
+ marcel (1.0.2)
114
+ matrix (0.4.2)
99
115
  method_source (1.0.0)
100
- mimemagic (0.3.5)
101
- mini_mime (1.0.2)
102
- mini_portile2 (2.4.0)
103
- minitest (5.14.1)
104
- nio4r (2.5.2)
105
- nokogiri (1.10.10)
106
- mini_portile2 (~> 2.4.0)
116
+ mini_mime (1.1.2)
117
+ minitest (5.16.3)
118
+ net-imap (0.3.2)
119
+ date
120
+ net-protocol
121
+ net-pop (0.1.2)
122
+ net-protocol
123
+ net-protocol (0.2.1)
124
+ timeout
125
+ net-smtp (0.3.3)
126
+ net-protocol
127
+ nio4r (2.5.8)
128
+ nokogiri (1.13.10-x86_64-linux)
129
+ racc (~> 1.4)
107
130
  observr (1.0.5)
108
- parallel (1.19.2)
109
- parser (2.7.1.4)
131
+ parallel (1.22.1)
132
+ parser (3.1.3.0)
110
133
  ast (~> 2.4.1)
111
- public_suffix (4.0.5)
112
- rack (2.2.3)
113
- rack-test (1.1.0)
114
- rack (>= 1.0, < 3)
115
- rails (6.0.3.2)
116
- actioncable (= 6.0.3.2)
117
- actionmailbox (= 6.0.3.2)
118
- actionmailer (= 6.0.3.2)
119
- actionpack (= 6.0.3.2)
120
- actiontext (= 6.0.3.2)
121
- actionview (= 6.0.3.2)
122
- activejob (= 6.0.3.2)
123
- activemodel (= 6.0.3.2)
124
- activerecord (= 6.0.3.2)
125
- activestorage (= 6.0.3.2)
126
- activesupport (= 6.0.3.2)
127
- bundler (>= 1.3.0)
128
- railties (= 6.0.3.2)
129
- sprockets-rails (>= 2.0.0)
134
+ public_suffix (5.0.1)
135
+ racc (1.6.1)
136
+ rack (2.2.4)
137
+ rack-test (2.0.2)
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)
151
+ bundler (>= 1.15.0)
152
+ railties (= 7.0.4)
130
153
  rails-dom-testing (2.0.3)
131
154
  activesupport (>= 4.2.0)
132
155
  nokogiri (>= 1.6)
133
- rails-html-sanitizer (1.3.0)
134
- loofah (~> 2.3)
135
- railties (6.0.3.2)
136
- actionpack (= 6.0.3.2)
137
- activesupport (= 6.0.3.2)
156
+ rails-html-sanitizer (1.4.4)
157
+ loofah (~> 2.19, >= 2.19.1)
158
+ railties (7.0.4)
159
+ actionpack (= 7.0.4)
160
+ activesupport (= 7.0.4)
138
161
  method_source
139
- rake (>= 0.8.7)
140
- thor (>= 0.20.3, < 2.0)
141
- rainbow (3.0.0)
142
- rake (13.0.1)
143
- regexp_parser (1.7.1)
144
- rexml (3.2.4)
145
- rubocop (0.88.0)
162
+ rake (>= 12.2)
163
+ thor (~> 1.0)
164
+ zeitwerk (~> 2.5)
165
+ rainbow (3.1.1)
166
+ rake (13.0.6)
167
+ regexp_parser (2.6.1)
168
+ rexml (3.2.5)
169
+ ricecream (0.2.1)
170
+ rubocop (1.40.0)
171
+ json (~> 2.3)
146
172
  parallel (~> 1.10)
147
- parser (>= 2.7.1.1)
173
+ parser (>= 3.1.2.1)
148
174
  rainbow (>= 2.2.2, < 4.0)
149
- regexp_parser (>= 1.7)
150
- rexml
151
- rubocop-ast (>= 0.1.0, < 1.0)
175
+ regexp_parser (>= 1.8, < 3.0)
176
+ rexml (>= 3.2.5, < 4.0)
177
+ rubocop-ast (>= 1.23.0, < 2.0)
152
178
  ruby-progressbar (~> 1.7)
153
- unicode-display_width (>= 1.4.0, < 2.0)
154
- rubocop-ast (0.2.0)
155
- parser (>= 2.7.0.1)
156
- ruby-progressbar (1.10.1)
157
- simplecov (0.18.5)
179
+ unicode-display_width (>= 1.4.0, < 3.0)
180
+ rubocop-ast (1.24.0)
181
+ parser (>= 3.1.1.0)
182
+ ruby-progressbar (1.11.0)
183
+ simplecov (0.21.2)
158
184
  docile (~> 1.1)
159
185
  simplecov-html (~> 0.11)
160
- simplecov-html (0.12.2)
186
+ simplecov_json_formatter (~> 0.1)
187
+ simplecov-html (0.12.3)
188
+ simplecov_json_formatter (0.1.4)
161
189
  slim (4.1.0)
162
190
  temple (>= 0.7.6, < 0.9)
163
191
  tilt (>= 2.0.6, < 2.1)
164
- sprockets (4.0.2)
165
- concurrent-ruby (~> 1.0)
166
- rack (> 1, < 3)
167
- sprockets-rails (3.2.1)
168
- actionpack (>= 4.0)
169
- activesupport (>= 4.0)
170
- sprockets (>= 3.0.0)
171
- sqlite3 (1.4.2)
192
+ spring (4.1.0)
193
+ sqlite3 (1.5.4-x86_64-linux)
172
194
  temple (0.8.2)
173
- thor (1.0.1)
174
- thread_safe (0.3.6)
175
- tilt (2.0.10)
176
- tzinfo (1.2.7)
177
- thread_safe (~> 0.1)
178
- unicode-display_width (1.7.0)
179
- websocket-driver (0.7.3)
195
+ thor (1.2.1)
196
+ tilt (2.0.11)
197
+ timeout (0.3.1)
198
+ tzinfo (2.0.5)
199
+ concurrent-ruby (~> 1.0)
200
+ unicode-display_width (2.3.0)
201
+ websocket-driver (0.7.5)
180
202
  websocket-extensions (>= 0.1.0)
181
203
  websocket-extensions (0.1.5)
182
204
  xpath (3.2.0)
183
205
  nokogiri (~> 1.8)
184
- zeitwerk (2.4.0)
206
+ zeitwerk (2.6.6)
185
207
 
186
208
  PLATFORMS
187
- ruby
209
+ x86_64-linux
188
210
 
189
211
  DEPENDENCIES
190
- appraisal (~> 2)
212
+ appraisal
191
213
  bundler
192
214
  capybara
193
- combustion (~> 1.1)
215
+ combustion
194
216
  formie!
195
- minitest (~> 5)
217
+ minitest
196
218
  observr
197
219
  rails
198
- rake (~> 13)
220
+ rake
221
+ ricecream
199
222
  rubocop
200
223
  simplecov
201
224
  slim
202
- sqlite3 (~> 1)
225
+ spring
226
+ sqlite3
203
227
 
204
228
  BUNDLED WITH
205
- 2.1.4
229
+ 2.3.26
data/MIT-LICENSE CHANGED
@@ -1,4 +1,6 @@
1
- Copyright 2011-2020 Dittmar Krall - www.matique.com
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2011-2022 Dittmar Krall (www.matiq.com)
2
4
 
3
5
  Permission is hereby granted, free of charge, to any person obtaining
4
6
  a copy of this software and associated documentation files (the