phlexi-field 0.1.0 → 0.2.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 +4 -4
- data/.standard.yml +2 -0
- data/Appraisals +12 -3
- data/README.md +260 -121
- data/Rakefile +29 -0
- data/gemfiles/default.gemfile +7 -0
- data/gemfiles/default.gemfile.lock +201 -91
- data/gemfiles/rails_7.1.gemfile +13 -0
- data/gemfiles/rails_7.1.gemfile.lock +314 -0
- data/gemfiles/rails_8.gemfile +13 -0
- data/gemfiles/rails_8.gemfile.lock +309 -0
- data/lib/phlexi/field/common/tokens.rb +58 -0
- data/lib/phlexi/field/components/base.rb +3 -3
- data/lib/phlexi/field/structure/namespace_collection.rb +4 -0
- data/lib/phlexi/field/version.rb +1 -1
- metadata +16 -9
- data/gemfiles/rails_7.gemfile +0 -8
- data/gemfiles/rails_7.gemfile.lock +0 -282
@@ -23,6 +23,8 @@ module Phlexi
|
|
23
23
|
private
|
24
24
|
|
25
25
|
def each(&)
|
26
|
+
# Only iterate if we have namespaces
|
27
|
+
return [] unless @collection
|
26
28
|
namespaces.each(&)
|
27
29
|
end
|
28
30
|
|
@@ -39,6 +41,8 @@ module Phlexi
|
|
39
41
|
@collection.map.with_index do |object, key|
|
40
42
|
build_namespace(key, object: object)
|
41
43
|
end
|
44
|
+
else
|
45
|
+
[] # Return empty array for nil or invalid collections
|
42
46
|
end
|
43
47
|
end
|
44
48
|
|
data/lib/phlexi/field/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phlexi-field
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Froelich
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-05-
|
11
|
+
date: 2025-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: phlex
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '7.1'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '7.1'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: zeitwerk
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -165,7 +165,7 @@ dependencies:
|
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: '0'
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
|
-
name:
|
168
|
+
name: nokogiri
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
170
170
|
requirements:
|
171
171
|
- - ">="
|
@@ -178,7 +178,9 @@ dependencies:
|
|
178
178
|
- - ">="
|
179
179
|
- !ruby/object:Gem::Version
|
180
180
|
version: '0'
|
181
|
-
description:
|
181
|
+
description: A field component framework for Ruby applications that provides a unified
|
182
|
+
field abstraction across forms, displays, and tables. Built on Phlex with a namespace-based
|
183
|
+
architecture for handling complex object relationships.
|
182
184
|
email:
|
183
185
|
- sfroelich01@gmail.com
|
184
186
|
executables: []
|
@@ -187,6 +189,7 @@ extra_rdoc_files: []
|
|
187
189
|
files:
|
188
190
|
- ".rspec"
|
189
191
|
- ".ruby-version"
|
192
|
+
- ".standard.yml"
|
190
193
|
- Appraisals
|
191
194
|
- CHANGELOG.md
|
192
195
|
- LICENSE.txt
|
@@ -196,11 +199,14 @@ files:
|
|
196
199
|
- config.ru
|
197
200
|
- gemfiles/default.gemfile
|
198
201
|
- gemfiles/default.gemfile.lock
|
199
|
-
- gemfiles/rails_7.gemfile
|
200
|
-
- gemfiles/rails_7.gemfile.lock
|
202
|
+
- gemfiles/rails_7.1.gemfile
|
203
|
+
- gemfiles/rails_7.1.gemfile.lock
|
204
|
+
- gemfiles/rails_8.gemfile
|
205
|
+
- gemfiles/rails_8.gemfile.lock
|
201
206
|
- lib/phlexi-field.rb
|
202
207
|
- lib/phlexi/field.rb
|
203
208
|
- lib/phlexi/field/builder.rb
|
209
|
+
- lib/phlexi/field/common/tokens.rb
|
204
210
|
- lib/phlexi/field/components/base.rb
|
205
211
|
- lib/phlexi/field/options/associations.rb
|
206
212
|
- lib/phlexi/field/options/attachments.rb
|
@@ -246,5 +252,6 @@ requirements: []
|
|
246
252
|
rubygems_version: 3.4.10
|
247
253
|
signing_key:
|
248
254
|
specification_version: 4
|
249
|
-
summary:
|
255
|
+
summary: A field component framework for Ruby applications that provides a unified
|
256
|
+
field abstraction across forms, displays, and tables.
|
250
257
|
test_files: []
|
data/gemfiles/rails_7.gemfile
DELETED
@@ -1,282 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: ..
|
3
|
-
specs:
|
4
|
-
phlexi-form (0.3.0.rc1)
|
5
|
-
activesupport
|
6
|
-
phlex (~> 1.11)
|
7
|
-
zeitwerk
|
8
|
-
|
9
|
-
GEM
|
10
|
-
remote: https://rubygems.org/
|
11
|
-
specs:
|
12
|
-
actioncable (7.1.3.4)
|
13
|
-
actionpack (= 7.1.3.4)
|
14
|
-
activesupport (= 7.1.3.4)
|
15
|
-
nio4r (~> 2.0)
|
16
|
-
websocket-driver (>= 0.6.1)
|
17
|
-
zeitwerk (~> 2.6)
|
18
|
-
actionmailbox (7.1.3.4)
|
19
|
-
actionpack (= 7.1.3.4)
|
20
|
-
activejob (= 7.1.3.4)
|
21
|
-
activerecord (= 7.1.3.4)
|
22
|
-
activestorage (= 7.1.3.4)
|
23
|
-
activesupport (= 7.1.3.4)
|
24
|
-
mail (>= 2.7.1)
|
25
|
-
net-imap
|
26
|
-
net-pop
|
27
|
-
net-smtp
|
28
|
-
actionmailer (7.1.3.4)
|
29
|
-
actionpack (= 7.1.3.4)
|
30
|
-
actionview (= 7.1.3.4)
|
31
|
-
activejob (= 7.1.3.4)
|
32
|
-
activesupport (= 7.1.3.4)
|
33
|
-
mail (~> 2.5, >= 2.5.4)
|
34
|
-
net-imap
|
35
|
-
net-pop
|
36
|
-
net-smtp
|
37
|
-
rails-dom-testing (~> 2.2)
|
38
|
-
actionpack (7.1.3.4)
|
39
|
-
actionview (= 7.1.3.4)
|
40
|
-
activesupport (= 7.1.3.4)
|
41
|
-
nokogiri (>= 1.8.5)
|
42
|
-
racc
|
43
|
-
rack (>= 2.2.4)
|
44
|
-
rack-session (>= 1.0.1)
|
45
|
-
rack-test (>= 0.6.3)
|
46
|
-
rails-dom-testing (~> 2.2)
|
47
|
-
rails-html-sanitizer (~> 1.6)
|
48
|
-
actiontext (7.1.3.4)
|
49
|
-
actionpack (= 7.1.3.4)
|
50
|
-
activerecord (= 7.1.3.4)
|
51
|
-
activestorage (= 7.1.3.4)
|
52
|
-
activesupport (= 7.1.3.4)
|
53
|
-
globalid (>= 0.6.0)
|
54
|
-
nokogiri (>= 1.8.5)
|
55
|
-
actionview (7.1.3.4)
|
56
|
-
activesupport (= 7.1.3.4)
|
57
|
-
builder (~> 3.1)
|
58
|
-
erubi (~> 1.11)
|
59
|
-
rails-dom-testing (~> 2.2)
|
60
|
-
rails-html-sanitizer (~> 1.6)
|
61
|
-
activejob (7.1.3.4)
|
62
|
-
activesupport (= 7.1.3.4)
|
63
|
-
globalid (>= 0.3.6)
|
64
|
-
activemodel (7.1.3.4)
|
65
|
-
activesupport (= 7.1.3.4)
|
66
|
-
activerecord (7.1.3.4)
|
67
|
-
activemodel (= 7.1.3.4)
|
68
|
-
activesupport (= 7.1.3.4)
|
69
|
-
timeout (>= 0.4.0)
|
70
|
-
activestorage (7.1.3.4)
|
71
|
-
actionpack (= 7.1.3.4)
|
72
|
-
activejob (= 7.1.3.4)
|
73
|
-
activerecord (= 7.1.3.4)
|
74
|
-
activesupport (= 7.1.3.4)
|
75
|
-
marcel (~> 1.0)
|
76
|
-
activesupport (7.1.3.4)
|
77
|
-
base64
|
78
|
-
bigdecimal
|
79
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
80
|
-
connection_pool (>= 2.2.5)
|
81
|
-
drb
|
82
|
-
i18n (>= 1.6, < 2)
|
83
|
-
minitest (>= 5.1)
|
84
|
-
mutex_m
|
85
|
-
tzinfo (~> 2.0)
|
86
|
-
addressable (2.8.7)
|
87
|
-
public_suffix (>= 2.0.2, < 7.0)
|
88
|
-
ansi (1.5.0)
|
89
|
-
appraisal (2.5.0)
|
90
|
-
bundler
|
91
|
-
rake
|
92
|
-
thor (>= 0.14.0)
|
93
|
-
ast (2.4.2)
|
94
|
-
base64 (0.2.0)
|
95
|
-
bigdecimal (3.1.8)
|
96
|
-
builder (3.3.0)
|
97
|
-
bundle-audit (0.1.0)
|
98
|
-
bundler-audit
|
99
|
-
bundler-audit (0.9.1)
|
100
|
-
bundler (>= 1.2.0, < 3)
|
101
|
-
thor (~> 1.0)
|
102
|
-
capybara (3.40.0)
|
103
|
-
addressable
|
104
|
-
matrix
|
105
|
-
mini_mime (>= 0.1.3)
|
106
|
-
nokogiri (~> 1.11)
|
107
|
-
rack (>= 1.6.0)
|
108
|
-
rack-test (>= 0.6.3)
|
109
|
-
regexp_parser (>= 1.5, < 3.0)
|
110
|
-
xpath (~> 3.2)
|
111
|
-
combustion (1.5.0)
|
112
|
-
activesupport (>= 3.0.0)
|
113
|
-
railties (>= 3.0.0)
|
114
|
-
thor (>= 0.14.6)
|
115
|
-
concurrent-ruby (1.3.3)
|
116
|
-
connection_pool (2.4.1)
|
117
|
-
crass (1.0.6)
|
118
|
-
date (3.3.4)
|
119
|
-
drb (2.2.1)
|
120
|
-
erubi (1.13.0)
|
121
|
-
globalid (1.2.1)
|
122
|
-
activesupport (>= 6.1)
|
123
|
-
i18n (1.14.5)
|
124
|
-
concurrent-ruby (~> 1.0)
|
125
|
-
io-console (0.7.2)
|
126
|
-
irb (1.14.0)
|
127
|
-
rdoc (>= 4.0.0)
|
128
|
-
reline (>= 0.4.2)
|
129
|
-
json (2.7.2)
|
130
|
-
language_server-protocol (3.17.0.3)
|
131
|
-
lint_roller (1.1.0)
|
132
|
-
loofah (2.22.0)
|
133
|
-
crass (~> 1.0.2)
|
134
|
-
nokogiri (>= 1.12.0)
|
135
|
-
mail (2.8.1)
|
136
|
-
mini_mime (>= 0.1.1)
|
137
|
-
net-imap
|
138
|
-
net-pop
|
139
|
-
net-smtp
|
140
|
-
marcel (1.0.4)
|
141
|
-
matrix (0.4.2)
|
142
|
-
mini_mime (1.1.5)
|
143
|
-
minitest (5.24.1)
|
144
|
-
minitest-reporters (1.7.1)
|
145
|
-
ansi
|
146
|
-
builder
|
147
|
-
minitest (>= 5.0)
|
148
|
-
ruby-progressbar
|
149
|
-
mutex_m (0.2.0)
|
150
|
-
net-imap (0.4.14)
|
151
|
-
date
|
152
|
-
net-protocol
|
153
|
-
net-pop (0.1.2)
|
154
|
-
net-protocol
|
155
|
-
net-protocol (0.2.2)
|
156
|
-
timeout
|
157
|
-
net-smtp (0.5.0)
|
158
|
-
net-protocol
|
159
|
-
nio4r (2.7.3)
|
160
|
-
nokogiri (1.16.7-x86_64-darwin)
|
161
|
-
racc (~> 1.4)
|
162
|
-
parallel (1.25.1)
|
163
|
-
parser (3.3.4.0)
|
164
|
-
ast (~> 2.4.1)
|
165
|
-
racc
|
166
|
-
phlex (1.11.0)
|
167
|
-
phlex-testing-capybara (0.1.0)
|
168
|
-
capybara (~> 3.38)
|
169
|
-
phlex (>= 0.5)
|
170
|
-
psych (5.1.2)
|
171
|
-
stringio
|
172
|
-
public_suffix (6.0.1)
|
173
|
-
racc (1.8.1)
|
174
|
-
rack (3.1.7)
|
175
|
-
rack-session (2.0.0)
|
176
|
-
rack (>= 3.0.0)
|
177
|
-
rack-test (2.1.0)
|
178
|
-
rack (>= 1.3)
|
179
|
-
rackup (2.1.0)
|
180
|
-
rack (>= 3)
|
181
|
-
webrick (~> 1.8)
|
182
|
-
rails (7.1.3.4)
|
183
|
-
actioncable (= 7.1.3.4)
|
184
|
-
actionmailbox (= 7.1.3.4)
|
185
|
-
actionmailer (= 7.1.3.4)
|
186
|
-
actionpack (= 7.1.3.4)
|
187
|
-
actiontext (= 7.1.3.4)
|
188
|
-
actionview (= 7.1.3.4)
|
189
|
-
activejob (= 7.1.3.4)
|
190
|
-
activemodel (= 7.1.3.4)
|
191
|
-
activerecord (= 7.1.3.4)
|
192
|
-
activestorage (= 7.1.3.4)
|
193
|
-
activesupport (= 7.1.3.4)
|
194
|
-
bundler (>= 1.15.0)
|
195
|
-
railties (= 7.1.3.4)
|
196
|
-
rails-dom-testing (2.2.0)
|
197
|
-
activesupport (>= 5.0.0)
|
198
|
-
minitest
|
199
|
-
nokogiri (>= 1.6)
|
200
|
-
rails-html-sanitizer (1.6.0)
|
201
|
-
loofah (~> 2.21)
|
202
|
-
nokogiri (~> 1.14)
|
203
|
-
railties (7.1.3.4)
|
204
|
-
actionpack (= 7.1.3.4)
|
205
|
-
activesupport (= 7.1.3.4)
|
206
|
-
irb
|
207
|
-
rackup (>= 1.0.0)
|
208
|
-
rake (>= 12.2)
|
209
|
-
thor (~> 1.0, >= 1.2.2)
|
210
|
-
zeitwerk (~> 2.6)
|
211
|
-
rainbow (3.1.1)
|
212
|
-
rake (13.2.1)
|
213
|
-
rdoc (6.7.0)
|
214
|
-
psych (>= 4.0.0)
|
215
|
-
regexp_parser (2.9.2)
|
216
|
-
reline (0.5.9)
|
217
|
-
io-console (~> 0.5)
|
218
|
-
rexml (3.3.2)
|
219
|
-
strscan
|
220
|
-
rubocop (1.64.1)
|
221
|
-
json (~> 2.3)
|
222
|
-
language_server-protocol (>= 3.17.0)
|
223
|
-
parallel (~> 1.10)
|
224
|
-
parser (>= 3.3.0.2)
|
225
|
-
rainbow (>= 2.2.2, < 4.0)
|
226
|
-
regexp_parser (>= 1.8, < 3.0)
|
227
|
-
rexml (>= 3.2.5, < 4.0)
|
228
|
-
rubocop-ast (>= 1.31.1, < 2.0)
|
229
|
-
ruby-progressbar (~> 1.7)
|
230
|
-
unicode-display_width (>= 2.4.0, < 3.0)
|
231
|
-
rubocop-ast (1.31.3)
|
232
|
-
parser (>= 3.3.1.0)
|
233
|
-
rubocop-performance (1.21.1)
|
234
|
-
rubocop (>= 1.48.1, < 2.0)
|
235
|
-
rubocop-ast (>= 1.31.1, < 2.0)
|
236
|
-
ruby-progressbar (1.13.0)
|
237
|
-
sqlite3 (1.7.3-x86_64-darwin)
|
238
|
-
standard (1.39.2)
|
239
|
-
language_server-protocol (~> 3.17.0.2)
|
240
|
-
lint_roller (~> 1.0)
|
241
|
-
rubocop (~> 1.64.0)
|
242
|
-
standard-custom (~> 1.0.0)
|
243
|
-
standard-performance (~> 1.4)
|
244
|
-
standard-custom (1.0.2)
|
245
|
-
lint_roller (~> 1.0)
|
246
|
-
rubocop (~> 1.50)
|
247
|
-
standard-performance (1.4.0)
|
248
|
-
lint_roller (~> 1.1)
|
249
|
-
rubocop-performance (~> 1.21.0)
|
250
|
-
stringio (3.1.1)
|
251
|
-
strscan (3.1.0)
|
252
|
-
thor (1.3.1)
|
253
|
-
timeout (0.4.1)
|
254
|
-
tzinfo (2.0.6)
|
255
|
-
concurrent-ruby (~> 1.0)
|
256
|
-
unicode-display_width (2.5.0)
|
257
|
-
webrick (1.8.1)
|
258
|
-
websocket-driver (0.7.6)
|
259
|
-
websocket-extensions (>= 0.1.0)
|
260
|
-
websocket-extensions (0.1.5)
|
261
|
-
xpath (3.2.0)
|
262
|
-
nokogiri (~> 1.8)
|
263
|
-
zeitwerk (2.6.17)
|
264
|
-
|
265
|
-
PLATFORMS
|
266
|
-
x86_64-darwin
|
267
|
-
|
268
|
-
DEPENDENCIES
|
269
|
-
appraisal
|
270
|
-
bundle-audit
|
271
|
-
combustion
|
272
|
-
minitest
|
273
|
-
minitest-reporters
|
274
|
-
phlex-testing-capybara
|
275
|
-
phlexi-form!
|
276
|
-
rails (~> 7.1.3, >= 7.1.3.4)
|
277
|
-
rake
|
278
|
-
sqlite3 (~> 1.4)
|
279
|
-
standard
|
280
|
-
|
281
|
-
BUNDLED WITH
|
282
|
-
2.5.16
|